|
1 | 1 | body * {
|
| 2 | + |
| 3 | + font-family: 'Montserrat', sans-serif; |
| 4 | +} |
| 5 | +.homeBody { |
| 6 | + min-height: 100svh; |
| 7 | + 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"); |
| 8 | + background-repeat: no-repeat; |
| 9 | + background-size: cover; |
| 10 | + background-position: center 30%; |
| 11 | + background-attachment: fixed; |
| 12 | +} |
| 13 | +h3.homeTitle { |
| 14 | + color: white; |
| 15 | + font-size: 3rem; |
| 16 | + animation: slidein 1.5s; |
| 17 | + |
| 18 | +} |
| 19 | +.optionsWrapper { |
| 20 | + display: flex; |
| 21 | + flex-direction: column; |
| 22 | + justify-content: center; |
| 23 | + align-items: center; |
| 24 | + margin-top: 2em; |
| 25 | + gap: 150px; |
| 26 | +} |
| 27 | +.menuWrapper { |
| 28 | + display: flex; |
| 29 | + justify-content: space-around; |
| 30 | + width: 100%; |
| 31 | + gap: 100px; |
| 32 | +} |
| 33 | +.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; |
| 43 | +} |
| 44 | +.component:hover { |
| 45 | + transition: .2s; |
| 46 | + transform: scale(1.5); |
| 47 | + border-radius: 15px; |
| 48 | + .textBackground { |
| 49 | + border-bottom-left-radius: 12px; |
| 50 | + border-bottom-right-radius: 12px; |
| 51 | + } |
| 52 | +} |
| 53 | +.weeklyMenu { |
| 54 | + 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"); |
| 55 | + background-position: center; |
| 56 | + background-size: cover; |
| 57 | + background-repeat: no-repeat; |
| 58 | + animation: weeklyMenuAnimation 1.2s; |
| 59 | +} |
| 60 | +.inFridge { |
| 61 | + 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"); |
| 62 | + background-position: center; |
| 63 | + background-size: cover; |
| 64 | + background-repeat: no-repeat; |
| 65 | + animation: fridge 1.2s; |
| 66 | +} |
| 67 | +.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; |
| 73 | +} |
| 74 | +.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; |
| 82 | +} |
| 83 | +.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; |
| 86 | +} |
| 87 | + |
| 88 | +@keyframes moveup { |
| 89 | + 0% { |
| 90 | + transform: translateY(-100px); |
| 91 | + } |
| 92 | + 100% { |
| 93 | + transform: translateY(0); |
| 94 | + } |
| 95 | + |
| 96 | +} |
| 97 | + |
| 98 | +@keyframes weeklyMenuAnimation { |
| 99 | + 0% { |
| 100 | + transform: translateX(-300px) translateY(500px); |
| 101 | + } |
| 102 | + 100% { |
| 103 | + transform: translateX(0); |
| 104 | + } |
| 105 | +} |
| 106 | +@keyframes fridge { |
| 107 | + 0% { |
| 108 | + transform: translateY(500px); |
| 109 | + } |
| 110 | + 100% { |
| 111 | + transform: translateX(0); |
| 112 | + } |
| 113 | +} |
| 114 | +@keyframes somethingNew { |
| 115 | + 0% { |
| 116 | + transform: translateX(300px) translateY(500px); |
| 117 | + } |
| 118 | + 100% { |
| 119 | + transform: translateX(0); |
| 120 | + } |
| 121 | +} |
| 122 | + |
| 123 | +@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 | + } |
| 133 | +======= |
2 | 134 | font-family: "Montserrat", sans-serif;
|
3 | 135 | }
|
0 commit comments