@koehler8/cms 1.0.0-beta.9 → 1.1.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/CHANGELOG.md +1522 -0
- package/README.md +108 -28
- package/bin/cms-create-extension.js +7 -0
- package/bin/cms-create-site.js +7 -0
- package/bin/cms-create-theme.js +7 -0
- package/bin/cms-ssg-build.js +13 -0
- package/bin/cms-validate-extensions.js +4 -0
- package/bin/cms-validate-themes.js +11 -0
- package/extensions/manifest.schema.json +1 -1
- package/package.json +33 -17
- package/scripts/create-extension.mjs +11 -0
- package/scripts/create-site.mjs +11 -0
- package/scripts/create-theme.mjs +11 -0
- package/scripts/generate-public-assets.js +70 -36
- package/scripts/image-variants/cache.js +40 -0
- package/scripts/image-variants/classifier.js +53 -0
- package/scripts/image-variants/config.js +54 -0
- package/scripts/image-variants/index.js +18 -0
- package/scripts/image-variants/manifest.js +76 -0
- package/scripts/image-variants/planner.js +95 -0
- package/scripts/image-variants/reconcile.js +194 -0
- package/scripts/image-variants/renderer.js +51 -0
- package/scripts/lib/extension-manifests.mjs +70 -0
- package/scripts/scaffold.mjs +242 -0
- package/scripts/ssg-build/findEmptyRenders.mjs +42 -0
- package/scripts/ssg-build/index.mjs +253 -0
- package/scripts/validate-extensions.mjs +50 -382
- package/scripts/validate-themes.mjs +37 -5
- package/src/components/About.vue +4 -2
- package/src/components/AboutValue.vue +5 -4
- package/src/components/ComingSoon.vue +12 -1
- package/src/components/ComingSoonModal.vue +33 -61
- package/src/components/Contact.vue +216 -120
- package/src/components/DraftGate.vue +211 -0
- package/src/components/Footer.vue +15 -2
- package/src/components/FooterMinimal.vue +13 -12
- package/src/components/Header.vue +365 -10
- package/src/components/Hero.vue +17 -8
- package/src/components/Home.vue +82 -66
- package/src/components/Intro.vue +4 -2
- package/src/components/IntroGate.vue +30 -73
- package/src/components/NotFound.vue +100 -0
- package/src/components/Plan.vue +10 -4
- package/src/components/Portfolio.vue +29 -3
- package/src/components/Principles.vue +3 -1
- package/src/components/Spacer.vue +23 -0
- package/src/components/Spacer15.vue +3 -4
- package/src/components/Spacer30.vue +3 -4
- package/src/components/Spacer40.vue +3 -4
- package/src/components/Spacer60.vue +3 -4
- package/src/components/StickyCTA.vue +23 -1
- package/src/components/Team.vue +3 -1
- package/src/composables/useComponentResolver.js +49 -1
- package/src/composables/useDraftGate.js +93 -0
- package/src/composables/useFocusTrap.js +85 -0
- package/src/composables/usePageConfig.js +136 -36
- package/src/composables/usePageMeta.js +178 -5
- package/src/composables/usePromoBackgroundStyles.js +30 -14
- package/src/extensions/extensionLoader.js +34 -24
- package/src/main.js +69 -6
- package/src/router/index.js +98 -37
- package/src/styles/base.css +11 -2
- package/src/themes/buildCssVarMap.js +34 -0
- package/src/utils/appInfo.js +8 -5
- package/src/utils/breadcrumbs.js +121 -0
- package/src/utils/canonicalUrl.js +53 -0
- package/src/utils/componentRegistry.js +98 -16
- package/src/utils/cookieConsent.js +38 -24
- package/src/utils/draftMode.js +65 -0
- package/src/utils/imageSources.js +9 -1
- package/src/utils/jsonLd.js +66 -0
- package/src/utils/loadConfig.js +106 -6
- package/src/utils/notFound.js +52 -0
- package/src/utils/robotsGenerator.js +95 -0
- package/src/utils/sha256.js +20 -0
- package/src/utils/sitemapGenerator.js +119 -0
- package/src/utils/socialMeta.js +100 -0
- package/src/utils/ssgRoutes.js +40 -0
- package/src/utils/trackingContext.js +16 -22
- package/src/utils/webAppManifest.js +85 -0
- package/src/utils/webStorage.js +82 -0
- package/templates/index.html +17 -24
- package/templates/scaffolds/extension/README.md +53 -0
- package/templates/scaffolds/extension/extension.config.json +10 -0
- package/templates/scaffolds/extension/index.js +37 -0
- package/templates/scaffolds/extension/package.json +22 -0
- package/templates/scaffolds/site/.env.example +7 -0
- package/templates/scaffolds/site/.nvmrc +1 -0
- package/templates/scaffolds/site/CLAUDE.md +121 -0
- package/templates/scaffolds/site/README.md +25 -0
- package/templates/scaffolds/site/amplify.yml +22 -0
- package/templates/scaffolds/site/package.json +26 -0
- package/templates/scaffolds/site/site/assets/img/.gitkeep +0 -0
- package/templates/scaffolds/site/site/components/.gitkeep +0 -0
- package/templates/scaffolds/site/site/content/content.config.json +3 -0
- package/templates/scaffolds/site/site/content/en/pages/home.json +8 -0
- package/templates/scaffolds/site/site/content/en/shared.json +5 -0
- package/templates/scaffolds/site/site/content/en/site.json +10 -0
- package/templates/scaffolds/site/site/style.css +4 -0
- package/templates/scaffolds/site/vite.config.js +15 -0
- package/templates/scaffolds/theme/README.md +50 -0
- package/templates/scaffolds/theme/index.js +8 -0
- package/templates/scaffolds/theme/package.json +21 -0
- package/templates/scaffolds/theme/theme.config.js +228 -0
- package/templates/scaffolds/theme/theme.css +14 -0
- package/themes/base/theme.config.js +100 -57
- package/vite-plugin.js +549 -32
- package/public/robots.txt +0 -5
- package/scripts/check-overflow.mjs +0 -33
- package/scripts/migrate-to-content-dirs.mjs +0 -223
- package/scripts/patch-lru-cache-tla.js +0 -164
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<section
|
|
3
|
+
ref="dialogRef"
|
|
4
|
+
class="draft-gate"
|
|
5
|
+
role="dialog"
|
|
6
|
+
aria-modal="true"
|
|
7
|
+
aria-labelledby="draft-gate-title"
|
|
8
|
+
aria-describedby="draft-gate-description"
|
|
9
|
+
>
|
|
10
|
+
<div class="draft-gate-card">
|
|
11
|
+
<p class="draft-gate-eyebrow">Draft</p>
|
|
12
|
+
<h1 id="draft-gate-title" class="draft-gate-title">
|
|
13
|
+
This page is not yet public
|
|
14
|
+
</h1>
|
|
15
|
+
<p id="draft-gate-description" class="draft-gate-body">
|
|
16
|
+
{{ bodyText }}
|
|
17
|
+
</p>
|
|
18
|
+
<form class="draft-gate-form" @submit.prevent="handleSubmit" novalidate>
|
|
19
|
+
<label class="draft-gate-label" for="draft-gate-password">
|
|
20
|
+
Password
|
|
21
|
+
</label>
|
|
22
|
+
<input
|
|
23
|
+
id="draft-gate-password"
|
|
24
|
+
ref="inputRef"
|
|
25
|
+
v-model="passwordInput"
|
|
26
|
+
type="password"
|
|
27
|
+
autocomplete="current-password"
|
|
28
|
+
autocapitalize="off"
|
|
29
|
+
autocorrect="off"
|
|
30
|
+
spellcheck="false"
|
|
31
|
+
:aria-invalid="hasError ? 'true' : 'false'"
|
|
32
|
+
aria-describedby="draft-gate-error"
|
|
33
|
+
class="draft-gate-input"
|
|
34
|
+
/>
|
|
35
|
+
<p
|
|
36
|
+
id="draft-gate-error"
|
|
37
|
+
class="draft-gate-error"
|
|
38
|
+
aria-live="polite"
|
|
39
|
+
role="status"
|
|
40
|
+
>
|
|
41
|
+
{{ errorMessage }}
|
|
42
|
+
</p>
|
|
43
|
+
<button type="submit" class="draft-gate-submit">
|
|
44
|
+
{{ submitLabel }}
|
|
45
|
+
</button>
|
|
46
|
+
</form>
|
|
47
|
+
</div>
|
|
48
|
+
</section>
|
|
49
|
+
</template>
|
|
50
|
+
|
|
51
|
+
<script setup>
|
|
52
|
+
import { computed, ref } from 'vue';
|
|
53
|
+
import { useFocusTrap } from '../composables/useFocusTrap.js';
|
|
54
|
+
|
|
55
|
+
const props = defineProps({
|
|
56
|
+
hasPassword: {
|
|
57
|
+
type: Boolean,
|
|
58
|
+
default: false,
|
|
59
|
+
},
|
|
60
|
+
errorMessage: {
|
|
61
|
+
type: String,
|
|
62
|
+
default: '',
|
|
63
|
+
},
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
const emit = defineEmits(['submit']);
|
|
67
|
+
|
|
68
|
+
const passwordInput = ref('');
|
|
69
|
+
const inputRef = ref(null);
|
|
70
|
+
const dialogRef = ref(null);
|
|
71
|
+
const hasError = computed(() => Boolean(props.errorMessage));
|
|
72
|
+
|
|
73
|
+
// The gate IS the page while locked, so the trap is permanently active and
|
|
74
|
+
// deliberately has no Escape dismiss. Focus lands on the password input.
|
|
75
|
+
useFocusTrap(dialogRef, () => true, { initialFocusRef: inputRef });
|
|
76
|
+
|
|
77
|
+
const bodyText = computed(() =>
|
|
78
|
+
props.hasPassword
|
|
79
|
+
? 'Enter the password to preview this content.'
|
|
80
|
+
: 'No password is required — submit to continue.',
|
|
81
|
+
);
|
|
82
|
+
|
|
83
|
+
const submitLabel = computed(() => (props.hasPassword ? 'Unlock' : 'Continue'));
|
|
84
|
+
|
|
85
|
+
function handleSubmit() {
|
|
86
|
+
emit('submit', passwordInput.value);
|
|
87
|
+
}
|
|
88
|
+
</script>
|
|
89
|
+
|
|
90
|
+
<style scoped>
|
|
91
|
+
.draft-gate {
|
|
92
|
+
display: flex;
|
|
93
|
+
align-items: center;
|
|
94
|
+
justify-content: center;
|
|
95
|
+
min-height: 100dvh;
|
|
96
|
+
padding: clamp(1.5rem, 5vw, 3rem);
|
|
97
|
+
background: var(--brand-surface, #f7f7f8);
|
|
98
|
+
color: var(--brand-text, #1f2a44);
|
|
99
|
+
font-family: var(--ui-font-body, system-ui, -apple-system, sans-serif);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.draft-gate-card {
|
|
103
|
+
width: 100%;
|
|
104
|
+
max-width: 28rem;
|
|
105
|
+
padding: clamp(1.75rem, 4vw, 2.5rem);
|
|
106
|
+
background: var(--brand-surface-elevated, #ffffff);
|
|
107
|
+
border: 1px solid var(--brand-border, rgba(31, 42, 68, 0.12));
|
|
108
|
+
border-radius: clamp(12px, 2vw, 18px);
|
|
109
|
+
box-shadow: 0 18px 38px rgba(15, 22, 42, 0.08);
|
|
110
|
+
outline: none;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.draft-gate-eyebrow {
|
|
114
|
+
margin: 0 0 0.5rem;
|
|
115
|
+
letter-spacing: 0.16em;
|
|
116
|
+
text-transform: uppercase;
|
|
117
|
+
font-size: 0.7rem;
|
|
118
|
+
font-weight: 600;
|
|
119
|
+
color: var(--brand-text-muted, rgba(31, 42, 68, 0.6));
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.draft-gate-title {
|
|
123
|
+
margin: 0 0 0.75rem;
|
|
124
|
+
font-size: clamp(1.4rem, 2.6vw, 1.75rem);
|
|
125
|
+
line-height: 1.2;
|
|
126
|
+
font-weight: 700;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.draft-gate-body {
|
|
130
|
+
margin: 0 0 1.5rem;
|
|
131
|
+
font-size: 1rem;
|
|
132
|
+
line-height: 1.55;
|
|
133
|
+
color: var(--brand-text-muted, rgba(31, 42, 68, 0.75));
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.draft-gate-form {
|
|
137
|
+
display: flex;
|
|
138
|
+
flex-direction: column;
|
|
139
|
+
gap: 0.5rem;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.draft-gate-label {
|
|
143
|
+
font-size: 0.85rem;
|
|
144
|
+
font-weight: 600;
|
|
145
|
+
color: var(--brand-text, #1f2a44);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.draft-gate-input {
|
|
149
|
+
width: 100%;
|
|
150
|
+
min-height: 2.75rem;
|
|
151
|
+
padding: 0.65rem 0.85rem;
|
|
152
|
+
font-size: 1rem;
|
|
153
|
+
font-family: inherit;
|
|
154
|
+
background: var(--brand-surface, #ffffff);
|
|
155
|
+
color: inherit;
|
|
156
|
+
border: 1px solid var(--brand-border, rgba(31, 42, 68, 0.25));
|
|
157
|
+
border-radius: var(--brand-input-radius, 8px);
|
|
158
|
+
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.draft-gate-input:focus-visible {
|
|
162
|
+
outline: 2px solid var(--brand-primary, #1f2a44);
|
|
163
|
+
outline-offset: 2px;
|
|
164
|
+
border-color: var(--brand-primary, #1f2a44);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.draft-gate-input[aria-invalid='true'] {
|
|
168
|
+
border-color: var(--brand-criticalText, #b3261e);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.draft-gate-error {
|
|
172
|
+
min-height: 1.25rem;
|
|
173
|
+
margin: 0;
|
|
174
|
+
font-size: 0.85rem;
|
|
175
|
+
color: var(--brand-criticalText, #b3261e);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.draft-gate-submit {
|
|
179
|
+
margin-top: 0.5rem;
|
|
180
|
+
min-height: 2.75rem;
|
|
181
|
+
padding: 0.7rem 1.4rem;
|
|
182
|
+
font-size: 1rem;
|
|
183
|
+
font-family: inherit;
|
|
184
|
+
font-weight: 600;
|
|
185
|
+
color: var(--brand-primary-cta-text, #ffffff);
|
|
186
|
+
background: var(--brand-primary-cta, var(--brand-primary, #1f2a44));
|
|
187
|
+
border: none;
|
|
188
|
+
border-radius: var(--brand-button-radius, 10px);
|
|
189
|
+
cursor: pointer;
|
|
190
|
+
transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.draft-gate-submit:hover {
|
|
194
|
+
transform: translateY(-1px);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.draft-gate-submit:focus-visible {
|
|
198
|
+
outline: 2px solid var(--brand-primary, #1f2a44);
|
|
199
|
+
outline-offset: 3px;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
@media (prefers-reduced-motion: reduce) {
|
|
203
|
+
.draft-gate-submit,
|
|
204
|
+
.draft-gate-input {
|
|
205
|
+
transition: none;
|
|
206
|
+
}
|
|
207
|
+
.draft-gate-submit:hover {
|
|
208
|
+
transform: none;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
</style>
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
<footer class="site-footer ui-footer" data-analytics-section="footer">
|
|
3
3
|
<div class="container ui-footer__grid">
|
|
4
4
|
<div class="ui-footer__brand">
|
|
5
|
-
<a class="ui-footer__logo" href="/"
|
|
5
|
+
<a class="ui-footer__logo" href="/">
|
|
6
6
|
<img
|
|
7
7
|
:src="logoSrc"
|
|
8
|
-
:alt="siteName"
|
|
8
|
+
:alt="`${siteName} – home`"
|
|
9
9
|
class="site-footer__logo-img"
|
|
10
10
|
loading="lazy"
|
|
11
11
|
decoding="async"
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
rel="noopener noreferrer"
|
|
26
26
|
>
|
|
27
27
|
<span>{{ link.text }}</span>
|
|
28
|
+
<span class="ui-footer__sr-only">(opens in a new tab)</span>
|
|
28
29
|
<span class="ui-footer__link-icon" aria-hidden="true">></span>
|
|
29
30
|
</a>
|
|
30
31
|
</li>
|
|
@@ -62,4 +63,16 @@ const footerLinks = computed(() =>
|
|
|
62
63
|
.ui-footer__text {
|
|
63
64
|
margin-bottom: 0;
|
|
64
65
|
}
|
|
66
|
+
|
|
67
|
+
.ui-footer__sr-only {
|
|
68
|
+
position: absolute;
|
|
69
|
+
width: 1px;
|
|
70
|
+
height: 1px;
|
|
71
|
+
padding: 0;
|
|
72
|
+
margin: -1px;
|
|
73
|
+
overflow: hidden;
|
|
74
|
+
clip: rect(0, 0, 0, 0);
|
|
75
|
+
white-space: nowrap;
|
|
76
|
+
border: 0;
|
|
77
|
+
}
|
|
65
78
|
</style>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<div class="container" role="presentation">
|
|
4
4
|
<div class="footer-grid">
|
|
5
5
|
<a class="footer-logo" href="/">
|
|
6
|
-
<img :src="logoSrc" :alt="siteName" class="img-fluid" />
|
|
6
|
+
<img :src="logoSrc" :alt="`${siteName} – home`" class="img-fluid" />
|
|
7
7
|
</a>
|
|
8
8
|
<p class="footer-text">{{ footerText }}</p>
|
|
9
9
|
<p v-if="footerDisclaimer" class="footer-disclaimer">
|
|
@@ -78,7 +78,10 @@ const footerDisclaimer = computed(() => footerContent.value?.disclaimer || '');
|
|
|
78
78
|
--footer-bg,
|
|
79
79
|
color-mix(in srgb, var(--brand-bg-900, #070410) 88%, var(--brand-bg-800, #120b1f) 12%)
|
|
80
80
|
);
|
|
81
|
-
|
|
81
|
+
/* Read from --brand-footer-text (defined by the theme via tokens.footer.text)
|
|
82
|
+
so the default light/text-on-dark pairing always holds. The intermediate
|
|
83
|
+
--footer-text exists for site-level overrides. */
|
|
84
|
+
color: var(--footer-text, var(--brand-footer-text, #f0eaf3));
|
|
82
85
|
padding: 48px 0 28px;
|
|
83
86
|
}
|
|
84
87
|
|
|
@@ -96,7 +99,7 @@ const footerDisclaimer = computed(() => footerContent.value?.disclaimer || '');
|
|
|
96
99
|
.footer-text {
|
|
97
100
|
max-width: 520px;
|
|
98
101
|
margin: 0;
|
|
99
|
-
color: var(--footer-text, var(--
|
|
102
|
+
color: var(--footer-text, var(--brand-footer-text, #f0eaf3));
|
|
100
103
|
font-size: 0.9rem;
|
|
101
104
|
line-height: 1.55;
|
|
102
105
|
}
|
|
@@ -107,10 +110,7 @@ const footerDisclaimer = computed(() => footerContent.value?.disclaimer || '');
|
|
|
107
110
|
font-size: 0.75rem;
|
|
108
111
|
font-style: italic;
|
|
109
112
|
line-height: 1.6;
|
|
110
|
-
color: var(
|
|
111
|
-
--footer-disclaimer,
|
|
112
|
-
color-mix(in srgb, var(--ui-text-muted, var(--brand-card-text, #f0eaf3)) 70%, transparent)
|
|
113
|
-
);
|
|
113
|
+
color: var(--footer-disclaimer, var(--brand-footer-text-muted, #c8c2cf));
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
.footer-links {
|
|
@@ -124,19 +124,20 @@ const footerDisclaimer = computed(() => footerContent.value?.disclaimer || '');
|
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
.footer-link {
|
|
127
|
-
color: var(
|
|
128
|
-
--footer-link-color,
|
|
129
|
-
color-mix(in srgb, var(--ui-text-primary, var(--brand-card-text, #f0eaf3)) 75%, transparent)
|
|
130
|
-
);
|
|
127
|
+
color: var(--footer-link-color, var(--brand-footer-link-color, #f0eaf3));
|
|
131
128
|
text-decoration: none;
|
|
132
129
|
transition: color 0.2s ease, text-decoration 0.2s ease;
|
|
133
130
|
}
|
|
134
131
|
|
|
135
132
|
.footer-link:hover,
|
|
136
133
|
.footer-link:focus-visible {
|
|
137
|
-
color: var(--footer-link-hover, var(--brand-
|
|
134
|
+
color: var(--footer-link-hover, var(--brand-footer-link-hover, #ffffff));
|
|
138
135
|
text-decoration: underline;
|
|
139
136
|
}
|
|
137
|
+
.footer-link:focus-visible {
|
|
138
|
+
outline: 2px solid currentColor;
|
|
139
|
+
outline-offset: 3px;
|
|
140
|
+
}
|
|
140
141
|
|
|
141
142
|
@media (prefers-reduced-motion: reduce) {
|
|
142
143
|
.footer-link {
|