Skip to content

Commit 2f2fe66

Browse files
committed
restaurant menu layout
1 parent 207828a commit 2f2fe66

17 files changed

+362
-2
lines changed

blocks/restaurant-menu.css

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

blocks/restaurant-menu.css.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

blocks/restaurant-menu.scss

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
.page-title {
2+
text-align: center;
3+
font-family: "Roboto Mono", monospace;
4+
margin: 60px 0 40px;
5+
}
6+
7+
.main {
8+
&__menu {
9+
}
10+
}
11+
12+
.menu {
13+
display: grid;
14+
place-items: center;
15+
16+
&__filter {
17+
margin-bottom: 30px;
18+
}
19+
20+
&__items {
21+
display: grid;
22+
grid-template-columns: repeat(2, 1fr);
23+
gap: 40px;
24+
}
25+
26+
&__item {
27+
}
28+
margin-bottom: 40px;
29+
}
30+
31+
.filter {
32+
&__buttons {
33+
display: flex;
34+
column-gap: 10px;
35+
}
36+
37+
&__btn {
38+
font-size: 18px;
39+
background-color: transparent;
40+
color: orangered;
41+
padding: 8px 16px;
42+
border-radius: 30px;
43+
border: 1px solid orangered;
44+
45+
transition: .3s ease;
46+
&:hover {
47+
background-color: orangered;
48+
color: white;
49+
}
50+
}
51+
}
52+
53+
.item-menu {
54+
display: flex;
55+
gap: 10px;
56+
min-height: 150px;
57+
min-width: 550px;
58+
59+
&__image {
60+
position: relative;
61+
border-radius: 10px;
62+
overflow: hidden;
63+
padding: 0 0 0 40%; //!
64+
65+
&:hover img {
66+
transform: scale(1.2);
67+
}
68+
69+
& img {
70+
border-radius: 10px;
71+
position: absolute;
72+
width: 100%;
73+
height: 100%;
74+
left: 0;
75+
top: 0;
76+
object-fit: cover;
77+
78+
transition: .3s ease;
79+
}
80+
}
81+
82+
&__info {
83+
width: 100%;
84+
}
85+
86+
&__head {
87+
display: flex;
88+
justify-content: space-between;
89+
align-items: center;
90+
font-weight: 600;
91+
padding-bottom: 5px;
92+
border-bottom: 1px dotted orangered;
93+
margin-bottom: 15px;
94+
}
95+
96+
&__name {
97+
text-transform: capitalize;
98+
}
99+
100+
&__cost {
101+
}
102+
103+
&__desc {
104+
font-size: 14px;
105+
}
106+
}
107+
108+
@media (max-width: 1000px) {
109+
.menu {
110+
&__items {
111+
display: grid;
112+
grid-template-columns: repeat(1, 1fr);
113+
gap: 40px;
114+
}
115+
}
116+
117+
.item-menu {
118+
flex-direction: column;
119+
120+
&__image {
121+
padding: 0 0 50% 0;
122+
}
123+
124+
&__info {
125+
126+
}
127+
}
128+
129+
}

images/main-page/05-1.png

120 KB
Loading

images/restaurant-menu/item-1.jpeg

65.9 KB
Loading
70.8 KB
Loading

images/restaurant-menu/item-2.jpeg

74.5 KB
Loading

images/restaurant-menu/item-3.jpeg

54.4 KB
Loading

images/restaurant-menu/item-4.jpeg

69.2 KB
Loading

images/restaurant-menu/item-5.jpeg

54.4 KB
Loading

0 commit comments

Comments
 (0)