Clear
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"extends": ["next/core-web-vitals", "next/typescript"]
|
||||
}
|
||||
9
LICENSE
9
LICENSE
@@ -1,9 +0,0 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2025 egommerce
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
@@ -1,4 +0,0 @@
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {};
|
||||
|
||||
export default nextConfig;
|
||||
4949
package-lock.json
generated
4949
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
26
package.json
26
package.json
@@ -1,26 +0,0 @@
|
||||
{
|
||||
"name": "front-demo-client",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
"build": "next build",
|
||||
"start": "next start",
|
||||
"lint": "next lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"react": "^18",
|
||||
"react-dom": "^18",
|
||||
"next": "14.2.15"
|
||||
},
|
||||
"devDependencies": {
|
||||
"typescript": "^5",
|
||||
"@types/node": "^20",
|
||||
"@types/react": "^18",
|
||||
"@types/react-dom": "^18",
|
||||
"postcss": "^8",
|
||||
"tailwindcss": "^3.4.1",
|
||||
"eslint": "^8",
|
||||
"eslint-config-next": "14.2.15"
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
/** @type {import('postcss-load-config').Config} */
|
||||
const config = {
|
||||
plugins: {
|
||||
tailwindcss: {},
|
||||
},
|
||||
};
|
||||
|
||||
export default config;
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 25 KiB |
Binary file not shown.
Binary file not shown.
10833
src/app/globals.css
10833
src/app/globals.css
File diff suppressed because it is too large
Load Diff
@@ -1,36 +0,0 @@
|
||||
import type { Metadata } from "next";
|
||||
import localFont from "next/font/local";
|
||||
import "./globals.css";
|
||||
|
||||
const geistSans = localFont({
|
||||
src: "./fonts/GeistVF.woff",
|
||||
variable: "--font-geist-sans",
|
||||
weight: "100 900",
|
||||
});
|
||||
const geistMono = localFont({
|
||||
src: "./fonts/GeistMonoVF.woff",
|
||||
variable: "--font-geist-mono",
|
||||
weight: "100 900",
|
||||
});
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Egommerce client",
|
||||
description: "Created by me - PB (based on NextJS)",
|
||||
applicationName: "Egommerce client v1",
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
}>) {
|
||||
return (
|
||||
<html lang="en">
|
||||
<body
|
||||
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
|
||||
>
|
||||
{children}
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
199
src/app/page.tsx
199
src/app/page.tsx
@@ -1,199 +0,0 @@
|
||||
export default function Home() {
|
||||
return (
|
||||
<>
|
||||
<nav className="navbar navbar-expand-lg navbar-light bg-light">
|
||||
<div className="container px-4 px-lg-5">
|
||||
<a className="navbar-brand" href="#!">Start Bootstrap</a>
|
||||
<button className="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"><span className="navbar-toggler-icon"></span></button>
|
||||
<div className="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul className="navbar-nav me-auto mb-2 mb-lg-0 ms-lg-4">
|
||||
<li className="nav-item"><a className="nav-link active" aria-current="page" href="#!">Home</a></li>
|
||||
<li className="nav-item"><a className="nav-link" href="#!">About</a></li>
|
||||
<li className="nav-item dropdown">
|
||||
<a className="nav-link dropdown-toggle" id="navbarDropdown" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">Shop</a>
|
||||
<ul className="dropdown-menu" aria-labelledby="navbarDropdown">
|
||||
<li><a className="dropdown-item" href="#!">All Products</a></li>
|
||||
<li><hr className="dropdown-divider" /></li>
|
||||
<li><a className="dropdown-item" href="#!">Popular Items</a></li>
|
||||
<li><a className="dropdown-item" href="#!">New Arrivals</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<form className="d-flex">
|
||||
<button className="btn btn-outline-dark" type="submit">
|
||||
<i className="bi-cart-fill me-1"></i>
|
||||
Cart
|
||||
<span className="badge bg-dark text-white ms-1 rounded-pill">0</span>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<header className="bg-dark py-5">
|
||||
<div className="container px-4 px-lg-5 my-5">
|
||||
<div className="text-center text-white">
|
||||
<h1 className="display-4 fw-bolder">Shop in style</h1>
|
||||
<p className="lead fw-normal text-white-50 mb-0">With this shop hompeage template</p>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<section className="py-5">
|
||||
<div className="container px-4 px-lg-5 mt-5">
|
||||
<div className="row gx-4 gx-lg-5 row-cols-2 row-cols-md-3 row-cols-xl-4 justify-content-center">
|
||||
<div className="col mb-5">
|
||||
<div className="card h-100">
|
||||
<img className="card-img-top" src="https://dummyimage.com/450x300/dee2e6/6c757d.jpg" alt="..." />
|
||||
<div className="card-body p-4">
|
||||
<div className="text-center">
|
||||
<h5 className="fw-bolder">Fancy Product</h5>
|
||||
$40.00 - $80.00
|
||||
</div>
|
||||
</div>
|
||||
<div className="card-footer p-4 pt-0 border-top-0 bg-transparent">
|
||||
<div className="text-center"><a className="btn btn-outline-dark mt-auto" href="#">View options</a></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="col mb-5">
|
||||
<div className="card h-100">
|
||||
<div className="badge bg-dark text-white position-absolute" css="top: 0.5rem; right: 0.5rem">Sale</div>
|
||||
<img className="card-img-top" src="https://dummyimage.com/450x300/dee2e6/6c757d.jpg" alt="..." />
|
||||
<div className="card-body p-4">
|
||||
<div className="text-center">
|
||||
<h5 className="fw-bolder">Special Item</h5>
|
||||
<div className="d-flex justify-content-center small text-warning mb-2">
|
||||
<div className="bi-star-fill"></div>
|
||||
<div className="bi-star-fill"></div>
|
||||
<div className="bi-star-fill"></div>
|
||||
<div className="bi-star-fill"></div>
|
||||
<div className="bi-star-fill"></div>
|
||||
</div>
|
||||
<span className="text-muted text-decoration-line-through">$20.00</span>
|
||||
$18.00
|
||||
</div>
|
||||
</div>
|
||||
<div className="card-footer p-4 pt-0 border-top-0 bg-transparent">
|
||||
<div className="text-center"><a className="btn btn-outline-dark mt-auto" href="#">Add to cart</a></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="col mb-5">
|
||||
<div className="card h-100">
|
||||
<div className="badge bg-dark text-white position-absolute" css="top: 0.5rem; right: 0.5rem">Sale</div>
|
||||
<img className="card-img-top" src="https://dummyimage.com/450x300/dee2e6/6c757d.jpg" alt="..." />
|
||||
<div className="card-body p-4">
|
||||
<div className="text-center">
|
||||
<h5 className="fw-bolder">Sale Item</h5>
|
||||
<span className="text-muted text-decoration-line-through">$50.00</span>
|
||||
$25.00
|
||||
</div>
|
||||
</div>
|
||||
<div className="card-footer p-4 pt-0 border-top-0 bg-transparent">
|
||||
<div className="text-center"><a className="btn btn-outline-dark mt-auto" href="#">Add to cart</a></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="col mb-5">
|
||||
<div className="card h-100">
|
||||
<img className="card-img-top" src="https://dummyimage.com/450x300/dee2e6/6c757d.jpg" alt="..." />
|
||||
<div className="card-body p-4">
|
||||
<div className="text-center">
|
||||
<h5 className="fw-bolder">Popular Item</h5>
|
||||
<div className="d-flex justify-content-center small text-warning mb-2">
|
||||
<div className="bi-star-fill"></div>
|
||||
<div className="bi-star-fill"></div>
|
||||
<div className="bi-star-fill"></div>
|
||||
<div className="bi-star-fill"></div>
|
||||
<div className="bi-star-fill"></div>
|
||||
</div>
|
||||
$40.00
|
||||
</div>
|
||||
</div>
|
||||
<div className="card-footer p-4 pt-0 border-top-0 bg-transparent">
|
||||
<div className="text-center"><a className="btn btn-outline-dark mt-auto" href="#">Add to cart</a></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="col mb-5">
|
||||
<div className="card h-100">
|
||||
<div className="badge bg-dark text-white position-absolute" css="top: 0.5rem; right: 0.5rem">Sale</div>
|
||||
<img className="card-img-top" src="https://dummyimage.com/450x300/dee2e6/6c757d.jpg" alt="..." />
|
||||
<div className="card-body p-4">
|
||||
<div className="text-center">
|
||||
<h5 className="fw-bolder">Sale Item</h5>
|
||||
<span className="text-muted text-decoration-line-through">$50.00</span>
|
||||
$25.00
|
||||
</div>
|
||||
</div>
|
||||
<div className="card-footer p-4 pt-0 border-top-0 bg-transparent">
|
||||
<div className="text-center"><a className="btn btn-outline-dark mt-auto" href="#">Add to cart</a></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="col mb-5">
|
||||
<div className="card h-100">
|
||||
<img className="card-img-top" src="https://dummyimage.com/450x300/dee2e6/6c757d.jpg" alt="..." />
|
||||
<div className="card-body p-4">
|
||||
<div className="text-center">
|
||||
<h5 className="fw-bolder">Fancy Product</h5>
|
||||
$120.00 - $280.00
|
||||
</div>
|
||||
</div>
|
||||
<div className="card-footer p-4 pt-0 border-top-0 bg-transparent">
|
||||
<div className="text-center"><a className="btn btn-outline-dark mt-auto" href="#">View options</a></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="col mb-5">
|
||||
<div className="card h-100">
|
||||
<div className="badge bg-dark text-white position-absolute" css="top: 0.5rem; right: 0.5rem">Sale</div>
|
||||
<img className="card-img-top" src="https://dummyimage.com/450x300/dee2e6/6c757d.jpg" alt="..." />
|
||||
<div className="card-body p-4">
|
||||
<div className="text-center">
|
||||
<h5 className="fw-bolder">Special Item</h5>
|
||||
<div className="d-flex justify-content-center small text-warning mb-2">
|
||||
<div className="bi-star-fill"></div>
|
||||
<div className="bi-star-fill"></div>
|
||||
<div className="bi-star-fill"></div>
|
||||
<div className="bi-star-fill"></div>
|
||||
<div className="bi-star-fill"></div>
|
||||
</div>
|
||||
<span className="text-muted text-decoration-line-through">$20.00</span>
|
||||
$18.00
|
||||
</div>
|
||||
</div>
|
||||
<div className="card-footer p-4 pt-0 border-top-0 bg-transparent">
|
||||
<div className="text-center"><a className="btn btn-outline-dark mt-auto" href="#">Add to cart</a></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="col mb-5">
|
||||
<div className="card h-100">
|
||||
<img className="card-img-top" src="https://dummyimage.com/450x300/dee2e6/6c757d.jpg" alt="..." />
|
||||
<div className="card-body p-4">
|
||||
<div className="text-center">
|
||||
<h5 className="fw-bolder">Popular Item</h5>
|
||||
<div className="d-flex justify-content-center small text-warning mb-2">
|
||||
<div className="bi-star-fill"></div>
|
||||
<div className="bi-star-fill"></div>
|
||||
<div className="bi-star-fill"></div>
|
||||
<div className="bi-star-fill"></div>
|
||||
<div className="bi-star-fill"></div>
|
||||
</div>
|
||||
$40.00
|
||||
</div>
|
||||
</div>
|
||||
<div className="card-footer p-4 pt-0 border-top-0 bg-transparent">
|
||||
<div className="text-center"><a className="btn btn-outline-dark mt-auto" href="#">Add to cart</a></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<footer className="py-5 bg-dark">
|
||||
<div className="container"><p className="m-0 text-center text-white">Copyright © Your Website 2023</p></div>
|
||||
</footer>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
import type { Config } from "tailwindcss";
|
||||
|
||||
const config: Config = {
|
||||
content: [
|
||||
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
|
||||
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
|
||||
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
|
||||
],
|
||||
theme: {
|
||||
extend: {
|
||||
colors: {
|
||||
background: "var(--background)",
|
||||
foreground: "var(--foreground)",
|
||||
},
|
||||
},
|
||||
},
|
||||
plugins: [],
|
||||
};
|
||||
export default config;
|
||||
@@ -1,26 +0,0 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
"allowJs": true,
|
||||
"skipLibCheck": true,
|
||||
"strict": true,
|
||||
"noEmit": true,
|
||||
"esModuleInterop": true,
|
||||
"module": "esnext",
|
||||
"moduleResolution": "bundler",
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"jsx": "preserve",
|
||||
"incremental": true,
|
||||
"plugins": [
|
||||
{
|
||||
"name": "next"
|
||||
}
|
||||
],
|
||||
"paths": {
|
||||
"@/*": ["./src/*"]
|
||||
}
|
||||
},
|
||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
Reference in New Issue
Block a user