diff --git a/donutshop_ecommerce/src/app/globals.css b/donutshop_ecommerce/src/app/globals.css index 740d676..bb810fe 100644 --- a/donutshop_ecommerce/src/app/globals.css +++ b/donutshop_ecommerce/src/app/globals.css @@ -3,8 +3,8 @@ @tailwind utilities; body{ - background-color: #FDE2DE; - overflow-x: hidden; + background-color: #FDE2DE; + overflow-x: hidden; } /*== logo ==*/ diff --git a/donutshop_ecommerce/src/app/layout.js b/donutshop_ecommerce/src/app/layout.js index bb89d5a..068fee2 100644 --- a/donutshop_ecommerce/src/app/layout.js +++ b/donutshop_ecommerce/src/app/layout.js @@ -4,7 +4,7 @@ import "./globals.css"; const inter = Inter({ subsets: ["latin"] }); export const metadata = { - title: "Create Next App", + title: "Puffy Dough | Donuts, Coffee, and Drinks", description: "Generated by create next app", }; diff --git a/donutshop_ecommerce/src/components/layout/Header.js b/donutshop_ecommerce/src/components/layout/Header.js index 9d7d670..e0f67de 100644 --- a/donutshop_ecommerce/src/components/layout/Header.js +++ b/donutshop_ecommerce/src/components/layout/Header.js @@ -4,6 +4,7 @@ import Image from 'next/image'; import Link from 'next/link'; import { IoCloseOutline } from "react-icons/io5"; import { HiBars2 } from "react-icons/hi2"; +import Hero from "./Hero"; const Header = () => { @@ -11,32 +12,10 @@ const Header = () => { const Letter = text.split(""); const [nav, setNav] = useState(false); - const links = [ - { - id: 1, - link: "home", - }, - { - id: 2, - link: "menu", - }, - { - id: 3, - link: "about", - }, - { - id: 4, - link: "contact", - }, - { - id: 5, - link: "login", - }, - ]; - + return ( -
+
@@ -50,22 +29,24 @@ const Header = () => { })}
-
-
    - {links.map(({ id, link }) => ( -
  • - {link} -
  • - ))} +
    +
      + Home + Menu + about + contact + login
    -
    setNav(!nav)} className="cursor-pointer pr-4 z-10 text-[#95743D] md:hidden"> {nav ? : }
    +
    setNav(!nav)} className="cursor-pointer pr-4 z-20 text-[#95743D] md:hidden "> {nav ? : }
    {nav && ( -
      - {links.map(({ id, link }) => ( -
    • - setNav(!nav)} href={link}>{link} -
    • - ))} +
        +
      • setNav(!nav)} className="flex flex-col gap-4 cursor-pointer capitalize text-3xl"> + Home + menu + about + contact + login +
      )}
    diff --git a/donutshop_ecommerce/src/components/layout/Hero.js b/donutshop_ecommerce/src/components/layout/Hero.js index 0e74bd5..4c1546a 100644 --- a/donutshop_ecommerce/src/components/layout/Hero.js +++ b/donutshop_ecommerce/src/components/layout/Hero.js @@ -2,6 +2,7 @@ import React from 'react' import {motion} from "framer-motion" import Image from 'next/image'; +import Link from 'next/link'; const Hero = () => { @@ -14,28 +15,30 @@ const Hero = () => { return ( -
    -
    + <> +
    +

    Donuts worry about things! Donuts worry about things! Donuts worry about things!

    -
    +

    Donuts worry about things! Donuts worry about things! Donuts worry about things!

    -
    +

    Donuts worry about things! Donuts worry about things! Donuts worry about things!

    -
    - home_donut -

    Puffy Donut

    -

    Why do our donuts so good?

    +
    + home_donut +

    Puffy Dough, we bake our donuts fresh everyday using high-quality ingredients without artificial additives.

    + Order
    + ) }