-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dependabot/npm_and_yarn/types/react-18.2.53
- Loading branch information
Showing
38 changed files
with
857 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
title: 'iTour' | ||
image: '/iTour.jpg' | ||
technologies: ['JavaScript', 'React', 'Next.js', 'TailwindCSS', 'i18n'] | ||
--- | ||
|
||
iTour project info goes here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
title: 'Skauna' | ||
image: '/Skauna.jpg' | ||
technologies: ['HTML', 'CSS', 'JavaScript'] | ||
--- | ||
|
||
Skauna project info goes here |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,7 @@ raleway | |
Bochkovskyi | ||
clsx | ||
Nextdotjs | ||
Tailwindcss | ||
Tailwindcss | ||
Skauna | ||
hookform | ||
sonner |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
'use server' | ||
|
||
import { ContactFormInputs, ContactFormSchema } from '@/utils' | ||
import emailjs, { EmailJSResponseStatus } from '@emailjs/nodejs' | ||
|
||
export const sendEmail = async (data: ContactFormInputs) => { | ||
const dataParseResult = ContactFormSchema.safeParse(data) | ||
|
||
if (dataParseResult.success) { | ||
const parsedData = dataParseResult.data | ||
|
||
try { | ||
const response = await emailjs.send( | ||
process.env.EMAILJS_SERVICE_ID!, | ||
process.env.EMAILJS_TEMPLATE_ID!, | ||
parsedData, | ||
{ | ||
privateKey: process.env.EMAILJS_PRIVATE_KEY!, | ||
publicKey: process.env.EMAILJS_PUBLIC_KEY!, | ||
} | ||
) | ||
|
||
return { message: response.text, success: true } | ||
} catch (error) { | ||
if (error instanceof EmailJSResponseStatus) { | ||
return { message: error.text, success: false } | ||
} | ||
} | ||
} | ||
|
||
if (!dataParseResult.success) { | ||
return { | ||
message: JSON.stringify(dataParseResult.error.format()), | ||
success: false, | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
import About from '@/components/sections/about' | ||
import Contact from '@/components/sections/contact/contact' | ||
import Hero from '@/components/sections/hero/hero' | ||
import Projects from '@/components/sections/projects/projects' | ||
|
||
export default function Home() { | ||
return ( | ||
<> | ||
<Hero /> | ||
<About /> | ||
<About className="py-16 md:py-24" id="about-me" /> | ||
<Projects className="py-16 md:py-24" id="my-projects" /> | ||
<Contact className="py-16 md:py-24" id="contact-me" /> | ||
</> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.