diff --git a/apps/qwik-demo-app/src/routes/Card/CardDefault/index.tsx b/apps/qwik-demo-app/src/routes/Card/CardDefault/index.tsx new file mode 100644 index 0000000..5319005 --- /dev/null +++ b/apps/qwik-demo-app/src/routes/Card/CardDefault/index.tsx @@ -0,0 +1,59 @@ +import { component$ } from '@builder.io/qwik'; +import { SfButton } from 'qwik-storefront-ui'; + +const cardDetails = [ + { + image: '/images/card-3.png', + title: 'Sip Sustainably: The Rise of Boxed Water', + description: + 'Boxed water is a sustainable alternative to traditional plastic bottles, made from renewable resources.', + button: 'Read more', + }, + { + image: '/images/card-2.png', + title: 'Ride the Future: Exploring the Benefits of e-Bikes', + description: + 'Eco-friendly, efficient, and fun modes of transportation that provide a range of benefits for riders and the environment.', + button: 'Read more', + }, + { + image: '/images/card-1.png', + title: 'Unleash the Ultimate Listening Experience', + description: + 'Audiophile headphones offer unmatched sound quality and clarity, making them the go-to choice for music enthusiasts.', + button: 'Read more', + }, +]; + +export default component$(() => { + return ( +
+ {cardDetails.map(({ image, title, description, button }) => ( +
+ + {title} +
+

{title}

+

+ {description} +

+ + {button} + +
+
+ ))} +
+ ); +}); diff --git a/apps/qwik-demo-app/src/routes/Card/CardFeature/index.tsx b/apps/qwik-demo-app/src/routes/Card/CardFeature/index.tsx new file mode 100644 index 0000000..8eefea0 --- /dev/null +++ b/apps/qwik-demo-app/src/routes/Card/CardFeature/index.tsx @@ -0,0 +1,78 @@ +import { component$ } from '@builder.io/qwik'; +import { + SfButton, + SfIconPackage, + SfIconPublishedWithChanges, + SfIconWarehouse, +} from 'qwik-storefront-ui'; + +const cardDetails = [ + { + icon: , + title: 'Free shipping', + description: + 'Learn about our commitments to ethics, our team, our communities and more.', + buttonText: 'Read more', + isDisabled: false, + }, + { + icon: , + title: 'Click & Collect', + description: + 'Learn about our commitments to ethics, our team, our communities and more.', + buttonText: 'Read more', + isDisabled: false, + }, + { + icon: , + title: 'Free 30-Day returns', + description: + 'Learn about our commitments to ethics, our team, our communities and more.', + buttonText: 'Read more', + isDisabled: true, + }, +]; + +export default component$(() => { + return ( +
+ {cardDetails.map( + ({ icon, title, description, buttonText, isDisabled }) => ( +
+ {icon} +
+

+ {title} +

+

+ {description} +

+ + {buttonText} + +
+
+ ) + )} +
+ ); +}); diff --git a/apps/qwik-demo-app/src/routes/Card/CategoryCard/index.tsx b/apps/qwik-demo-app/src/routes/Card/CategoryCard/index.tsx new file mode 100644 index 0000000..a2983c0 --- /dev/null +++ b/apps/qwik-demo-app/src/routes/Card/CategoryCard/index.tsx @@ -0,0 +1,43 @@ +import { component$ } from '@builder.io/qwik'; + +const categories = [ + { + title: `Women`, + image: '/images/women_category.png', + }, + { + title: `Men`, + image: '/images/men_category.png', + }, + { + title: `Kid`, + image: '/images/kid_category.png', + }, +]; +export default component$(() => { + return ( +
+ {categories.map(({ title, image }) => ( +
+ + {title} + +
+ ))} +
+ ); +});