This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Header(){ | |
| return ( | |
| <div> My Header Component.. </div> | |
| ) | |
| } | |
| export default Header |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Head from "next/head"; | |
| import Header from "../components/Header"; | |
| export default function Home() { | |
| return ( | |
| <div> | |
| <Head> | |
| <link rel="shortcut icon" href="/favicon.png" /> | |
| <title>Gophers Art Shop</title> | |
| </Head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Head> | |
| <link rel="shortcut icon" href="/favicon.png" /> | |
| <title>Gophers Art Shop</title> | |
| </Head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @tailwind base; | |
| @tailwind components; | |
| @tailwind utilities; | |
| @layer components { | |
| .link { | |
| @apply cursor-pointer hover:underline; | |
| } | |
| .button { | |
| @apply p-2 text-xs md:text-sm bg-gradient-to-b from-yellow-200 to-yellow-400 border border-yellow-300 rounded-sm focus:outline-none focus:ring-2 focus:ring-yellow-500 active:from-yellow-500; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Image from "next/image"; | |
| import { | |
| MenuIcon, | |
| SearchIcon, | |
| ShoppingCartIcon, | |
| } from "@heroicons/react/outline"; | |
| function Header(){ | |
| return ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Head from 'next/head' | |
| export default function Home() { | |
| return ( | |
| <div> | |
| <Head> | |
| <title>Gophers Art Shop</title> | |
| </Head> | |
| Header.. | |
| <main className="max-w-screen-2xl mx-auto"> | |
| {/* Product List */} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| purge: [ | |
| "./pages/**/*.{js,ts,jsx,tsx}", | |
| "./components/**/*.{js,ts,jsx,tsx}", | |
| ], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { StarIcon } from "@heroicons/react/solid"; | |
| import Image from "next/image"; | |
| function Product({id, title, price, description, category, image, rating}){ | |
| return ( | |
| <div className="relative flex flex-col m-5 bg-white z-30 p-10"> | |
| <Image src={image} height={200} width={200} objectFit="contain" /> | |
| <h4 className="my-3 self-center">{title}</h4> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Product from "./Product" | |
| function ProductContainer({ productLists }){ | |
| return( | |
| <div className="grid grid-flow-row-dense md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 mx-auto"> | |
| {productLists.slice(0,productLists.length).map(({id, title, price, description, category, image})=>( | |
| <Product | |
| key = {id} | |
| id = {id} | |
| title = {title} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @layer components { | |
| .link { | |
| @apply cursor-pointer hover:underline; | |
| } | |
| .button { | |
| @apply p-2 text-xs md:text-sm bg-gradient-to-b from-yellow-200 to-yellow-400 border border-yellow-300 rounded-sm focus:outline-none focus:ring-2 focus:ring-yellow-500 active:from-yellow-500; | |
| } | |
| } |
OlderNewer