Skip to content

Commit 7ae99c7

Browse files
Updated CSS
1 parent b1d1f76 commit 7ae99c7

File tree

1 file changed

+130
-1
lines changed

1 file changed

+130
-1
lines changed

public/css/styles.css

Lines changed: 130 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,132 @@
11
body * {
22
font-family: 'Montserrat', sans-serif;
3-
}
3+
}
4+
.homeBody {
5+
min-height: 100svh;
6+
background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("https://images.unsplash.com/photo-1573405618462-1a85b3ac7bac?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=580&q=80");
7+
background-repeat: no-repeat;
8+
background-size: cover;
9+
background-position: center 30%;
10+
background-attachment: fixed;
11+
}
12+
h3.homeTitle {
13+
color: white;
14+
font-size: 3rem;
15+
animation: slidein 1.5s;
16+
17+
}
18+
.optionsWrapper {
19+
display: flex;
20+
flex-direction: column;
21+
justify-content: center;
22+
align-items: center;
23+
margin-top: 2em;
24+
gap: 150px;
25+
}
26+
.menuWrapper {
27+
display: flex;
28+
justify-content: space-around;
29+
width: 100%;
30+
gap: 100px;
31+
}
32+
.component {
33+
transition: .2s;
34+
height: 200px;
35+
width: 200px;
36+
border: 5px solid white;
37+
color: white;
38+
display: flex;
39+
align-items: flex-end;
40+
border-radius: 50px;
41+
z-index: 2;
42+
}
43+
.component:hover {
44+
transition: .2s;
45+
transform: scale(1.5);
46+
border-radius: 15px;
47+
.textBackground {
48+
border-bottom-left-radius: 12px;
49+
border-bottom-right-radius: 12px;
50+
}
51+
}
52+
.weeklyMenu {
53+
background-image: url("https://images.unsplash.com/photo-1536236397240-9b229a37a286?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1170&q=80");
54+
background-position: center;
55+
background-size: cover;
56+
background-repeat: no-repeat;
57+
animation: weeklyMenuAnimation 1.2s;
58+
}
59+
.inFridge {
60+
background-image: url("https://images.unsplash.com/photo-1643494847705-74808059bf07?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=415&q=80");
61+
background-position: center;
62+
background-size: cover;
63+
background-repeat: no-repeat;
64+
animation: fridge 1.2s;
65+
}
66+
.somethingNew {
67+
background-image: url("https://images.unsplash.com/photo-1599508704512-2f19efd1e35f?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=435&q=80");
68+
background-position: center 80%;
69+
background-size: cover;
70+
background-repeat: no-repeat;
71+
animation: somethingNew 1.2s;
72+
}
73+
.textBackground {
74+
transition: .2s;
75+
background: rgba(0, 0, 0, 0.5);
76+
width: 100%;
77+
height: 50px;
78+
margin: 0;
79+
border-bottom-left-radius: 50px;
80+
border-bottom-right-radius: 50px;
81+
}
82+
.navShadow {
83+
box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
84+
animation: moveup .5s;
85+
}
86+
87+
@keyframes moveup {
88+
0% {
89+
transform: translateY(-100px);
90+
}
91+
100% {
92+
transform: translateY(0);
93+
}
94+
95+
}
96+
97+
@keyframes weeklyMenuAnimation {
98+
0% {
99+
transform: translateX(-300px) translateY(500px);
100+
}
101+
100% {
102+
transform: translateX(0);
103+
}
104+
}
105+
@keyframes fridge {
106+
0% {
107+
transform: translateY(500px);
108+
}
109+
100% {
110+
transform: translateX(0);
111+
}
112+
}
113+
@keyframes somethingNew {
114+
0% {
115+
transform: translateX(300px) translateY(500px);
116+
}
117+
100% {
118+
transform: translateX(0);
119+
}
120+
}
121+
122+
@media only screen and (max-width: 450px) {
123+
.menuWrapper {
124+
display: flex;
125+
flex-direction: column;
126+
align-items: center;
127+
}
128+
.component {
129+
height: 300px;
130+
width: 300px;
131+
}
132+
}

0 commit comments

Comments
 (0)