Update src/data/products.js
Browse files- src/data/products.js +25 -96
src/data/products.js
CHANGED
|
@@ -1,97 +1,26 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
// Official Apple YouTube (example pulled from Apple’s channel)
|
| 26 |
-
youtubeId: "_-AS5DtDeqs",
|
| 27 |
-
specs: {
|
| 28 |
-
display: "6.3-inch Super Retina XDR OLED (2622×1206), ProMotion up to 120Hz",
|
| 29 |
-
chip: "A19 Pro",
|
| 30 |
-
cameras: "Pro Fusion camera system; 48MP rear cameras; up to 8x optical-quality zoom",
|
| 31 |
-
storage: "256GB / 512GB / 1TB (Pro Max adds 2TB option)",
|
| 32 |
-
},
|
| 33 |
},
|
| 34 |
-
|
| 35 |
-
{
|
| 36 |
-
slug: "macbook-air-m4",
|
| 37 |
-
name: "MacBook Air",
|
| 38 |
-
category: "Mac",
|
| 39 |
-
tagline: "Speed of lightness.",
|
| 40 |
-
priceFrom: 999,
|
| 41 |
-
currency: "USD",
|
| 42 |
-
productUrl: "https://www.apple.com/macbook-air/",
|
| 43 |
-
heroImage:
|
| 44 |
-
"https://www.apple.com/v/macbook-air/x/images/overview/hero/hero_static__c9sislzzicq6_large.png",
|
| 45 |
-
gallery: [
|
| 46 |
-
"https://www.apple.com/v/macbook-air/x/images/overview/hero/hero_static__c9sislzzicq6_large.png",
|
| 47 |
-
"https://www.apple.com/v/macbook-air/x/images/overview/design/design_hero_endframe__dv7t8042ce6a_large.jpg",
|
| 48 |
-
"https://www.apple.com/v/macbook-air/x/images/overview/design/color/design_top_skyblue__eepkvlvjzcia_large.jpg",
|
| 49 |
-
"https://www.apple.com/v/macbook-air/x/images/overview/performance/performance_hero_endframe__brqjd2udp1yq_large.jpg",
|
| 50 |
-
],
|
| 51 |
-
highlights: [
|
| 52 |
-
"Superfast M4 chip and built for Apple Intelligence.",
|
| 53 |
-
"Up to 18 hours of battery life.",
|
| 54 |
-
"Two sizes: 13.6-inch or 15.3-inch Liquid Retina display options.",
|
| 55 |
-
],
|
| 56 |
-
youtubeId: null, // add an official Apple YouTube id if you want
|
| 57 |
-
specs: {
|
| 58 |
-
display: "13.6-inch or 15.3-inch Liquid Retina",
|
| 59 |
-
chip: "Apple M4",
|
| 60 |
-
memory: "16GB–32GB unified memory",
|
| 61 |
-
storage: "256GB–2TB SSD",
|
| 62 |
-
},
|
| 63 |
-
},
|
| 64 |
-
|
| 65 |
-
{
|
| 66 |
-
slug: "ipad-11-a16",
|
| 67 |
-
name: "iPad (11-inch, A16)",
|
| 68 |
-
category: "iPad",
|
| 69 |
-
tagline: "Lovable. Drawable. Magical.",
|
| 70 |
-
priceFrom: 349,
|
| 71 |
-
currency: "USD",
|
| 72 |
-
productUrl: "https://www.apple.com/ipad-11/",
|
| 73 |
-
heroImage:
|
| 74 |
-
"https://www.apple.com/v/ipad-11/c/images/overview/hero/hero__ecv967jz1y82_large.jpg",
|
| 75 |
-
gallery: [
|
| 76 |
-
"https://www.apple.com/v/ipad-11/c/images/overview/hero/hero__ecv967jz1y82_large.jpg",
|
| 77 |
-
"https://www.apple.com/v/ipad-11/c/images/overview/design/fan__e9709q800z6u_large.jpg",
|
| 78 |
-
"https://www.apple.com/v/ipad-11/c/images/overview/features/features__eycgjbkikqky_large.jpg",
|
| 79 |
-
],
|
| 80 |
-
highlights: [
|
| 81 |
-
"Superfast A16 chip and 11-inch Liquid Retina display.",
|
| 82 |
-
"All-screen design with Touch ID.",
|
| 83 |
-
"Supports Apple Pencil (USB-C) and Magic Keyboard Folio (compatibility varies).",
|
| 84 |
-
],
|
| 85 |
-
youtubeId: null, // add an official Apple YouTube id if you want
|
| 86 |
-
specs: {
|
| 87 |
-
display: "11-inch Liquid Retina",
|
| 88 |
-
chip: "A16",
|
| 89 |
-
storage: "128GB / 256GB / 512GB",
|
| 90 |
-
colors: "Silver / Blue / Pink / Yellow",
|
| 91 |
-
},
|
| 92 |
-
},
|
| 93 |
-
];
|
| 94 |
-
|
| 95 |
-
export function getProduct(slug) {
|
| 96 |
-
return products.find((p) => p.slug === slug);
|
| 97 |
-
}
|
|
|
|
| 1 |
+
{
|
| 2 |
+
slug: "iphone-17-pro",
|
| 3 |
+
name: "iPhone 17 Pro",
|
| 4 |
+
category: "iPhone",
|
| 5 |
+
tagline: "The ultimate pro camera system.",
|
| 6 |
+
priceFrom: 1099,
|
| 7 |
+
heroImage:
|
| 8 |
+
"https://www.apple.com/v/iphone-17-pro/d/images/overview/product-viewer/initial__fo4stdzx5uy6_large.jpg",
|
| 9 |
+
gallery: [
|
| 10 |
+
"https://www.apple.com/v/iphone-17-pro/d/images/overview/product-viewer/initial__fo4stdzx5uy6_large.jpg",
|
| 11 |
+
"https://www.apple.com/v/iphone-17-pro/d/images/overview/design/design_endframe__ckynsj4a5lua_large.jpg",
|
| 12 |
+
"https://www.apple.com/v/iphone-17-pro/d/images/overview/cameras/intro/hero_camera__0ggzvjy8m0ya_xlarge.jpg"
|
| 13 |
+
],
|
| 14 |
+
highlights: [
|
| 15 |
+
"Heat-forged aluminum unibody enclosure for durability and performance.",
|
| 16 |
+
"A19 Pro chip with advanced cooling and breakthrough battery life.",
|
| 17 |
+
"Pro camera system with 48MP rear cameras and long optical-quality zoom."
|
| 18 |
+
],
|
| 19 |
+
youtubeId: "dQw4w9WgXcQ",
|
| 20 |
+
specs: {
|
| 21 |
+
display: "6.3-inch Super Retina XDR (iPhone 17 Pro)",
|
| 22 |
+
chip: "A19 Pro",
|
| 23 |
+
camera: "Pro camera system (48MP rear cameras)",
|
| 24 |
+
design: "Heat-forged aluminum unibody enclosure"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
},
|
| 26 |
+
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|