Skip to content

Commit c9fb116

Browse files
committed
add tailwind config
1 parent 3fde93c commit c9fb116

File tree

6 files changed

+44651
-40508
lines changed

6 files changed

+44651
-40508
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# Tailwind CSS
22

3+
A recipe website to understand Tailwind CSS basics.
4+
35
Based on [Tailwind CSS Tutorial](https://www.youtube.com/playlist?list=PL4cUxeGkcC9gpXORlEHjc5bgnIi5HEGhw) by Shaun Pelling - The Net Ninja (2020).

public/index.html

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<link rel="stylesheet" href="styles.css" />
7-
<title>Document</title>
7+
<title>Food Ninja</title>
88
</head>
9-
<body class="text-gray-600">
9+
<body class="text-gray-600 font-body">
1010
<div class="">
1111
<div class="">
1212
<nav>
1313
<div class="">
14-
<h1 class="font-bold uppercase"><a href="/">Food Ninja</a></h1>
14+
<h1 class="font-bold uppercase p-4 border-b border-gray-100">
15+
<a href="/">Food Ninja</a>
16+
</h1>
1517
</div>
1618
<ul>
1719
<li class="text-gray-700 font-bold">
@@ -26,18 +28,20 @@ <h1 class="font-bold uppercase"><a href="/">Food Ninja</a></h1>
2628
</ul>
2729
</nav>
2830
</div>
29-
<main>
30-
<div class="">
31-
<a href="#">Log in</a>
32-
<a href="#">Sign up</a>
31+
<main class="px-16 py-6">
32+
<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>
3335
</div>
3436
<header>
3537
<h2 class="text-gray-700 text-6xl font-semibold">Recipes</h2>
3638
<h3 class="text-2xl font-semibold">For Ninjas</h3>
3739
</header>
3840
<div class="">
39-
<h4 class="font-bold">Latest Recipes</h4>
40-
<div class="">
41+
<h4 class="font-bold mt-12 pb-2 border-b border-gray-200">
42+
Latest Recipes
43+
</h4>
44+
<div class="mt-8">
4145
<div class="">
4246
<img src="img/stew.jpg" alt="stew" />
4347
<div class="">
@@ -46,12 +50,14 @@ <h4 class="font-bold">Latest Recipes</h4>
4650
</div>
4751
</div>
4852
</div>
49-
<h4 class="font-bold">Most Popular</h4>
50-
<div class="">
53+
<h4 class="font-bold mt-12 pb-2 border-b border-gray-200">
54+
Most Popular
55+
</h4>
56+
<div class="mt-8">
5157
<!-- cards -->
5258
</div>
53-
<div class="">
54-
<div class="">Load more</div>
59+
<div class="flex justify-center">
60+
<div class="bg-secondary-100 text-secondary-200">Load more</div>
5561
</div>
5662
</div>
5763
</main>

0 commit comments

Comments
 (0)