|
156 | 156 |
|
157 | 157 | /* --- Hero --- */ |
158 | 158 | .hero { |
159 | | - display: flex; |
160 | | - flex-direction: column; |
| 159 | + display: grid; |
| 160 | + grid-template-columns: 1fr 1fr; |
161 | 161 | align-items: center; |
162 | | - text-align: center; |
163 | | - padding: 10rem 2rem 4rem; |
| 162 | + gap: 4rem; |
| 163 | + max-width: 1100px; |
| 164 | + margin: 0 auto; |
| 165 | + padding: 10rem 2rem 5rem; |
164 | 166 | } |
165 | 167 |
|
166 | | - .hero-icon { |
167 | | - width: 260px; |
| 168 | + .hero-text {} |
| 169 | + |
| 170 | + .hero-phone { |
| 171 | + width: 100%; |
| 172 | + max-width: 300px; |
168 | 173 | height: auto; |
169 | 174 | border-radius: 28px; |
170 | | - margin-bottom: 2rem; |
| 175 | + margin: 0 auto; |
171 | 176 | border: 1px solid var(--border); |
172 | 177 | box-shadow: 0 20px 60px rgba(26, 26, 46, 0.12); |
173 | 178 | } |
|
453 | 458 | .nav-link { display: none; } |
454 | 459 | .menu-btn { display: block; } |
455 | 460 |
|
456 | | - .hero { padding: 7rem 1.5rem 3rem; } |
457 | | - .hero-icon { width: 220px; } |
| 461 | + .hero { |
| 462 | + grid-template-columns: 1fr; |
| 463 | + text-align: center; |
| 464 | + padding: 7rem 1.5rem 3rem; |
| 465 | + } |
| 466 | + .hero-text { align-items: center; display: flex; flex-direction: column; } |
| 467 | + .hero-phone { order: -1; max-width: 240px; } |
458 | 468 |
|
459 | 469 | .questions { padding: 3.5rem 1.5rem; } |
460 | 470 | .questions-grid { |
|
479 | 489 | } |
480 | 490 |
|
481 | 491 | @media (max-width: 480px) { |
482 | | - .hero-icon { width: 180px; } |
| 492 | + .hero-phone { max-width: 200px; } |
483 | 493 | .screenshots-row figure { flex: 0 0 65%; } |
484 | 494 | } |
485 | 495 |
|
|
508 | 518 | </div> |
509 | 519 |
|
510 | 520 | <section class="hero"> |
511 | | - <img src="https://raw.githubusercontent.com/KashCal/KashCal/main/fastlane/metadata/android/en-US/images/phoneScreenshots/HomePage-with-AboutMe.png" |
512 | | - alt="KashCal calendar home screen" class="hero-icon"> |
513 | | - <h1>KashCal</h1> |
514 | | - <p class="hero-tagline">All your calendars on Android.</p> |
515 | | - <p class="hero-sources">iCloud · Nextcloud · Holidays · Birthdays</p> |
516 | | - <div class="hero-badges"> |
517 | | - <a href="https://f-droid.org/en/packages/org.onekash.kashcal/"> |
518 | | - <img src="https://fdroid.gitlab.io/artwork/badge/get-it-on.png" |
519 | | - alt="Get it on F-Droid" height="60"> |
520 | | - </a> |
521 | | - <a href="https://apt.izzysoft.de/fdroid/index/apk/org.onekash.kashcal"> |
522 | | - <img src="https://gitlab.com/IzzyOnDroid/repo/-/raw/master/assets/IzzyOnDroid.png" |
523 | | - alt="Get it on IzzyOnDroid" height="60"> |
524 | | - </a> |
| 521 | + <div class="hero-text"> |
| 522 | + <h1>KashCal</h1> |
| 523 | + <p class="hero-tagline">All your calendars on Android.</p> |
| 524 | + <p class="hero-sources">iCloud · Nextcloud · Holidays · Birthdays</p> |
| 525 | + <div class="hero-badges"> |
| 526 | + <a href="https://f-droid.org/en/packages/org.onekash.kashcal/"> |
| 527 | + <img src="https://fdroid.gitlab.io/artwork/badge/get-it-on.png" |
| 528 | + alt="Get it on F-Droid" height="60"> |
| 529 | + </a> |
| 530 | + <a href="https://apt.izzysoft.de/fdroid/index/apk/org.onekash.kashcal"> |
| 531 | + <img src="https://gitlab.com/IzzyOnDroid/repo/-/raw/master/assets/IzzyOnDroid.png" |
| 532 | + alt="Get it on IzzyOnDroid" height="60"> |
| 533 | + </a> |
| 534 | + </div> |
| 535 | + <p class="hero-apk">or <a href="https://github.com/KashCal/KashCal/releases/latest">download the APK</a></p> |
525 | 536 | </div> |
526 | | - <p class="hero-apk">or <a href="https://github.com/KashCal/KashCal/releases/latest">download the APK</a></p> |
| 537 | + <img src="https://raw.githubusercontent.com/KashCal/KashCal/main/fastlane/metadata/android/en-US/images/phoneScreenshots/HomePage-with-AboutMe.png" |
| 538 | + alt="KashCal calendar home screen" class="hero-phone"> |
527 | 539 | </section> |
528 | 540 |
|
529 | 541 | <section class="questions fade-in"> |
|
0 commit comments