From 1c7354d03b22bcef97acb5cfbc297bd0b0d2a51e Mon Sep 17 00:00:00 2001 From: RizqiSyahrendra Date: Tue, 4 Feb 2025 00:55:09 +0700 Subject: [PATCH] feat(contact): remove unused section and set data --- src/app/(main)/blog/page.tsx | 3 - src/app/(main)/contact/page.tsx | 43 ++++++++++ src/app/(main)/slick-contact-dark/page.tsx | 98 ---------------------- src/app/(main)/slick-contact/page.tsx | 50 +++-------- src/components/{ => Contacts}/Contact.tsx | 47 +++-------- src/components/Homepage.tsx | 2 +- src/data/contact.ts | 17 +--- src/data/menu.ts | 4 +- 8 files changed, 72 insertions(+), 192 deletions(-) create mode 100644 src/app/(main)/contact/page.tsx delete mode 100644 src/app/(main)/slick-contact-dark/page.tsx rename src/components/{ => Contacts}/Contact.tsx (76%) diff --git a/src/app/(main)/blog/page.tsx b/src/app/(main)/blog/page.tsx index 17bceb5..60b8e64 100644 --- a/src/app/(main)/blog/page.tsx +++ b/src/app/(main)/blog/page.tsx @@ -1,7 +1,4 @@ import Blogs from "@/components/Blogs/Blogs"; -import { archiveLinks } from "@/data/archieve"; -import { categories } from "@/data/categories"; -import { tags } from "@/data/tags"; import { sanitizePageNumber } from "@/utils/sanitize"; import Image from "next/image"; diff --git a/src/app/(main)/contact/page.tsx b/src/app/(main)/contact/page.tsx new file mode 100644 index 0000000..0d2de48 --- /dev/null +++ b/src/app/(main)/contact/page.tsx @@ -0,0 +1,43 @@ +import Contact from "@/components/Contacts/Contact"; +import Image from "next/image"; + +export const metadata = { + title: "Contact - Cochise Oncology", + description: "Contact - Cochise Oncology", +}; + +export default function SlickContactPageDark() { + return ( + <> +
+ {/* */} +
+ +
+ {/* */} + +
+
+
+

Contact Us

+ + {/*

+ Crafting immersive digital journeys for brands. +

*/} +
+
+
+
+ +
+ +
+ + ); +} diff --git a/src/app/(main)/slick-contact-dark/page.tsx b/src/app/(main)/slick-contact-dark/page.tsx deleted file mode 100644 index 86c8c4b..0000000 --- a/src/app/(main)/slick-contact-dark/page.tsx +++ /dev/null @@ -1,98 +0,0 @@ -import Contact from "@/components/Contact"; -import ContactDark from "@/components/ContactDark"; -import Faq from "@/components/Faq"; -import Image from "next/image"; - -export const metadata = { - title: - "Slick Contacts Dark || Resonance — One & Multi Page React Nextjs Creative Template", - description: - "Resonance — One & Multi Page React Nextjs Creative Template", -}; -const onePage = false; -const dark = true; -export default function SlickContactPageDark() { - return ( - <> -
- {/* */} -
- -
- {/* */} - -
-
-
-

Contact Us

- -

- Crafting immersive digital journeys for brands. -

-
-
-
-
- -
- {dark ? : } -
-
-
-
- {/* Decorative Waves */} -
-
- -
-
- {/* End Decorative Waves */} -
-
-

- Frequently Asked Questions -

-

- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam - pulvinar vitae neque et porttitor. Integer non dapibus diam, ac - eleifend lectus lorem ipsum. In maximus ligula semper metus - pellentesque mattis. Maecenas volutpat, diam enim sagittis quam. -

-
-
- {/* Accordion */} - - {/* End Accordion */} -
-
-
-
- - ); -} diff --git a/src/app/(main)/slick-contact/page.tsx b/src/app/(main)/slick-contact/page.tsx index d099e7d..d2edcdc 100644 --- a/src/app/(main)/slick-contact/page.tsx +++ b/src/app/(main)/slick-contact/page.tsx @@ -1,14 +1,12 @@ -import Contact from "@/components/Contact"; +import Contact from "@/components/Contacts/Contact"; import ContactDark from "@/components/ContactDark"; import Faq from "@/components/Faq"; import Image from "next/image"; export const metadata = { - title: - "Slick Contacts || Resonance — One & Multi Page React Nextjs Creative Template", - description: - "Resonance — One & Multi Page React Nextjs Creative Template", + title: "Slick Contacts || Resonance — One & Multi Page React Nextjs Creative Template", + description: "Resonance — One & Multi Page React Nextjs Creative Template", }; const dark = false; @@ -16,18 +14,10 @@ const dark = false; export default function SlickContactPage() { return ( <> -
+
{/* */}
- +
{/* */} @@ -36,10 +26,7 @@ export default function SlickContactPage() {

Contact Us

-

+

Crafting immersive digital journeys for brands.

@@ -47,12 +34,7 @@ export default function SlickContactPage() {
-
+
{dark ? : }

@@ -66,25 +48,17 @@ export default function SlickContactPage() { data-rellax-speed="0.7" data-rellax-percentage="0.35" > - + {/* End Decorative Waves */}
-

- Frequently Asked Questions -

+

Frequently Asked Questions

- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam - pulvinar vitae neque et porttitor. Integer non dapibus diam, ac - eleifend lectus lorem ipsum. In maximus ligula semper metus - pellentesque mattis. Maecenas volutpat, diam enim sagittis quam. + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam pulvinar vitae neque et porttitor. Integer + non dapibus diam, ac eleifend lectus lorem ipsum. In maximus ligula semper metus pellentesque mattis. + Maecenas volutpat, diam enim sagittis quam.

diff --git a/src/components/Contact.tsx b/src/components/Contacts/Contact.tsx similarity index 76% rename from src/components/Contact.tsx rename to src/components/Contacts/Contact.tsx index 9a699c3..ce2353d 100644 --- a/src/components/Contact.tsx +++ b/src/components/Contacts/Contact.tsx @@ -9,20 +9,14 @@ export default function Contact() { {/* Left Column */}

Contact Us

-

- We’re open to talk to good people. -

+

We’re open to talk to anyone.

{/* Contact Information */}
{/* Address */} {contactItems.map((item: any, index: number) => ( -
+
@@ -37,21 +31,10 @@ export default function Contact() { data-link-animate="y" > - {item.link.text}{" "} - + {item.link.text} -
@@ -71,7 +54,7 @@ export default function Contact() {