|
2 | 2 | display: flex; |
3 | 3 | flex-direction: column; |
4 | 4 | align-items: center; |
5 | | - justify-content: center; |
| 5 | + justify-content: flex-start; |
| 6 | + min-height: 100vh; |
| 7 | + padding: 2rem 1rem; |
| 8 | + max-width: 1200px; |
| 9 | + margin: 0 auto; |
6 | 10 | } |
7 | 11 |
|
8 | | -.App-logo { |
9 | | - height: 40vmin; |
10 | | - pointer-events: none; |
| 12 | +.app-header { |
| 13 | + text-align: center; |
| 14 | + margin-bottom: 2rem; |
| 15 | + width: 100%; |
11 | 16 | } |
12 | 17 |
|
13 | | -@media (prefers-reduced-motion: no-preference) { |
14 | | - .App-logo { |
15 | | - animation: App-logo-spin infinite 20s linear; |
16 | | - } |
| 18 | +.app-header h1 { |
| 19 | + color: #ffffff; |
| 20 | + font-size: 2.5rem; |
| 21 | + font-weight: 700; |
| 22 | + margin: 0 0 0.5rem 0; |
| 23 | + text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); |
| 24 | + letter-spacing: -0.5px; |
17 | 25 | } |
18 | 26 |
|
19 | | -.App-header { |
20 | | - background-color: #282c34; |
21 | | - min-height: 100vh; |
| 27 | +.app-header p { |
| 28 | + color: #ffffff; |
| 29 | + font-size: 1.2rem; |
| 30 | + margin: 0; |
| 31 | + opacity: 0.95; |
| 32 | + font-weight: 300; |
| 33 | +} |
| 34 | + |
| 35 | +.cart-container { |
| 36 | + background: #ffffff; |
| 37 | + border-radius: 16px; |
| 38 | + box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15); |
| 39 | + padding: 2rem; |
| 40 | + width: 100%; |
| 41 | + margin-bottom: 2rem; |
| 42 | + transition: transform 0.3s ease, box-shadow 0.3s ease; |
| 43 | +} |
| 44 | + |
| 45 | +.cart-container:hover { |
| 46 | + transform: translateY(-2px); |
| 47 | + box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2); |
| 48 | +} |
| 49 | + |
| 50 | +.shipping-container { |
| 51 | + background: #ffffff; |
| 52 | + border-radius: 16px; |
| 53 | + box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15); |
| 54 | + padding: 2rem; |
| 55 | + width: 100%; |
| 56 | + margin-bottom: 2rem; |
| 57 | +} |
| 58 | + |
| 59 | +.purchase-button { |
| 60 | + background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); |
| 61 | + color: white; |
| 62 | + border: none; |
| 63 | + padding: 1rem 3rem; |
| 64 | + font-size: 1.1rem; |
| 65 | + font-weight: 600; |
| 66 | + border-radius: 12px; |
| 67 | + cursor: pointer; |
| 68 | + box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4); |
| 69 | + transition: all 0.3s ease; |
| 70 | + text-transform: uppercase; |
| 71 | + letter-spacing: 1px; |
| 72 | + width: 100%; |
| 73 | + max-width: 400px; |
| 74 | + margin: 0 auto; |
| 75 | + display: block; |
| 76 | +} |
| 77 | + |
| 78 | +.purchase-button:hover { |
| 79 | + transform: translateY(-2px); |
| 80 | + box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6); |
| 81 | + background: linear-gradient(135deg, #764ba2 0%, #667eea 100%); |
| 82 | +} |
| 83 | + |
| 84 | +.purchase-button:active { |
| 85 | + transform: translateY(0); |
| 86 | + box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4); |
| 87 | +} |
| 88 | + |
| 89 | +.cart-items-list { |
| 90 | + list-style-type: none; |
| 91 | + padding: 0; |
| 92 | + margin: 0; |
22 | 93 | display: flex; |
23 | 94 | flex-direction: column; |
| 95 | + gap: 1rem; |
| 96 | +} |
| 97 | + |
| 98 | +.cart-summary { |
| 99 | + background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); |
| 100 | + border-radius: 12px; |
| 101 | + padding: 1.5rem; |
| 102 | + margin-top: 2rem; |
| 103 | + border: 1px solid rgba(0, 0, 0, 0.05); |
| 104 | +} |
| 105 | + |
| 106 | +.cart-summary p { |
| 107 | + margin: 0.75rem 0; |
| 108 | + font-size: 1rem; |
| 109 | + color: #333; |
| 110 | + display: flex; |
| 111 | + justify-content: space-between; |
24 | 112 | align-items: center; |
25 | | - justify-content: center; |
26 | | - font-size: calc(10px + 2vmin); |
27 | | - color: white; |
28 | 113 | } |
29 | 114 |
|
30 | | -.App-link { |
31 | | - color: #61dafb; |
| 115 | +.cart-summary hr { |
| 116 | + border: none; |
| 117 | + border-top: 2px solid rgba(102, 126, 234, 0.3); |
| 118 | + margin: 1rem 0; |
| 119 | +} |
| 120 | + |
| 121 | +.cart-summary .order-total { |
| 122 | + font-size: 1.5rem; |
| 123 | + font-weight: 700; |
| 124 | + color: #667eea; |
| 125 | + margin-top: 1rem; |
| 126 | + padding-top: 1rem; |
| 127 | + border-top: 2px solid rgba(102, 126, 234, 0.3); |
| 128 | +} |
| 129 | + |
| 130 | +.cart-title { |
| 131 | + color: #333; |
| 132 | + font-size: 2rem; |
| 133 | + font-weight: 700; |
| 134 | + margin: 0 0 1.5rem 0; |
| 135 | + padding-bottom: 1rem; |
| 136 | + border-bottom: 3px solid #667eea; |
| 137 | +} |
| 138 | + |
| 139 | +.shipping-title { |
| 140 | + color: #333; |
| 141 | + font-size: 1.5rem; |
| 142 | + font-weight: 600; |
| 143 | + margin: 0 0 1.5rem 0; |
| 144 | +} |
| 145 | + |
| 146 | +.loading-text, |
| 147 | +.error-text { |
| 148 | + text-align: center; |
| 149 | + padding: 2rem; |
| 150 | + color: #333; |
| 151 | + font-size: 1.2rem; |
| 152 | +} |
| 153 | + |
| 154 | +.error-text { |
| 155 | + color: #e74c3c; |
| 156 | + background: #ffeaea; |
| 157 | + border-radius: 8px; |
| 158 | + border-left: 4px solid #e74c3c; |
32 | 159 | } |
33 | 160 |
|
34 | | -@keyframes App-logo-spin { |
35 | | - from { |
36 | | - transform: rotate(0deg); |
| 161 | +.shipping-option-label { |
| 162 | + display: flex; |
| 163 | + align-items: center; |
| 164 | + padding: 1rem; |
| 165 | + border-radius: 8px; |
| 166 | + border: 2px solid #e0e0e0; |
| 167 | + transition: all 0.3s ease; |
| 168 | + cursor: pointer; |
| 169 | +} |
| 170 | + |
| 171 | +.shipping-option-label:hover { |
| 172 | + border-color: #667eea; |
| 173 | + background-color: #f8f9ff; |
| 174 | +} |
| 175 | + |
| 176 | +@media (max-width: 768px) { |
| 177 | + .App { |
| 178 | + padding: 1rem 0.5rem; |
37 | 179 | } |
38 | | - to { |
39 | | - transform: rotate(360deg); |
| 180 | + |
| 181 | + .app-header h1 { |
| 182 | + font-size: 2rem; |
| 183 | + } |
| 184 | + |
| 185 | + .cart-container, |
| 186 | + .shipping-container { |
| 187 | + padding: 1.5rem; |
| 188 | + } |
| 189 | + |
| 190 | + .purchase-button { |
| 191 | + padding: 0.875rem 2rem; |
| 192 | + font-size: 1rem; |
40 | 193 | } |
41 | 194 | } |
0 commit comments