Upload products.js
Browse files- src/data/products.js +73 -0
src/data/products.js
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export const products = [
|
| 2 |
+
{
|
| 3 |
+
slug: "iphone-pro",
|
| 4 |
+
name: "Smartphone Pro",
|
| 5 |
+
category: "Phone",
|
| 6 |
+
tagline: "Pro camera. Pro performance.",
|
| 7 |
+
priceFrom: 999,
|
| 8 |
+
heroImage: "https://placehold.co/1600x900/png?text=Smartphone+Pro",
|
| 9 |
+
gallery: [
|
| 10 |
+
"https://placehold.co/1200x800/png?text=Smartphone+Pro+Front",
|
| 11 |
+
"https://placehold.co/1200x800/png?text=Smartphone+Pro+Back",
|
| 12 |
+
"https://placehold.co/1200x800/png?text=Smartphone+Pro+Camera",
|
| 13 |
+
],
|
| 14 |
+
highlights: [
|
| 15 |
+
"Premium build and display",
|
| 16 |
+
"Fast performance and long battery",
|
| 17 |
+
"Advanced camera system",
|
| 18 |
+
],
|
| 19 |
+
// For videos, embed official marketing videos you have permission to use.
|
| 20 |
+
// You can use a YouTube embed (recommended on HF Spaces).
|
| 21 |
+
youtubeId: "dQw4w9WgXcQ",
|
| 22 |
+
specs: {
|
| 23 |
+
display: "6.1-inch OLED",
|
| 24 |
+
chip: "A-series class (example)",
|
| 25 |
+
camera: "Triple-lens (example)",
|
| 26 |
+
connectivity: "5G, Wi‑Fi, BT",
|
| 27 |
+
},
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
slug: "laptop-air",
|
| 31 |
+
name: "Laptop Air",
|
| 32 |
+
category: "Laptop",
|
| 33 |
+
tagline: "Light. Fast. Everyday.",
|
| 34 |
+
priceFrom: 1099,
|
| 35 |
+
heroImage: "https://placehold.co/1600x900/png?text=Laptop+Air",
|
| 36 |
+
gallery: [
|
| 37 |
+
"https://placehold.co/1200x800/png?text=Laptop+Air+Open",
|
| 38 |
+
"https://placehold.co/1200x800/png?text=Laptop+Air+Side",
|
| 39 |
+
],
|
| 40 |
+
highlights: ["Thin and light design", "All‑day battery", "Silent performance"],
|
| 41 |
+
youtubeId: "dQw4w9WgXcQ",
|
| 42 |
+
specs: {
|
| 43 |
+
display: "13-inch (example)",
|
| 44 |
+
chip: "M‑class (example)",
|
| 45 |
+
memory: "8–24 GB (example)",
|
| 46 |
+
storage: "256 GB–2 TB (example)",
|
| 47 |
+
},
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
slug: "tablet",
|
| 51 |
+
name: "Tablet",
|
| 52 |
+
category: "Tablet",
|
| 53 |
+
tagline: "Big screen. Big possibilities.",
|
| 54 |
+
priceFrom: 499,
|
| 55 |
+
heroImage: "https://placehold.co/1600x900/png?text=Tablet",
|
| 56 |
+
gallery: [
|
| 57 |
+
"https://placehold.co/1200x800/png?text=Tablet+Front",
|
| 58 |
+
"https://placehold.co/1200x800/png?text=Tablet+With+Pen",
|
| 59 |
+
],
|
| 60 |
+
highlights: ["Great for learning", "Portable productivity", "Accessories support"],
|
| 61 |
+
youtubeId: "dQw4w9WgXcQ",
|
| 62 |
+
specs: {
|
| 63 |
+
display: "11-inch (example)",
|
| 64 |
+
chip: "A-series class (example)",
|
| 65 |
+
camera: "Wide camera (example)",
|
| 66 |
+
battery: "Up to 10 hours (example)",
|
| 67 |
+
},
|
| 68 |
+
},
|
| 69 |
+
];
|
| 70 |
+
|
| 71 |
+
export function getProduct(slug) {
|
| 72 |
+
return products.find((p) => p.slug === slug);
|
| 73 |
+
}
|