Skip to content

Commit 6d93af5

Browse files
committed
Tailwind styling
1 parent 2349b97 commit 6d93af5

9 files changed

Lines changed: 1318 additions & 208 deletions

File tree

.postcssrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"plugins": {
3+
"tailwindcss": {}
4+
}
5+
}

index.css

Lines changed: 3 additions & 131 deletions
Original file line numberDiff line numberDiff line change
@@ -1,131 +1,3 @@
1-
* {
2-
font-family: sans-serif;
3-
}
4-
.logo {
5-
width: 6em;
6-
/* height: 2em; */
7-
/* border-radius: 5rem; */
8-
}
9-
.nav-items {
10-
display: flex;
11-
justify-content: space-between;
12-
border: 1px solid grey;
13-
align-items: center;
14-
padding: 0.5rem;
15-
/* position: sticky;
16-
top: 0px; */
17-
}
18-
.nav-items > ul {
19-
display: flex;
20-
}
21-
.nav-items > ul > li {
22-
list-style-type: none;
23-
margin-left: 1rem;
24-
font-size: larger;
25-
}
26-
.cards {
27-
padding: 0.5rem;
28-
margin: 0.5rem;
29-
width: 15rem;
30-
height: 19rem;
31-
border-radius: 0.5rem;
32-
border: 1px solid lightgrey;
33-
line-height: 0.9rem;
34-
}
35-
.cards:hover {
36-
box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px,
37-
rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
38-
transition: all ease-in-out 0.3s;
39-
}
40-
.shimmerCard {
41-
padding: 0.5rem;
42-
margin: 0.5rem;
43-
width: 15rem;
44-
height: 19rem;
45-
border-radius: 0.5rem;
46-
border: 1px solid lightgrey;
47-
background-color: rgb(238, 237, 237);
48-
}
49-
.shimmerCard:hover {
50-
box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px,
51-
rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
52-
transition: all ease-in-out 0.3s;
53-
}
54-
.cardImg {
55-
width: 15rem;
56-
height: 10rem;
57-
border-radius: 0.5rem;
58-
}
59-
.RestaurantCards {
60-
display: flex;
61-
flex-wrap: wrap;
62-
align-items: center;
63-
justify-content: center;
64-
}
65-
h4 {
66-
width: -moz-fit-content;
67-
width: fit-content;
68-
/* margin-bottom: 0rem; */
69-
}
70-
.cuisines {
71-
font-size: 0.8rem;
72-
color: grey;
73-
margin-top: 0.3rem;
74-
margin-bottom: 0px;
75-
}
76-
.ratingsAndCostForTwo {
77-
display: flex;
78-
justify-content: space-between;
79-
margin-top: 0px;
80-
}
81-
.filteredRestaurantCard {
82-
padding: 2.5rem;
83-
margin: 0.5rem;
84-
width: 25rem;
85-
height: 27rem;
86-
border-radius: 0.5rem;
87-
border: 1px solid lightgrey;
88-
line-height: 0.1rem;
89-
}
90-
.filteredRestaurantCard > img {
91-
margin: auto;
92-
width: 25rem;
93-
height: 15rem;
94-
border-radius: 0.5rem;
95-
}
96-
.filteredRestaurantCard > div {
97-
display: flex;
98-
justify-content: space-between;
99-
align-items: center;
100-
}
101-
.flex {
102-
display: flex;
103-
flex-wrap: wrap;
104-
}
105-
.dishes {
106-
display: flex;
107-
flex-wrap: wrap;
108-
justify-content: center;
109-
border: 1px solid black;
110-
height: fit-content;
111-
width: 50rem;
112-
margin: 0.5rem;
113-
border-radius: 0.5rem;
114-
}
115-
.menuItems {
116-
padding: 0.5rem;
117-
margin: 0.5rem;
118-
width: 9rem;
119-
height: 14rem;
120-
border-radius: 0.5rem;
121-
border: 1px solid lightgrey;
122-
/* line-height: 0.9rem; */
123-
}
124-
.menuItems > img {
125-
width: 7.5rem;
126-
height: 5rem;
127-
border-radius: 0.5rem;
128-
}
129-
.restaurantMenuPage {
130-
display: flex;
131-
}
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;

0 commit comments

Comments
 (0)