[d7b7f00] | 1 | .recipesPage {
|
---|
| 2 | padding: 30px 0;
|
---|
| 3 | background: linear-gradient(to left, #f9f9f9, white), linear-gradient(to bottom, #f9f9f9, white);
|
---|
| 4 | position: relative;
|
---|
| 5 | min-height: 100vh;
|
---|
| 6 | display: flex;
|
---|
| 7 | flex-direction: column;
|
---|
| 8 | justify-content: space-between;
|
---|
| 9 | }
|
---|
| 10 |
|
---|
| 11 | .container {
|
---|
| 12 | max-width: 1200px;
|
---|
| 13 | margin: 0 auto;
|
---|
| 14 | padding: 0 15px;
|
---|
| 15 | display: flex;
|
---|
| 16 | flex-direction: column;
|
---|
| 17 | align-items: center;
|
---|
| 18 | }
|
---|
| 19 |
|
---|
| 20 | .sectionTitle {
|
---|
| 21 | color: #333;
|
---|
| 22 | text-align: center;
|
---|
| 23 | margin-bottom: 20px;
|
---|
| 24 | font-size: 36px;
|
---|
| 25 | font-weight: 700;
|
---|
| 26 | }
|
---|
| 27 |
|
---|
| 28 | .addRecipeButton {
|
---|
| 29 | background-color: #FFA500;
|
---|
| 30 | color: white;
|
---|
| 31 | padding: 10px 20px;
|
---|
| 32 | border: none;
|
---|
| 33 | border-radius: 30px;
|
---|
| 34 | font-size: 16px;
|
---|
| 35 | font-family: 'Roboto', sans-serif;
|
---|
| 36 | cursor: pointer;
|
---|
| 37 | transition: background-color 0.3s ease, box-shadow 0.3s ease;
|
---|
| 38 | margin-bottom: 50px;
|
---|
| 39 | display: inline-block;
|
---|
| 40 | }
|
---|
| 41 |
|
---|
| 42 | .addRecipeButton:hover {
|
---|
| 43 | background-color: #e69500;
|
---|
| 44 | box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
|
---|
| 45 | }
|
---|
| 46 |
|
---|
| 47 | .recipeCards {
|
---|
| 48 | display: grid;
|
---|
| 49 | grid-template-columns: repeat(3, 1fr);
|
---|
| 50 | gap: 20px;
|
---|
| 51 | }
|
---|
| 52 |
|
---|
| 53 | .recipeCard {
|
---|
| 54 | background-color: #fff;
|
---|
| 55 | border-radius: 10px;
|
---|
| 56 | overflow: hidden;
|
---|
| 57 | box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
---|
| 58 | transition: box-shadow 0.3s ease, transform 0.3s ease;
|
---|
| 59 | display: flex;
|
---|
| 60 | flex-direction: column;
|
---|
| 61 | height: 320px;
|
---|
| 62 | width: 360px
|
---|
| 63 | }
|
---|
| 64 |
|
---|
| 65 | .recipeLink {
|
---|
| 66 | text-decoration: none;
|
---|
| 67 | color: inherit;
|
---|
| 68 | display: flex;
|
---|
| 69 | flex-direction: column;
|
---|
| 70 | height: 100%;
|
---|
| 71 | }
|
---|
| 72 |
|
---|
| 73 | .recipeImage {
|
---|
| 74 | width: 100%;
|
---|
| 75 | height: 200px;
|
---|
| 76 | object-fit: cover;
|
---|
| 77 | flex-shrink: 0;
|
---|
| 78 | }
|
---|
| 79 |
|
---|
| 80 | .recipeTitle {
|
---|
| 81 | text-align: center;
|
---|
| 82 | justify-content: center;
|
---|
| 83 | font-size: 18px;
|
---|
| 84 | font-weight: 700;
|
---|
| 85 | color: #333;
|
---|
| 86 | }
|
---|
| 87 |
|
---|
| 88 | .recipeDetails {
|
---|
| 89 | display: flex;
|
---|
| 90 | justify-content: space-between;
|
---|
| 91 | padding: 15px;
|
---|
| 92 | margin-top: auto;
|
---|
| 93 | }
|
---|
| 94 |
|
---|
| 95 | .category, .origin {
|
---|
| 96 | background-color: #FFA500;
|
---|
| 97 | color: #fff;
|
---|
| 98 | padding: 3px 8px;
|
---|
| 99 | border-radius: 20px;
|
---|
| 100 | font-size: 14px;
|
---|
| 101 | }
|
---|
| 102 |
|
---|
| 103 | .recipeCard:hover {
|
---|
| 104 | box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
|
---|
| 105 | transform: translateY(-5px);
|
---|
| 106 | }
|
---|
| 107 |
|
---|
| 108 | .pagination {
|
---|
| 109 | display: flex;
|
---|
| 110 | justify-content: center;
|
---|
| 111 | align-items: center;
|
---|
| 112 | margin-top: 40px;
|
---|
| 113 | margin-bottom: 20px;
|
---|
| 114 | color: #333;
|
---|
| 115 | font-weight: 700;
|
---|
| 116 | }
|
---|
| 117 |
|
---|
| 118 | .pageButton {
|
---|
| 119 | background-color: #FFA500;
|
---|
| 120 | border: none;
|
---|
| 121 | color: #fff;
|
---|
| 122 | padding: 5px 20px;
|
---|
| 123 | margin: 0 5px;
|
---|
| 124 | border-radius: 5px;
|
---|
| 125 | cursor: pointer;
|
---|
| 126 | font-size: 24px;
|
---|
| 127 | transition: background-color 0.3s ease;
|
---|
| 128 | }
|
---|
| 129 |
|
---|
| 130 | .pageButton:disabled {
|
---|
| 131 | background-color: #ccc;
|
---|
| 132 | cursor: not-allowed;
|
---|
| 133 | }
|
---|
| 134 |
|
---|
| 135 | .pageButton:hover:not(:disabled) {
|
---|
| 136 | background-color: #e59400;
|
---|
| 137 | }
|
---|
| 138 |
|
---|
| 139 | .currentPage {
|
---|
| 140 | font-size: 18px;
|
---|
| 141 | color: #333;
|
---|
| 142 | margin: 0 15px;
|
---|
| 143 | font-weight: 700;
|
---|
| 144 | }
|
---|
| 145 |
|
---|
| 146 | .footer {
|
---|
| 147 | text-align: center;
|
---|
| 148 | padding: 20px;
|
---|
| 149 | background-color: #f9f9f9;
|
---|
| 150 | color: #333;
|
---|
| 151 | margin-top: auto;
|
---|
| 152 | }
|
---|
| 153 |
|
---|
| 154 | .footer p {
|
---|
| 155 | margin: 0;
|
---|
| 156 | font-size: 14px;
|
---|
| 157 | }
|
---|
| 158 |
|
---|
| 159 | .loaderOverlay {
|
---|
| 160 | position: fixed;
|
---|
| 161 | top: 0;
|
---|
| 162 | left: 0;
|
---|
| 163 | width: 100%;
|
---|
| 164 | height: 100%;
|
---|
| 165 | background-color: rgba(255, 255, 255, 0.9);
|
---|
| 166 | z-index: 1000;
|
---|
| 167 | display: flex;
|
---|
| 168 | align-items: center;
|
---|
| 169 | justify-content: center;
|
---|
| 170 | }
|
---|
| 171 |
|
---|
| 172 | .spinner {
|
---|
| 173 | border: 4px solid rgba(0, 0, 0, 0.1);
|
---|
| 174 | border-left-color: #FFA500;
|
---|
| 175 | border-radius: 50%;
|
---|
| 176 | width: 40px;
|
---|
| 177 | height: 40px;
|
---|
| 178 | animation: spin 1s linear infinite;
|
---|
| 179 | }
|
---|
| 180 |
|
---|
| 181 | @keyframes spin {
|
---|
| 182 | 0% {
|
---|
| 183 | transform: rotate(0deg);
|
---|
| 184 | }
|
---|
| 185 | 100% {
|
---|
| 186 | transform: rotate(360deg);
|
---|
| 187 | }
|
---|
| 188 | }
|
---|
| 189 |
|
---|
| 190 | @media (max-width: 768px) {
|
---|
| 191 | .recipesPage {
|
---|
| 192 | padding: 20px 0;
|
---|
| 193 | }
|
---|
| 194 |
|
---|
| 195 | .sectionTitle {
|
---|
| 196 | font-size: 28px;
|
---|
| 197 | margin-bottom: 20px;
|
---|
| 198 | }
|
---|
| 199 |
|
---|
| 200 | .recipeCards {
|
---|
| 201 | display: flex;
|
---|
| 202 | flex-direction: column;
|
---|
| 203 | align-items: center;
|
---|
| 204 | grid-template-columns: none;
|
---|
| 205 | }
|
---|
| 206 |
|
---|
| 207 | .recipeCard {
|
---|
| 208 | width: 90%;
|
---|
| 209 | margin-bottom: 20px;
|
---|
| 210 | }
|
---|
| 211 |
|
---|
| 212 | .pagination {
|
---|
| 213 | flex-wrap: wrap;
|
---|
| 214 | gap: 10px;
|
---|
| 215 | }
|
---|
| 216 |
|
---|
| 217 | .pageButton {
|
---|
| 218 | padding: 8px 16px;
|
---|
| 219 | font-size: 18px;
|
---|
| 220 | }
|
---|
| 221 |
|
---|
| 222 | .currentPage {
|
---|
| 223 | font-size: 16px;
|
---|
| 224 | }
|
---|
| 225 | }
|
---|