Skip to content

Commit 7480af0

Browse files
committed
Analytics
1 parent 07dafab commit 7480af0

20 files changed

Lines changed: 453 additions & 149 deletions

assets/css/modern-dark-theme.css

Lines changed: 38 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -640,22 +640,50 @@
640640
background: rgb(71 85 105);
641641
}
642642

643-
/* —— Section nav dots —— */
644-
[data-theme="dark"] body.home-page .home-section-nav__dot {
645-
background-color: rgb(71 85 105);
643+
/* —— Why us section —— */
644+
[data-theme="dark"] body.home-page .home-why {
645+
background-color: rgb(15 23 42) !important;
646646
}
647647

648-
[data-theme="dark"] body.home-page .home-section-nav__dot:hover {
649-
background-color: rgb(148 163 184);
648+
[data-theme="dark"] body.home-page .home-why__eyebrow {
649+
background-color: rgb(30 41 59) !important;
650+
border-color: rgb(51 65 85) !important;
651+
color: rgb(203 213 225) !important;
652+
box-shadow: none;
650653
}
651654

652-
[data-theme="dark"] body.home-page .home-section-nav__dot.is-active {
653-
background-color: rgb(226 232 240);
655+
[data-theme="dark"] body.home-page .home-why__title,
656+
[data-theme="dark"] body.home-page .home-why__card-title {
657+
color: rgb(241 245 249) !important;
658+
}
659+
660+
[data-theme="dark"] body.home-page .home-why__intro,
661+
[data-theme="dark"] body.home-page .home-why__card-text {
662+
color: rgb(148 163 184) !important;
663+
}
664+
665+
[data-theme="dark"] body.home-page .home-why__card-text a {
666+
color: rgb(125 211 252) !important;
667+
}
668+
669+
[data-theme="dark"] body.home-page .home-why__card {
670+
background-color: rgb(30 41 59) !important;
671+
border-color: rgb(51 65 85) !important;
672+
}
673+
674+
[data-theme="dark"] body.home-page .home-why__card:hover {
675+
background-color: rgb(51 65 85 / 0.45) !important;
676+
border-color: rgb(71 85 105) !important;
677+
}
678+
679+
[data-theme="dark"] body.home-page .home-why__perk {
680+
background-color: rgb(30 41 59) !important;
681+
border-color: rgb(51 65 85) !important;
682+
color: rgb(203 213 225) !important;
654683
}
655684

656-
/* —— Why section bullet area —— */
657-
[data-theme="dark"] body.home-page #why .bg-gray-50\/80 {
658-
background-color: rgb(30 41 59 / 0.8) !important;
685+
[data-theme="dark"] body.home-page .home-why__perk-icon {
686+
color: rgb(52 211 153) !important;
659687
}
660688

661689
/* —— Breadcrumbs —— */

assets/css/tailwind-input.css

Lines changed: 51 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,21 @@
2323
filter: invert(1) brightness(1.1);
2424
}
2525

26-
/* Gentle snap on homepage when a section is near the viewport (no forced wheel paging) */
26+
/* Hero-only snap: gentle align when scrolling back to the top panel */
2727
@media (prefers-reduced-motion: no-preference) {
2828
html:has(body.home-page) {
2929
scroll-behavior: smooth;
3030
scroll-snap-type: y proximity;
3131
}
3232
}
3333

34-
.home-sections > section {
34+
.home-sections > section#hero {
3535
scroll-snap-align: start;
3636
scroll-snap-stop: normal;
3737
scroll-margin-top: var(--home-nav-height, 73px);
3838
}
3939

40-
.home-sections > footer.site-footer {
41-
scroll-snap-align: end;
42-
scroll-snap-stop: normal;
40+
.home-sections > section:not(#hero) {
4341
scroll-margin-top: var(--home-nav-height, 73px);
4442
}
4543

@@ -1012,16 +1010,58 @@
10121010
transition: opacity 0.4s ease;
10131011
}
10141012

1015-
.home-section-nav__dot {
1016-
@apply w-2 h-2 rounded-full bg-slate-300 border-0 p-0 cursor-pointer transition-all duration-300;
1013+
/* Why us section (#why) */
1014+
.home-why {
1015+
@apply bg-white;
1016+
}
1017+
1018+
.home-why__eyebrow {
1019+
@apply inline-block px-4 py-1.5 mb-6 text-sm font-medium text-slate-700 bg-white rounded-full border border-gray-200 shadow-sm;
1020+
}
1021+
1022+
.home-why__title {
1023+
@apply text-4xl font-bold tracking-tight text-slate-900 mb-6 md:text-[44px];
1024+
}
1025+
1026+
.home-why__intro {
1027+
@apply mx-auto mb-12 max-w-2xl text-lg leading-relaxed text-slate-500;
1028+
}
1029+
1030+
.home-why__card {
1031+
@apply rounded-2xl border border-gray-100 bg-gray-50/80 p-6 text-left transition-colors md:p-8;
1032+
@apply hover:border-slate-200 hover:bg-white;
1033+
}
1034+
1035+
.home-why__card-icon {
1036+
@apply mb-3 block text-2xl leading-none;
1037+
}
1038+
1039+
.home-why__card-title {
1040+
@apply mb-2 text-lg font-bold text-slate-900;
1041+
}
1042+
1043+
.home-why__card-text {
1044+
@apply text-[14px] leading-relaxed text-slate-500;
1045+
}
1046+
1047+
.home-why__card-text a {
1048+
@apply font-medium text-brand no-underline hover:underline;
1049+
}
1050+
1051+
.home-why__perks {
1052+
@apply mx-auto mt-10 grid max-w-5xl grid-cols-1 gap-3 px-4 sm:grid-cols-2;
1053+
}
1054+
1055+
.home-why__perk {
1056+
@apply flex items-center gap-3 rounded-xl border border-gray-100 bg-slate-50/90 px-4 py-3.5 text-left text-sm leading-snug text-slate-600;
10171057
}
10181058

1019-
.home-section-nav__dot:hover {
1020-
@apply bg-slate-500 scale-125;
1059+
.home-why__perk-icon {
1060+
@apply shrink-0 text-lg text-emerald-500;
10211061
}
10221062

1023-
.home-section-nav__dot.is-active {
1024-
@apply bg-brand;
1063+
.home-why__perk-text {
1064+
@apply min-w-0 flex-1;
10251065
}
10261066

10271067
.home-faq-scroll {

layouts/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
</head>
99
<body class="home-page bg-gray-50/50 text-slate-800 font-sans antialiased">
1010
{{ partial "skip-link.html" . }}
11-
{{ partial "home/section-nav.html" . }}
1211
{{ partial "home/nav.html" . }}
1312
<script>
1413
(function () {

layouts/partials/header.html

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@
121121
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
122122
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
123123
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#e5e9f4">
124-
<meta name="msapplication-TileColor" content="#e5e9f4">
125-
<meta name="theme-color" content="#e5e9f4">
124+
<meta name="msapplication-TileColor" content="#0f172a">
125+
<meta name="theme-color" content="#0f172a">
126126

127127
{{- /* Language meta and hreflang (use $locale from top of head) */ -}}
128128
<meta name="language" content="{{ $locale }}">
@@ -134,15 +134,19 @@
134134
<link rel="stylesheet" href="/css/theme.css">
135135
<script>
136136
(function() {
137-
const theme = localStorage.getItem('theme-preference') || 'light';
138-
document.documentElement.setAttribute('data-theme', theme);
137+
var theme = localStorage.getItem('theme-preference') || 'dark';
138+
document.documentElement.setAttribute('data-theme', theme);
139+
var meta = document.querySelector('meta[name="theme-color"]');
140+
if (meta) meta.setAttribute('content', theme === 'dark' ? '#0f172a' : '#e5e9f4');
139141
})();
140142
</script>
141143
{{- else -}}
142144
<script>
143145
(function() {
144-
var theme = localStorage.getItem('theme-preference') || 'light';
146+
var theme = localStorage.getItem('theme-preference') || 'dark';
145147
document.documentElement.setAttribute('data-theme', theme);
148+
var meta = document.querySelector('meta[name="theme-color"]');
149+
if (meta) meta.setAttribute('content', theme === 'dark' ? '#0f172a' : '#e5e9f4');
146150
})();
147151
</script>
148152
{{- end -}}

layouts/partials/home/category-section.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
{{- end -}}
1919
{{- $headingId := printf "category-heading-%s" $slug -}}
2020

21-
<section id="{{ $slug }}" data-section-label="{{ $cat.name }}" class="snap-start min-h-screen flex flex-col justify-start bg-gray-50/50 relative py-16" aria-labelledby="{{ $headingId }}">
21+
<section id="{{ $slug }}" data-section-label="{{ $cat.name }}" class="min-h-0 flex flex-col justify-start bg-gray-50/50 relative py-12 md:py-16" aria-labelledby="{{ $headingId }}">
2222
<div class="max-w-7xl mx-auto px-4 w-full h-full flex flex-col min-h-0">
2323
<div class="flex items-center justify-between mb-6 md:mb-8 pb-4 border-b border-gray-200 shrink-0">
2424
<div>
@@ -33,9 +33,9 @@ <h3 class="text-xs font-bold tracking-widest text-slate-500 uppercase m-0">{{ $s
3333
</div>
3434
</div>
3535

36-
<div class="grid grid-cols-1 md:grid-cols-3 gap-4 md:gap-6 flex-1 min-h-0 content-center">
36+
<div class="grid grid-cols-1 md:grid-cols-3 gap-4 md:gap-6 flex-1 min-h-0 items-start md:content-center">
3737
{{- range $i, $item := $previewItems -}}
38-
<div class="{{ if ge $i 3 }}hidden md:block{{ end }} min-h-0">
38+
<div class="{{ if ge $i 6 }}hidden md:block{{ end }} min-h-0">
3939
{{ partial "home/tool-card.html" (dict "item" $item "defaultPhosphorIcon" $defaultIcon "categoryName" $cat.name "source" (printf "home_%s" $slug)) }}
4040
</div>
4141
{{- end -}}

layouts/partials/home/cta-coffee.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{- $cta := hugo.Data.homepage.cta.coffee -}}
22
{{- if $cta -}}
3-
<section id="support" data-section-label="Support" class="snap-start min-h-[70vh] flex flex-col justify-center bg-gray-50 text-center relative pt-24 pb-16" aria-labelledby="coffee-heading">
3+
<section id="support" data-section-label="Support" class="flex flex-col justify-center bg-gray-50 text-center relative pt-24 pb-16" aria-labelledby="coffee-heading">
44
<div class="max-w-2xl mx-auto px-4 flex flex-col items-center w-full">
55
<h2 id="coffee-heading" class="text-4xl md:text-5xl font-bold text-slate-900 mb-6 m-0">{{ $cta.title | default "Buy us a Coffee" }}</h2>
66
<p class="text-lg text-slate-500 mb-10 m-0">{{ $cta.description }}</p>

layouts/partials/home/faq.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{- if hugo.Data.faq.faqs -}}
2-
<section id="faq" data-section-label="FAQ" class="snap-start min-h-screen flex flex-col bg-gray-50/50 relative pt-24 pb-12 home-faq" aria-labelledby="faq-heading">
2+
<section id="faq" data-section-label="FAQ" class="flex flex-col bg-gray-50/50 relative pt-24 pb-12 home-faq" aria-labelledby="faq-heading">
33
<div class="max-w-3xl mx-auto px-4 w-full h-full flex flex-col min-h-0">
44
<div class="text-center mb-6 shrink-0">
55
<span class="inline-block px-4 py-1.5 mb-4 text-sm font-medium text-slate-700 bg-white rounded-full border border-gray-200 shadow-sm">FAQ</span>

layouts/partials/home/footer.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
{{- $totalTools := 0 -}}
22
{{- range hugo.Data.home.categories }}{{ $totalTools = add $totalTools (len .items) }}{{ end -}}
33

4-
{{- $snap := .Scratch.Get "homeFooterSnap" | default true -}}
54
<footer
65
id="footer"
76
data-section-label="Footer"
8-
class="site-footer {{ if $snap }}snap-start {{ end }}"
9-
data-footer-home="{{ if $snap }}true{{ else }}false{{ end }}"
7+
class="site-footer"
8+
data-footer-home="true"
109
>
1110
<div class="site-footer__inner">
1211
<div class="site-footer__mast">
@@ -66,7 +65,7 @@
6665
</details>
6766
</nav>
6867

69-
{{- if $snap -}}
68+
{{- if .IsHome -}}
7069
<button type="button" class="site-footer__back-top" data-footer-back-top hidden>
7170
Back to top
7271
<i class="ph-bold ph-arrow-up" aria-hidden="true"></i>

layouts/partials/home/marquee.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{- $marquee := hugo.Data.homepage.marquee -}}
22
{{- if and $marquee $marquee.enabled $marquee.items -}}
3-
<section id="partners" data-section-label="Partners" class="snap-start py-12 border-t border-gray-200 bg-white overflow-hidden relative group" aria-label="{{ $marquee.label | default "Partners" }}">
3+
<section id="partners" data-section-label="Partners" class="py-12 border-t border-gray-200 bg-white overflow-hidden relative group" aria-label="{{ $marquee.label | default "Partners" }}">
44
<div class="text-center mb-8">
55
<p class="text-sm font-semibold tracking-widest text-slate-400 uppercase m-0">{{ $marquee.label }}</p>
66
</div>

layouts/partials/home/modern-page-end.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
{{ partial "home/breadcrumbs.html" $bc }}
1414
</div>
1515
{{- end -}}
16-
{{- $page.Scratch.Set "homeFooterSnap" false -}}
1716
{{ partial "home/footer.html" $page }}
1817
</main>
1918
{{ partial "cookie-consent.html" $page }}

0 commit comments

Comments
 (0)