Download src/data/products.js from ronylu/iWeb: direct link, hf CLI and curl.
- Browser
- Download file 3.79 kB
-
https://huggingface.co/spaces/ronylu/iWeb/resolve/main/src/data/products.js
- Command line
-
hf download hf://spaces/ronylu/iWeb/src/data/products.js
-
curl -L -o products.js https://huggingface.co/spaces/ronylu/iWeb/resolve/main/src/data/products.js
3.79 kB
| // src/data/products.js | |
| export const products = [ | |
| { | |
| slug: "iphone-17-pro", | |
| name: "iPhone 17 Pro", | |
| category: "iPhone", | |
| tagline: "The ultimate pro camera system.", | |
| priceFrom: 1099, | |
| heroImage: | |
| "https://www.apple.com/v/iphone-17-pro/d/images/overview/product-viewer/initial__fo4stdzx5uy6_large.jpg", | |
| gallery: [ | |
| "https://www.apple.com/v/iphone-17-pro/d/images/overview/product-viewer/initial__fo4stdzx5uy6_large.jpg", | |
| "https://www.apple.com/v/iphone-17-pro/d/images/overview/design/design_endframe__ckynsj4a5lua_large.jpg", | |
| "https://www.apple.com/v/iphone-17-pro/d/images/overview/cameras/intro/hero_camera__0ggzvjy8m0ya_xlarge.jpg", | |
| ], | |
| highlights: [ | |
| "Heat-forged aluminum unibody enclosure for durability and performance.", | |
| "A19 Pro chip with advanced cooling and breakthrough battery life.", | |
| "Pro camera system with 48MP rear cameras and long optical-quality zoom.", | |
| ], | |
| youtubeId: "dQw4w9WgXcQ", | |
| specs: { | |
| display: "6.3-inch Super Retina XDR (iPhone 17 Pro)", | |
| chip: "A19 Pro", | |
| camera: "Pro camera system (48MP rear cameras)", | |
| design: "Heat-forged aluminum unibody enclosure", | |
| }, | |
| }, | |
| { | |
| slug: "laptop-air", | |
| name: "MacBook Air", | |
| category: "Mac", | |
| tagline: "Speed of lightness.", | |
| priceFrom: 999, | |
| heroImage: | |
| "https://www.apple.com/v/macbook-air/x/images/overview/hero/hero_static__c9sislzzicq6_large.png", | |
| gallery: [ | |
| "https://www.apple.com/v/macbook-air/x/images/overview/hero/hero_static__c9sislzzicq6_large.png", | |
| "https://www.apple.com/v/macbook-air/x/images/overview/design/design_hero_endframe__dv7t8042ce6a_large.jpg", | |
| "https://www.apple.com/v/macbook-air/x/images/overview/design/color/design_top_skyblue__eepkvlvjzcia_large.jpg", | |
| "https://www.apple.com/v/macbook-air/x/images/overview/design/color/design_side_skyblue__dtyt9gw4nfiq_large.jpg", | |
| "https://www.apple.com/v/macbook-air/x/images/overview/performance/performance_hero_endframe__brqjd2udp1yq_large.jpg", | |
| "https://www.apple.com/v/macbook-air/x/images/overview/design/color/design_magsafe_skyblue__gii6y9jn1yai_large.jpg", | |
| ], | |
| highlights: [ | |
| "Superfast Apple silicon performance.", | |
| "Thin, light, and portable design.", | |
| "All-day battery life.", | |
| ], | |
| youtubeId: "dQw4w9WgXcQ", | |
| specs: { | |
| display: "13.6-inch or 15.3-inch Liquid Retina (varies by model)", | |
| chip: "Apple silicon (varies by configuration)", | |
| memory: "16GB–32GB unified memory (varies)", | |
| storage: "256GB–2TB SSD (varies)", | |
| }, | |
| }, | |
| { | |
| slug: "tablet", | |
| name: "iPad (11-inch, A16)", | |
| category: "iPad", | |
| tagline: "Lovable. Drawable. Magical.", | |
| priceFrom: 349, | |
| heroImage: | |
| "https://www.apple.com/v/ipad-11/b/images/overview/hero/hero__ecv967jz1y82_large.jpg", | |
| gallery: [ | |
| "https://www.apple.com/v/ipad-11/b/images/overview/hero/hero__ecv967jz1y82_large.jpg", | |
| "https://www.apple.com/ca/ipad-11/images/overview/design/fan__e9709q800z6u_large.jpg", | |
| "https://www.apple.com/v/ipad-11/b/images/overview/features/features_startframe__kms0fdnde2qa_large.jpg", | |
| "https://www.apple.com/v/ipad-11/b/images/overview/features/features__eycgjbkikqky_large.jpg", | |
| ], | |
| highlights: [ | |
| "All-screen 11-inch Liquid Retina display.", | |
| "A16 chip for smooth performance.", | |
| "Works with Apple Pencil and Magic Keyboard Folio (compatibility varies).", | |
| ], | |
| youtubeId: "dQw4w9WgXcQ", | |
| specs: { | |
| display: "11-inch Liquid Retina", | |
| chip: "A16", | |
| camera: "12MP Wide (rear) + 12MP Center Stage (front, landscape)", | |
| storage: "128GB / 256GB / 512GB", | |
| }, | |
| }, | |
| ]; | |
| export function getProduct(slug) { | |
| return products.find((p) => p.slug === slug); | |
| } |