7
7
< title > Food Ninja</ title >
8
8
</ head >
9
9
< body class ="text-gray-600 font-body ">
10
- < div class ="">
11
- < div class ="">
12
- < nav >
13
- < div class ="">
10
+ < div class ="grid md:grid-cols-3 lg:grid-cols-4 ">
11
+ < div class ="md:col-span-1 md:flex md:justify-end ">
12
+ < nav class =" text-right " >
13
+ < div class ="flex justify-between items-center ">
14
14
< h1 class ="font-bold uppercase p-4 border-b border-gray-100 ">
15
- < a href ="/ "> Food Ninja</ a >
15
+ < a href ="/ " class =" hover:text-gray-700 " > Food Ninja</ a >
16
16
</ h1 >
17
+ < div class ="px-4 cursor-pointer md:hidden " id ="burger ">
18
+ < svg
19
+ class ="w-6 "
20
+ xmlns ="http://www.w3.org/2000/svg "
21
+ fill ="none "
22
+ viewBox ="0 0 24 24 "
23
+ stroke ="currentColor "
24
+ >
25
+ < path
26
+ stroke-linecap ="round "
27
+ stroke-linejoin ="round "
28
+ stroke-width ="2 "
29
+ d ="M4 6h16M4 12h16M4 18h16 "
30
+ />
31
+ </ svg >
32
+ </ div >
17
33
</ div >
18
- < ul >
19
- < li class ="text-gray-700 font-bold ">
20
- < a href ="# "> < span > Home</ span > </ a >
34
+ < ul class ="text-sm mt-6 hidden md:block " id ="menu ">
35
+ < li class ="text-gray-700 font-bold py-1 ">
36
+ < a
37
+ href ="# "
38
+ class ="px-4 flex justify-end border-r-4 border-primary "
39
+ > < span > Home</ span >
40
+ < svg
41
+ class ="w-5 ml-2 "
42
+ xmlns ="http://www.w3.org/2000/svg "
43
+ fill ="none "
44
+ viewBox ="0 0 24 24 "
45
+ stroke ="currentColor "
46
+ >
47
+ < path
48
+ stroke-linecap ="round "
49
+ stroke-linejoin ="round "
50
+ stroke-width ="2 "
51
+ d ="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6 "
52
+ />
53
+ </ svg >
54
+ </ a >
21
55
</ li >
22
- < li >
23
- < a href ="# "> < span > About</ span > </ a >
56
+ < li class ="py-1 ">
57
+ < a href ="# " class ="px-4 flex justify-end border-r-4 border-white "
58
+ > < span > About</ span >
59
+ < svg
60
+ class ="w-5 ml-2 "
61
+ xmlns ="http://www.w3.org/2000/svg "
62
+ fill ="none "
63
+ viewBox ="0 0 24 24 "
64
+ stroke ="currentColor "
65
+ >
66
+ < path
67
+ stroke-linecap ="round "
68
+ stroke-linejoin ="round "
69
+ stroke-width ="2 "
70
+ d ="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z "
71
+ />
72
+ </ svg >
73
+ </ a >
24
74
</ li >
25
- < li >
26
- < a href ="# "> < span > Contact</ span > </ a >
75
+ < li class ="py-1 ">
76
+ < a href ="# " class ="px-4 flex justify-end border-r-4 border-white "
77
+ > < span > Contact</ span >
78
+ < svg
79
+ class ="w-5 ml-2 "
80
+ xmlns ="http://www.w3.org/2000/svg "
81
+ fill ="none "
82
+ viewBox ="0 0 24 24 "
83
+ stroke ="currentColor "
84
+ >
85
+ < path
86
+ stroke-linecap ="round "
87
+ stroke-linejoin ="round "
88
+ stroke-width ="2 "
89
+ d ="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z "
90
+ />
91
+ </ svg >
92
+ </ a >
27
93
</ li >
28
94
</ ul >
29
95
</ nav >
30
96
</ div >
31
- < main class ="px-16 py-6 ">
97
+ < main
98
+ class ="bg-gray-100 px-16 py-6 md:col-span-2 lg:col-span-3 min-h-screen "
99
+ >
32
100
< div class ="flex justify-center md:justify-end ">
33
- < a href ="# " class ="text-primary "> Log in</ a >
34
- < a href ="# " class ="text-primary ml-2 "> Sign up</ a >
101
+ < a
102
+ href ="# "
103
+ class ="btn text-primary border-primary md:border-2 hover:bg-primary hover:text-white transition ease-out duration-500 "
104
+ > Log in</ a
105
+ >
106
+ < a
107
+ href ="# "
108
+ class ="btn text-primary border-primary md:border-2 hover:bg-primary hover:text-white transition ease-out duration-500 ml-2 "
109
+ > Sign up</ a
110
+ >
35
111
</ div >
36
112
< header >
37
113
< h2 class ="text-gray-700 text-6xl font-semibold "> Recipes</ h2 >
@@ -41,12 +117,89 @@ <h3 class="text-2xl font-semibold">For Ninjas</h3>
41
117
< h4 class ="font-bold mt-12 pb-2 border-b border-gray-200 ">
42
118
Latest Recipes
43
119
</ h4 >
44
- < div class ="mt-8 ">
45
- < div class ="">
46
- < img src ="img/stew.jpg " alt ="stew " />
47
- < div class ="">
48
- < span > 5 Bean Chilli Stew</ span >
49
- < span > Recipe by Mario</ span >
120
+ < div class ="mt-8 grid lg:grid-cols-3 gap-10 ">
121
+ < div class ="card hover:shadow-lg ">
122
+ < img
123
+ src ="img/stew.jpg "
124
+ alt ="stew "
125
+ class ="w-full h-32 sm:h-48 object-cover "
126
+ />
127
+ < div class ="m-4 ">
128
+ < span class ="font-bold "> 5 Bean Chilli Stew</ span >
129
+ < span class ="block text-gray-500 text-sm "> Recipe by Mario</ span >
130
+ </ div >
131
+ < div class ="badge ">
132
+ < svg
133
+ class ="w-5 inline-block "
134
+ xmlns ="http://www.w3.org/2000/svg "
135
+ fill ="none "
136
+ viewBox ="0 0 24 24 "
137
+ stroke ="currentColor "
138
+ >
139
+ < path
140
+ stroke-linecap ="round "
141
+ stroke-linejoin ="round "
142
+ stroke-width ="2 "
143
+ d ="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z "
144
+ />
145
+ </ svg >
146
+ < span > 25 mins</ span >
147
+ </ div >
148
+ </ div >
149
+ < div class ="card hover:shadow-lg ">
150
+ < img
151
+ src ="img/noodles.jpg "
152
+ alt ="noodles "
153
+ class ="w-full h-32 sm:h-48 object-cover "
154
+ />
155
+ < div class ="m-4 ">
156
+ < span class ="font-bold "> Veg Noodles</ span >
157
+ < span class ="block text-gray-500 text-sm "> Recipe by Mario</ span >
158
+ </ div >
159
+ < div class ="badge ">
160
+ < svg
161
+ class ="w-5 inline-block "
162
+ xmlns ="http://www.w3.org/2000/svg "
163
+ fill ="none "
164
+ viewBox ="0 0 24 24 "
165
+ stroke ="currentColor "
166
+ >
167
+ < path
168
+ stroke-linecap ="round "
169
+ stroke-linejoin ="round "
170
+ stroke-width ="2 "
171
+ d ="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z "
172
+ />
173
+ </ svg >
174
+ < span > 15 mins</ span >
175
+ </ div >
176
+ </ div >
177
+ < div class ="card hover:shadow-lg ">
178
+ < img
179
+ src ="img/curry.jpg "
180
+ alt ="curry "
181
+ class ="w-full h-32 sm:h-48 object-cover "
182
+ />
183
+ < div class ="m-4 ">
184
+ < span class ="font-bold "> Tofu Curry</ span >
185
+ < span class ="block text-gray-500 text-sm "> Recipe by Mario</ span >
186
+ </ div >
187
+ < div class ="badge ">
188
+ < svg
189
+ class ="w-5 inline-block "
190
+ xmlns ="http://www.w3.org/2000/svg "
191
+ fill ="none "
192
+ viewBox ="0 0 24 24 "
193
+ stroke ="currentColor "
194
+ >
195
+ < path
196
+ stroke-linecap ="round "
197
+ stroke-linejoin ="round "
198
+ stroke-width ="2 "
199
+ d ="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z "
200
+ />
201
+ </ svg >
202
+ < span > 30 mins</ span >
50
203
</ div >
51
204
</ div >
52
205
</ div >
@@ -57,10 +210,15 @@ <h4 class="font-bold mt-12 pb-2 border-b border-gray-200">
57
210
<!-- cards -->
58
211
</ div >
59
212
< div class ="flex justify-center ">
60
- < div class ="bg-secondary-100 text-secondary-200 "> Load more</ div >
213
+ < 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 "
215
+ >
216
+ Load more
217
+ </ div >
61
218
</ div >
62
219
</ div >
63
220
</ main >
64
221
</ div >
222
+ < script src ="index.js "> </ script >
65
223
</ body >
66
224
</ html >
0 commit comments