Skip to content

Commit

Permalink
Merge pull request #83 from kumarkrishh/adityar-123/contact-page
Browse files Browse the repository at this point in the history
fixed contact page, setup EmailJS
  • Loading branch information
aditya-r123 authored Dec 2, 2024
2 parents 8c8ebbd + 20dd336 commit b1301c8
Show file tree
Hide file tree
Showing 3 changed files with 130 additions and 19 deletions.
10 changes: 5 additions & 5 deletions app/contact/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ const ContactPage = () => {
e.preventDefault();

// EmailJS service and template ID
const serviceId = 'your_service_id'; // Replace with EmailJS service ID
const templateId = 'your_template_id'; // Replace with EmailJS template ID
const userId = 'your_user_id'; // Replace with EmailJS user ID
const serviceId = process.env.NEXT_PUBLIC_EMAIL_JS_SERVICE_ID!; // Replace with EmailJS service ID
const templateId = process.env.NEXT_PUBLIC_EMAIL_JS_TEMPLATE_ID!; // Replace with EmailJS template ID
const userId = process.env.NEXT_PUBLIC_EMAIL_JS_USER_ID!; // Replace with EmailJS user ID

const templateParams = {
name: formData.name,
email: formData.email,
from_name: formData.name,
from_email: formData.email,
message: formData.message,
};

Expand Down
137 changes: 124 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"next-themes": "^0.3.0",
"openai": "^4.73.0",
"pluralize": "^8.0.0",
"postcss": "8.4.30",
"postcss": "^8.4.49",
"react": "18.2.0",
"react-day-picker": "^8.10.1",
"react-dom": "18.2.0",
Expand Down

0 comments on commit b1301c8

Please sign in to comment.