Skip to content

Commit f0d7397

Browse files
committed
add food ninja demo
1 parent c10a8f4 commit f0d7397

File tree

9 files changed

+370
-186466
lines changed

9 files changed

+370
-186466
lines changed

food-ninja/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
A recipe website to understand Tailwind CSS basics.
44

5+
[See Demo on CodePen](https://codepen.io/solygambas/full/bGqpPJJ)
6+
57
<p align="center">
68
<img src="screenshot.png">
79
</p>

food-ninja/package-lock.json

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

food-ninja/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
"description": "",
55
"main": "index.js",
66
"scripts": {
7-
"build": "tailwindcss build src/styles.css -o public/styles.css"
7+
"dev": "tailwindcss build src/styles.css -o public/styles.css",
8+
"build": "NODE_ENV=production npx tailwindcss-cli@latest build src/styles.css -o public/styles.css"
89
},
910
"keywords": [],
10-
"repository": {
11+
"repository": {
1112
"type": "git",
1213
"url": "git+https://github.com/solygambas/html-css-frameworks.git"
1314
},

food-ninja/public/img/curry.jpg

-81.8 KB
Binary file not shown.

food-ninja/public/img/noodles.jpg

-45.7 KB
Binary file not shown.

food-ninja/public/img/stew.jpg

-63.3 KB
Binary file not shown.

food-ninja/public/index.html

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,33 @@ <h1 class="font-bold uppercase p-4 border-b border-gray-100">
100100
<div class="flex justify-center md:justify-end">
101101
<a
102102
href="#"
103-
class="btn text-primary border-primary md:border-2 hover:bg-primary hover:text-white transition ease-out duration-500"
103+
class="
104+
btn
105+
text-primary
106+
border-primary
107+
md:border-2
108+
hover:bg-primary
109+
hover:text-white
110+
transition
111+
ease-out
112+
duration-500
113+
"
104114
>Log in</a
105115
>
106116
<a
107117
href="#"
108-
class="btn text-primary border-primary md:border-2 hover:bg-primary hover:text-white transition ease-out duration-500 ml-2"
118+
class="
119+
btn
120+
text-primary
121+
border-primary
122+
md:border-2
123+
hover:bg-primary
124+
hover:text-white
125+
transition
126+
ease-out
127+
duration-500
128+
ml-2
129+
"
109130
>Sign up</a
110131
>
111132
</div>
@@ -120,7 +141,7 @@ <h4 class="font-bold mt-12 pb-2 border-b border-gray-200">
120141
<div class="mt-8 grid lg:grid-cols-3 gap-10">
121142
<div class="card hover:shadow-lg">
122143
<img
123-
src="img/stew.jpg"
144+
src="https://i.ibb.co/tpCdNcX/stew.jpg"
124145
alt="stew"
125146
class="w-full h-32 sm:h-48 object-cover"
126147
/>
@@ -148,7 +169,7 @@ <h4 class="font-bold mt-12 pb-2 border-b border-gray-200">
148169
</div>
149170
<div class="card hover:shadow-lg">
150171
<img
151-
src="img/noodles.jpg"
172+
src="https://i.ibb.co/b1DQyfG/noodles.jpg"
152173
alt="noodles"
153174
class="w-full h-32 sm:h-48 object-cover"
154175
/>
@@ -176,7 +197,7 @@ <h4 class="font-bold mt-12 pb-2 border-b border-gray-200">
176197
</div>
177198
<div class="card hover:shadow-lg">
178199
<img
179-
src="img/curry.jpg"
200+
src="https://i.ibb.co/ZdP6cKQ/curry.jpg"
180201
alt="curry"
181202
class="w-full h-32 sm:h-48 object-cover"
182203
/>
@@ -211,7 +232,18 @@ <h4 class="font-bold mt-12 pb-2 border-b border-gray-200">
211232
</div>
212233
<div class="flex justify-center">
213234
<div
214-
class="btn bg-secondary-100 text-secondary-200 hover:shadow-inner transform hover:scale-125 hover:bg-opacity-50 transition ease-out duration-300"
235+
class="
236+
btn
237+
bg-secondary-100
238+
text-secondary-200
239+
hover:shadow-inner
240+
transform
241+
hover:scale-125
242+
hover:bg-opacity-50
243+
transition
244+
ease-out
245+
duration-300
246+
"
215247
>
216248
Load more
217249
</div>

0 commit comments

Comments
 (0)