Compare commits
4 Commits
version_1_
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 9ea3f91125 | |||
|
|
fd7e622df4 | ||
|
|
4e259f1e47 | ||
| 38b78a40ae |
@@ -2,11 +2,13 @@ import { Routes, Route } from 'react-router-dom';
|
||||
import Layout from './components/Layout';
|
||||
import HomePage from './pages/HomePage';
|
||||
|
||||
import ShoppingCartPage from "@/pages/ShoppingCartPage";
|
||||
export default function App() {
|
||||
return (
|
||||
<Routes>
|
||||
<Route element={<Layout />}>
|
||||
<Route path="/" element={<HomePage />} />
|
||||
<Route path="/shopping-cart" element={<ShoppingCartPage />} />
|
||||
</Route>
|
||||
</Routes>
|
||||
);
|
||||
|
||||
@@ -34,7 +34,9 @@ export default function Layout() {
|
||||
{
|
||||
"name": "Testimonials",
|
||||
"href": "#testimonials"
|
||||
}
|
||||
},
|
||||
{ name: "Shopping Cart", href: "/shopping-cart" },
|
||||
|
||||
];
|
||||
|
||||
return (
|
||||
|
||||
26
src/pages/ShoppingCartPage.tsx
Normal file
26
src/pages/ShoppingCartPage.tsx
Normal file
@@ -0,0 +1,26 @@
|
||||
import ProductQuantityCards from "@/components/sections/product/ProductQuantityCards";
|
||||
import ContactSplitForm from "@/components/sections/contact/ContactSplitForm";
|
||||
|
||||
export default function ShoppingCartPage() {
|
||||
return (
|
||||
<>
|
||||
<div data-webild-section="ProductQuantityCards"><ProductQuantityCards
|
||||
tag="Savat"
|
||||
title="Sizning buyurtmangiz"
|
||||
description="Tanlangan mazali tovuqlar va ichimliklarni tekshiring. Barchasi to'g'ri bo'lsa, xaridni davom ettiring."
|
||||
primaryButton={{"text":"Rasmiylashtirish","href":"/checkout"}}
|
||||
secondaryButton={{"text":"Menyuga qaytish","href":"/menu"}}
|
||||
products={[{"name":"Katta Basket","price":"85 000 UZS","imageSrc":"https://img.freepik.com/free-photo/crispy-fried-chicken-bucket_144627-12051.jpg"},{"name":"Zinger Burger","price":"28 000 UZS","imageSrc":"https://img.freepik.com/free-photo/delicious-chicken-burger_144627-8714.jpg"},{"name":"Katta Fri","price":"15 000 UZS","imageSrc":"https://img.freepik.com/free-photo/french-fries-paper-box_144627-23426.jpg"}]}
|
||||
/></div>
|
||||
<div data-webild-section="ContactSplitForm"><ContactSplitForm
|
||||
tag="Buyurtma berish"
|
||||
title="Yetkazib berish ma'lumotlari"
|
||||
description="Buyurtmangizni tez va issiq holatda yetkazib berishimiz uchun quyidagi ma'lumotlarni to'ldiring."
|
||||
inputs={[{"name":"fullName","type":"text","placeholder":"Ismingiz","required":true},{"name":"phone","type":"tel","placeholder":"Telefon raqamingiz","required":true},{"name":"address","type":"text","placeholder":"To'liq manzil","required":true}]}
|
||||
textarea={{"name":"comments","placeholder":"Qo'shimcha izohlar (mo'ljal, qavat...)","rows":4,"required":false}}
|
||||
buttonText="Tasdiqlash"
|
||||
imageSrc="https://img.freepik.com/premium-photo/bucket-fried-chicken-with-french-fries-it_1022967-18342.jpg"
|
||||
/></div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -6,4 +6,5 @@ export interface Route {
|
||||
|
||||
export const routes: Route[] = [
|
||||
{ path: '/', label: 'Home', pageFile: 'HomePage' },
|
||||
{ path: '/shopping-cart', label: 'Shopping Cart', pageFile: 'ShoppingCartPage' },
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user