From cacf80e1fcac6fa55ec3a0c8bb96df7ecbb6b52b Mon Sep 17 00:00:00 2001 From: Cypro Freelance <110410268+Proxyy587@users.noreply.github.com> Date: Sun, 28 Jul 2024 16:22:13 +0530 Subject: [PATCH] contact page changes --- app/(root)/changelogs/[slug]/page.tsx | 13 +++- app/(root)/contact/page.tsx | 100 ++++++++++---------------- bun.lockb | Bin 432864 -> 447094 bytes components/ui/separator.tsx | 31 ++++++++ components/ui/skeleton.tsx | 15 ++++ constants/index.tsx | 35 ++++++++- package.json | 1 + 7 files changed, 128 insertions(+), 67 deletions(-) create mode 100644 components/ui/separator.tsx create mode 100644 components/ui/skeleton.tsx diff --git a/app/(root)/changelogs/[slug]/page.tsx b/app/(root)/changelogs/[slug]/page.tsx index 18396e7..d8e4470 100644 --- a/app/(root)/changelogs/[slug]/page.tsx +++ b/app/(root)/changelogs/[slug]/page.tsx @@ -1,4 +1,5 @@ "use client"; +import { Skeleton } from "@/components/ui/skeleton"; import React, { useEffect, useState } from "react"; import ReactMarkdown from "react-markdown"; @@ -35,8 +36,16 @@ const Page = ({ params }: { params: { slug: string } }) => { if (loading) { return ( -
-

Loading...

+
+
+ +
+
+ + + + +
); } diff --git a/app/(root)/contact/page.tsx b/app/(root)/contact/page.tsx index 1755a67..a19654d 100644 --- a/app/(root)/contact/page.tsx +++ b/app/(root)/contact/page.tsx @@ -9,7 +9,6 @@ import { Button } from "@/components/ui/button"; import { Form, FormControl, - FormDescription, FormField, FormItem, FormLabel, @@ -19,6 +18,8 @@ import { Input } from "@/components/ui/input"; import { Textarea } from "@/components/ui/textarea"; import { useToast } from "@/components/ui/use-toast"; import { useState } from "react"; +import { Separator } from "@/components/ui/separator"; +import { emails } from "@/constants"; const ContactUs = () => { const { toast } = useToast(); @@ -66,25 +67,23 @@ const ContactUs = () => { }); setLoading(false); } - - console.log(values); } return ( <> -
-

+
+

Contact Us

-
+
{/* Left contact page */}
{ Message -