|
5 | 5 | box-sizing: border-box; |
6 | 6 | } |
7 | 7 |
|
| 8 | +:root { |
| 9 | + --primary-color: #d32323; |
| 10 | + --secondary-color: #333; |
| 11 | + --background-color: #f7f7f7; |
| 12 | + --card-background: #ffffff; |
| 13 | + --text-color: #2b2b2b; |
| 14 | +} |
| 15 | + |
8 | 16 | body { |
9 | | - font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; |
| 17 | + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif; |
10 | 18 | line-height: 1.6; |
11 | | - color: #333; |
12 | | - background-color: #f5f5f5; |
| 19 | + color: var(--text-color); |
| 20 | + background-color: var(--background-color); |
13 | 21 | } |
14 | 22 |
|
15 | 23 | /* Header Styles */ |
16 | 24 | header { |
17 | | - background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); |
18 | | - color: white; |
19 | | - padding: 2rem 0; |
20 | | - text-align: center; |
| 25 | + background-color: var(--card-background); |
| 26 | + color: var(--secondary-color); |
| 27 | + padding: 1.5rem 0; |
| 28 | + box-shadow: 0 2px 4px rgba(0,0,0,0.1); |
| 29 | + position: sticky; |
| 30 | + top: 0; |
| 31 | + z-index: 1000; |
21 | 32 | } |
22 | 33 |
|
23 | 34 | header h1 { |
| 35 | + font-size: 2rem; |
| 36 | + margin-bottom: 1rem; |
| 37 | + font-weight: 600; |
| 38 | + text-align: center; |
| 39 | +} |
| 40 | + |
| 41 | +/* Container */ |
| 42 | +.container { |
| 43 | + max-width: 1200px; |
| 44 | + margin: 0 auto; |
| 45 | + padding: 2rem; |
| 46 | +} |
| 47 | + |
| 48 | +/* Hero Section */ |
| 49 | +.hero { |
| 50 | + text-align: center; |
| 51 | + margin-bottom: 3rem; |
| 52 | + padding: 3rem 0; |
| 53 | +} |
| 54 | + |
| 55 | +.hero h1 { |
24 | 56 | font-size: 2.5rem; |
| 57 | + color: var(--secondary-color); |
| 58 | + margin-bottom: 1rem; |
| 59 | +} |
| 60 | + |
| 61 | +.hero p { |
| 62 | + font-size: 1.2rem; |
| 63 | + color: #666; |
| 64 | +} |
| 65 | + |
| 66 | +/* Projects Grid */ |
| 67 | +.projects-grid { |
| 68 | + display: grid; |
| 69 | + grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); |
| 70 | + gap: 2rem; |
| 71 | + padding: 1rem; |
| 72 | +} |
| 73 | + |
| 74 | +/* Project Cards */ |
| 75 | +.project-card { |
| 76 | + background: var(--card-background); |
| 77 | + border-radius: 8px; |
| 78 | + padding: 1.5rem; |
| 79 | + box-shadow: 0 2px 4px rgba(0,0,0,0.1); |
| 80 | + transition: transform 0.2s ease, box-shadow 0.2s ease; |
| 81 | +} |
| 82 | + |
| 83 | +.project-card:hover { |
| 84 | + transform: translateY(-5px); |
| 85 | + box-shadow: 0 4px 8px rgba(0,0,0,0.15); |
| 86 | +} |
| 87 | + |
| 88 | +.project-header { |
| 89 | + margin-bottom: 1rem; |
| 90 | +} |
| 91 | + |
| 92 | +.project-header h2 { |
| 93 | + font-size: 1.5rem; |
| 94 | + color: var(--secondary-color); |
| 95 | + margin-bottom: 0.5rem; |
| 96 | +} |
| 97 | + |
| 98 | +.project-stats { |
| 99 | + display: flex; |
| 100 | + gap: 1rem; |
| 101 | + color: #666; |
| 102 | + font-size: 0.9rem; |
| 103 | +} |
| 104 | + |
| 105 | +.project-stats span { |
| 106 | + display: flex; |
| 107 | + align-items: center; |
| 108 | + gap: 0.5rem; |
| 109 | +} |
| 110 | + |
| 111 | +.project-description { |
| 112 | + color: #555; |
25 | 113 | margin-bottom: 1.5rem; |
26 | | - font-weight: 300; |
| 114 | + line-height: 1.6; |
| 115 | +} |
| 116 | + |
| 117 | +.project-links { |
| 118 | + display: flex; |
| 119 | + gap: 1rem; |
| 120 | +} |
| 121 | + |
| 122 | +.github-link { |
| 123 | + display: inline-flex; |
| 124 | + align-items: center; |
| 125 | + gap: 0.5rem; |
| 126 | + padding: 0.5rem 1rem; |
| 127 | + background-color: #24292e; |
| 128 | + color: white; |
| 129 | + text-decoration: none; |
| 130 | + border-radius: 4px; |
| 131 | + font-size: 0.9rem; |
| 132 | + transition: background-color 0.2s ease; |
| 133 | +} |
| 134 | + |
| 135 | +.github-link:hover { |
| 136 | + background-color: #2c3238; |
| 137 | +} |
| 138 | + |
| 139 | +/* Footer */ |
| 140 | +footer { |
| 141 | + background-color: var(--card-background); |
| 142 | + padding: 2rem 0; |
| 143 | + margin-top: 4rem; |
| 144 | + box-shadow: 0 -2px 4px rgba(0,0,0,0.1); |
| 145 | +} |
| 146 | + |
| 147 | +.footer-content { |
| 148 | + max-width: 1200px; |
| 149 | + margin: 0 auto; |
| 150 | + padding: 0 2rem; |
| 151 | + display: flex; |
| 152 | + justify-content: space-between; |
| 153 | + align-items: center; |
| 154 | +} |
| 155 | + |
| 156 | +.social-links { |
| 157 | + display: flex; |
| 158 | + gap: 1rem; |
| 159 | +} |
| 160 | + |
| 161 | +.social-links a { |
| 162 | + color: var(--secondary-color); |
| 163 | + font-size: 1.5rem; |
| 164 | + transition: color 0.2s ease; |
| 165 | +} |
| 166 | + |
| 167 | +.social-links a:hover { |
| 168 | + color: var(--primary-color); |
27 | 169 | } |
28 | 170 |
|
29 | 171 | /* Navigation Styles */ |
30 | 172 | nav { |
| 173 | + max-width: 1200px; |
| 174 | + margin: 0 auto; |
| 175 | + padding: 0 2rem; |
| 176 | +} |
| 177 | + |
| 178 | +nav ul { |
| 179 | + list-style: none; |
| 180 | + display: flex; |
| 181 | + justify-content: center; |
| 182 | + gap: 2rem; |
| 183 | +} |
| 184 | + |
| 185 | +nav a { |
| 186 | + text-decoration: none; |
| 187 | + color: var(--secondary-color); |
| 188 | + font-weight: 500; |
| 189 | + font-size: 1.1rem; |
| 190 | + padding: 0.5rem 1rem; |
| 191 | + border-radius: 4px; |
| 192 | + transition: color 0.2s ease, background-color 0.2s ease; |
| 193 | +} |
| 194 | + |
| 195 | +nav a:hover { |
| 196 | + color: var(--primary-color); |
| 197 | + background-color: rgba(211, 35, 35, 0.1); |
| 198 | +} |
| 199 | + |
| 200 | +/* Responsive Design */ |
| 201 | +@media (max-width: 768px) { |
| 202 | + .projects-grid { |
| 203 | + grid-template-columns: 1fr; |
| 204 | + } |
| 205 | + |
| 206 | + .footer-content { |
| 207 | + flex-direction: column; |
| 208 | + gap: 1rem; |
| 209 | + text-align: center; |
| 210 | + } |
| 211 | + |
| 212 | + nav ul { |
| 213 | + flex-direction: column; |
| 214 | + align-items: center; |
| 215 | + gap: 1rem; |
| 216 | + } |
| 217 | +} |
31 | 218 | background-color: rgba(255, 255, 255, 0.1); |
32 | 219 | padding: 1rem; |
33 | 220 | margin-top: 1rem; |
@@ -90,26 +277,69 @@ a:hover { |
90 | 277 | color: #1e3c72; |
91 | 278 | } |
92 | 279 |
|
93 | | -/* Footer Styles */ |
94 | | -footer { |
95 | | - background-color: #1e3c72; |
| 280 | +/* Homepage Specific Styles */ |
| 281 | +.subtitle { |
| 282 | + font-size: 1.4rem; |
| 283 | + color: #666; |
| 284 | + margin-bottom: 2rem; |
| 285 | +} |
| 286 | + |
| 287 | +.cta-buttons { |
| 288 | + display: flex; |
| 289 | + gap: 1rem; |
| 290 | + justify-content: center; |
| 291 | + margin-top: 2rem; |
| 292 | +} |
| 293 | + |
| 294 | +.cta-button { |
| 295 | + display: inline-flex; |
| 296 | + align-items: center; |
| 297 | + gap: 0.5rem; |
| 298 | + padding: 0.8rem 1.5rem; |
| 299 | + border-radius: 4px; |
| 300 | + text-decoration: none; |
| 301 | + font-weight: 500; |
| 302 | + transition: all 0.2s ease; |
| 303 | +} |
| 304 | + |
| 305 | +.cta-button:first-child { |
| 306 | + background-color: var(--primary-color); |
| 307 | + color: white; |
| 308 | +} |
| 309 | + |
| 310 | +.cta-button.github { |
| 311 | + background-color: #24292e; |
96 | 312 | color: white; |
| 313 | +} |
| 314 | + |
| 315 | +.cta-button:hover { |
| 316 | + transform: translateY(-2px); |
| 317 | + box-shadow: 0 4px 8px rgba(0,0,0,0.15); |
| 318 | +} |
| 319 | + |
| 320 | +.featured-section { |
| 321 | + margin-top: 4rem; |
| 322 | +} |
| 323 | + |
| 324 | +.featured-section h2 { |
97 | 325 | text-align: center; |
98 | | - padding: 1.5rem; |
99 | | - margin-top: 3rem; |
| 326 | + margin-bottom: 2rem; |
| 327 | + font-size: 2rem; |
| 328 | + color: var(--secondary-color); |
100 | 329 | } |
101 | 330 |
|
102 | | -/* Responsive Design */ |
103 | | -@media (max-width: 768px) { |
104 | | - header h1 { |
105 | | - font-size: 2rem; |
106 | | - } |
| 331 | +.learn-more { |
| 332 | + display: inline-block; |
| 333 | + color: var(--primary-color); |
| 334 | + text-decoration: none; |
| 335 | + font-weight: 500; |
| 336 | + margin-top: 1rem; |
| 337 | + transition: transform 0.2s ease; |
| 338 | +} |
107 | 339 |
|
108 | | - nav ul { |
109 | | - flex-direction: column; |
110 | | - gap: 1rem; |
111 | | - align-items: center; |
112 | | - } |
| 340 | +.learn-more:hover { |
| 341 | + transform: translateX(5px); |
| 342 | +} |
113 | 343 |
|
114 | 344 | main { |
115 | 345 | padding: 2rem 1rem; |
|
0 commit comments