|
1 | 1 | /* ── Hero section ────────────────────────────────────────────────────────── */ |
2 | 2 | .home-hero { |
3 | 3 | text-align: center; |
4 | | - padding: 3.5rem 1rem 3rem; |
| 4 | + padding: 1.5rem 1rem 1.75rem; |
5 | 5 | border-bottom: 1px solid var(--border); |
6 | | - margin-bottom: 3rem; |
| 6 | + margin-bottom: 1.5rem; |
7 | 7 | } |
8 | 8 |
|
9 | 9 | .home-hero-logo { |
10 | | - max-width: 420px; |
| 10 | + max-width: 360px; |
11 | 11 | width: 100%; |
12 | 12 | height: auto; |
13 | | - margin: 0 auto 1.5rem; |
| 13 | + margin: 0 auto 1rem; |
14 | 14 | display: block; |
15 | 15 | } |
16 | 16 |
|
|
20 | 20 | } |
21 | 21 |
|
22 | 22 | .home-hero-subtitle { |
23 | | - font-size: 1.15rem; |
| 23 | + font-size: 1.05rem; |
24 | 24 | color: var(--secondary); |
25 | | - max-width: 560px; |
26 | | - margin: 0 auto 2rem; |
27 | | - line-height: 1.6; |
| 25 | + max-width: 540px; |
| 26 | + margin: 0 auto 1.25rem; |
| 27 | + line-height: 1.5; |
28 | 28 | } |
29 | 29 |
|
30 | 30 | .home-hero-links { |
31 | 31 | display: flex; |
32 | | - gap: 0.75rem; |
| 32 | + gap: 0.6rem; |
33 | 33 | justify-content: center; |
34 | 34 | flex-wrap: wrap; |
35 | 35 | } |
36 | 36 |
|
37 | 37 | .home-btn { |
38 | 38 | display: inline-flex; |
39 | 39 | align-items: center; |
40 | | - gap: 0.4rem; |
41 | | - padding: 0.55rem 1.25rem; |
| 40 | + gap: 0.35rem; |
| 41 | + padding: 0.45rem 1rem; |
42 | 42 | border-radius: 6px; |
43 | | - font-size: 0.95rem; |
| 43 | + font-size: 0.9rem; |
44 | 44 | font-weight: 600; |
45 | 45 | text-decoration: none; |
46 | 46 | color: var(--primary); |
|
61 | 61 | /* intentionally empty — both buttons share the same style */ |
62 | 62 | } |
63 | 63 |
|
64 | | -/* ── Projects section ────────────────────────────────────────────────────── */ |
65 | | -.projects-section { |
66 | | - margin-bottom: 4rem; |
67 | | -} |
68 | | - |
| 64 | +/* ── Section titles ──────────────────────────────────────────────────────── */ |
| 65 | +.events-section-title, |
69 | 66 | .projects-section-title { |
70 | | - font-size: 1.4rem; |
| 67 | + font-size: 1.3rem; |
71 | 68 | font-weight: 700; |
72 | | - margin: 0 0 1.5rem; |
73 | | - padding-bottom: 0.5rem; |
| 69 | + margin: 0 0 1rem; |
| 70 | + padding-bottom: 0.4rem; |
74 | 71 | border-bottom: 2px solid var(--border); |
75 | 72 | } |
76 | 73 |
|
| 74 | +/* ── Events section ──────────────────────────────────────────────────────── */ |
| 75 | +.events-section { |
| 76 | + margin-bottom: 2.5rem; |
| 77 | +} |
| 78 | + |
| 79 | +.events-grid { |
| 80 | + display: grid; |
| 81 | + grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); |
| 82 | + gap: 1rem; |
| 83 | +} |
| 84 | + |
| 85 | +/* ── Event card ──────────────────────────────────────────────────────────── */ |
| 86 | +.event-card { |
| 87 | + display: flex; |
| 88 | + align-items: stretch; |
| 89 | + border: 1px solid var(--border); |
| 90 | + border-radius: 8px; |
| 91 | + text-decoration: none; |
| 92 | + color: var(--primary); |
| 93 | + background: var(--entry); |
| 94 | + overflow: hidden; |
| 95 | + transition: |
| 96 | + border-color 0.2s, |
| 97 | + box-shadow 0.2s, |
| 98 | + transform 0.15s; |
| 99 | + position: relative; |
| 100 | +} |
| 101 | + |
| 102 | +.event-card:hover { |
| 103 | + border-color: var(--primary); |
| 104 | + box-shadow: 0 3px 16px rgba(0, 0, 0, 0.1); |
| 105 | + transform: translateY(-2px); |
| 106 | +} |
| 107 | + |
| 108 | +.dark .event-card:hover { |
| 109 | + box-shadow: 0 3px 16px rgba(255, 255, 255, 0.06); |
| 110 | +} |
| 111 | + |
| 112 | +/* ── Accent strip on the left ────────────────────────────────────────────── */ |
| 113 | +.event-card-accent { |
| 114 | + flex: 0 0 5px; |
| 115 | + align-self: stretch; |
| 116 | +} |
| 117 | + |
| 118 | +.event-card-accent.recurring { |
| 119 | + background: linear-gradient(180deg, #3b82f6, #6366f1); |
| 120 | +} |
| 121 | + |
| 122 | +.event-card-accent.upcoming { |
| 123 | + background: linear-gradient(180deg, #10b981, #22d3ee); |
| 124 | +} |
| 125 | + |
| 126 | +.dark .event-card-accent.recurring { |
| 127 | + background: linear-gradient(180deg, #60a5fa, #818cf8); |
| 128 | +} |
| 129 | + |
| 130 | +.dark .event-card-accent.upcoming { |
| 131 | + background: linear-gradient(180deg, #34d399, #67e8f9); |
| 132 | +} |
| 133 | + |
| 134 | +/* ── Card body ───────────────────────────────────────────────────────────── */ |
| 135 | +.event-card-body { |
| 136 | + display: flex; |
| 137 | + flex-direction: column; |
| 138 | + padding: 1rem 1.25rem; |
| 139 | + flex: 1; |
| 140 | + min-width: 0; |
| 141 | +} |
| 142 | + |
| 143 | +.event-card-header { |
| 144 | + display: flex; |
| 145 | + align-items: center; |
| 146 | + gap: 0.6rem; |
| 147 | + margin-bottom: 0.35rem; |
| 148 | +} |
| 149 | + |
| 150 | +.event-card-header .event-card-badge { |
| 151 | + margin-left: auto; |
| 152 | +} |
| 153 | + |
| 154 | +.event-card-title { |
| 155 | + font-size: 1.05rem; |
| 156 | + font-weight: 700; |
| 157 | + margin: 0; |
| 158 | + line-height: 1.3; |
| 159 | + flex: 1; |
| 160 | + min-width: 0; |
| 161 | +} |
| 162 | + |
| 163 | +.event-card-date { |
| 164 | + font-size: 0.8rem; |
| 165 | + color: var(--secondary); |
| 166 | + margin-top: 0.4rem; |
| 167 | + font-weight: 500; |
| 168 | +} |
| 169 | + |
| 170 | +/* ── Event badges ────────────────────────────────────────────────────────── */ |
| 171 | +.event-card-badge { |
| 172 | + font-size: 0.65rem; |
| 173 | + font-weight: 700; |
| 174 | + text-transform: uppercase; |
| 175 | + letter-spacing: 0.06em; |
| 176 | + padding: 0.15rem 0.5rem; |
| 177 | + border-radius: 4px; |
| 178 | + white-space: nowrap; |
| 179 | +} |
| 180 | + |
| 181 | +.event-card-badge.recurring { |
| 182 | + background: rgba(59, 130, 246, 0.1); |
| 183 | + color: #2563eb; |
| 184 | + border: 1px solid rgba(59, 130, 246, 0.25); |
| 185 | +} |
| 186 | + |
| 187 | +.dark .event-card-badge.recurring { |
| 188 | + background: rgba(96, 165, 250, 0.12); |
| 189 | + color: #93c5fd; |
| 190 | + border-color: rgba(96, 165, 250, 0.3); |
| 191 | +} |
| 192 | + |
| 193 | +.event-card-badge.upcoming { |
| 194 | + background: rgba(16, 185, 129, 0.1); |
| 195 | + color: #059669; |
| 196 | + border: 1px solid rgba(16, 185, 129, 0.25); |
| 197 | +} |
| 198 | + |
| 199 | +.dark .event-card-badge.upcoming { |
| 200 | + background: rgba(52, 211, 153, 0.12); |
| 201 | + color: #6ee7b7; |
| 202 | + border-color: rgba(52, 211, 153, 0.3); |
| 203 | +} |
| 204 | + |
| 205 | +/* ── View all link ───────────────────────────────────────────────────────── */ |
| 206 | +.events-view-all { |
| 207 | + font-size: 0.9rem; |
| 208 | + font-weight: 600; |
| 209 | + color: var(--secondary); |
| 210 | + text-decoration: none; |
| 211 | + transition: |
| 212 | + color 0.15s, |
| 213 | + transform 0.15s; |
| 214 | + display: inline-block; |
| 215 | + margin-top: 1rem; |
| 216 | +} |
| 217 | + |
| 218 | +.events-view-all:hover { |
| 219 | + color: var(--primary); |
| 220 | + transform: translateX(3px); |
| 221 | +} |
| 222 | + |
| 223 | +.events-empty { |
| 224 | + font-size: 0.95rem; |
| 225 | + color: var(--secondary); |
| 226 | + margin-bottom: 1rem; |
| 227 | +} |
| 228 | + |
| 229 | +/* ── Projects section ────────────────────────────────────────────────────── */ |
| 230 | +.projects-section { |
| 231 | + margin-bottom: 3rem; |
| 232 | +} |
| 233 | + |
77 | 234 | .projects-grid { |
78 | 235 | display: grid; |
79 | 236 | grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); |
|
109 | 266 | margin-bottom: 0.6rem; |
110 | 267 | } |
111 | 268 |
|
| 269 | +.project-card-header .project-card-badge { |
| 270 | + margin-left: auto; |
| 271 | +} |
| 272 | + |
112 | 273 | .project-card-name { |
113 | 274 | font-size: 1.05rem; |
114 | 275 | font-weight: 700; |
115 | 276 | margin: 0; |
116 | 277 | line-height: 1.3; |
| 278 | + flex: 1; |
| 279 | + min-width: 0; |
117 | 280 | } |
118 | 281 |
|
119 | 282 | .project-card-badge { |
|
0 commit comments