carousel completel, starting categories
This commit is contained in:
parent
353f716f53
commit
7c0418321b
Binary file not shown.
@ -26,6 +26,7 @@
|
||||
"react-dom": "^18.3.1",
|
||||
"react-icons": "^5.3.0",
|
||||
"resend": "^3.5.0",
|
||||
"sass": "^1.80.5",
|
||||
"sharp": "^0.33.5",
|
||||
"tailwind-merge": "^2.5.2",
|
||||
"tailwindcss-animate": "^1.0.7",
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 44 KiB |
@ -19,7 +19,7 @@ export default function RootLayout({
|
||||
}>) {
|
||||
return (
|
||||
<html lang="en">
|
||||
<body className={`${inter.className} bg-slate-700`}>
|
||||
<body className={`${inter.className} bg-slate-700 w-full max-h-screen text-white`}>
|
||||
<Navbar />
|
||||
{children}
|
||||
<Footer />
|
||||
|
||||
@ -10,11 +10,11 @@ import styles from "@/styles/Home.module.css";
|
||||
import { Poppins } from "next/font/google";
|
||||
import { sendEmail } from "./actions/sendEmail";
|
||||
import { sendEmails } from "@/lib/mail.utils";
|
||||
import ProductCarousel from '@/components/ProductCarousel/ProductCarousel';
|
||||
import ProductCarousel from "@/components/ProductCarousel/ProductCarousel";
|
||||
import Categories from "@/components/Categories/Categories";
|
||||
|
||||
const Popp = Poppins({ weight: "400", subsets: ["latin"] });
|
||||
|
||||
|
||||
// improve to drag & drop side cart for more fun
|
||||
|
||||
export default function Home() {
|
||||
@ -26,9 +26,7 @@ export default function Home() {
|
||||
orders: "",
|
||||
});
|
||||
|
||||
function newItem(){
|
||||
|
||||
}
|
||||
function newItem() {}
|
||||
|
||||
async function newOrder(event: React.FormEvent<HTMLFormElement>) {
|
||||
event.preventDefault();
|
||||
@ -76,13 +74,16 @@ export default function Home() {
|
||||
}
|
||||
|
||||
return (
|
||||
<main className="flex min-h-screen flex-col px-20 gap-y-6">
|
||||
<main className="flex max-h-screen flex-col px-20 gap-y-6">
|
||||
<div className="sm:max-w-max md:w-full">
|
||||
<ProductCarousel />
|
||||
</div>
|
||||
|
||||
<Categories />
|
||||
|
||||
|
||||
{/* Body */}
|
||||
<div className="w-full h-content">
|
||||
{/* <div className="w-full h-content">
|
||||
<MenuCard Menu={Product} />
|
||||
</div>
|
||||
|
||||
@ -139,11 +140,11 @@ export default function Home() {
|
||||
>
|
||||
Submit
|
||||
</button>
|
||||
</form>
|
||||
</form> */}
|
||||
{/* Add that we will send a paypal invoice to confirm the order and items */}
|
||||
|
||||
{/* Footer */}
|
||||
<div className="flex w-full h-[250px] items-center text-gray-400">
|
||||
{/* <div className="flex w-full h-[250px] items-center text-gray-400">
|
||||
<div className="font-bold ">
|
||||
Email us at
|
||||
<a href="mailto:kevosattire@gmail.com" className="text-emerald-500">
|
||||
@ -152,7 +153,7 @@ export default function Home() {
|
||||
for any questions!
|
||||
</div>
|
||||
<div></div>
|
||||
</div>
|
||||
</div> */}
|
||||
</main>
|
||||
);
|
||||
}
|
||||
|
||||
13
frontend/src/app/products/page.tsx
Normal file
13
frontend/src/app/products/page.tsx
Normal file
@ -0,0 +1,13 @@
|
||||
import React from 'react'
|
||||
import MenuCard from '@/components/ui/MenuCard/MenuCard'
|
||||
import Product from "@/../public/batch1/files_list.json";
|
||||
|
||||
const Products = () => {
|
||||
return (
|
||||
<div>
|
||||
<MenuCard Menu={Product}/>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default Products
|
||||
15
frontend/src/components/Categories/Categories.scss
Normal file
15
frontend/src/components/Categories/Categories.scss
Normal file
@ -0,0 +1,15 @@
|
||||
.col{
|
||||
flex:1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.col-l{
|
||||
flex:2;
|
||||
}
|
||||
.row{
|
||||
flex:1;
|
||||
display:flex;
|
||||
gap: 10px;
|
||||
}
|
||||
29
frontend/src/components/Categories/Categories.tsx
Normal file
29
frontend/src/components/Categories/Categories.tsx
Normal file
@ -0,0 +1,29 @@
|
||||
import React from "react";
|
||||
import "./Categories.scss"
|
||||
|
||||
const Categories = () => {
|
||||
return (
|
||||
<div className="flex h-[80svh] gap-[10px] mx-[10px] w-full">
|
||||
<div className="col">
|
||||
<div className="row">r1</div>
|
||||
<div className="row">r2</div>
|
||||
</div>
|
||||
<div className="col">
|
||||
<div className="row">r3</div>
|
||||
</div>
|
||||
<div className="col-l">
|
||||
<div className="row">
|
||||
<div className="col">
|
||||
<div className="row">r4</div>
|
||||
</div>
|
||||
<div className="col">
|
||||
<div className="row">r5</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="row">r6</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Categories;
|
||||
@ -6,12 +6,12 @@ import Image from "next/image";
|
||||
|
||||
const Footer = () => {
|
||||
return (
|
||||
<div className="footer text-white mb-[20px] mt-[100px] mx-[200px]">
|
||||
<div className="top flex gap-[50px]">
|
||||
<div className="footer text-white pb-[20px] pt-[80px] px-[200px] bg-slate-800 w-full">
|
||||
<div className="top flex w-full">
|
||||
<div className="item flex-1 flex flex-col gap-[10px] text-justify text-sm text-gray-400">
|
||||
<h1 className="text-xl font-bold text-gray-200">Categories</h1>
|
||||
<span>Women</span>
|
||||
<span>Men</span>
|
||||
<span>Women</span>
|
||||
<span>Shoes</span>
|
||||
<span>Accessories</span>
|
||||
<span>New Arrivals</span>
|
||||
@ -24,18 +24,18 @@ const Footer = () => {
|
||||
<span>Compare</span>
|
||||
<span>Cookies</span>
|
||||
</div>
|
||||
<div className="item"></div>
|
||||
<div className="item"></div>
|
||||
</div>
|
||||
<div className="Socials flex gap-4 text-xl">
|
||||
<div className="Socials flex gap-4 text-xl mt-[30px] text-gray-300">
|
||||
<FaFacebookF />
|
||||
<FaInstagram />
|
||||
<FaTiktok />
|
||||
</div>
|
||||
<div className="bottom text-xs flex gap-4 items-center justify-between mt-[50px]">
|
||||
|
||||
{/* copyright */}
|
||||
<div className="bottom text-xs flex gap-4 items-center justify-between mt-[30px]">
|
||||
<div className="flex flex-col gap-4">
|
||||
<span className="flex max-w-[320px]">
|
||||
All items are sold under the beleif that they are original works and
|
||||
All items are sold under the belief that they are original works and
|
||||
not copyrighted under another company.
|
||||
</span>
|
||||
<span>© 2024 - Kevos Attire LLC. All rights reserved. </span>
|
||||
@ -45,7 +45,7 @@ const Footer = () => {
|
||||
src="/payment.png"
|
||||
fill
|
||||
style={{ objectFit: "cover", objectPosition: "center" }}
|
||||
className="hidden md:block"
|
||||
className="hidden md:block bg-slate-300"
|
||||
alt="payment systems"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@ -1,20 +1,18 @@
|
||||
import * as React from "react"
|
||||
import Autoplay from "embla-carousel-autoplay"
|
||||
import * as React from "react";
|
||||
import Autoplay from "embla-carousel-autoplay";
|
||||
import {
|
||||
Carousel,
|
||||
CarouselContent,
|
||||
CarouselItem,
|
||||
CarouselNext,
|
||||
CarouselPrevious,
|
||||
} from "@/components/ui/carousel"
|
||||
import Image from 'next/image';
|
||||
|
||||
} from "@/components/ui/carousel";
|
||||
import Image from "next/image";
|
||||
|
||||
const ProductCarousel = () => {
|
||||
|
||||
const plugin = React.useRef(
|
||||
Autoplay({ delay: 3000, stopOnInteraction: true })
|
||||
)
|
||||
);
|
||||
return (
|
||||
<Carousel
|
||||
plugins={[plugin.current]}
|
||||
@ -22,77 +20,92 @@ const ProductCarousel = () => {
|
||||
onMouseEnter={plugin.current.stop}
|
||||
onMouseLeave={plugin.current.reset}
|
||||
>
|
||||
<CarouselContent className='-ml-4'>
|
||||
<CarouselItem className="md:basis-1/2 lg:basis-1/3 xl:basis-1/4 2xl:basis-1/5 pl-4">
|
||||
<CarouselContent className="-ml-4">
|
||||
<CarouselItem className="md:basis-1/2 lg:basis-1/3 xl:basis-1/4 2xl:basis-1/5 pl-4 hover:scale-125 relative">
|
||||
<Image
|
||||
src="/batch1/Mockup 126.png"
|
||||
width={300}
|
||||
height={300}
|
||||
alt="shirt 3"
|
||||
quality={100}
|
||||
/>
|
||||
<div className="absolute top-0 left-0 bg-slate-700 w-[94px] h-1/4"></div>
|
||||
</CarouselItem>
|
||||
<CarouselItem className="md:basis-1/2 lg:basis-1/3 xl:basis-1/4 2xl:basis-1/5 pl-4">
|
||||
<CarouselItem className="md:basis-1/2 lg:basis-1/3 xl:basis-1/4 2xl:basis-1/5 pl-4 relative hover:scale-125">
|
||||
<Image
|
||||
src="/batch1/Mockup 18.png"
|
||||
width={300}
|
||||
height={300}
|
||||
alt="shirt 6"
|
||||
quality={100}
|
||||
/>
|
||||
<div className="absolute top-0 left-0 bg-slate-700 w-[94px] h-1/4"></div>
|
||||
</CarouselItem>
|
||||
<CarouselItem className="md:basis-1/2 lg:basis-1/3 xl:basis-1/4 2xl:basis-1/5 pl-4">
|
||||
<CarouselItem className="md:basis-1/2 lg:basis-1/3 xl:basis-1/4 2xl:basis-1/5 pl-4 relative hover:scale-125">
|
||||
<Image
|
||||
src="/batch1/Mockup 73.png"
|
||||
width={300}
|
||||
height={300}
|
||||
alt="shirt 10"
|
||||
quality={100}
|
||||
/>
|
||||
<div className="absolute top-0 left-0 bg-slate-700 w-[94px] h-1/4"></div>
|
||||
</CarouselItem>
|
||||
<CarouselItem className="md:basis-1/2 lg:basis-1/3 xl:basis-1/4 2xl:basis-1/5 pl-4">
|
||||
<CarouselItem className="md:basis-1/2 lg:basis-1/3 xl:basis-1/4 2xl:basis-1/5 pl-4 relative hover:scale-125">
|
||||
<Image
|
||||
src="/batch1/Mockup 112.png"
|
||||
width={300}
|
||||
height={300}
|
||||
alt="shirt 3"
|
||||
quality={100}
|
||||
/>
|
||||
<div className="absolute top-0 left-0 bg-slate-700 w-[94px] h-1/4"></div>
|
||||
</CarouselItem>
|
||||
<CarouselItem className="md:basis-1/2 lg:basis-1/3 xl:basis-1/4 2xl:basis-1/5 pl-4">
|
||||
<CarouselItem className="md:basis-1/2 lg:basis-1/3 xl:basis-1/4 2xl:basis-1/5 pl-4 relative hover:scale-125">
|
||||
<Image
|
||||
src="/batch1/Mockup 4.png"
|
||||
width={300}
|
||||
height={300}
|
||||
alt="shirt 6"
|
||||
quality={100}
|
||||
/>
|
||||
<div className="absolute top-0 left-0 bg-slate-700 w-[94px] h-1/4"></div>
|
||||
</CarouselItem>
|
||||
<CarouselItem className="md:basis-1/2 lg:basis-1/3 xl:basis-1/4 2xl:basis-1/5 pl-4">
|
||||
<CarouselItem className="md:basis-1/2 lg:basis-1/3 xl:basis-1/4 2xl:basis-1/5 pl-4 relative hover:scale-125">
|
||||
<Image
|
||||
src="/batch1/Mockup 97.png"
|
||||
width={300}
|
||||
height={300}
|
||||
alt="shirt 10"
|
||||
quality={100}
|
||||
/>
|
||||
<div className="absolute top-0 left-0 bg-slate-700 w-[94px] h-1/4"></div>
|
||||
</CarouselItem>
|
||||
<CarouselItem className="md:basis-1/2 lg:basis-1/3 xl:basis-1/4 2xl:basis-1/5 pl-4">
|
||||
<CarouselItem className="md:basis-1/2 lg:basis-1/3 xl:basis-1/4 2xl:basis-1/5 pl-4 relative hover:scale-125">
|
||||
<Image
|
||||
src="/batch1/Mockup 132.png"
|
||||
width={300}
|
||||
height={300}
|
||||
alt="shirt 10"
|
||||
quality={100}
|
||||
/>
|
||||
<div className="absolute top-0 left-0 bg-slate-700 w-[94px] h-1/4"></div>
|
||||
</CarouselItem>
|
||||
<CarouselItem className="md:basis-1/2 lg:basis-1/3 xl:basis-1/4 2xl:basis-1/5 pl-4">
|
||||
<CarouselItem className="md:basis-1/2 lg:basis-1/3 xl:basis-1/4 2xl:basis-1/5 pl-4 relative hover:scale-125">
|
||||
<Image
|
||||
src="/batch1/Mockup 133.png"
|
||||
width={300}
|
||||
height={300}
|
||||
alt="shirt 10"
|
||||
quality={100}
|
||||
/>
|
||||
<div className="absolute top-0 left-0 bg-slate-700 w-[94px] h-1/4"></div>
|
||||
</CarouselItem>
|
||||
</CarouselContent>
|
||||
<CarouselPrevious />
|
||||
<CarouselNext />
|
||||
</Carousel>
|
||||
);
|
||||
};
|
||||
|
||||
)
|
||||
}
|
||||
|
||||
export default ProductCarousel
|
||||
export default ProductCarousel;
|
||||
|
||||
@ -157,7 +157,8 @@ const CarouselContent = React.forwardRef<
|
||||
const { carouselRef, orientation } = useCarousel()
|
||||
|
||||
return (
|
||||
<div ref={carouselRef} className="overflow-hidden">
|
||||
// <div ref={carouselRef} className="overflow-hidden">
|
||||
<div ref={carouselRef} className=" overflow-x-clip">
|
||||
<div
|
||||
ref={ref}
|
||||
className={cn(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user