hazo_blog 2.16.0 → 2.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGE_LOG.md +23 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/jobs/maintenance-jobs.d.ts +14 -0
- package/dist/jobs/maintenance-jobs.d.ts.map +1 -1
- package/dist/jobs/maintenance-jobs.js +5 -1
- package/dist/repository/index.d.ts +25 -0
- package/dist/repository/index.d.ts.map +1 -1
- package/dist/repository/index.js +35 -0
- package/dist/repository/posts.d.ts +18 -0
- package/dist/repository/posts.d.ts.map +1 -1
- package/dist/repository/posts.js +27 -0
- package/dist/service/themes.d.ts +6 -5
- package/dist/service/themes.d.ts.map +1 -1
- package/dist/service/themes.js +18 -11
- package/dist/types/index.d.ts +11 -7
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +3 -1
- package/seeds/trades-homepage-seed.json +68 -0
- package/themes/starter-light/assets/screenshot.svg +17 -0
- package/themes/starter-light/assets/style.css +172 -0
- package/themes/starter-light/partials/contact-form.liquid +128 -0
- package/themes/starter-light/partials/footer.liquid +32 -0
- package/themes/starter-light/partials/header.liquid +17 -0
- package/themes/starter-light/partials/pagination.liquid +31 -0
- package/themes/starter-light/partials/post-card.liquid +17 -0
- package/themes/starter-light/partials/styles.liquid +180 -0
- package/themes/starter-light/sections/contact.liquid +16 -0
- package/themes/starter-light/sections/cta.liquid +8 -0
- package/themes/starter-light/sections/faq.liquid +11 -0
- package/themes/starter-light/sections/features.liquid +23 -0
- package/themes/starter-light/sections/hero.liquid +11 -0
- package/themes/starter-light/sections/image_text.liquid +9 -0
- package/themes/starter-light/sections/logos.liquid +14 -0
- package/themes/starter-light/sections/posts_grid.liquid +30 -0
- package/themes/starter-light/sections/quote_form.liquid +18 -0
- package/themes/starter-light/sections/stats.liquid +13 -0
- package/themes/starter-light/sections/testimonials.liquid +14 -0
- package/themes/starter-light/sections/text.liquid +6 -0
- package/themes/starter-light/templates/404.liquid +11 -0
- package/themes/starter-light/templates/about.liquid +15 -0
- package/themes/starter-light/templates/category.liquid +19 -0
- package/themes/starter-light/templates/contact.liquid +17 -0
- package/themes/starter-light/templates/home.liquid +16 -0
- package/themes/starter-light/templates/page.liquid +14 -0
- package/themes/starter-light/templates/post.liquid +22 -0
- package/themes/starter-light/templates/privacy.liquid +10 -0
- package/themes/starter-light/templates/tag.liquid +13 -0
- package/themes/starter-light/templates/terms.liquid +10 -0
- package/themes/starter-light/theme.json +23 -0
- package/themes/trades/assets/screenshot.svg +20 -0
- package/themes/trades/assets/style.css +696 -0
- package/themes/trades/partials/contact-form.liquid +128 -0
- package/themes/trades/partials/footer.liquid +32 -0
- package/themes/trades/partials/header.liquid +24 -0
- package/themes/trades/partials/pagination.liquid +31 -0
- package/themes/trades/partials/post-card.liquid +17 -0
- package/themes/trades/partials/styles.liquid +709 -0
- package/themes/trades/sections/contact.liquid +16 -0
- package/themes/trades/sections/cta.liquid +8 -0
- package/themes/trades/sections/faq.liquid +11 -0
- package/themes/trades/sections/features.liquid +23 -0
- package/themes/trades/sections/hero.liquid +11 -0
- package/themes/trades/sections/image_text.liquid +9 -0
- package/themes/trades/sections/logos.liquid +14 -0
- package/themes/trades/sections/posts_grid.liquid +30 -0
- package/themes/trades/sections/quote_form.liquid +18 -0
- package/themes/trades/sections/stats.liquid +13 -0
- package/themes/trades/sections/testimonials.liquid +14 -0
- package/themes/trades/sections/text.liquid +6 -0
- package/themes/trades/templates/404.liquid +11 -0
- package/themes/trades/templates/about.liquid +15 -0
- package/themes/trades/templates/category.liquid +19 -0
- package/themes/trades/templates/contact.liquid +17 -0
- package/themes/trades/templates/home.liquid +16 -0
- package/themes/trades/templates/page.liquid +14 -0
- package/themes/trades/templates/post.liquid +22 -0
- package/themes/trades/templates/privacy.liquid +10 -0
- package/themes/trades/templates/tag.liquid +13 -0
- package/themes/trades/templates/terms.liquid +10 -0
- package/themes/trades/theme.json +30 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="640" height="400" viewBox="0 0 640 400">
|
|
2
|
+
<rect width="640" height="400" fill="#ffffff"/>
|
|
3
|
+
<rect x="0" y="0" width="640" height="52" fill="#ffffff"/>
|
|
4
|
+
<line x1="0" y1="52" x2="640" y2="52" stroke="#e2e5e9"/>
|
|
5
|
+
<text x="24" y="33" font-family="sans-serif" font-size="18" font-weight="700" fill="#1f2328">Starter Light</text>
|
|
6
|
+
<rect x="460" y="22" width="50" height="8" rx="1" fill="#596673"/>
|
|
7
|
+
<rect x="530" y="22" width="50" height="8" rx="1" fill="#596673"/>
|
|
8
|
+
<rect x="0" y="52" width="640" height="130" fill="#f5f6f8"/>
|
|
9
|
+
<text x="24" y="110" font-family="sans-serif" font-size="26" font-weight="700" fill="#1f2328">Clean, minimal, fast</text>
|
|
10
|
+
<text x="24" y="135" font-family="sans-serif" font-size="13" fill="#596673">A plain starting point for any site.</text>
|
|
11
|
+
<rect x="24" y="150" width="90" height="24" rx="2" fill="#2f6fed"/>
|
|
12
|
+
<text x="38" y="166" font-family="sans-serif" font-size="11" fill="#ffffff">Get started</text>
|
|
13
|
+
<rect x="24" y="210" width="180" height="90" rx="2" fill="#ffffff" stroke="#e2e5e9"/>
|
|
14
|
+
<rect x="230" y="210" width="180" height="90" rx="2" fill="#ffffff" stroke="#e2e5e9"/>
|
|
15
|
+
<rect x="436" y="210" width="180" height="90" rx="2" fill="#ffffff" stroke="#e2e5e9"/>
|
|
16
|
+
<rect x="0" y="352" width="640" height="48" fill="#f5f6f8"/>
|
|
17
|
+
</svg>
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Starter Light theme — visual identity (hazo_blog_themes, ticket 07).
|
|
3
|
+
*
|
|
4
|
+
* Deliberately the OPPOSITE design language from "trades" (so switching
|
|
5
|
+
* between them in the gallery is obviously, visibly different — the
|
|
6
|
+
* ticket's own bar for a starter theme): plain system sans-serif
|
|
7
|
+
* everywhere (no webfont load at all), a neutral slate/blue palette
|
|
8
|
+
* instead of warm green/terracotta, tight compact spacing instead of
|
|
9
|
+
* editorial whitespace, square corners instead of rounded cards.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
:root {
|
|
13
|
+
--color-primary: #2f6fed; /* plain blue accent */
|
|
14
|
+
--color-primary-dark: #1f52b8;
|
|
15
|
+
--color-primary-tint: #eaf1ff;
|
|
16
|
+
--color-ink: #1f2328;
|
|
17
|
+
--color-ink-muted: #596673;
|
|
18
|
+
--color-paper: #ffffff;
|
|
19
|
+
--color-paper-alt: #f5f6f8;
|
|
20
|
+
--color-border: #e2e5e9;
|
|
21
|
+
|
|
22
|
+
--font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
23
|
+
--font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
24
|
+
--type-sm: 0.875rem;
|
|
25
|
+
--type-base: 1rem;
|
|
26
|
+
--type-lg: 1.125rem;
|
|
27
|
+
--type-xl: 1.5rem;
|
|
28
|
+
--type-2xl: 2rem;
|
|
29
|
+
--type-3xl: 2.5rem;
|
|
30
|
+
|
|
31
|
+
--space-1: 0.5rem;
|
|
32
|
+
--space-2: 0.75rem;
|
|
33
|
+
--space-3: 1rem;
|
|
34
|
+
--space-4: 1.5rem;
|
|
35
|
+
--space-5: 2.5rem;
|
|
36
|
+
--space-6: 3.5rem;
|
|
37
|
+
|
|
38
|
+
--radius-sm: 4px;
|
|
39
|
+
--radius-md: 4px;
|
|
40
|
+
--radius-lg: 4px;
|
|
41
|
+
--max-width: 1040px;
|
|
42
|
+
--shadow-card: 0 1px 2px rgba(31, 35, 40, 0.08);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
* {
|
|
46
|
+
box-sizing: border-box;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
body {
|
|
50
|
+
margin: 0;
|
|
51
|
+
background: var(--color-paper);
|
|
52
|
+
color: var(--color-ink);
|
|
53
|
+
font-family: var(--font-body);
|
|
54
|
+
font-size: var(--type-base);
|
|
55
|
+
line-height: 1.5;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
h1, h2, h3, h4, h5, h6 {
|
|
59
|
+
font-family: var(--font-heading);
|
|
60
|
+
font-weight: 700;
|
|
61
|
+
line-height: 1.25;
|
|
62
|
+
margin: 0 0 var(--space-2);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
p { margin: 0 0 var(--space-2); }
|
|
66
|
+
a { color: var(--color-primary); text-decoration: underline; }
|
|
67
|
+
a:hover { color: var(--color-primary-dark); }
|
|
68
|
+
img { max-width: 100%; display: block; }
|
|
69
|
+
|
|
70
|
+
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-3); }
|
|
71
|
+
|
|
72
|
+
.button {
|
|
73
|
+
display: inline-flex; align-items: center; gap: var(--space-1);
|
|
74
|
+
font-weight: 600; font-size: var(--type-sm);
|
|
75
|
+
padding: 0.6rem 1.1rem; border-radius: var(--radius-sm);
|
|
76
|
+
text-decoration: none; border: 1px solid transparent; cursor: pointer;
|
|
77
|
+
}
|
|
78
|
+
.button--primary { background: var(--color-primary); color: #fff; }
|
|
79
|
+
.button--primary:hover { background: var(--color-primary-dark); }
|
|
80
|
+
.button--secondary { background: transparent; color: var(--color-ink); border-color: var(--color-border); }
|
|
81
|
+
.button--secondary:hover { background: var(--color-paper-alt); }
|
|
82
|
+
|
|
83
|
+
.site-header { background: var(--color-paper); border-bottom: 1px solid var(--color-border); }
|
|
84
|
+
.site-header__inner { max-width: var(--max-width); margin: 0 auto; padding: var(--space-2) var(--space-3); display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
|
|
85
|
+
.site-header__brand { display: flex; align-items: center; gap: var(--space-1); color: var(--color-ink); text-decoration: none; }
|
|
86
|
+
.site-header__logo { height: 1.75rem; }
|
|
87
|
+
.site-header__title { font-size: var(--type-lg); font-weight: 700; }
|
|
88
|
+
.site-header nav ul { display: flex; flex-wrap: wrap; gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
|
|
89
|
+
.site-header nav a { color: var(--color-ink-muted); text-decoration: none; font-size: var(--type-sm); font-weight: 600; }
|
|
90
|
+
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--color-primary); }
|
|
91
|
+
.site-header nav ul ul { padding-left: var(--space-2); }
|
|
92
|
+
|
|
93
|
+
.site-footer { background: var(--color-paper-alt); border-top: 1px solid var(--color-border); margin-top: var(--space-6); }
|
|
94
|
+
.site-footer__inner { max-width: var(--max-width); margin: 0 auto; padding: var(--space-4) var(--space-3); display: grid; gap: var(--space-2); }
|
|
95
|
+
.site-footer__brand { display: flex; align-items: center; gap: var(--space-1); }
|
|
96
|
+
.site-footer__logo { height: 1.5rem; }
|
|
97
|
+
.site-footer__tagline { color: var(--color-ink-muted); margin: 0; }
|
|
98
|
+
.site-footer__nav ul { display: flex; flex-wrap: wrap; gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
|
|
99
|
+
.site-footer__nav a { color: var(--color-ink-muted); text-decoration: none; }
|
|
100
|
+
.site-footer__nav a:hover { color: var(--color-primary); }
|
|
101
|
+
.site-footer__social { display: flex; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
|
|
102
|
+
.site-footer__social a { color: var(--color-ink-muted); text-decoration: none; }
|
|
103
|
+
.site-footer__copyright { font-size: var(--type-sm); color: var(--color-ink-muted); margin: 0; }
|
|
104
|
+
|
|
105
|
+
.page-article, .post-article { max-width: 42rem; margin: 0 auto; padding: var(--space-5) var(--space-3); }
|
|
106
|
+
.page-article__title, .post-article__title { font-size: var(--type-2xl); }
|
|
107
|
+
.post-article__meta { color: var(--color-ink-muted); font-size: var(--type-sm); }
|
|
108
|
+
|
|
109
|
+
.section { padding: var(--space-5) var(--space-3); }
|
|
110
|
+
.section + .section { border-top: 1px solid var(--color-border); }
|
|
111
|
+
.section__inner, .section-hero__inner { max-width: var(--max-width); margin: 0 auto; }
|
|
112
|
+
|
|
113
|
+
.section-hero { background: var(--color-paper-alt); text-align: left; }
|
|
114
|
+
.section-hero__inner { max-width: 36rem; display: flex; flex-direction: column; gap: var(--space-2); }
|
|
115
|
+
.section-hero__heading { font-size: var(--type-3xl); }
|
|
116
|
+
.section-hero__subheading { color: var(--color-ink-muted); }
|
|
117
|
+
|
|
118
|
+
.section-text { max-width: 36rem; margin-left: auto; margin-right: auto; }
|
|
119
|
+
|
|
120
|
+
.section-image-text .section__inner { display: grid; gap: var(--space-3); align-items: center; }
|
|
121
|
+
@media (min-width: 48rem) { .section-image-text .section__inner { grid-template-columns: 1fr 1fr; } }
|
|
122
|
+
.section-image-text__image img { border-radius: var(--radius-sm); }
|
|
123
|
+
|
|
124
|
+
.section-posts-grid__list { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
|
|
125
|
+
.section-posts-grid__list--list { grid-template-columns: 1fr; }
|
|
126
|
+
.section-posts-grid__empty { color: var(--color-ink-muted); }
|
|
127
|
+
|
|
128
|
+
.section-cta { background: var(--color-primary); color: #fff; text-align: left; }
|
|
129
|
+
.section-cta .section__inner { display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-start; }
|
|
130
|
+
.section-cta__heading, .section-cta__subheading { color: #fff; }
|
|
131
|
+
|
|
132
|
+
.section-faq .section__inner { max-width: 36rem; }
|
|
133
|
+
.faq-item { border-bottom: 1px solid var(--color-border); padding: var(--space-2) 0; }
|
|
134
|
+
.faq-item summary { cursor: pointer; font-weight: 700; }
|
|
135
|
+
|
|
136
|
+
.section-quote-form, .section-contact { background: var(--color-paper-alt); }
|
|
137
|
+
.section-quote-form .section__inner, .section-contact .section__inner { max-width: 30rem; }
|
|
138
|
+
|
|
139
|
+
.section-testimonials__list { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
|
|
140
|
+
.testimonial-card { background: var(--color-paper); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: var(--space-3); }
|
|
141
|
+
.testimonial-card__rating { color: var(--color-primary); }
|
|
142
|
+
|
|
143
|
+
.section-logos__list { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
|
|
144
|
+
.section-logos__list img { max-height: 2rem; opacity: 0.8; }
|
|
145
|
+
|
|
146
|
+
.section-stats__list { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); }
|
|
147
|
+
.stat__number { font-size: var(--type-2xl); font-weight: 700; display: block; }
|
|
148
|
+
.stat__label { color: var(--color-ink-muted); font-size: var(--type-sm); }
|
|
149
|
+
|
|
150
|
+
.section-features__list { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
|
|
151
|
+
.feature-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: var(--radius-sm); background: var(--color-primary-tint); color: var(--color-primary-dark); font-size: var(--type-sm); font-weight: 700; margin-bottom: var(--space-1); text-transform: uppercase; }
|
|
152
|
+
.feature-card__title { font-size: var(--type-lg); }
|
|
153
|
+
|
|
154
|
+
.post-card { display: block; text-decoration: none; color: var(--color-ink); background: var(--color-paper); border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; }
|
|
155
|
+
.post-card__image img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
|
|
156
|
+
.post-card__body { padding: var(--space-2); }
|
|
157
|
+
.post-card__title { font-size: var(--type-lg); margin-bottom: var(--space-1); }
|
|
158
|
+
.post-card__excerpt { color: var(--color-ink-muted); font-size: var(--type-sm); margin: 0; }
|
|
159
|
+
|
|
160
|
+
.pagination { display: flex; justify-content: center; gap: var(--space-1); padding: var(--space-3); list-style: none; margin: 0; }
|
|
161
|
+
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; height: 2rem; padding: 0 0.5rem; border-radius: var(--radius-sm); text-decoration: none; color: var(--color-ink); }
|
|
162
|
+
.pagination a:hover { background: var(--color-paper-alt); }
|
|
163
|
+
.pagination [aria-current="page"] { background: var(--color-primary); color: #fff; }
|
|
164
|
+
|
|
165
|
+
.form-field { display: block; margin-bottom: var(--space-2); }
|
|
166
|
+
.form-field label { display: block; font-weight: 600; font-size: var(--type-sm); margin-bottom: 0.3rem; }
|
|
167
|
+
.form-field input, .form-field textarea { width: 100%; font-family: var(--font-body); font-size: var(--type-base); padding: 0.55rem 0.7rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: #fff; color: var(--color-ink); }
|
|
168
|
+
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; }
|
|
169
|
+
.form-status { min-height: 1.25rem; font-size: var(--type-sm); color: var(--color-ink-muted); margin-top: var(--space-1); }
|
|
170
|
+
|
|
171
|
+
.error-page { max-width: 28rem; margin: 0 auto; padding: var(--space-6) var(--space-3); text-align: left; }
|
|
172
|
+
.error-page__eyebrow { color: var(--color-primary); font-weight: 700; }
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
{% comment %}
|
|
2
|
+
partials/contact-form.liquid — the real <form> ticket 07 asks for,
|
|
3
|
+
wired to ticket 14's POST /api/contact (platform's app/api/contact/route.ts).
|
|
4
|
+
Request body IS EXACTLY: { name, email, message, turnstileToken, page }
|
|
5
|
+
(page optional) — read from that route's own `ContactFormSchema` before
|
|
6
|
+
writing this. Response: { success: true } | { success: false, errors:
|
|
7
|
+
[{ field, message }] }.
|
|
8
|
+
|
|
9
|
+
Submits via fetch()+JSON from an inline <script>, NOT a native HTML form
|
|
10
|
+
POST — the API expects a JSON body (`request.json()`), which a plain
|
|
11
|
+
`<form method="post">` cannot send. This is ordinary CLIENT-SIDE
|
|
12
|
+
(browser) JavaScript shipped as part of the page's OUTPUT — not Liquid
|
|
13
|
+
executing it — so it is no different, trust-boundary-wise, from any
|
|
14
|
+
other inline <script> a real theme ships; it has no access to anything
|
|
15
|
+
the render engine itself didn't already put in this HTML.
|
|
16
|
+
|
|
17
|
+
Turnstile: the widget needs a PUBLIC site key reaching this template.
|
|
18
|
+
hazo_blog/render's RenderContext has no field for it (only a SERVER-side
|
|
19
|
+
`TURNSTILE_SECRET_KEY` env var exists today, read by lib/turnstile.ts —
|
|
20
|
+
never exposed to any render context), so this theme declares its own
|
|
21
|
+
`turnstileSiteKey` theme.json setting as the carrier. `settings` isn't
|
|
22
|
+
threaded into RenderContext yet either (see this package's README
|
|
23
|
+
"Known gaps") — so `{{ settings.turnstileSiteKey }}` below renders empty
|
|
24
|
+
today, same graceful no-op every other forward-compatible reference in
|
|
25
|
+
this theme uses. With no site key, the widget div renders inert (no
|
|
26
|
+
challenge), and the form still submits with an empty `turnstileToken` —
|
|
27
|
+
`/api/contact` fails OPEN in non-production (see lib/turnstile.ts) and
|
|
28
|
+
fails CLOSED in production, exactly as that route's own contract
|
|
29
|
+
describes; nothing in this template needs to special-case either case.
|
|
30
|
+
|
|
31
|
+
`form_id` is passed in by the caller (sections/contact.liquid passes the
|
|
32
|
+
section's own `key`; templates/contact.liquid passes a static id) so two
|
|
33
|
+
contact forms on the same page (e.g. a "contact" section plus the
|
|
34
|
+
dedicated contact page) never collide.
|
|
35
|
+
|
|
36
|
+
No `integrity`/`crossorigin` (SRI) on the Turnstile script below —
|
|
37
|
+
deliberate, not an oversight: Cloudflare's own embedding docs say not to
|
|
38
|
+
pin this URL with a subresource-integrity hash, because its response
|
|
39
|
+
varies server-side (challenge/rotation logic) and a fixed hash would
|
|
40
|
+
break the widget the next time Cloudflare updates it. Same reasoning
|
|
41
|
+
applies to the Google Fonts CSS `<link>` in partials/header.liquid (its
|
|
42
|
+
response varies by request `User-Agent`).
|
|
43
|
+
{% endcomment %}
|
|
44
|
+
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js" async defer></script>
|
|
45
|
+
<form class="contact-form" data-contact-form method="post" action="/api/contact" novalidate>
|
|
46
|
+
<div class="form-field">
|
|
47
|
+
<label for="contact-name-{{ form_id | escape }}">Name</label>
|
|
48
|
+
<input type="text" id="contact-name-{{ form_id | escape }}" name="name" autocomplete="name" required maxlength="200">
|
|
49
|
+
</div>
|
|
50
|
+
<div class="form-field">
|
|
51
|
+
<label for="contact-email-{{ form_id | escape }}">Email</label>
|
|
52
|
+
<input type="email" id="contact-email-{{ form_id | escape }}" name="email" autocomplete="email" required maxlength="254">
|
|
53
|
+
</div>
|
|
54
|
+
<div class="form-field">
|
|
55
|
+
<label for="contact-message-{{ form_id | escape }}">How can we help?</label>
|
|
56
|
+
<textarea id="contact-message-{{ form_id | escape }}" name="message" rows="5" required minlength="10" maxlength="5000"></textarea>
|
|
57
|
+
</div>
|
|
58
|
+
{% if settings.turnstileSiteKey != blank %}
|
|
59
|
+
<div class="cf-turnstile" data-sitekey="{{ settings.turnstileSiteKey | escape }}"></div>
|
|
60
|
+
{% endif %}
|
|
61
|
+
<input type="hidden" name="turnstileToken" value="">
|
|
62
|
+
<button type="submit" class="button button--primary" data-contact-submit>Send message</button>
|
|
63
|
+
<p class="form-status" data-contact-status role="status" aria-live="polite"></p>
|
|
64
|
+
</form>
|
|
65
|
+
<script>
|
|
66
|
+
(function () {
|
|
67
|
+
function turnstileTokenFor(form) {
|
|
68
|
+
var widget = form.querySelector(".cf-turnstile");
|
|
69
|
+
if (widget && window.turnstile && typeof window.turnstile.getResponse === "function") {
|
|
70
|
+
try {
|
|
71
|
+
return window.turnstile.getResponse(widget) || "";
|
|
72
|
+
} catch (e) {
|
|
73
|
+
return "";
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
var hidden = form.querySelector('input[name="turnstileToken"]');
|
|
77
|
+
return hidden ? hidden.value : "";
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
function bindContactForm(form) {
|
|
81
|
+
form.setAttribute("data-bound", "true");
|
|
82
|
+
form.addEventListener("submit", function (event) {
|
|
83
|
+
event.preventDefault();
|
|
84
|
+
var statusEl = form.querySelector("[data-contact-status]");
|
|
85
|
+
var submitBtn = form.querySelector("[data-contact-submit]");
|
|
86
|
+
var payload = {
|
|
87
|
+
name: form.elements.name.value,
|
|
88
|
+
email: form.elements.email.value,
|
|
89
|
+
message: form.elements.message.value,
|
|
90
|
+
turnstileToken: turnstileTokenFor(form),
|
|
91
|
+
page: window.location.href,
|
|
92
|
+
};
|
|
93
|
+
submitBtn.disabled = true;
|
|
94
|
+
statusEl.textContent = "Sending…";
|
|
95
|
+
fetch("/api/contact", {
|
|
96
|
+
method: "POST",
|
|
97
|
+
headers: { "Content-Type": "application/json" },
|
|
98
|
+
body: JSON.stringify(payload),
|
|
99
|
+
})
|
|
100
|
+
.then(function (res) {
|
|
101
|
+
return res.json().then(function (data) {
|
|
102
|
+
return { ok: res.ok, data: data };
|
|
103
|
+
});
|
|
104
|
+
})
|
|
105
|
+
.then(function (result) {
|
|
106
|
+
if (result.data && result.data.success) {
|
|
107
|
+
statusEl.textContent = "Thanks — we'll be in touch soon.";
|
|
108
|
+
form.reset();
|
|
109
|
+
} else {
|
|
110
|
+
var first = result.data && result.data.errors && result.data.errors[0];
|
|
111
|
+
statusEl.textContent = (first && first.message) || "Something went wrong. Please try again.";
|
|
112
|
+
}
|
|
113
|
+
})
|
|
114
|
+
.catch(function () {
|
|
115
|
+
statusEl.textContent = "Something went wrong. Please try again.";
|
|
116
|
+
})
|
|
117
|
+
.finally(function () {
|
|
118
|
+
submitBtn.disabled = false;
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
var forms = document.querySelectorAll('[data-contact-form]:not([data-bound])');
|
|
124
|
+
for (var i = 0; i < forms.length; i++) {
|
|
125
|
+
bindContactForm(forms[i]);
|
|
126
|
+
}
|
|
127
|
+
})();
|
|
128
|
+
</script>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{% comment %}
|
|
2
|
+
partials/footer.liquid — site chrome (see partials/header.liquid's own
|
|
3
|
+
comment on why there's no <head>/<html> here). Social links come from
|
|
4
|
+
`site.social` (ticket 09's site identity, already wired into
|
|
5
|
+
RenderContext today) rather than this theme's own `settings.social*`
|
|
6
|
+
fields — see this package's README "Known gaps" section for why
|
|
7
|
+
theme.json still declares socialFacebook/Instagram/Twitter/Linkedin
|
|
8
|
+
settings per the ticket's own checklist even though `site.social` is the
|
|
9
|
+
field that actually renders right now.
|
|
10
|
+
{% endcomment %}
|
|
11
|
+
<footer class="site-footer">
|
|
12
|
+
<div class="site-footer__inner">
|
|
13
|
+
<div class="site-footer__brand">
|
|
14
|
+
{% assign footer_logo = settings.logo | default: site.logo %}
|
|
15
|
+
{% if footer_logo != blank %}<img class="site-footer__logo" src="{{ footer_logo | escape }}" alt="{{ site.title | escape }}">{% endif %}
|
|
16
|
+
<div>
|
|
17
|
+
<strong>{{ site.title }}</strong>
|
|
18
|
+
{% if site.tagline != blank %}<p class="site-footer__tagline">{{ site.tagline }}</p>{% endif %}
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
<div class="site-footer__nav">{% menu "footer" %}</div>
|
|
22
|
+
{% if site.social %}
|
|
23
|
+
<ul class="site-footer__social">
|
|
24
|
+
{% if site.social.facebook != blank %}<li><a href="{{ site.social.facebook | escape }}">Facebook</a></li>{% endif %}
|
|
25
|
+
{% if site.social.instagram != blank %}<li><a href="{{ site.social.instagram | escape }}">Instagram</a></li>{% endif %}
|
|
26
|
+
{% if site.social.twitter != blank %}<li><a href="{{ site.social.twitter | escape }}">Twitter</a></li>{% endif %}
|
|
27
|
+
{% if site.social.linkedin != blank %}<li><a href="{{ site.social.linkedin | escape }}">LinkedIn</a></li>{% endif %}
|
|
28
|
+
</ul>
|
|
29
|
+
{% endif %}
|
|
30
|
+
<p class="site-footer__copyright">© {{ "now" | date: "%Y" }} {{ site.title }}. All rights reserved.</p>
|
|
31
|
+
</div>
|
|
32
|
+
</footer>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{% comment %}
|
|
2
|
+
partials/header.liquid — see the trades theme's own partials/header.liquid
|
|
3
|
+
for the full "<head> convention"/settings-forward-compat rationale; this
|
|
4
|
+
theme follows the exact same pattern, minus any webfont <link> (system
|
|
5
|
+
fonts only — see assets/style.css's own header comment).
|
|
6
|
+
{% endcomment %}
|
|
7
|
+
{% include "partials/styles" %}
|
|
8
|
+
<header class="site-header">
|
|
9
|
+
<div class="site-header__inner">
|
|
10
|
+
<a class="site-header__brand" href="/">
|
|
11
|
+
{% assign header_logo = settings.logo | default: site.logo %}
|
|
12
|
+
{% if header_logo != blank %}<img class="site-header__logo" src="{{ header_logo | escape }}" alt="{{ site.title | escape }}">{% endif %}
|
|
13
|
+
<span class="site-header__title">{{ site.title }}</span>
|
|
14
|
+
</a>
|
|
15
|
+
{% menu "main" %}
|
|
16
|
+
</div>
|
|
17
|
+
</header>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{% comment %}
|
|
2
|
+
partials/pagination.liquid — prev/next + numbered page links. Expects a
|
|
3
|
+
`pagination` object in scope: `{ currentPage, totalPages, baseUrl }`
|
|
4
|
+
(`baseUrl` with no trailing slash, page numbers appended as
|
|
5
|
+
`{{ baseUrl }}/page/{{ n }}`). Nothing in RenderContext (hazo_blog/render's
|
|
6
|
+
types.ts) carries a `pagination` key yet — no template below calls this
|
|
7
|
+
partial today; it exists per this theme's own checklist requirement and
|
|
8
|
+
renders nothing (same "missing data is a no-op" convention every other
|
|
9
|
+
platform render feature in this engine uses) until a future ticket wires
|
|
10
|
+
real paginated archive data into the render context. See this package's
|
|
11
|
+
README "Known gaps" section.
|
|
12
|
+
{% endcomment %}
|
|
13
|
+
{% if pagination and pagination.totalPages > 1 %}
|
|
14
|
+
<nav aria-label="Pagination">
|
|
15
|
+
<ul class="pagination">
|
|
16
|
+
{% if pagination.currentPage > 1 %}
|
|
17
|
+
<li><a href="{{ pagination.baseUrl }}/page/{{ pagination.currentPage | minus: 1 }}" rel="prev">← Prev</a></li>
|
|
18
|
+
{% endif %}
|
|
19
|
+
{% for n in (1..pagination.totalPages) %}
|
|
20
|
+
{% if n == pagination.currentPage %}
|
|
21
|
+
<li><span aria-current="page">{{ n }}</span></li>
|
|
22
|
+
{% else %}
|
|
23
|
+
<li><a href="{{ pagination.baseUrl }}/page/{{ n }}">{{ n }}</a></li>
|
|
24
|
+
{% endif %}
|
|
25
|
+
{% endfor %}
|
|
26
|
+
{% if pagination.currentPage < pagination.totalPages %}
|
|
27
|
+
<li><a href="{{ pagination.baseUrl }}/page/{{ pagination.currentPage | plus: 1 }}" rel="next">Next →</a></li>
|
|
28
|
+
{% endif %}
|
|
29
|
+
</ul>
|
|
30
|
+
</nav>
|
|
31
|
+
{% endif %}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{% comment %}
|
|
2
|
+
partials/post-card.liquid — one post summary card. Expects `post` in
|
|
3
|
+
scope with `title`/`url`/`excerpt`/`image` (same shape as
|
|
4
|
+
`RenderRelatedPost` in hazo_blog/render's types.ts). Included with
|
|
5
|
+
`{% include "partials/post-card", post: item %}` by anything that has a
|
|
6
|
+
list of these to render — today that's only sections/posts_grid.liquid's
|
|
7
|
+
own (currently data-less) loop; see that file's header comment for why.
|
|
8
|
+
{% endcomment %}
|
|
9
|
+
<a class="post-card" href="{{ post.url | escape }}">
|
|
10
|
+
{% if post.image != blank %}
|
|
11
|
+
<div class="post-card__image"><img src="{{ post.image | escape }}" alt="{{ post.title | escape }}"></div>
|
|
12
|
+
{% endif %}
|
|
13
|
+
<div class="post-card__body">
|
|
14
|
+
<h3 class="post-card__title">{{ post.title }}</h3>
|
|
15
|
+
{% if post.excerpt != blank %}<p class="post-card__excerpt">{{ post.excerpt }}</p>{% endif %}
|
|
16
|
+
</div>
|
|
17
|
+
</a>
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
{% comment %}
|
|
2
|
+
partials/styles.liquid — same inlining rationale as the trades
|
|
3
|
+
theme's own partials/styles.liquid (no theme-asset HTTP route wired
|
|
4
|
+
yet). No webfont <link> here at all — Starter Light intentionally
|
|
5
|
+
uses the system font stack only.
|
|
6
|
+
{% endcomment %}
|
|
7
|
+
<style>
|
|
8
|
+
/*
|
|
9
|
+
* Starter Light theme — visual identity (hazo_blog_themes, ticket 07).
|
|
10
|
+
*
|
|
11
|
+
* Deliberately the OPPOSITE design language from "trades" (so switching
|
|
12
|
+
* between them in the gallery is obviously, visibly different — the
|
|
13
|
+
* ticket's own bar for a starter theme): plain system sans-serif
|
|
14
|
+
* everywhere (no webfont load at all), a neutral slate/blue palette
|
|
15
|
+
* instead of warm green/terracotta, tight compact spacing instead of
|
|
16
|
+
* editorial whitespace, square corners instead of rounded cards.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
:root {
|
|
20
|
+
--color-primary: #2f6fed; /* plain blue accent */
|
|
21
|
+
--color-primary-dark: #1f52b8;
|
|
22
|
+
--color-primary-tint: #eaf1ff;
|
|
23
|
+
--color-ink: #1f2328;
|
|
24
|
+
--color-ink-muted: #596673;
|
|
25
|
+
--color-paper: #ffffff;
|
|
26
|
+
--color-paper-alt: #f5f6f8;
|
|
27
|
+
--color-border: #e2e5e9;
|
|
28
|
+
|
|
29
|
+
--font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
30
|
+
--font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
31
|
+
--type-sm: 0.875rem;
|
|
32
|
+
--type-base: 1rem;
|
|
33
|
+
--type-lg: 1.125rem;
|
|
34
|
+
--type-xl: 1.5rem;
|
|
35
|
+
--type-2xl: 2rem;
|
|
36
|
+
--type-3xl: 2.5rem;
|
|
37
|
+
|
|
38
|
+
--space-1: 0.5rem;
|
|
39
|
+
--space-2: 0.75rem;
|
|
40
|
+
--space-3: 1rem;
|
|
41
|
+
--space-4: 1.5rem;
|
|
42
|
+
--space-5: 2.5rem;
|
|
43
|
+
--space-6: 3.5rem;
|
|
44
|
+
|
|
45
|
+
--radius-sm: 4px;
|
|
46
|
+
--radius-md: 4px;
|
|
47
|
+
--radius-lg: 4px;
|
|
48
|
+
--max-width: 1040px;
|
|
49
|
+
--shadow-card: 0 1px 2px rgba(31, 35, 40, 0.08);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
* {
|
|
53
|
+
box-sizing: border-box;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
body {
|
|
57
|
+
margin: 0;
|
|
58
|
+
background: var(--color-paper);
|
|
59
|
+
color: var(--color-ink);
|
|
60
|
+
font-family: var(--font-body);
|
|
61
|
+
font-size: var(--type-base);
|
|
62
|
+
line-height: 1.5;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
h1, h2, h3, h4, h5, h6 {
|
|
66
|
+
font-family: var(--font-heading);
|
|
67
|
+
font-weight: 700;
|
|
68
|
+
line-height: 1.25;
|
|
69
|
+
margin: 0 0 var(--space-2);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
p { margin: 0 0 var(--space-2); }
|
|
73
|
+
a { color: var(--color-primary); text-decoration: underline; }
|
|
74
|
+
a:hover { color: var(--color-primary-dark); }
|
|
75
|
+
img { max-width: 100%; display: block; }
|
|
76
|
+
|
|
77
|
+
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-3); }
|
|
78
|
+
|
|
79
|
+
.button {
|
|
80
|
+
display: inline-flex; align-items: center; gap: var(--space-1);
|
|
81
|
+
font-weight: 600; font-size: var(--type-sm);
|
|
82
|
+
padding: 0.6rem 1.1rem; border-radius: var(--radius-sm);
|
|
83
|
+
text-decoration: none; border: 1px solid transparent; cursor: pointer;
|
|
84
|
+
}
|
|
85
|
+
.button--primary { background: var(--color-primary); color: #fff; }
|
|
86
|
+
.button--primary:hover { background: var(--color-primary-dark); }
|
|
87
|
+
.button--secondary { background: transparent; color: var(--color-ink); border-color: var(--color-border); }
|
|
88
|
+
.button--secondary:hover { background: var(--color-paper-alt); }
|
|
89
|
+
|
|
90
|
+
.site-header { background: var(--color-paper); border-bottom: 1px solid var(--color-border); }
|
|
91
|
+
.site-header__inner { max-width: var(--max-width); margin: 0 auto; padding: var(--space-2) var(--space-3); display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
|
|
92
|
+
.site-header__brand { display: flex; align-items: center; gap: var(--space-1); color: var(--color-ink); text-decoration: none; }
|
|
93
|
+
.site-header__logo { height: 1.75rem; }
|
|
94
|
+
.site-header__title { font-size: var(--type-lg); font-weight: 700; }
|
|
95
|
+
.site-header nav ul { display: flex; flex-wrap: wrap; gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
|
|
96
|
+
.site-header nav a { color: var(--color-ink-muted); text-decoration: none; font-size: var(--type-sm); font-weight: 600; }
|
|
97
|
+
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--color-primary); }
|
|
98
|
+
.site-header nav ul ul { padding-left: var(--space-2); }
|
|
99
|
+
|
|
100
|
+
.site-footer { background: var(--color-paper-alt); border-top: 1px solid var(--color-border); margin-top: var(--space-6); }
|
|
101
|
+
.site-footer__inner { max-width: var(--max-width); margin: 0 auto; padding: var(--space-4) var(--space-3); display: grid; gap: var(--space-2); }
|
|
102
|
+
.site-footer__brand { display: flex; align-items: center; gap: var(--space-1); }
|
|
103
|
+
.site-footer__logo { height: 1.5rem; }
|
|
104
|
+
.site-footer__tagline { color: var(--color-ink-muted); margin: 0; }
|
|
105
|
+
.site-footer__nav ul { display: flex; flex-wrap: wrap; gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
|
|
106
|
+
.site-footer__nav a { color: var(--color-ink-muted); text-decoration: none; }
|
|
107
|
+
.site-footer__nav a:hover { color: var(--color-primary); }
|
|
108
|
+
.site-footer__social { display: flex; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
|
|
109
|
+
.site-footer__social a { color: var(--color-ink-muted); text-decoration: none; }
|
|
110
|
+
.site-footer__copyright { font-size: var(--type-sm); color: var(--color-ink-muted); margin: 0; }
|
|
111
|
+
|
|
112
|
+
.page-article, .post-article { max-width: 42rem; margin: 0 auto; padding: var(--space-5) var(--space-3); }
|
|
113
|
+
.page-article__title, .post-article__title { font-size: var(--type-2xl); }
|
|
114
|
+
.post-article__meta { color: var(--color-ink-muted); font-size: var(--type-sm); }
|
|
115
|
+
|
|
116
|
+
.section { padding: var(--space-5) var(--space-3); }
|
|
117
|
+
.section + .section { border-top: 1px solid var(--color-border); }
|
|
118
|
+
.section__inner, .section-hero__inner { max-width: var(--max-width); margin: 0 auto; }
|
|
119
|
+
|
|
120
|
+
.section-hero { background: var(--color-paper-alt); text-align: left; }
|
|
121
|
+
.section-hero__inner { max-width: 36rem; display: flex; flex-direction: column; gap: var(--space-2); }
|
|
122
|
+
.section-hero__heading { font-size: var(--type-3xl); }
|
|
123
|
+
.section-hero__subheading { color: var(--color-ink-muted); }
|
|
124
|
+
|
|
125
|
+
.section-text { max-width: 36rem; margin-left: auto; margin-right: auto; }
|
|
126
|
+
|
|
127
|
+
.section-image-text .section__inner { display: grid; gap: var(--space-3); align-items: center; }
|
|
128
|
+
@media (min-width: 48rem) { .section-image-text .section__inner { grid-template-columns: 1fr 1fr; } }
|
|
129
|
+
.section-image-text__image img { border-radius: var(--radius-sm); }
|
|
130
|
+
|
|
131
|
+
.section-posts-grid__list { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
|
|
132
|
+
.section-posts-grid__list--list { grid-template-columns: 1fr; }
|
|
133
|
+
.section-posts-grid__empty { color: var(--color-ink-muted); }
|
|
134
|
+
|
|
135
|
+
.section-cta { background: var(--color-primary); color: #fff; text-align: left; }
|
|
136
|
+
.section-cta .section__inner { display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-start; }
|
|
137
|
+
.section-cta__heading, .section-cta__subheading { color: #fff; }
|
|
138
|
+
|
|
139
|
+
.section-faq .section__inner { max-width: 36rem; }
|
|
140
|
+
.faq-item { border-bottom: 1px solid var(--color-border); padding: var(--space-2) 0; }
|
|
141
|
+
.faq-item summary { cursor: pointer; font-weight: 700; }
|
|
142
|
+
|
|
143
|
+
.section-quote-form, .section-contact { background: var(--color-paper-alt); }
|
|
144
|
+
.section-quote-form .section__inner, .section-contact .section__inner { max-width: 30rem; }
|
|
145
|
+
|
|
146
|
+
.section-testimonials__list { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
|
|
147
|
+
.testimonial-card { background: var(--color-paper); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: var(--space-3); }
|
|
148
|
+
.testimonial-card__rating { color: var(--color-primary); }
|
|
149
|
+
|
|
150
|
+
.section-logos__list { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
|
|
151
|
+
.section-logos__list img { max-height: 2rem; opacity: 0.8; }
|
|
152
|
+
|
|
153
|
+
.section-stats__list { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); }
|
|
154
|
+
.stat__number { font-size: var(--type-2xl); font-weight: 700; display: block; }
|
|
155
|
+
.stat__label { color: var(--color-ink-muted); font-size: var(--type-sm); }
|
|
156
|
+
|
|
157
|
+
.section-features__list { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
|
|
158
|
+
.feature-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: var(--radius-sm); background: var(--color-primary-tint); color: var(--color-primary-dark); font-size: var(--type-sm); font-weight: 700; margin-bottom: var(--space-1); text-transform: uppercase; }
|
|
159
|
+
.feature-card__title { font-size: var(--type-lg); }
|
|
160
|
+
|
|
161
|
+
.post-card { display: block; text-decoration: none; color: var(--color-ink); background: var(--color-paper); border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; }
|
|
162
|
+
.post-card__image img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
|
|
163
|
+
.post-card__body { padding: var(--space-2); }
|
|
164
|
+
.post-card__title { font-size: var(--type-lg); margin-bottom: var(--space-1); }
|
|
165
|
+
.post-card__excerpt { color: var(--color-ink-muted); font-size: var(--type-sm); margin: 0; }
|
|
166
|
+
|
|
167
|
+
.pagination { display: flex; justify-content: center; gap: var(--space-1); padding: var(--space-3); list-style: none; margin: 0; }
|
|
168
|
+
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; height: 2rem; padding: 0 0.5rem; border-radius: var(--radius-sm); text-decoration: none; color: var(--color-ink); }
|
|
169
|
+
.pagination a:hover { background: var(--color-paper-alt); }
|
|
170
|
+
.pagination [aria-current="page"] { background: var(--color-primary); color: #fff; }
|
|
171
|
+
|
|
172
|
+
.form-field { display: block; margin-bottom: var(--space-2); }
|
|
173
|
+
.form-field label { display: block; font-weight: 600; font-size: var(--type-sm); margin-bottom: 0.3rem; }
|
|
174
|
+
.form-field input, .form-field textarea { width: 100%; font-family: var(--font-body); font-size: var(--type-base); padding: 0.55rem 0.7rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: #fff; color: var(--color-ink); }
|
|
175
|
+
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; }
|
|
176
|
+
.form-status { min-height: 1.25rem; font-size: var(--type-sm); color: var(--color-ink-muted); margin-top: var(--space-1); }
|
|
177
|
+
|
|
178
|
+
.error-page { max-width: 28rem; margin: 0 auto; padding: var(--space-6) var(--space-3); text-align: left; }
|
|
179
|
+
.error-page__eyebrow { color: var(--color-primary); font-weight: 700; }
|
|
180
|
+
</style>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{% comment %}
|
|
2
|
+
contact — fields: detailsText, showForm (default true). See
|
|
3
|
+
contactSettingsSchema. Reuses the SAME form markup/submit script as
|
|
4
|
+
templates/contact.liquid (ticket 14's /api/contact) — see that template's
|
|
5
|
+
own header comment for the request/response contract — so a "contact"
|
|
6
|
+
section dropped onto any page (not just the dedicated contact page)
|
|
7
|
+
still submits correctly.
|
|
8
|
+
{% endcomment %}
|
|
9
|
+
<section class="section section-contact" id="{{ section.key | escape }}" data-section-key="{{ section.key | escape }}">
|
|
10
|
+
<div class="section__inner">
|
|
11
|
+
{% if section.settings.detailsText != blank %}<div class="section-contact__details">{{ section.settings.detailsText }}</div>{% endif %}
|
|
12
|
+
{% if section.settings.showForm != false %}
|
|
13
|
+
{% include "partials/contact-form", form_id: section.key %}
|
|
14
|
+
{% endif %}
|
|
15
|
+
</div>
|
|
16
|
+
</section>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{% comment %} cta — fields: heading (required), subheading, buttonText (required), buttonUrl (required, safe-url-validated at write time), style (primary|secondary, default primary). See ctaSettingsSchema. {% endcomment %}
|
|
2
|
+
<section class="section section-cta" id="{{ section.key | escape }}" data-section-key="{{ section.key | escape }}">
|
|
3
|
+
<div class="section__inner">
|
|
4
|
+
<h2 class="section-cta__heading">{{ section.settings.heading }}</h2>
|
|
5
|
+
{% if section.settings.subheading != blank %}<p class="section-cta__subheading">{{ section.settings.subheading }}</p>{% endif %}
|
|
6
|
+
<a class="button button--{{ section.settings.style | default: "primary" }}" href="{{ section.settings.buttonUrl | escape }}">{{ section.settings.buttonText }}</a>
|
|
7
|
+
</div>
|
|
8
|
+
</section>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{% comment %} faq — fields: items[] of {question, answer}, min 1. See faqSettingsSchema. Deliberately its OWN accordion markup, separate from the {% faq %} platform tag (which reads `post.faq`, a different data source — a single post's FAQ, not a page-section's) — see hazo_blog/render/tags/faq.ts's header comment for that tag's own scope. {% endcomment %}
|
|
2
|
+
<section class="section section-faq" id="{{ section.key | escape }}" data-section-key="{{ section.key | escape }}">
|
|
3
|
+
<div class="section__inner">
|
|
4
|
+
{% for item in section.settings.items %}
|
|
5
|
+
<details class="faq-item">
|
|
6
|
+
<summary>{{ item.question }}</summary>
|
|
7
|
+
<div>{{ item.answer }}</div>
|
|
8
|
+
</details>
|
|
9
|
+
{% endfor %}
|
|
10
|
+
</div>
|
|
11
|
+
</section>
|