Skip to content

Commit c95dc76

Browse files
committed
Website design
1 parent 532b962 commit c95dc76

1 file changed

Lines changed: 37 additions & 25 deletions

File tree

index.html

Lines changed: 37 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -156,18 +156,23 @@
156156

157157
/* --- Hero --- */
158158
.hero {
159-
display: flex;
160-
flex-direction: column;
159+
display: grid;
160+
grid-template-columns: 1fr 1fr;
161161
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;
164166
}
165167

166-
.hero-icon {
167-
width: 260px;
168+
.hero-text {}
169+
170+
.hero-phone {
171+
width: 100%;
172+
max-width: 300px;
168173
height: auto;
169174
border-radius: 28px;
170-
margin-bottom: 2rem;
175+
margin: 0 auto;
171176
border: 1px solid var(--border);
172177
box-shadow: 0 20px 60px rgba(26, 26, 46, 0.12);
173178
}
@@ -453,8 +458,13 @@
453458
.nav-link { display: none; }
454459
.menu-btn { display: block; }
455460

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; }
458468

459469
.questions { padding: 3.5rem 1.5rem; }
460470
.questions-grid {
@@ -479,7 +489,7 @@
479489
}
480490

481491
@media (max-width: 480px) {
482-
.hero-icon { width: 180px; }
492+
.hero-phone { max-width: 200px; }
483493
.screenshots-row figure { flex: 0 0 65%; }
484494
}
485495

@@ -508,22 +518,24 @@
508518
</div>
509519

510520
<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>
525536
</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">
527539
</section>
528540

529541
<section class="questions fade-in">

0 commit comments

Comments
 (0)