+
-
Message Sent!
+
Message Sent!
Thank you for reaching out. Your message has been sent to:
info.sophat@gmail.com
I'll get back to you as soon as possible.
@@ -185,7 +186,7 @@ export default function ContactPage() {
required
value={formData.name}
onChange={handleChange}
- className={formErrors.name ? "border-destructive ring-primary" : ""}
+ className={cn(formErrors.name ? "border-destructive ring-primary" : "", "rounded-xl bg-transparent")}
aria-invalid={Boolean(formErrors.name)}
/>
{formErrors.name && (
@@ -205,7 +206,7 @@ export default function ContactPage() {
required
value={formData.email}
onChange={handleChange}
- className={formErrors.email ? "border-destructive ring-primary" : ""}
+ className={cn(formErrors.name ? "border-destructive ring-primary" : "", "rounded-xl bg-transparent")}
aria-invalid={Boolean(formErrors.email)}
/>
{formErrors.email && (
@@ -226,7 +227,7 @@ export default function ContactPage() {
required
value={formData.subject}
onChange={handleChange}
- className={formErrors.subject ? "border-destructive ring-primary" : ""}
+ className={cn(formErrors.name ? "border-destructive ring-primary" : "", "rounded-xl bg-transparent")}
aria-invalid={Boolean(formErrors.subject)}
/>
{formErrors.subject && (
@@ -247,7 +248,7 @@ export default function ContactPage() {
required
value={formData.message}
onChange={handleChange}
- className={formErrors.message ? "border-destructive ring-primary" : ""}
+ className={cn(formErrors.name ? "border-destructive ring-primary" : "", "rounded-xl bg-transparent")}
aria-invalid={Boolean(formErrors.message)}
/>
{formErrors.message && (
diff --git a/src/components/about-structured-data.tsx b/src/components/about-structured-data.tsx
index 5730d86..d068f2c 100644
--- a/src/components/about-structured-data.tsx
+++ b/src/components/about-structured-data.tsx
@@ -1,5 +1,3 @@
-'use client';
-
import React from 'react';
import {
appName,
diff --git a/src/components/breadcrumb-structured-data.tsx b/src/components/breadcrumb-structured-data.tsx
index a883878..4a794a3 100644
--- a/src/components/breadcrumb-structured-data.tsx
+++ b/src/components/breadcrumb-structured-data.tsx
@@ -1,5 +1,3 @@
-'use client';
-
import React from 'react';
import { NEXT_PUBLIC_APP_URL } from '@lib/constants';
diff --git a/src/components/home-person-structured-data.tsx b/src/components/home-person-structured-data.tsx
index 7bc61ac..e454f4f 100644
--- a/src/components/home-person-structured-data.tsx
+++ b/src/components/home-person-structured-data.tsx
@@ -1,5 +1,3 @@
-'use client';
-
import React from 'react';
import {
NEXT_PUBLIC_APP_URL,
@@ -95,7 +93,7 @@ export default function HomePersonStructuredData() {
);
diff --git a/src/components/projects-structured-data.tsx b/src/components/projects-structured-data.tsx
index 216ce9e..5586368 100644
--- a/src/components/projects-structured-data.tsx
+++ b/src/components/projects-structured-data.tsx
@@ -1,5 +1,3 @@
-'use client';
-
import React from 'react';
import { appName, NEXT_PUBLIC_APP_URL } from '@lib/constants';
diff --git a/src/components/website-structured-data.tsx b/src/components/website-structured-data.tsx
index e55276e..d2c0065 100644
--- a/src/components/website-structured-data.tsx
+++ b/src/components/website-structured-data.tsx
@@ -1,5 +1,3 @@
-'use client';
-
import React from 'react';
import { NEXT_PUBLIC_APP_URL, PERSON_ALTERNATE_NAME, PERSON_JOB_TITLE, PERSON_NAME } from '@lib/constants';
diff --git a/src/lib/meta/posts.ts b/src/lib/meta/posts.ts
index d3bf01d..e46caf8 100644
--- a/src/lib/meta/posts.ts
+++ b/src/lib/meta/posts.ts
@@ -1,4 +1,4 @@
-import { appName, NEXT_PUBLIC_APP_URL } from "@lib/constants";
+import { appName, NEXT_PUBLIC_APP_URL } from "../../lib/constants";
import { icons } from "./icons";
import { keywords } from "./keywords";
import { Metadata } from "next";
diff --git a/src/lib/utils/og-image.ts b/src/lib/utils/og-image.ts
index c7be5b3..dbf5853 100644
--- a/src/lib/utils/og-image.ts
+++ b/src/lib/utils/og-image.ts
@@ -2,7 +2,7 @@
* Utility functions for generating OpenGraph image URLs
*/
-import { NEXT_PUBLIC_APP_URL } from "@lib/constants";
+import { NEXT_PUBLIC_APP_URL } from "../../lib/constants";
type OgImageParams = {
title?: string;
diff --git a/src/scripts/test-structured-data.ts b/src/scripts/test-structured-data.ts
index 79452d0..a9c4c92 100644
--- a/src/scripts/test-structured-data.ts
+++ b/src/scripts/test-structured-data.ts
@@ -63,7 +63,7 @@ components.forEach((component: string) => {
const content: string = fs.readFileSync(componentPath, 'utf-8');
// Check if it imports from constants
- if (content.includes('from "@lib/constants"') || content.includes('from \'@lib/constants\'')) {
+ if (content.includes('from "../lib/constants"') || content.includes('from \'../lib/constants\'')) {
console.log(`\t${colors.green}✅ ${component} uses constants${colors.reset}`);
} else {
console.log(`\t${colors.red}❌ ${component} doesn't use constants${colors.reset}`);