Skip to content

Commit

Permalink
fix env
Browse files Browse the repository at this point in the history
  • Loading branch information
RakeshPotnuru committed Jan 9, 2025
1 parent 25226b2 commit f835d47
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 17 deletions.
21 changes: 9 additions & 12 deletions src/components/modules/contact/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,18 +71,15 @@ export default function Contact() {
}

try {
const response = await fetch(
`${process.env.REACT_APP_BACKEND_URL}/send`,
{
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
message: `New Contact Form Submission:\n\n👤 Name: ${data.name}\n📧 Email: ${data.email}\n💬 Message: ${data.message}`,
}),
}
);
const response = await fetch(`${process.env.GATSBY_BACKEND_URL}/send`, {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
message: `New Contact Form Submission:\n\n👤 Name: ${data.name}\n📧 Email: ${data.email}\n💬 Message: ${data.message}`,
}),
});

if (response.ok) {
toast.success(
Expand Down
11 changes: 6 additions & 5 deletions src/components/modules/home/hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import { siteConfig } from "@/config/site";

export default function Hero() {
return (
<Row className="md:justify-between justify-center">
<Col className="gap-6 md:items-start">
<Col className="gap-2 md:items-start">
<Row className="lg:justify-between justify-center">
<Col className="gap-6 lg:items-start">
<Col className="gap-2 lg:items-start">
<p>Hey!</p>
<h2 className="text-5xl font-medium">
I'm <span className="text-primary">Rakesh</span>
Expand Down Expand Up @@ -66,7 +66,7 @@ export default function Hero() {
src="../../../images/avatar.png"
alt="Rakesh Potnuru"
placeholder="blurred"
className="rounded-full hidden md:block w-[300px] lg:w-[500px] h-[300px] lg:h-[500px]"
className="rounded-full hidden lg:block w-[500px] :h-[500px]"
/>
</Row>
);
Expand Down Expand Up @@ -95,7 +95,8 @@ export function SocialItems() {
href={item.link}
className="text-2xl hover:opacity-90"
target="_blank"
title={item.title} rel="noreferrer"
title={item.title}
rel="noreferrer"
>
{item.icon}
</a>
Expand Down

0 comments on commit f835d47

Please sign in to comment.