Skip to content

Commit 057e604

Browse files
authored
PR comments + support other viewports (#20)
1 parent 3413c3d commit 057e604

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+476
-215
lines changed

experimental/responsive-design/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,4 @@ The app uses static data files located in the `src/data/` directory:
111111
112112
## Icons
113113
114-
The icons used in this project are from [Heroicons](https://github.com/tailwindlabs/heroicons/blob/master/LICENSE).
114+
The icons used in this project are from [Heroicons](https://github.com/tailwindlabs/heroicons/blob/master/LICENSE).

experimental/responsive-design/dist/app.js

Lines changed: 104 additions & 88 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

experimental/responsive-design/dist/iframe.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,38 @@
77
<script type="module" src="app.js"></script>
88
<!-- Preload links autogenerated by Rollup -->
99
<link rel="preload" as="image" href="./public/images/5-healthy-smoothie.webp">
10+
<link rel="preload" as="image" href="./public/images/beef-stroganoff.webp">
1011
<link rel="preload" as="image" href="./public/images/beef-tacos.webp">
1112
<link rel="preload" as="image" href="./public/images/best-comfort-food.webp">
1213
<link rel="preload" as="image" href="./public/images/bread-at-home.webp">
1314
<link rel="preload" as="image" href="./public/images/caesar-salad.webp">
1415
<link rel="preload" as="image" href="./public/images/chicken-alfredo.webp">
1516
<link rel="preload" as="image" href="./public/images/chocolate-cake.webp">
1617
<link rel="preload" as="image" href="./public/images/chocolate-chip-cookies.webp">
18+
<link rel="preload" as="image" href="./public/images/fruit-salad.webp">
1719
<link rel="preload" as="image" href="./public/images/garlic-bread.webp">
20+
<link rel="preload" as="image" href="./public/images/gluten-free-baking.webp">
1821
<link rel="preload" as="image" href="./public/images/greek-salad.webp">
1922
<link rel="preload" as="image" href="./public/images/homemade-pizza.webp">
2023
<link rel="preload" as="image" href="./public/images/icons-outline.webp">
2124
<link rel="preload" as="image" href="./public/images/lemon-drizzle-cake.webp">
25+
<link rel="preload" as="image" href="./public/images/low-carb-desserts.webp">
2226
<link rel="preload" as="image" href="./public/images/margherita-pizza.webp">
2327
<link rel="preload" as="image" href="./public/images/mastering-art-of-french-cooking.webp">
2428
<link rel="preload" as="image" href="./public/images/meal-prepping.webp">
2529
<link rel="preload" as="image" href="./public/images/mediterranean-cuisine.webp">
2630
<link rel="preload" as="image" href="./public/images/pancakes.webp">
31+
<link rel="preload" as="image" href="./public/images/plant-based-protein.webp">
32+
<link rel="preload" as="image" href="./public/images/quinoa-stuffed-peppers.webp">
33+
<link rel="preload" as="image" href="./public/images/ramen-noodles.webp">
34+
<link rel="preload" as="image" href="./public/images/seasonal-salads.webp">
35+
<link rel="preload" as="image" href="./public/images/shrimp-paella.webp">
2736
<link rel="preload" as="image" href="./public/images/spaghetti-carbonara.webp">
2837
<link rel="preload" as="image" href="./public/images/superfoods-you-should-include.webp">
38+
<link rel="preload" as="image" href="./public/images/sushi-platter.webp">
39+
<link rel="preload" as="image" href="./public/images/thai-green-curry.webp">
2940
<link rel="preload" as="image" href="./public/images/tomato-soup.webp">
41+
<link rel="preload" as="image" href="./public/images/vegan-burger.webp">
3042
<link rel="preload" as="image" href="./public/images/vegan-desserts.webp">
3143
<link rel="preload" as="image" href="./public/images/vegetable-stir-fry.webp">
3244
<link rel="preload" as="image" href="./public/images/vegetarian-stir-fry.webp">
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

experimental/responsive-design/src/data/articles.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,36 @@ export const articles = [
7171
image: "./public/images/best-comfort-food.webp",
7272
tags: ["comfort food", "cozy", "recipes"],
7373
},
74+
{
75+
title: "Innovative Plant-Based Protein Recipes",
76+
description: "Discover creative plant-based protein recipes that are both tasty and nutritious. Perfect for a healthy lifestyle.",
77+
author: "Laura Green",
78+
date: "2024-06-10",
79+
image: "./public/images/plant-based-protein.webp",
80+
tags: ["plant-based", "protein", "recipes"],
81+
},
82+
{
83+
title: "Gluten-Free Baking Essentials",
84+
description: "Master gluten-free baking with these essential tips and recipes. Enjoy delicious baked goods without the gluten.",
85+
author: "Mark Taylor",
86+
date: "2024-05-22",
87+
image: "./public/images/gluten-free-baking.webp",
88+
tags: ["gluten-free", "baking", "essentials"],
89+
},
90+
{
91+
title: "Seasonal Salads for Every Occasion",
92+
description: "Refresh your meals with these seasonal salad recipes. Perfect for any occasion and packed with fresh ingredients.",
93+
author: "Samantha Lee",
94+
date: "2024-04-18",
95+
image: "./public/images/seasonal-salads.webp",
96+
tags: ["seasonal", "salads", "recipes"],
97+
},
98+
{
99+
title: "Decadent Low-Carb Desserts",
100+
description: "Indulge in these delicious low-carb desserts that satisfy your sweet tooth without the extra carbs.",
101+
author: "Kevin White",
102+
date: "2024-03-30",
103+
image: "./public/images/low-carb-desserts.webp",
104+
tags: ["low-carb", "desserts", "decadent"],
105+
},
74106
];

experimental/responsive-design/src/data/carousel-items.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,20 @@ export const carouselItems = [
4747
image: "./public/images/chocolate-chip-cookies.webp",
4848
alt: "Chocolate Chip Cookies",
4949
},
50+
{
51+
image: "./public/images/vegan-burger.webp",
52+
alt: "Vegan Burger",
53+
},
54+
{
55+
image: "./public/images/sushi-platter.webp",
56+
alt: "Sushi Platter",
57+
},
58+
{
59+
image: "./public/images/ramen-noodles.webp",
60+
alt: "Ramen Noodles",
61+
},
62+
{
63+
image: "./public/images/fruit-salad.webp",
64+
alt: "Fruit Salad",
65+
},
5066
];

experimental/responsive-design/src/data/messages.js

Lines changed: 44 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

experimental/responsive-design/src/data/recipes.js

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,84 @@ export const recipes = [
139139
ingredients: ["1 baguette", "100g butter", "4 cloves garlic", "Parsley", "Salt"],
140140
steps: ["Preheat the oven to 200°C.", "Mix softened butter with minced garlic and parsley.", "Slice the baguette and spread the garlic butter.", "Wrap in foil and bake for 10-12 minutes."],
141141
},
142+
{
143+
text: "Thai Green Curry",
144+
description: "A spicy and flavorful curry with coconut milk, vegetables, and your choice of protein.",
145+
time: "35 mins",
146+
calories: "450 cals",
147+
servingSize: "4 servs",
148+
image: "./public/images/thai-green-curry.webp",
149+
tags: ["curry", "Thai", "spicy"],
150+
ingredients: ["400ml coconut milk", "2 tbsp green curry paste", "200g chicken breast", "1 bell pepper", "100g snap peas", "1 tbsp fish sauce", "Basil leaves", "Jasmine rice"],
151+
steps: [
152+
"Cook the jasmine rice.",
153+
"Sauté green curry paste until fragrant.",
154+
"Add chicken and cook until browned.",
155+
"Pour in coconut milk and simmer.",
156+
"Add vegetables and cook until tender.",
157+
"Stir in fish sauce and basil leaves.",
158+
"Serve over jasmine rice.",
159+
],
160+
},
161+
{
162+
text: "Beef Stroganoff",
163+
description: "Tender beef strips in a creamy mushroom and onion sauce, served over egg noodles.",
164+
time: "40 mins",
165+
calories: "550 cals",
166+
servingSize: "4 servs",
167+
image: "./public/images/beef-stroganoff.webp",
168+
tags: ["beef", "Russian", "comfort"],
169+
ingredients: ["500g beef sirloin", "200g mushrooms", "1 onion", "2 cloves garlic", "200ml sour cream", "2 tbsp flour", "Beef broth", "Egg noodles", "Parsley"],
170+
steps: [
171+
"Cook the egg noodles according to package instructions.",
172+
"Sauté onions and garlic until translucent.",
173+
"Add beef strips and cook until browned.",
174+
"Add mushrooms and cook until softened.",
175+
"Stir in flour and cook for 1 minute.",
176+
"Pour in beef broth and simmer until sauce thickens.",
177+
"Stir in sour cream and heat through.",
178+
"Serve over egg noodles and garnish with parsley.",
179+
],
180+
},
181+
{
182+
text: "Shrimp Paella",
183+
description: "A classic Spanish rice dish with shrimp, saffron, and a mix of fresh vegetables.",
184+
time: "50 mins",
185+
calories: "600 cals",
186+
servingSize: "4 servs",
187+
image: "./public/images/shrimp-paella.webp",
188+
tags: ["seafood", "Spanish", "rice"],
189+
ingredients: ["300g shrimp", "2 cups paella rice", "1 onion", "1 bell pepper", "2 tomatoes", "4 cloves garlic", "1 tsp saffron threads", "4 cups chicken broth", "Peas", "Lemon wedges"],
190+
steps: [
191+
"Sauté onions and garlic until fragrant.",
192+
"Add bell pepper and cook until softened.",
193+
"Stir in tomatoes and cook for 5 minutes.",
194+
"Add paella rice and saffron, stirring to coat the grains.",
195+
"Pour in chicken broth and bring to a boil.",
196+
"Reduce heat and simmer until rice is nearly cooked.",
197+
"Add shrimp and peas, cooking until shrimp are pink and rice is tender.",
198+
"Garnish with lemon wedges and serve.",
199+
],
200+
},
201+
{
202+
text: "Quinoa Stuffed Peppers",
203+
description: "Colorful bell peppers filled with a savory mixture of quinoa, vegetables, and cheese.",
204+
time: "45 mins",
205+
calories: "350 cals",
206+
servingSize: "4 servs",
207+
image: "./public/images/quinoa-stuffed-peppers.webp",
208+
tags: ["vegetarian", "healthy", "baked"],
209+
ingredients: ["4 bell peppers", "1 cup quinoa", "2 cups vegetable broth", "1 zucchini", "1 onion", "2 cloves garlic", "1 can black beans", "1 cup corn", "1 tsp cumin", "1 tsp paprika", "1 cup shredded cheese", "Cilantro"],
210+
steps: [
211+
"Preheat the oven to 375°F (190°C).",
212+
"Cook quinoa in vegetable broth according to package instructions.",
213+
"Sauté onions and garlic until translucent.",
214+
"Add zucchini, black beans, corn, cumin, and paprika, cooking until vegetables are tender.",
215+
"Mix cooked quinoa with the vegetable mixture.",
216+
"Cut the tops off bell peppers and remove seeds.",
217+
"Stuff each pepper with the quinoa mixture and place in a baking dish.",
218+
"Top with shredded cheese and bake for 25-30 minutes.",
219+
"Garnish with cilantro and serve warm.",
220+
],
221+
},
142222
];

experimental/responsive-design/src/data/restaurants.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,8 @@ export const restaurants = [
1111
{ title: "Feast Fiesta", distance: "2.2", rating: "4.6" },
1212
{ title: "Gastronomy Galore", distance: "1.7", rating: "4.7" },
1313
{ title: "Cuisine Corner", distance: "2.4", rating: "4.8" },
14+
{ title: "Bistro Bonanza", distance: "1.9", rating: "4.5" },
15+
{ title: "Palate Pleasures", distance: "2.6", rating: "4.6" },
16+
{ title: "Gourmet Garden", distance: "1.3", rating: "4.7" },
17+
{ title: "Savor Station", distance: "2.7", rating: "4.8" },
1418
];

0 commit comments

Comments
 (0)