|
1 | 1 | body * { |
2 | | - |
3 | | - font-family: 'Montserrat', sans-serif; |
| 2 | + font-family: "Montserrat", sans-serif; |
4 | 3 | } |
5 | 4 | .homeBody { |
6 | | - min-height: 100svh; |
7 | | - background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("https://static.vecteezy.com/system/resources/previews/003/823/542/original/spices-for-use-as-cooking-ingredients-on-a-wooden-background-with-fresh-vegetables-healthy-food-herbs-organic-vegetables-on-the-table-raw-materials-of-cooking-preparation-tom-yum-free-photo.jpg"); |
8 | | - background-repeat: no-repeat; |
9 | | - background-size: cover; |
10 | | - background-position: center 30%; |
11 | | - background-attachment: fixed; |
| 5 | + min-height: 100svh; |
| 6 | + background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), |
| 7 | + url("https://static.vecteezy.com/system/resources/previews/003/823/542/original/spices-for-use-as-cooking-ingredients-on-a-wooden-background-with-fresh-vegetables-healthy-food-herbs-organic-vegetables-on-the-table-raw-materials-of-cooking-preparation-tom-yum-free-photo.jpg"); |
| 8 | + background-repeat: no-repeat; |
| 9 | + background-size: cover; |
| 10 | + background-position: center 30%; |
| 11 | + background-attachment: fixed; |
12 | 12 | } |
13 | 13 | h3.homeTitle { |
14 | | - color: white; |
15 | | - font-size: 3rem; |
16 | | - animation: slidein 1.5s; |
17 | | - |
| 14 | + color: white; |
| 15 | + font-size: 3rem; |
| 16 | + animation: slidein 1.5s; |
18 | 17 | } |
19 | 18 | .optionsWrapper { |
20 | | - display: flex; |
21 | | - flex-direction: column; |
22 | | - justify-content: center; |
23 | | - align-items: center; |
24 | | - margin-top: 2em; |
25 | | - gap: 150px; |
| 19 | + display: flex; |
| 20 | + flex-direction: column; |
| 21 | + justify-content: center; |
| 22 | + align-items: center; |
| 23 | + margin-top: 2em; |
| 24 | + gap: 150px; |
26 | 25 | } |
27 | 26 | .menuWrapper { |
28 | | - display: flex; |
29 | | - justify-content: space-around; |
30 | | - width: 100%; |
31 | | - gap: 100px; |
| 27 | + display: flex; |
| 28 | + justify-content: space-around; |
| 29 | + width: 100%; |
| 30 | + gap: 100px; |
32 | 31 | } |
33 | 32 | .component { |
34 | | - transition: .2s; |
35 | | - height: 200px; |
36 | | - width: 200px; |
37 | | - border: 5px solid white; |
38 | | - color: white; |
39 | | - display: flex; |
40 | | - align-items: flex-end; |
41 | | - border-radius: 50px; |
42 | | - z-index: 2; |
| 33 | + transition: 0.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; |
43 | 42 | } |
44 | 43 | .component:hover { |
45 | | - transition: .2s; |
46 | | - transform: scale(1.5); |
47 | | - border-radius: 15px; |
| 44 | + transition: 0.2s; |
| 45 | + transform: scale(1.5); |
| 46 | + border-radius: 15px; |
48 | 47 | } |
49 | 48 | .component:hover .textBackground { |
50 | | - border-bottom-left-radius: 12px; |
51 | | - border-bottom-right-radius: 12px; |
| 49 | + border-bottom-left-radius: 12px; |
| 50 | + border-bottom-right-radius: 12px; |
52 | 51 | } |
53 | 52 | .weeklyMenu { |
54 | | - background-image: url("https://freedesignfile.com/upload/2017/05/Restaurant-menu-with-black-background-vector.jpg"); |
55 | | - background-position: center; |
56 | | - background-size: cover; |
57 | | - background-repeat: no-repeat; |
58 | | - animation: weeklyMenuAnimation 1.2s; |
| 53 | + background-image: url("https://freedesignfile.com/upload/2017/05/Restaurant-menu-with-black-background-vector.jpg"); |
| 54 | + background-position: center; |
| 55 | + background-size: cover; |
| 56 | + background-repeat: no-repeat; |
| 57 | + animation: weeklyMenuAnimation 1.2s; |
59 | 58 | } |
60 | 59 | .inFridge { |
61 | | - background-image: url("https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSI9F3QferHQjUXTo53v2JRvG2YPp78J3HgKA&usqp=CAU"); |
62 | | - background-position: center; |
63 | | - background-size: cover; |
64 | | - background-repeat: no-repeat; |
65 | | - animation: fridge 1.2s; |
| 60 | + background-image: url("https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSI9F3QferHQjUXTo53v2JRvG2YPp78J3HgKA&usqp=CAU"); |
| 61 | + background-position: center; |
| 62 | + background-size: cover; |
| 63 | + background-repeat: no-repeat; |
| 64 | + animation: fridge 1.2s; |
66 | 65 | } |
67 | 66 | .somethingNew { |
68 | | - 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"); |
69 | | - background-position: center 80%; |
70 | | - background-size: cover; |
71 | | - background-repeat: no-repeat; |
72 | | - animation: somethingNew 1.2s; |
| 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; |
73 | 72 | } |
74 | 73 | .textBackground { |
75 | | - transition: .2s; |
76 | | - background: rgba(0, 0, 0, 0.5); |
77 | | - width: 100%; |
78 | | - height: 50px; |
79 | | - margin: 0; |
80 | | - border-bottom-left-radius: 50px; |
81 | | - border-bottom-right-radius: 50px; |
| 74 | + transition: 0.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; |
82 | 81 | } |
83 | 82 | .navShadow { |
84 | | - 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; |
85 | | - animation: moveup .5s; |
| 83 | + box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, |
| 84 | + rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset; |
| 85 | + animation: moveup 0.5s; |
86 | 86 | } |
87 | 87 |
|
88 | 88 | @keyframes moveup { |
89 | | - 0% { |
90 | | - transform: translateY(-100px); |
91 | | - } |
92 | | - 100% { |
93 | | - transform: translateY(0); |
94 | | - } |
95 | | - |
| 89 | + 0% { |
| 90 | + transform: translateY(-100px); |
| 91 | + } |
| 92 | + 100% { |
| 93 | + transform: translateY(0); |
| 94 | + } |
96 | 95 | } |
97 | 96 |
|
98 | 97 | @keyframes weeklyMenuAnimation { |
99 | | - 0% { |
100 | | - transform: translateX(-300px) translateY(500px); |
101 | | - } |
102 | | - 100% { |
103 | | - transform: translateX(0); |
104 | | - } |
| 98 | + 0% { |
| 99 | + transform: translateX(-300px) translateY(500px); |
| 100 | + } |
| 101 | + 100% { |
| 102 | + transform: translateX(0); |
| 103 | + } |
105 | 104 | } |
106 | 105 | @keyframes fridge { |
107 | | - 0% { |
108 | | - transform: translateY(500px); |
109 | | - } |
110 | | - 100% { |
111 | | - transform: translateX(0); |
112 | | - } |
| 106 | + 0% { |
| 107 | + transform: translateY(500px); |
| 108 | + } |
| 109 | + 100% { |
| 110 | + transform: translateX(0); |
| 111 | + } |
113 | 112 | } |
114 | 113 | @keyframes somethingNew { |
115 | | - 0% { |
116 | | - transform: translateX(300px) translateY(500px); |
117 | | - } |
118 | | - 100% { |
119 | | - transform: translateX(0); |
120 | | - } |
| 114 | + 0% { |
| 115 | + transform: translateX(300px) translateY(500px); |
| 116 | + } |
| 117 | + 100% { |
| 118 | + transform: translateX(0); |
| 119 | + } |
121 | 120 | } |
122 | 121 |
|
123 | 122 | @media only screen and (max-width: 450px) { |
124 | | - .menuWrapper { |
125 | | - display: flex; |
126 | | - flex-direction: column; |
127 | | - align-items: center; |
128 | | - } |
129 | | - .component { |
130 | | - height: 300px; |
131 | | - width: 300px; |
132 | | - } |
| 123 | + .menuWrapper { |
| 124 | + display: flex; |
| 125 | + flex-direction: column; |
| 126 | + align-items: center; |
| 127 | + } |
| 128 | + .component { |
| 129 | + height: 300px; |
| 130 | + width: 300px; |
| 131 | + } |
133 | 132 | } |
0 commit comments