Skip to content

Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.

feat(cloud): establish branded shadcn design system and redesign pages

Timothy Yin3fe90c7500fd
diff --git a/apps/cloud/README.md b/apps/cloud/README.md
index b95a668e..78825555 100644
--- a/apps/cloud/README.md
+++ b/apps/cloud/README.md
@@ -1,42 +1,55 @@
-# ChronoFrame Cloud entry
-
-This is an independent Nuxt application in the public workspace, licensed under
-AGPL-3.0-only. It extends the shared gallery and console layers.
-Run `pnpm dev:cloud`, `pnpm build:cloud`, or
-`pnpm --filter @chronoframe/cloud preview` from the repository root.
-Build the WebGL dependency first with `pnpm build:deps`.
-
-The launcher uses this application's working directory and optional local `.env`;
-it does not load the root Self-hosted `.env` or start its server plugins, database,
-storage, migrations, worker pool, OAuth routes, or tenant scripts. Generated files
-stay under this application's `.nuxt` and `.output` directories.
-
-This is the P3.4 composition boundary, not a usable multi-tenant service.
-`GET /api/health` identifies the entry as `bootstrap`; all other API requests return
-503 with no-store, including authentication and Self-hosted onboarding endpoints.
-The public home and sign-in information pages are available. Dashboard routes redirect to /signin; /sites routes remain unavailable.
-No environment flag or root administrator session enables access. P3.5 must
-replace these explicit boundaries with platform authorization and Site-aware
-repositories before any real data can be served.
-
-The marketing site and portal are one application/project. Domain-based routing and production domain policy remain P3.5 work.
-This entry does not change the Self-hosted root commands or data paths.
-
-## Edge runtime
-
-Cloudflare Workers is the initial production target (`cloudflare-module` Nitro
-preset), with generated deployment configuration at `.output/server/wrangler.json`.
-The worker entry and static assets are generated together. `preview` runs the
-built worker locally through Wrangler/workerd; `deploy` publishes it and must be
-invoked explicitly with the intended Cloudflare account. Building never deploys.
-
-Node.js is build tooling, not the production runtime. These entries must not
-import SQLite, native EXIF/image processors, filesystem storage, or embedded
-workers. `nodejs_compat` is used for supported compatibility APIs, not permission
-to rely on arbitrary Node APIs or writable local storage. Future bindings and
-secrets must be configured per worker, independently from Self-hosted credentials.
-Other edge providers require their own Nitro preset and runtime validation.
-
-Dynamic OG image endpoints are disabled in this bootstrap. Enable them only with
-a Worker-compatible WASM renderer or a dedicated remote rendering service;
-Self-hosted native renderers are not a fallback for the edge runtime.
+# ChronoFrame Cloud UI
+
+Cloud owns its marketing, sign-in, portal and error presentation. Server authorization,
+Host routing and tenant context remain authoritative. Cloud-only styles and components
+must not change the Self-hosted or Site editions.
+
+## Design language
+
+The Cloud theme adapts the [shadcn-vue](https://www.shadcn-vue.com/) composable
+component model: Reka UI `Primitive`/`asChild`, class-variance-authority variants,
+clsx/tailwind-merge overrides and editable local components. `components.json` and
+`shadcn-nuxt` configure this component directory. The `Cloud` prefix avoids collisions
+with shared gallery/console components. Local components are ChronoFrame-authored.
+
+- `app/assets/cloud.css`: scoped shadcn semantic tokens, warm stone surfaces, forest
+ accents, consistent type scale, focus rings, spacing and responsive patterns.
+- `app/components/ui`: Button (variants, sizes, busy/disabled), Input (native form
+ semantics and v-model), Card and Badge. Prefer these primitives for Cloud changes.
+- `CloudPortalShell`: one responsive navigation/footer for account and site pages.
+- `useCloudMotion`: motion-v entry transitions, with reduced-motion support.
+- Lucide icons share size and stroke conventions; decorative icons accompany labels.
+
+Use one primary action per flow, label inputs explicitly, announce errors and status,
+and make pending/error/empty states actionable. Do not present unimplemented P4
+features as working actions. Verification codes and sessions retain existing APIs.
+
+Theme preference uses Nuxt Color Mode. The palette follows light/dark system preference
+until the visitor chooses a theme. Desktop navigation becomes inline tabs on mobile.
+
+## Photography
+
+The local marketing sample images are from Unsplash and used under the
+[Unsplash License](https://unsplash.com/license). They are illustrative marketing
+assets, never seeded tenant content. Sources:
+
+- Mountains: https://images.unsplash.com/photo-1464822759023-fed622ff2c3b
+- Forest: https://images.unsplash.com/photo-1441974231531-c6227db76b6e
+- Coast: https://images.unsplash.com/photo-1475924156734-496f6cac6ec1
+
+Images ship locally so core UI has no runtime image-host dependency.
+
+## Running and deployment boundaries
+
+Run `pnpm build:deps` followed by `pnpm dev:cloud` or `pnpm build:cloud` at the
+repository root. The launcher uses the Cloud app directory and its optional `.env`,
+never the Self-hosted root `.env`. Generated output is local to this app.
+
+Production targets Cloudflare Workers (`cloudflare-module`). Building never deploys;
+the approved SaaS workflow publishes code and isolated environment bindings. Native
+SQLite/media processors, filesystem storage and embedded queues are not Cloud
+fallbacks. Dynamic OG remains disabled until a compatible renderer is selected.
+
+The marketing host and portal share this app; trusted Host/session/Membership checks
+still gate platform APIs. Default Site provisioning and media management remain P4.
+The public Site Worker and Self-hosted application retain their own presentation.
diff --git a/apps/cloud/app/app.vue b/apps/cloud/app/app.vue
index dcdf3aaa..a3be40ca 100644
--- a/apps/cloud/app/app.vue
+++ b/apps/cloud/app/app.vue
@@ -1,6 +1,11 @@
<template>
- <UApp>
- <NuxtLoadingIndicator />
- <NuxtLayout><NuxtPage /></NuxtLayout>
- </UApp>
+ <div class="cf-root">
+ <a
+ href="#main-content"
+ class="cf-skip-link"
+ >Skip to content</a
+ ><NuxtLoadingIndicator color="var(--cf-primary)" /><NuxtLayout
+ ><NuxtPage
+ /></NuxtLayout>
+ </div>
</template>
diff --git a/apps/cloud/app/assets/cloud.css b/apps/cloud/app/assets/cloud.css
index 20fe3a9c..051ba499 100644
--- a/apps/cloud/app/assets/cloud.css
+++ b/apps/cloud/app/assets/cloud.css
@@ -1,106 +1,1019 @@
-.cloud-page {
- max-width: 1120px;
- margin: 0 auto;
- padding: 0 28px;
+/* ChronoFrame Cloud tokens. Scoped to this entry: shared editions retain their theme. */
+.cf-root,
+.cf-error {
+ --background: #f7f7f2;
+ --foreground: #20281f;
+ --card: #fff;
+ --card-foreground: #20281f;
+ --primary: #354b36;
+ --primary-foreground: #fff;
+ --secondary: #efefe8;
+ --secondary-foreground: #344032;
+ --muted: #efefe8;
+ --muted-foreground: #62685d;
+ --border: #dedfd5;
+ --input: #d4d6ca;
+ --ring: #6e8668;
+ --destructive: #a43630;
+ --radius: 0.75rem;
+ --cf-primary: var(--primary);
+ --cf-ink: var(--foreground);
+ --cf-muted: var(--muted-foreground);
+ color: var(--foreground);
+ background: var(--background);
+ min-height: 100dvh;
+ font-family: 'Inter', 'Noto Sans SC', ui-sans-serif, system-ui, sans-serif;
+ font-size: 14px;
+ line-height: 1.6;
+ -webkit-font-smoothing: antialiased;
}
-.cloud-nav,
-.cloud-nav nav,
-.actions,
-.cloud-page footer {
- display: flex;
+.dark .cf-root,
+.dark .cf-error {
+ --background: #171d18;
+ --foreground: #eef0e7;
+ --card: #202821;
+ --card-foreground: #eef0e7;
+ --primary: #c3d1b5;
+ --primary-foreground: #1b271c;
+ --secondary: #2b352c;
+ --secondary-foreground: #d5ddcc;
+ --muted: #263027;
+ --muted-foreground: #a6b19f;
+ --border: #39453a;
+ --input: #4b5b4c;
+ --ring: #a7bf99;
+ --destructive: #f69a93;
+}
+.cf-root *,
+.cf-error * {
+ box-sizing: border-box;
+}
+.cf-root :is(h1, h2, h3, p),
+.cf-error :is(h1, h2, p) {
+ margin: 0;
+}
+.cf-root a,
+.cf-error a {
+ text-decoration: none;
+}
+.cf-root :is(a, button, input):focus-visible,
+.cf-error a:focus-visible {
+ outline: 2px solid var(--ring);
+ outline-offset: 4px;
+}
+.cf-root button,
+.cf-root a,
+.cf-error a {
+ -webkit-tap-highlight-color: transparent;
+}
+.cf-button {
+ display: inline-flex;
align-items: center;
- gap: 24px;
+ justify-content: center;
+ gap: 9px;
+ height: 42px;
+ padding: 0 18px;
+ border: 1px solid transparent;
+ border-radius: calc(var(--radius) - 4px);
+ font-size: 13px;
+ font-weight: 550;
+ white-space: nowrap;
+ cursor: pointer;
+ transition:
+ background 0.18s,
+ border-color 0.18s,
+ transform 0.18s;
}
-.cloud-nav {
- justify-content: space-between;
- padding: 28px 0;
+.cf-button-primary {
+ background: var(--primary);
+ color: var(--primary-foreground);
+}
+.cf-button-primary:hover {
+ filter: brightness(1.1);
+}
+.cf-button-secondary {
+ background: var(--card);
+ color: var(--foreground);
+ border-color: var(--border);
+}
+.cf-button-secondary:hover,
+.cf-button-ghost:hover {
+ background: var(--secondary);
}
-.brand {
- font-weight: 700;
- font-size: 22px;
- letter-spacing: -0.04em;
+.cf-button-ghost {
+ background: transparent;
+ color: var(--foreground);
}
-.cloud-nav nav,
-.cloud-page footer {
+.cf-button-destructive {
+ background: transparent;
+ color: var(--destructive);
+ border-color: var(--border);
+}
+.cf-button-destructive:hover {
+ background: var(--muted);
+}
+.cf-button-lg {
+ height: 48px;
+ padding: 0 22px;
font-size: 14px;
}
-.hero {
- padding: 112px 0 96px;
- max-width: 800px;
+.cf-button-sm {
+ height: 34px;
+ padding: 0 12px;
+ font-size: 12px;
}
-.eyebrow {
- color: var(--ui-primary);
- font-size: 13px;
- text-transform: uppercase;
- letter-spacing: 0.14em;
+.cf-button-icon {
+ width: 38px;
+ height: 38px;
+ padding: 0;
+}
+.cf-button:disabled {
+ opacity: 0.5;
+ cursor: not-allowed;
+}
+.cf-input {
+ width: 100%;
+ min-height: 46px;
+ border: 1px solid var(--input);
+ border-radius: calc(var(--radius) - 4px);
+ padding: 10px 13px;
+ background: var(--card);
+ color: var(--foreground);
+ font: inherit;
+ transition: border-color 0.15s;
+}
+.cf-input::placeholder {
+ color: var(--muted-foreground);
+ opacity: 0.75;
+}
+.cf-input:disabled {
+ background: var(--muted);
+ color: var(--muted-foreground);
+ cursor: not-allowed;
+}
+.cf-input[aria-invalid='true'] {
+ border-color: var(--destructive);
+}
+.cf-card {
+ background: var(--card);
+ color: var(--card-foreground);
+ border: 1px solid var(--border);
+ border-radius: var(--radius);
+}
+.cf-badge {
+ display: inline-flex;
+ align-items: center;
+ gap: 6px;
+ padding: 3px 9px;
+ border: 1px solid var(--border);
+ border-radius: 5px;
+ font-size: 11px;
+ font-weight: 500;
+ line-height: 1.6;
+ white-space: nowrap;
}
-.hero h1 {
- font-size: clamp(40px, 6vw, 72px);
- line-height: 1.08;
- letter-spacing: -0.05em;
- margin: 24px 0;
+.cf-badge-neutral {
+ color: var(--muted-foreground);
+ background: var(--muted);
+}
+.cf-badge-success {
+ color: var(--primary);
+ background: var(--secondary);
+}
+.cf-badge-warning {
+ color: var(--muted-foreground);
+ background: var(--background);
+}
+.cf-brand {
+ display: inline-flex;
+ align-items: center;
+ gap: 9px;
+ color: var(--foreground);
+ font-size: 19px;
+ font-weight: 650;
+ letter-spacing: -0.8px;
+}
+.cf-brand-dot {
+ color: #97a180;
+}
+.cf-brand-light {
+ color: #fff;
+}
+.cf-eyebrow {
+ font-size: 10px;
font-weight: 600;
+ letter-spacing: 0.17em;
+ text-transform: uppercase;
+ color: var(--muted-foreground);
}
-.intro {
+.cf-text-link {
+ color: var(--primary);
+ text-decoration: underline !important;
+ text-underline-offset: 4px;
+}
+.cf-muted {
+ color: var(--muted-foreground);
+}
+.cf-page-title {
+ font-size: clamp(27px, 4vw, 36px);
+ font-weight: 500;
+ letter-spacing: -1.4px;
+ line-height: 1.25;
+}
+.cf-page-description {
+ color: var(--muted-foreground);
max-width: 560px;
- color: var(--ui-text-muted);
- font-size: 19px;
- line-height: 1.7;
- margin-bottom: 32px;
+ margin-top: 10px !important;
+}
+.cf-skip-link {
+ position: fixed;
+ top: -100px;
+ left: 16px;
+ z-index: 100;
+ padding: 12px 20px;
+ background: var(--primary);
+ color: var(--primary-foreground);
+}
+.cf-skip-link:focus {
+ top: 12px;
+}
+.cf-theme-placeholder {
+ display: block;
+ width: 38px;
+ height: 38px;
+}
+.cf-header-actions {
+ display: flex;
+ align-items: center;
+ gap: 12px;
+}
+.cf-spin {
+ animation: cf-spin 1s linear infinite;
+}
+@keyframes cf-spin {
+ to {
+ transform: rotate(360deg);
+ }
+}
+/* Public site */
+.cf-marketing {
+ max-width: 1440px;
+ margin: auto;
+ padding: 0 64px;
+}
+.cf-marketing-header {
+ height: 100px;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ border-bottom: 1px solid var(--border);
+}
+.cf-marketing-nav {
+ display: flex;
+ gap: 28px;
+ align-items: center;
+}
+.cf-marketing-nav > a:not(.cf-button) {
+ font-size: 12px;
+ color: var(--muted-foreground);
+}
+.cf-hero {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: 64px;
+ padding: 80px 0 88px;
+ align-items: center;
+}
+.cf-hero-title {
+ font-size: clamp(54px, 5.8vw, 86px);
+ font-weight: 450;
+ letter-spacing: -0.065em;
+ line-height: 1.04;
+ margin: 24px 0 !important;
+}
+.cf-hero-title em {
+ font-family: Georgia, 'Times New Roman', serif;
+ font-weight: 400;
+}
+.cf-hero-copy {
+ max-width: 380px;
+ color: var(--muted-foreground);
+ font-size: 16px;
+ line-height: 1.8;
+}
+.cf-hero-actions {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 10px;
+ margin: 28px 0 15px;
+}
+.cf-small-note {
+ font-size: 11px;
+ color: var(--muted-foreground);
+}
+.cf-gallery-preview {
+ position: relative;
+ background: #e7e7db;
+ padding: 20px;
+ border: 1px solid #d9d9cc;
+ border-radius: 12px;
+ transform: rotate(2deg);
+ box-shadow: 0 24px 48px -32px #17211770;
+}
+.cf-preview-top {
+ display: flex;
+ justify-content: space-between;
+ font-size: 8px;
+ letter-spacing: 0.13em;
+ color: #4b5445;
+ margin-bottom: 16px;
}
-.features {
+.cf-preview-grid {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: 8px;
+}
+.cf-preview-grid img {
+ width: 100%;
+ object-fit: cover;
+ height: 150px;
+ border-radius: 3px;
+}
+.cf-preview-grid img:first-child {
+ grid-column: span 2;
+ height: 260px;
+}
+.cf-preview-caption {
+ display: flex;
+ justify-content: space-between;
+ margin-top: 14px;
+ color: #59614f;
+ font-size: 9px;
+}
+.cf-preview-label {
+ position: absolute;
+ bottom: -20px;
+ left: -24px;
+ padding: 12px 18px;
+ border: 1px solid var(--border);
+ border-radius: 8px;
+ background: var(--card);
+ box-shadow: 0 6px 20px #00000008;
+ display: flex;
+ gap: 10px;
+ align-items: center;
+ font-size: 11px;
+ transform: rotate(-2deg);
+}
+.cf-section-heading {
+ display: flex;
+ justify-content: space-between;
+ align-items: flex-end;
+ gap: 24px;
+ padding-top: 45px;
+ border-top: 1px solid var(--border);
+}
+.cf-section-heading h2 {
+ font-size: 30px;
+ font-weight: 450;
+ letter-spacing: -1px;
+ margin-top: 12px !important;
+}
+.cf-features {
display: grid;
grid-template-columns: repeat(3, 1fr);
- gap: 36px;
- border-top: 1px solid var(--ui-border);
- padding: 48px 0 72px;
+ gap: 38px;
+ padding: 40px 0 56px;
+}
+.cf-features article {
+ border-left: 1px solid var(--border);
+ padding-left: 22px;
+}
+.cf-features svg {
+ color: var(--primary);
+ margin-bottom: 20px;
+}
+.cf-features h3 {
+ font-size: 15px;
+ font-weight: 550;
+ margin-bottom: 9px;
}
-.features span {
- color: var(--ui-text-muted);
+.cf-features p {
+ font-size: 13px;
+ color: var(--muted-foreground);
+ max-width: 290px;
+ line-height: 1.8;
+}
+.cf-marketing-footer {
+ padding: 25px 0;
+ border-top: 1px solid var(--border);
+ display: flex;
+ gap: 20px;
+ justify-content: space-between;
+ font-size: 11px;
+ color: var(--muted-foreground);
+}
+.cf-marketing-footer a {
+ display: inline-flex;
+ align-items: center;
+ gap: 5px;
+}
+/* Authentication */
+.cf-auth {
+ min-height: 100dvh;
+ display: grid;
+ grid-template-columns: 47% 53%;
+}
+.cf-auth-visual {
+ position: relative;
+ padding: 40px 48px;
+ background: #263229;
+ color: #fff;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+ overflow: hidden;
+}
+.cf-auth-visual::before {
+ content: '';
+ position: absolute;
+ inset: 0;
+ background:
+ linear-gradient(180deg, #12221830 5%, #101a17bd 90%),
+ url('/images/mountains.jpg') center/cover;
+}
+.cf-auth-visual > * {
+ position: relative;
+}
+.cf-auth-quote {
+ padding: 100px 0 45px;
+ max-width: 390px;
+}
+.cf-auth-quote h2 {
+ font-family: Georgia, serif;
+ font-weight: 400;
+ font-size: clamp(32px, 3.6vw, 52px);
+ letter-spacing: -1.5px;
+ line-height: 1.14;
+ margin-bottom: 20px;
+}
+.cf-auth-quote p,
+.cf-auth-caption {
+ color: #ffffffb5;
font-size: 12px;
}
-.features h2 {
- font-size: 19px;
- margin: 16px 0 10px;
- font-weight: 600;
+.cf-auth-main {
+ display: flex;
+ flex-direction: column;
+ padding: 36px 48px;
+}
+.cf-auth-top {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.cf-auth-form {
+ width: 100%;
+ max-width: 370px;
+ margin: auto;
+ padding: 65px 0;
+}
+.cf-auth-form h1 {
+ font-size: 34px;
+ font-weight: 500;
+ letter-spacing: -1.2px;
+ line-height: 1.2;
+ margin: 18px 0 12px;
+}
+.cf-auth-form > p {
+ color: var(--muted-foreground);
+}
+.cf-auth-form form {
+ display: flex;
+ flex-direction: column;
+ gap: 12px;
+ margin-top: 30px;
+}
+.cf-auth-form label {
+ font-size: 12px;
+ font-weight: 550;
}
-.features p,
-.cloud-message p {
- color: var(--ui-text-muted);
- line-height: 1.7;
+.cf-auth-form .cf-button[type='submit'] {
+ margin-top: 8px;
+ width: 100%;
}
-.cloud-page footer {
+.cf-auth-hint {
+ font-size: 11px;
+ color: var(--muted-foreground);
+}
+.cf-error-message {
+ color: var(--destructive);
+ padding: 12px;
+ border: 1px solid var(--destructive);
+ border-radius: 8px;
+ font-size: 12px;
+}
+.cf-auth-bottom {
+ text-align: center;
+ color: var(--muted-foreground);
+ font-size: 11px;
+}
+.cf-code-input {
+ font-size: 23px;
+ letter-spacing: 0.5em;
+ font-variant-numeric: tabular-nums;
+}
+.cf-notice {
+ padding: 18px;
+ border: 1px solid var(--border);
+ background: var(--muted);
+ border-radius: 8px;
+ font-size: 13px;
+ color: var(--muted-foreground);
+ line-height: 1.8;
+ margin-top: 24px;
+}
+.cf-notice strong {
+ display: block;
+ color: var(--foreground);
+ font-weight: 550;
+ margin-bottom: 4px;
+}
+/* Portal */
+.cf-portal {
+ max-width: 1600px;
+ margin: auto;
+ min-height: 100dvh;
+ display: flex;
+ flex-direction: column;
+}
+.cf-portal-header {
+ height: 85px;
+ padding: 0 40px;
+ display: flex;
justify-content: space-between;
- border-top: 1px solid var(--ui-border);
- padding: 24px 0;
-}
-.cloud-message {
- max-width: 640px;
- margin: 16vh auto;
- padding: 28px;
-}
-.cloud-message h1 {
- font-size: 36px;
- letter-spacing: -0.04em;
- margin: 40px 0 16px;
- font-weight: 600;
+ align-items: center;
+ border-bottom: 1px solid var(--border);
+}
+.cf-portal-grid {
+ display: grid;
+ grid-template-columns: 230px minmax(0, 1fr);
+ flex: 1;
}
-.cloud-message .actions {
+.cf-sidebar {
+ border-right: 1px solid var(--border);
+ padding: 36px 22px 24px;
+ display: flex;
+ flex-direction: column;
+}
+.cf-nav-label {
+ font-size: 9px;
+ letter-spacing: 0.13em;
+ color: var(--muted-foreground);
+ padding: 0 13px 12px;
+}
+.cf-sidebar nav {
+ display: flex;
+ flex-direction: column;
+ gap: 4px;
+}
+.cf-sidebar nav a {
+ display: flex;
+ align-items: center;
+ gap: 10px;
+ padding: 10px 13px;
+ border-radius: 7px;
+ color: var(--muted-foreground);
+ font-size: 13px;
+}
+.cf-sidebar nav a:hover,
+.cf-sidebar nav a.active {
+ color: var(--foreground);
+ background: var(--secondary);
+}
+.cf-sidebar-bottom {
+ margin-top: auto;
+ padding: 60px 13px 0;
+ color: var(--muted-foreground);
+ font-size: 11px;
+}
+.cf-sidebar-bottom a {
+ display: flex;
+ align-items: center;
+ gap: 6px;
+ margin-top: 9px;
+ color: var(--foreground);
+}
+.cf-portal-main {
+ padding: 48px clamp(24px, 4vw, 64px) 70px;
+ min-width: 0;
+}
+.cf-page-heading {
+ display: flex;
+ gap: 20px;
+ justify-content: space-between;
+ align-items: center;
+ margin-bottom: 30px;
+}
+.cf-page-heading .cf-eyebrow {
+ margin-bottom: 10px;
+}
+.cf-empty {
+ text-align: center;
+ padding: 65px 24px;
+ margin: 26px 0;
+}
+.cf-empty-icon {
+ width: 60px;
+ height: 60px;
+ display: grid;
+ place-items: center;
+ background: var(--secondary);
+ color: var(--primary);
+ border: 1px solid var(--border);
+ border-radius: 15px;
+ margin: auto auto 22px;
+}
+.cf-empty h2 {
+ font-size: 21px;
+ font-weight: 500;
+ letter-spacing: -0.5px;
+ margin-bottom: 10px;
+}
+.cf-empty p {
+ max-width: 390px;
+ margin: auto;
+ color: var(--muted-foreground);
+ line-height: 1.8;
+}
+.cf-empty .cf-button {
+ margin-top: 25px;
+}
+.cf-section-label {
+ font-size: 12px;
+ font-weight: 550;
+ margin-bottom: 12px !important;
+}
+.cf-info-grid,
+.cf-site-grid {
+ display: grid;
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ gap: 18px;
+}
+.cf-info-card {
+ padding: 24px;
+}
+.cf-info-card > svg {
+ color: var(--primary);
+ margin-bottom: 18px;
+}
+.cf-info-card h2 {
+ font-size: 14px;
+ font-weight: 550;
+ margin-bottom: 8px;
+}
+.cf-info-card p {
+ color: var(--muted-foreground);
+ font-size: 12px;
+ line-height: 1.8;
+}
+.cf-site-link {
+ display: block;
+ padding: 24px;
+ border: 1px solid var(--border);
+ border-radius: var(--radius);
+ background: var(--card);
+ transition:
+ border-color 0.2s,
+ box-shadow 0.2s;
+}
+.cf-site-link:hover {
+ border-color: var(--ring);
+ box-shadow: 0 5px 20px #00000005;
+}
+.cf-site-top {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ margin-bottom: 30px;
+}
+.cf-site-icon {
+ width: 42px;
+ height: 42px;
+ display: grid;
+ place-items: center;
+ background: var(--secondary);
+ color: var(--primary);
+ border-radius: 9px;
+}
+.cf-site-link h2 {
+ font-size: 17px;
+ font-weight: 550;
+ letter-spacing: -0.4px;
+}
+.cf-site-meta {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ gap: 10px;
+ color: var(--muted-foreground);
+ margin-top: 8px;
+ font-size: 12px;
+}
+.cf-portal-footer {
+ display: flex;
+ justify-content: space-between;
+ padding: 20px 40px;
+ border-top: 1px solid var(--border);
+ font-size: 10px;
+ color: var(--muted-foreground);
+}
+.cf-portal-footer a {
+ display: inline-flex;
+ align-items: center;
+ gap: 4px;
+}
+.cf-settings-card {
+ margin-top: 25px;
+ overflow: hidden;
+}
+.cf-setting-row {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 20px;
+ padding: 22px 26px;
+}
+.cf-setting-row + .cf-setting-row {
+ border-top: 1px solid var(--border);
+}
+.cf-setting-row h2 {
+ font-size: 13px;
+ font-weight: 550;
+ margin-bottom: 3px;
+}
+.cf-setting-row p {
+ font-size: 12px;
+ color: var(--muted-foreground);
+}
+.cf-back-link {
+ display: inline-flex;
+ align-items: center;
+ gap: 7px;
+ font-size: 12px;
+ color: var(--muted-foreground);
+ margin-bottom: 30px;
+}
+.cf-detail-header {
+ display: flex;
+ align-items: center;
+ gap: 15px;
+}
+.cf-detail-header .cf-site-icon {
+ width: 55px;
+ height: 55px;
+}
+.cf-details {
margin-top: 28px;
}
-@media (max-width: 640px) {
- .features {
+.cf-detail-row {
+ padding: 18px 24px;
+ display: flex;
+ justify-content: space-between;
+ gap: 20px;
+ align-items: center;
+}
+.cf-detail-row + .cf-detail-row {
+ border-top: 1px solid var(--border);
+}
+.cf-detail-row dt {
+ font-size: 12px;
+ color: var(--muted-foreground);
+}
+.cf-detail-row dd {
+ font-size: 13px;
+ margin: 0;
+}
+.cf-error {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ padding: 40px 24px;
+ text-align: center;
+}
+.cf-error-code {
+ font-family: Georgia, serif;
+ font-size: 100px;
+ line-height: 1;
+ color: var(--primary);
+ margin: 50px 0 22px !important;
+}
+.cf-error h1 {
+ font-size: 28px;
+ font-weight: 500;
+ letter-spacing: -1px;
+}
+.cf-error p:not(.cf-error-code) {
+ color: var(--muted-foreground);
+ margin: 12px 0 26px;
+ max-width: 420px;
+}
+@media (max-width: 1000px) {
+ .cf-marketing {
+ padding: 0 32px;
+ }
+ .cf-hero {
+ gap: 32px;
+ }
+ .cf-preview-grid img:first-child {
+ height: 220px;
+ }
+ .cf-preview-grid img {
+ height: 120px;
+ }
+ .cf-auth-visual {
+ padding: 32px;
+ }
+ .cf-portal-grid {
+ grid-template-columns: 190px minmax(0, 1fr);
+ }
+}
+@media (max-width: 700px) {
+ .cf-marketing {
+ padding: 0 24px;
+ }
+ .cf-marketing-header {
+ height: 80px;
+ }
+ .cf-marketing-nav {
+ gap: 12px;
+ }
+ .cf-marketing-nav > a:not(.cf-button) {
+ display: none;
+ }
+ .cf-marketing-nav .cf-button {
+ height: 36px;
+ padding: 0 12px;
+ }
+ .cf-hero {
+ grid-template-columns: 1fr;
+ padding: 45px 0 65px;
+ gap: 48px;
+ }
+ .cf-hero-title {
+ font-size: 62px;
+ }
+ .cf-hero-copy {
+ font-size: 15px;
+ }
+ .cf-gallery-preview {
+ max-width: 480px;
+ margin: 0 8px;
+ }
+ .cf-preview-grid img:first-child {
+ height: 220px;
+ }
+ .cf-preview-label {
+ left: -12px;
+ }
+ .cf-section-heading {
+ align-items: flex-start;
+ flex-direction: column;
+ gap: 10px;
+ }
+ .cf-section-heading h2 {
+ font-size: 27px;
+ }
+ .cf-features {
grid-template-columns: 1fr;
- gap: 28px;
+ gap: 30px;
+ }
+ .cf-features article {
+ padding-left: 18px;
+ }
+ .cf-features svg {
+ margin-bottom: 12px;
}
- .hero {
- padding: 64px 0;
+ .cf-features p {
+ max-width: none;
}
- .actions {
+ .cf-marketing-footer {
flex-wrap: wrap;
- gap: 12px;
}
- .cloud-nav nav {
- gap: 12px;
+ .cf-auth {
+ grid-template-columns: 1fr;
+ }
+ .cf-auth-visual {
+ display: none;
+ }
+ .cf-auth-main {
+ padding: 24px;
+ min-height: 100dvh;
+ }
+ .cf-auth-form {
+ padding: 50px 0;
+ }
+ .cf-portal-header {
+ height: 74px;
+ padding: 0 20px;
+ }
+ .cf-portal-header .cf-badge {
+ display: none;
+ }
+ .cf-portal-grid {
+ grid-template-columns: 1fr;
+ }
+ .cf-sidebar {
+ border-right: 0;
+ border-bottom: 1px solid var(--border);
+ padding: 10px 20px;
+ }
+ .cf-nav-label,
+ .cf-sidebar-bottom {
+ display: none;
+ }
+ .cf-sidebar nav {
+ flex-direction: row;
+ }
+ .cf-sidebar nav a {
+ min-width: 100px;
+ }
+ .cf-portal-main {
+ padding: 30px 20px 45px;
+ }
+ .cf-portal-footer {
+ padding: 18px 20px;
+ gap: 10px;
+ }
+ .cf-page-heading {
+ align-items: flex-start;
+ flex-direction: column;
+ gap: 14px;
+ }
+ .cf-info-grid,
+ .cf-site-grid {
+ grid-template-columns: 1fr;
+ }
+ .cf-setting-row {
+ padding: 20px;
+ flex-wrap: wrap;
+ }
+ .cf-detail-row {
+ padding: 16px 20px;
+ }
+}
+@media (prefers-reduced-motion: reduce) {
+ .cf-root *,
+ .cf-error * {
+ transition: none !important;
+ scroll-behavior: auto !important;
+ animation: none !important;
+ }
+}
+
+.cf-capitalize {
+ text-transform: capitalize;
+}
+.cf-inline-icon {
+ display: inline;
+ vertical-align: middle;
+ margin-right: 4px;
+}
+.cf-inline-status {
+ display: flex;
+ gap: 6px;
+ align-items: center;
+}
+.cf-auth-top .cf-back-link {
+ margin: 0;
+}
+.cf-notice-icon {
+ margin-bottom: 12px;
+}
+.cf-action-spaced {
+ margin-top: 20px;
+}
+.cf-section {
+ margin-top: 35px;
+}
+.cf-error-spaced {
+ margin-top: 16px;
+}
+
+.cf-auth-form strong,
+.cf-site-link h2,
+.cf-detail-header h1 {
+ overflow-wrap: anywhere;
+}
+.cf-detail-header > div {
+ min-width: 0;
+}
+@media (max-width: 380px) {
+ .cf-marketing-nav > .cf-button:not(.cf-button-icon) {
+ display: none;
+ }
+ .cf-hero-title {
+ font-size: clamp(44px, 15vw, 56px);
}
}
diff --git a/apps/cloud/app/components/CloudBrand.vue b/apps/cloud/app/components/CloudBrand.vue
new file mode 100644
index 00000000..d30abc77
--- /dev/null
+++ b/apps/cloud/app/components/CloudBrand.vue
@@ -0,0 +1,17 @@
+<script setup lang="ts">
+import { Aperture } from 'lucide-vue-next'
+defineProps<{ light?: boolean }>()
+</script>
+<template>
+ <NuxtLink
+ to="/"
+ class="cf-brand"
+ :class="{ 'cf-brand-light': light }"
+ aria-label="ChronoFrame home"
+ ><Aperture
+ :size="25"
+ :stroke-width="1.6"
+ aria-hidden="true"
+ /><span>ChronoFrame<span class="cf-brand-dot">.</span></span></NuxtLink
+ >
+</template>
diff --git a/apps/cloud/app/components/CloudPortalShell.vue b/apps/cloud/app/components/CloudPortalShell.vue
new file mode 100644
index 00000000..3d02331e
--- /dev/null
+++ b/apps/cloud/app/components/CloudPortalShell.vue
@@ -0,0 +1,55 @@
+<script setup lang="ts">
+import { Images, UserRound, ArrowUpRight, BookOpen } from 'lucide-vue-next'
+const route = useRoute()
+</script>
+<template>
+ <div class="cf-portal">
+ <header class="cf-portal-header">
+ <CloudBrand />
+ <div class="cf-header-actions">
+ <CloudBadge>Cloud preview</CloudBadge><CloudThemeToggle />
+ </div>
+ </header>
+ <div class="cf-portal-grid">
+ <aside class="cf-sidebar">
+ <p class="cf-nav-label">YOUR SPACE</p>
+ <nav aria-label="Portal navigation">
+ <NuxtLink
+ to="/sites"
+ :class="{ active: route.path.startsWith('/sites') }"
+ :aria-current="route.path.startsWith('/sites') ? 'page' : undefined"
+ ><Images :size="18" />Sites</NuxtLink
+ ><NuxtLink
+ to="/account"
+ :class="{ active: route.path === '/account' }"
+ :aria-current="route.path === '/account' ? 'page' : undefined"
+ ><UserRound :size="18" />Account</NuxtLink
+ >
+ </nav>
+ <div class="cf-sidebar-bottom">
+ <p>A little guidance?</p>
+ <a
+ href="https://docs.chronoframe.art/"
+ target="_blank"
+ rel="noopener noreferrer"
+ ><BookOpen :size="16" />Read the documentation<ArrowUpRight
+ :size="14"
+ /></a>
+ </div>
+ </aside>
+ <main
+ id="main-content"
+ class="cf-portal-main"
+ tabindex="-1"
+ >
+ <slot />
+ </main>
+ </div>
+ <footer class="cf-portal-footer">
+ <span>Made for the way you see.</span
+ ><a href="https://github.com/HoshinoSuzumi/chronoframe"
+ >Built in the open <ArrowUpRight :size="12"
+ /></a>
+ </footer>
+ </div>
+</template>
diff --git a/apps/cloud/app/components/CloudThemeToggle.vue b/apps/cloud/app/components/CloudThemeToggle.vue
new file mode 100644
index 00000000..cf845fbb
--- /dev/null
+++ b/apps/cloud/app/components/CloudThemeToggle.vue
@@ -0,0 +1,20 @@
+<script setup lang="ts">
+import { Sun, Moon } from 'lucide-vue-next'
+const mode = useColorMode()
+const dark = computed(() => mode.value === 'dark')
+</script>
+<template>
+ <ClientOnly
+ ><CloudButton
+ variant="ghost"
+ size="icon"
+ :aria-label="dark ? 'Switch to light theme' : 'Switch to dark theme'"
+ @click="mode.preference = dark ? 'light' : 'dark'"
+ ><Sun
+ v-if="dark"
+ :size="18" /><Moon
+ v-else
+ :size="18" /></CloudButton
+ ><template #fallback><span class="cf-theme-placeholder" /></template
+ ></ClientOnly>
+</template>
diff --git a/apps/cloud/app/components/ui/badge/CloudBadge.vue b/apps/cloud/app/components/ui/badge/CloudBadge.vue
new file mode 100644
index 00000000..8f60a497
--- /dev/null
+++ b/apps/cloud/app/components/ui/badge/CloudBadge.vue
@@ -0,0 +1,12 @@
+<script setup lang="ts">
+withDefaults(defineProps<{ tone?: 'neutral' | 'success' | 'warning' }>(), {
+ tone: 'neutral',
+})
+</script>
+<template>
+ <span
+ class="cf-badge"
+ :class="`cf-badge-${tone}`"
+ ><slot
+ /></span>
+</template>
diff --git a/apps/cloud/app/components/ui/badge/index.ts b/apps/cloud/app/components/ui/badge/index.ts
new file mode 100644
index 00000000..a2d7ce7a
--- /dev/null
+++ b/apps/cloud/app/components/ui/badge/index.ts
@@ -0,0 +1 @@
+export { default as CloudBadge } from './CloudBadge.vue'
diff --git a/apps/cloud/app/components/ui/button/CloudButton.vue b/apps/cloud/app/components/ui/button/CloudButton.vue
new file mode 100644
index 00000000..340cd0c0
--- /dev/null
+++ b/apps/cloud/app/components/ui/button/CloudButton.vue
@@ -0,0 +1,54 @@
+<script setup lang="ts">
+import { Primitive, type PrimitiveProps } from 'reka-ui'
+import { cva, type VariantProps } from 'class-variance-authority'
+import { cn } from '../../../utils/cn'
+import { LoaderCircle } from 'lucide-vue-next'
+const variants = cva('cf-button', {
+ variants: {
+ variant: {
+ default: 'cf-button-primary',
+ secondary: 'cf-button-secondary',
+ ghost: 'cf-button-ghost',
+ destructive: 'cf-button-destructive',
+ },
+ size: {
+ default: '',
+ sm: 'cf-button-sm',
+ lg: 'cf-button-lg',
+ icon: 'cf-button-icon',
+ },
+ },
+ defaultVariants: { variant: 'default', size: 'default' },
+})
+type ButtonVariants = VariantProps<typeof variants>
+const props = withDefaults(
+ defineProps<
+ PrimitiveProps & {
+ variant?: ButtonVariants['variant']
+ size?: ButtonVariants['size']
+ loading?: boolean
+ disabled?: boolean
+ class?: string
+ }
+ >(),
+ { as: 'button' },
+)
+</script>
+<template>
+ <Primitive
+ :as="as"
+ :as-child="asChild"
+ :class="cn(variants({ variant, size }), props.class)"
+ :disabled="disabled || loading || undefined"
+ :aria-busy="loading || undefined"
+ :type="as === 'button' && !asChild ? 'button' : undefined"
+ :data-disabled="disabled || loading || undefined"
+ >
+ <LoaderCircle
+ v-if="loading"
+ class="cf-spin"
+ :size="16"
+ aria-hidden="true"
+ /><slot />
+ </Primitive>
+</template>
diff --git a/apps/cloud/app/components/ui/button/index.ts b/apps/cloud/app/components/ui/button/index.ts
new file mode 100644
index 00000000..61f26de2
--- /dev/null
+++ b/apps/cloud/app/components/ui/button/index.ts
@@ -0,0 +1 @@
+export { default as CloudButton } from './CloudButton.vue'
diff --git a/apps/cloud/app/components/ui/card/CloudCard.vue b/apps/cloud/app/components/ui/card/CloudCard.vue
new file mode 100644
index 00000000..878ce26c
--- /dev/null
+++ b/apps/cloud/app/components/ui/card/CloudCard.vue
@@ -0,0 +1,7 @@
+<script setup lang="ts">
+import { cn } from '../../../utils/cn'
+const props = defineProps<{ class?: string }>()
+</script>
+<template>
+ <div :class="cn('cf-card', props.class)"><slot /></div>
+</template>
diff --git a/apps/cloud/app/components/ui/card/index.ts b/apps/cloud/app/components/ui/card/index.ts
new file mode 100644
index 00000000..b2a65353
--- /dev/null
+++ b/apps/cloud/app/components/ui/card/index.ts
@@ -0,0 +1 @@
+export { default as CloudCard } from './CloudCard.vue'
diff --git a/apps/cloud/app/components/ui/input/CloudInput.vue b/apps/cloud/app/components/ui/input/CloudInput.vue
new file mode 100644
index 00000000..7a54b86a
--- /dev/null
+++ b/apps/cloud/app/components/ui/input/CloudInput.vue
@@ -0,0 +1,11 @@
+<script setup lang="ts">
+import { cn } from '../../../utils/cn'
+const model = defineModel<string>({ default: '' })
+const props = defineProps<{ class?: string }>()
+</script>
+<template>
+ <input
+ v-model="model"
+ :class="cn('cf-input', props.class)"
+ />
+</template>
diff --git a/apps/cloud/app/components/ui/input/index.ts b/apps/cloud/app/components/ui/input/index.ts
new file mode 100644
index 00000000..e07787e7
--- /dev/null
+++ b/apps/cloud/app/components/ui/input/index.ts
@@ -0,0 +1 @@
+export { default as CloudInput } from './CloudInput.vue'
diff --git a/apps/cloud/app/composables/useCloudMotion.ts b/apps/cloud/app/composables/useCloudMotion.ts
new file mode 100644
index 00000000..a9a67185
--- /dev/null
+++ b/apps/cloud/app/composables/useCloudMotion.ts
@@ -0,0 +1,9 @@
+/** Keep entry transitions subtle and respect the visitor's motion preference. */
+export function useCloudMotion() {
+ const reduced = usePreferredReducedMotion()
+ return computed(() => ({
+ initial: { opacity: 0, y: reduced.value === 'reduce' ? 0 : 12 },
+ animate: { opacity: 1, y: 0 },
+ transition: { duration: reduced.value === 'reduce' ? 0 : 0.35 },
+ }))
+}
diff --git a/apps/cloud/app/error.vue b/apps/cloud/app/error.vue
index 48f2185c..49367419 100644
--- a/apps/cloud/app/error.vue
+++ b/apps/cloud/app/error.vue
@@ -1,29 +1,40 @@
<script setup lang="ts">
import type { NuxtError } from '#app'
-defineProps<{ error: NuxtError }>()
+import { ArrowLeft, RotateCw } from 'lucide-vue-next'
+const props = defineProps<{ error: NuxtError }>()
useHead({
title: 'ChronoFrame',
meta: [{ name: 'robots', content: 'noindex' }],
})
+const notFound = computed(() => props.error.statusCode === 404)
</script>
<template>
- <main class="unavailable">
- <p>ChronoFrame</p>
+ <main
+ id="main-content"
+ class="cf-error"
+ >
+ <CloudBrand />
+ <p class="cf-error-code">{{ error.statusCode }}</p>
<h1>
- {{ error.statusCode === 404 ? 'Page not found' : 'Service unavailable' }}
+ {{ notFound ? 'A frame we couldn’t find.' : 'A moment out of focus.' }}
</h1>
- <p>Please try again later.</p>
+ <p>
+ {{
+ notFound
+ ? 'This page may have moved, or you may not have access to it.'
+ : 'We couldn’t load this page. Please try again in a moment.'
+ }}
+ </p>
+ <div class="cf-header-actions">
+ <CloudButton
+ variant="secondary"
+ @click="clearError({ redirect: '/' })"
+ ><ArrowLeft :size="15" />Back to home</CloudButton
+ ><CloudButton
+ v-if="!notFound"
+ @click="reloadNuxtApp()"
+ ><RotateCw :size="15" />Try again</CloudButton
+ >
+ </div>
</main>
</template>
-<style scoped>
-.unavailable {
- max-width: 36rem;
- margin: 18vh auto;
- padding: 2rem;
- font-family: system-ui, sans-serif;
-}
-h1 {
- font-size: 2rem;
- margin: 1rem 0;
-}
-</style>
diff --git a/apps/cloud/app/pages/account.vue b/apps/cloud/app/pages/account.vue
index 4ff1be2f..1571f031 100644
--- a/apps/cloud/app/pages/account.vue
+++ b/apps/cloud/app/pages/account.vue
@@ -1,30 +1,105 @@
<script setup lang="ts">
+import { motion } from 'motion-v'
+import { ShieldCheck, ArrowRight, LogOut } from 'lucide-vue-next'
+const entrance = useCloudMotion()
+const busy = ref(false)
+const error = ref('')
+
useSeoMeta({ title: 'Your account — ChronoFrame', robots: 'noindex' })
const { data: session } = await useFetch('/api/auth/session')
if (!session.value?.authenticated) await navigateTo('/signin')
async function signOut() {
- await $fetch('/api/auth/logout', { method: 'POST' })
- clearNuxtData()
- useEntryContext().value = null
- useState('platform-site-catalog').value = null
- useState('platform-user-id').value = null
- useSettingsStore().$reset()
- await navigateTo('/signin')
+ if (busy.value) return
+ busy.value = true
+ error.value = ''
+ try {
+ await $fetch('/api/auth/logout', { method: 'POST' })
+ clearNuxtData()
+ useEntryContext().value = null
+ useState('platform-site-catalog').value = null
+ useState('platform-user-id').value = null
+ useSettingsStore().$reset()
+ await navigateTo('/signin')
+ } catch {
+ error.value = 'We could not sign you out. Please try again.'
+ } finally {
+ busy.value = false
+ }
}
</script>
<template>
- <main class="cloud-message">
- <NuxtLink
- to="/"
- class="brand"
- >ChronoFrame</NuxtLink
- >
- <h1>Your ChronoFrame account</h1>
- <p>
- Your email is verified. Workspace and site setup are coming in the next
- stage.
- </p>
- <NuxtLink to="/sites">Your sites</NuxtLink>
- <UButton @click="signOut">Sign out</UButton>
- </main>
+ <CloudPortalShell
+ ><motion.div v-bind="entrance"
+ ><div class="cf-page-heading">
+ <div>
+ <p class="cf-eyebrow">YOUR SPACE</p>
+ <h1 class="cf-page-title">Your account</h1>
+ <p class="cf-page-description">
+ A few essentials, so you can get back to what matters.
+ </p>
+ </div>
+ <CloudBadge tone="success"
+ ><ShieldCheck :size="12" />Email verified</CloudBadge
+ >
+ </div>
+ <CloudCard class="cf-settings-card"
+ ><div class="cf-setting-row">
+ <div>
+ <h2>Sign-in method</h2>
+ <p>Email verification code. No password required.</p>
+ </div>
+ <CloudBadge tone="success">Verified</CloudBadge>
+ </div>
+ <div class="cf-setting-row">
+ <div>
+ <h2>Your sites</h2>
+ <p>Find the galleries you have access to.</p>
+ </div>
+ <CloudButton
+ as-child
+ variant="secondary"
+ size="sm"
+ ><NuxtLink to="/sites"
+ >View sites <ArrowRight :size="14" /></NuxtLink
+ ></CloudButton>
+ </div>
+ <div class="cf-setting-row">
+ <div>
+ <h2>Appearance</h2>
+ <p>Choose the light that suits you.</p>
+ </div>
+ <CloudThemeToggle /></div
+ ></CloudCard>
+ <div class="cf-notice">
+ <strong>Your email is verified.</strong>Workspace and site setup are
+ coming in the next stage. We’ll keep the essentials here as your space
+ grows.
+ </div>
+ <CloudCard class="cf-settings-card"
+ ><div class="cf-setting-row">
+ <div>
+ <h2>Sign out</h2>
+ <p>End your current session on this browser.</p>
+ </div>
+ <CloudButton
+ variant="destructive"
+ :loading="busy"
+ @click="signOut"
+ ><LogOut
+ v-if="!busy"
+ :size="15"
+ />Sign out</CloudButton
+ >
+ </div></CloudCard
+ >
+ <p
+ v-if="error"
+ class="cf-error-message"
+ role="alert"
+ style="margin-top: 16px"
+ >
+ {{ error }}
+ </p>
+ </motion.div></CloudPortalShell
+ >
</template>
diff --git a/apps/cloud/app/pages/index.vue b/apps/cloud/app/pages/index.vue
index c0ab6a0c..f850f6cc 100644
--- a/apps/cloud/app/pages/index.vue
+++ b/apps/cloud/app/pages/index.vue
@@ -1,82 +1,168 @@
<script setup lang="ts">
+import { motion } from 'motion-v'
+import {
+ ArrowUpRight,
+ ArrowRight,
+ Image,
+ HardDrive,
+ Code2,
+ Check,
+} from 'lucide-vue-next'
+const entrance = useCloudMotion()
const signInUrl =
useRequestURL().hostname === 'chronoframe.art'
? 'https://app.chronoframe.art/signin'
: '/signin'
-
useSeoMeta({
title: 'ChronoFrame — A home for your photography',
description:
- 'A photography gallery you can make your own. Explore ChronoFrame and its self-hosted edition.',
+ 'A thoughtful home for your photographs. Beautiful galleries, your own storage, and an open-source heart.',
})
</script>
<template>
- <div class="cloud-page">
- <header class="cloud-nav">
- <NuxtLink
- to="/"
- class="brand"
- >ChronoFrame</NuxtLink
+ <div class="cf-marketing">
+ <header class="cf-marketing-header">
+ <CloudBrand />
+ <nav
+ class="cf-marketing-nav"
+ aria-label="Main navigation"
>
- <nav aria-label="Main navigation">
<a href="https://docs.chronoframe.art/">Documentation</a
- ><NuxtLink :to="signInUrl">Cloud access</NuxtLink>
+ ><a href="https://github.com/HoshinoSuzumi/chronoframe"
+ >GitHub
+ <ArrowUpRight
+ :size="12"
+ aria-hidden="true"
+ class="cf-inline-icon" /></a
+ ><CloudThemeToggle /><CloudButton
+ as-child
+ size="sm"
+ ><NuxtLink :to="signInUrl"
+ >Cloud access <ArrowUpRight :size="14" /></NuxtLink
+ ></CloudButton>
</nav>
</header>
- <main>
- <section class="hero">
- <p class="eyebrow">Your photography, in focus</p>
- <h1>A home for the moments<br />you want to share.</h1>
- <p class="intro">
- Bring your photographs together in a gallery that feels like yours.
- Start with ChronoFrame's self-hosted edition.
- </p>
- <div class="actions">
- <UButton
- to="https://github.com/HoshinoSuzumi/chronoframe"
- size="xl"
- >Explore Self-hosted</UButton
- ><UButton
- :to="signInUrl"
- variant="outline"
- size="xl"
- >Cloud availability</UButton
+ <main
+ id="main-content"
+ tabindex="-1"
+ >
+ <section class="cf-hero">
+ <motion.div v-bind="entrance"
+ ><p class="cf-eyebrow">YOUR PHOTOGRAPHY. YOUR PERSPECTIVE.</p>
+ <h1 class="cf-hero-title">Every frame.<br /><em>Your story.</em></h1>
+ <p class="cf-hero-copy">
+ A home for the moments you want to share. Bring your photographs
+ together in a gallery that feels entirely yours.
+ </p>
+ <div class="cf-hero-actions">
+ <CloudButton
+ as-child
+ size="lg"
+ ><NuxtLink :to="signInUrl"
+ >Explore Cloud <ArrowRight :size="16" /></NuxtLink></CloudButton
+ ><CloudButton
+ as-child
+ variant="secondary"
+ size="lg"
+ ><a href="https://docs.chronoframe.art/guide/getting-started.html"
+ >Explore Self-hosted <ArrowUpRight :size="16" /></a
+ ></CloudButton>
+ </div>
+ <p class="cf-small-note">
+ Self-hosted is available now. Cloud is in preview.
+ </p></motion.div
+ >
+ <motion.div v-bind="entrance"
+ ><div
+ class="cf-gallery-preview"
+ aria-label="Example photography gallery"
>
- </div>
+ <div class="cf-preview-top">
+ <span>FIELD NOTES</span><span>A CHRONOFRAME GALLERY</span>
+ </div>
+ <div class="cf-preview-grid">
+ <img
+ src="/images/mountains.jpg"
+ alt="Sunlit mountain peaks beneath a soft blue sky"
+ width="1200"
+ height="800"
+ fetchpriority="high"
+ /><img
+ src="/images/forest.jpg"
+ alt="Light falling through a quiet green forest"
+ width="800"
+ height="600"
+ /><img
+ src="/images/coast.jpg"
+ alt="An ocean shore in the warm light of sunset"
+ width="800"
+ height="600"
+ />
+ </div>
+ <div class="cf-preview-caption">
+ <span>Small moments. Wide horizons.</span><span>01 — 03</span>
+ </div>
+ <div class="cf-preview-label">
+ <Check :size="16" /><span
+ >A little space for your perspective.</span
+ >
+ </div>
+ </div></motion.div
+ >
</section>
- <section
- class="features"
- aria-label="ChronoFrame features"
- >
- <article>
- <span>01</span>
- <h2>Made for photographs</h2>
- <p>
- Give your images room to breathe, with albums and a dedicated photo
- viewer.
- </p>
- </article>
- <article>
- <span>02</span>
- <h2>Keep your own storage</h2>
- <p>Run the self-hosted edition with storage you control.</p>
- </article>
- <article>
- <span>03</span>
- <h2>Built in the open</h2>
- <p>
- Explore the source, contribute improvements, and make the gallery
- your own.
- </p>
- </article>
+ <section aria-labelledby="features-heading">
+ <div class="cf-section-heading">
+ <div>
+ <p class="cf-eyebrow">LESS BETWEEN YOU AND YOUR PHOTOGRAPHS</p>
+ <h2 id="features-heading">Thoughtfully simple. Entirely yours.</h2>
+ </div>
+ <CloudBadge>Open source, by nature</CloudBadge>
+ </div>
+ <div class="cf-features">
+ <article>
+ <Image
+ :size="23"
+ :stroke-width="1.5"
+ />
+ <h3>Let your photographs lead.</h3>
+ <p>
+ Quiet layouts, considered details, and a dedicated viewer. Give
+ every photograph the space it deserves.
+ </p>
+ </article>
+ <article>
+ <HardDrive
+ :size="23"
+ :stroke-width="1.5"
+ />
+ <h3>Your images. Your storage.</h3>
+ <p>
+ Run the self-hosted edition with storage you control. Keep your
+ collection close, on your terms.
+ </p>
+ </article>
+ <article>
+ <Code2
+ :size="23"
+ :stroke-width="1.5"
+ />
+ <h3>Made to be made your own.</h3>
+ <p>
+ Built in the open, with a shared foundation. Explore the source
+ and help shape what comes next.
+ </p>
+ </article>
+ </div>
</section>
</main>
- <footer>
- <span>ChronoFrame</span
+ <footer class="cf-marketing-footer">
+ <span
+ >© {{ new Date().getFullYear() }} ChronoFrame. Made for the way you
+ see.</span
><a
href="https://github.com/HoshinoSuzumi/chronoframe/blob/main/LICENSING.md"
- >Source and licensing</a
- >
+ >Source and licensing <ArrowUpRight :size="13"
+ /></a>
</footer>
</div>
</template>
diff --git a/apps/cloud/app/pages/signin.vue b/apps/cloud/app/pages/signin.vue
index 4c4e37f5..37acd6be 100644
--- a/apps/cloud/app/pages/signin.vue
+++ b/apps/cloud/app/pages/signin.vue
@@ -1,4 +1,10 @@
<script setup lang="ts">
+import { motion } from 'motion-v'
+import { ArrowLeft, ArrowRight, Mail, ShieldCheck } from 'lucide-vue-next'
+const entrance = useCloudMotion()
+const codeInput = ref<{ $el: HTMLInputElement }>()
+const emailInput = ref<{ $el: HTMLInputElement }>()
+
useSeoMeta({ title: 'Sign in — ChronoFrame', robots: 'noindex' })
const { data: status } = await useFetch('/api/auth/status')
const email = ref('')
@@ -6,10 +12,12 @@ const code = ref('')
const challenge = ref<string>()
const busy = ref(false)
const error = ref('')
-function resetChallenge() {
+async function resetChallenge() {
challenge.value = undefined
code.value = ''
error.value = ''
+ await nextTick()
+ emailInput.value?.$el?.focus()
}
async function submit() {
if (busy.value || !status.value?.enabled) return
@@ -22,6 +30,8 @@ async function submit() {
body: { email: email.value },
})
challenge.value = result.challengeId
+ await nextTick()
+ codeInput.value?.$el?.focus()
} else {
await $fetch('/api/auth/email/verify', {
method: 'POST',
@@ -47,68 +57,160 @@ async function submit() {
}
</script>
<template>
- <main class="cloud-message">
- <NuxtLink
- to="/"
- class="brand"
- >ChronoFrame</NuxtLink
+ <div class="cf-auth">
+ <aside
+ class="cf-auth-visual"
+ aria-label="About ChronoFrame"
>
- <h1>Sign in with your email.</h1>
- <template v-if="status?.enabled">
- <p>We will email you a six-digit code. It expires in 10 minutes.</p>
- <form
- @submit.prevent="submit"
- class="flex max-w-sm flex-col gap-4"
- >
- <label for="signin-email">Email address</label>
- <UInput
- id="signin-email"
- v-model="email"
- type="email"
- autocomplete="email"
- :disabled="!!challenge || busy"
- required
- />
- <template v-if="challenge">
- <label for="signin-code">Verification code</label>
- <UInput
- id="signin-code"
- v-model="code"
- inputmode="numeric"
- autocomplete="one-time-code"
- pattern="[0-9]{6}"
- maxlength="6"
- required
- />
+ <CloudBrand light />
+ <div>
+ <div class="cf-auth-quote">
+ <h2>A little space.<br />A different perspective.</h2>
+ <p>Your photographs deserve a home that feels like you.</p>
+ </div>
+ <p class="cf-auth-caption">CHRONOFRAME · MADE FOR THE WAY YOU SEE</p>
+ </div>
+ </aside>
+ <main
+ id="main-content"
+ class="cf-auth-main"
+ tabindex="-1"
+ >
+ <div class="cf-auth-top">
+ <NuxtLink
+ to="/"
+ class="cf-back-link"
+ ><ArrowLeft :size="15" />Back to home</NuxtLink
+ ><CloudThemeToggle />
+ </div>
+ <motion.div
+ v-bind="entrance"
+ class="cf-auth-form"
+ ><CloudBadge>Cloud preview</CloudBadge>
+ <h1>
+ {{ challenge ? 'Check your inbox.' : 'Welcome to your space.' }}
+ </h1>
+ <template v-if="status?.enabled">
+ <p
+ v-if="challenge"
+ role="status"
+ >
+ We sent a six-digit code to <strong>{{ email }}</strong
+ >. It expires in 10 minutes.
+ </p>
+ <p v-else>Sign in with your email. No password to remember.</p>
+ <form
+ @submit.prevent="submit"
+ :aria-busy="busy"
+ >
+ <label for="signin-email">Email address</label
+ ><CloudInput
+ id="signin-email"
+ ref="emailInput"
+ v-model="email"
+ type="email"
+ autocomplete="email"
+ placeholder="[email protected]"
+ :disabled="!!challenge || busy"
+ required
+ />
+ <template v-if="challenge"
+ ><label for="signin-code">Verification code</label
+ ><CloudInput
+ id="signin-code"
+ ref="codeInput"
+ v-model="code"
+ class="cf-code-input"
+ inputmode="numeric"
+ autocomplete="one-time-code"
+ pattern="[0-9]{6}"
+ maxlength="6"
+ :disabled="busy"
+ :aria-invalid="!!error"
+ :aria-describedby="error ? 'signin-error' : 'code-hint'"
+ required
+ />
+ <p
+ id="code-hint"
+ class="cf-auth-hint"
+ >
+ Enter the six digits from your email.
+ </p></template
+ >
+ <p
+ v-if="error"
+ id="signin-error"
+ class="cf-error-message"
+ role="alert"
+ >
+ {{ error }}
+ </p>
+ <CloudButton
+ type="submit"
+ :loading="busy"
+ >{{
+ busy
+ ? challenge
+ ? 'Signing in…'
+ : 'Sending code…'
+ : challenge
+ ? 'Sign in'
+ : 'Continue with email'
+ }}<ArrowRight
+ v-if="!busy"
+ :size="16"
+ /></CloudButton>
+ <CloudButton
+ v-if="challenge"
+ variant="ghost"
+ :disabled="busy"
+ @click="resetChallenge"
+ >Use another email or request a new code</CloudButton
+ >
+ <p
+ v-else
+ class="cf-auth-hint"
+ >
+ <ShieldCheck
+ :size="13"
+ style="
+ display: inline;
+ vertical-align: middle;
+ margin-right: 4px;
+ "
+ />We only use your email to help you sign in.
+ </p>
+ </form>
</template>
- <p
- v-if="error"
- role="alert"
- >
- {{ error }}
- </p>
- <UButton
- type="submit"
- :loading="busy"
- >{{ challenge ? 'Sign in' : 'Send code' }}</UButton
- >
- <UButton
- v-if="challenge"
- variant="ghost"
- :disabled="busy"
- @click="resetChallenge"
- >Use another email or request a new code</UButton
+ <template v-else
+ ><div
+ class="cf-notice"
+ role="status"
+ >
+ <Mail
+ :size="20"
+ class="cf-notice-icon"
+ /><strong
+ >Email sign-in is not available on this deployment yet.</strong
+ >Cloud access is still in preview. You can start your own gallery
+ with the self-hosted edition today.
+ </div>
+ <CloudButton
+ as-child
+ variant="secondary"
+ class="cf-action-spaced"
+ ><a href="https://docs.chronoframe.art/guide/getting-started.html"
+ >Explore Self-hosted<ArrowRight :size="16" /></a></CloudButton
+ ></template>
+ </motion.div>
+ <p class="cf-auth-bottom">
+ A home for your photographs.
+ <a
+ class="cf-text-link"
+ href="https://docs.chronoframe.art/"
+ >A little guidance, if you need it.</a
>
- </form>
- </template>
- <template v-else>
- <p>
- Email sign-in is not available on this deployment yet. You can use
- ChronoFrame today by running the self-hosted edition.
</p>
- <UButton to="https://github.com/HoshinoSuzumi/chronoframe"
- >Explore Self-hosted</UButton
- >
- </template>
- </main>
+ </main>
+ </div>
</template>
diff --git a/apps/cloud/app/pages/sites/[siteId]/index.vue b/apps/cloud/app/pages/sites/[siteId]/index.vue
index ca7a17ac..6a2227c6 100644
--- a/apps/cloud/app/pages/sites/[siteId]/index.vue
+++ b/apps/cloud/app/pages/sites/[siteId]/index.vue
@@ -1,4 +1,8 @@
<script setup lang="ts">
+import { motion } from 'motion-v'
+import { ArrowLeft, Images, ImagePlus, ShieldCheck } from 'lucide-vue-next'
+const entrance = useCloudMotion()
+
import type { EntrySiteContext } from '@chronoframe/contracts/entry'
definePageMeta({ key: (route) => route.fullPath })
useSeoMeta({ title: 'Manage site — ChronoFrame', robots: 'noindex' })
@@ -42,7 +46,71 @@ onMounted(() => {
onBeforeUnmount(() => stream?.close())
</script>
<template>
- <main class="cloud-message">
- <SiteContextCard /><NuxtLink to="/sites">Switch site</NuxtLink>
- </main>
+ <CloudPortalShell
+ ><motion.div
+ v-if="context"
+ v-bind="entrance"
+ ><NuxtLink
+ to="/sites"
+ class="cf-back-link"
+ ><ArrowLeft :size="15" />All sites</NuxtLink
+ >
+ <div class="cf-page-heading">
+ <div class="cf-detail-header">
+ <span class="cf-site-icon"
+ ><Images
+ :size="26"
+ :stroke-width="1.5"
+ /></span>
+ <div>
+ <p class="cf-eyebrow">SITE OVERVIEW</p>
+ <h1 class="cf-page-title">{{ context.name }}</h1>
+ </div>
+ </div>
+ <CloudBadge :tone="context.published ? 'success' : 'warning'">{{
+ context.published ? 'Published' : 'Not published'
+ }}</CloudBadge>
+ </div>
+ <CloudCard class="cf-details"
+ ><dl>
+ <div class="cf-detail-row">
+ <dt>Your role</dt>
+ <dd class="cf-capitalize">{{ context.role }}</dd>
+ </div>
+ <div class="cf-detail-row">
+ <dt>Publication status</dt>
+ <dd>{{ context.published ? 'Published' : 'Not published' }}</dd>
+ </div>
+ <div class="cf-detail-row">
+ <dt>Access</dt>
+ <dd class="cf-inline-status">
+ <ShieldCheck :size="14" />Membership verified
+ </dd>
+ </div>
+ </dl></CloudCard
+ >
+ <CloudCard
+ v-if="!context.capabilities.mediaManagement"
+ class="cf-empty"
+ ><div class="cf-empty-icon">
+ <ImagePlus
+ :size="27"
+ :stroke-width="1.4"
+ />
+ </div>
+ <h2>A space for what comes next.</h2>
+ <p>
+ Photo management and publishing setup are coming in the next stage.
+ For now, you can review your site and membership details here.
+ </p>
+ <CloudButton
+ as-child
+ variant="secondary"
+ ><a href="https://docs.chronoframe.art/"
+ >Read the documentation</a
+ ></CloudButton
+ ></CloudCard
+ >
+ </motion.div></CloudPortalShell
+ >
</template>
diff --git a/apps/cloud/app/pages/sites/index.vue b/apps/cloud/app/pages/sites/index.vue
index bd633485..b1253c41 100644
--- a/apps/cloud/app/pages/sites/index.vue
+++ b/apps/cloud/app/pages/sites/index.vue
@@ -1,4 +1,8 @@
<script setup lang="ts">
+import { motion } from 'motion-v'
+import { ArrowUpRight, Images, Compass, ShieldCheck } from 'lucide-vue-next'
+const entrance = useCloudMotion()
+
import type { EntrySiteCatalog } from '@chronoframe/contracts/entry'
useSeoMeta({ title: 'Your sites — ChronoFrame', robots: 'noindex' })
const userId = useState<number | null>('platform-user-id', () => null)
@@ -11,27 +15,88 @@ const sites = computed(() =>
)
</script>
<template>
- <main class="cloud-message">
- <h1>Your sites</h1>
- <ul
- v-if="sites.length"
- class="space-y-4"
- >
- <li
- v-for="site in sites"
- :key="site.siteId"
- >
- <NuxtLink :to="`/sites/${site.siteId}`">{{ site.name }}</NuxtLink>
- <span>
- · {{ site.role }} ·
- {{ site.published ? 'Published' : 'Not published' }}</span
+ <CloudPortalShell
+ ><motion.div v-bind="entrance"
+ ><div class="cf-page-heading">
+ <div>
+ <p class="cf-eyebrow">YOUR SPACE</p>
+ <h1 class="cf-page-title">Your sites</h1>
+ <p class="cf-page-description">
+ A home for each of your perspectives. Your galleries, all in one
+ place.
+ </p>
+ </div>
+ <CloudBadge
+ >{{ sites.length }}
+ {{ sites.length === 1 ? 'site' : 'sites' }}</CloudBadge
>
- </li>
- </ul>
- <p v-else>
- You have no sites yet. Workspace and site creation are coming in the next
- stage.
- </p>
- <NuxtLink to="/account">Your account</NuxtLink>
- </main>
+ </div>
+ <div
+ v-if="sites.length"
+ class="cf-site-grid"
+ >
+ <NuxtLink
+ v-for="site in sites"
+ :key="site.siteId"
+ :to="`/sites/${site.siteId}`"
+ :aria-label="site.name"
+ class="cf-site-link"
+ ><div class="cf-site-top">
+ <span class="cf-site-icon"><Images :size="20" /></span
+ ><CloudBadge :tone="site.published ? 'success' : 'warning'">{{
+ site.published ? 'Published' : 'Not published'
+ }}</CloudBadge>
+ </div>
+ <h2>{{ site.name }}</h2>
+ <div class="cf-site-meta">
+ <span class="cf-capitalize">{{ site.role }}</span
+ ><ArrowUpRight
+ :size="18"
+ aria-label="Open site"
+ /></div
+ ></NuxtLink>
+ </div>
+ <CloudCard
+ v-else
+ class="cf-empty"
+ ><div class="cf-empty-icon">
+ <Images
+ :size="27"
+ :stroke-width="1.4"
+ />
+ </div>
+ <h2>Your next chapter starts here.</h2>
+ <p>
+ You have no sites yet. Workspace and site creation are coming in the
+ next stage. Your space is ready when you are.
+ </p>
+ <CloudButton
+ as-child
+ variant="secondary"
+ ><a href="https://docs.chronoframe.art/"
+ >Explore the documentation
+ <ArrowUpRight :size="15" /></a></CloudButton
+ ></CloudCard>
+ <div class="cf-section">
+ <h2 class="cf-section-label">A few things to know</h2>
+ <div class="cf-info-grid">
+ <CloudCard class="cf-info-card"
+ ><Compass :size="21" />
+ <h2>One account. Your own perspective.</h2>
+ <p>
+ Sites are the home for your photographs. Each one has its own
+ identity and access permissions.
+ </p></CloudCard
+ ><CloudCard class="cf-info-card"
+ ><ShieldCheck :size="21" />
+ <h2>A shared space, thoughtfully private.</h2>
+ <p>
+ You only see sites you belong to. Your account and each gallery
+ have separate access boundaries.
+ </p></CloudCard
+ >
+ </div>
+ </div>
+ </motion.div></CloudPortalShell
+ >
</template>
diff --git a/apps/cloud/app/utils/cn.ts b/apps/cloud/app/utils/cn.ts
new file mode 100644
index 00000000..631ec27a
--- /dev/null
+++ b/apps/cloud/app/utils/cn.ts
@@ -0,0 +1,6 @@
+import { clsx, type ClassValue } from 'clsx'
+import { twMerge } from 'tailwind-merge'
+/** Merge shadcn utility classes while allowing local overrides. */
+export function cn(...inputs: ClassValue[]) {
+ return twMerge(clsx(inputs))
+}
diff --git a/apps/cloud/components.json b/apps/cloud/components.json
new file mode 100644
index 00000000..990a1ef0
--- /dev/null
+++ b/apps/cloud/components.json
@@ -0,0 +1,19 @@
+{
+ "$schema": "https://shadcn-vue.com/schema.json",
+ "style": "new-york",
+ "typescript": true,
+ "tailwind": {
+ "config": "",
+ "css": "app/assets/cloud.css",
+ "baseColor": "stone",
+ "cssVariables": true
+ },
+ "aliases": {
+ "components": "~/components",
+ "ui": "~/components/ui",
+ "utils": "~/utils/cn",
+ "lib": "~/utils",
+ "composables": "~/composables"
+ },
+ "iconLibrary": "lucide"
+}
diff --git a/apps/cloud/nuxt.config.ts b/apps/cloud/nuxt.config.ts
index f973d7e0..d227e526 100644
--- a/apps/cloud/nuxt.config.ts
+++ b/apps/cloud/nuxt.config.ts
@@ -6,6 +6,9 @@ const galleryPages = fileURLToPath(
)
export default defineNuxtConfig({
...sharedUi,
+ modules: [...sharedUi.modules, 'shadcn-nuxt'],
+ shadcn: { prefix: '', componentDir: './app/components/ui' },
+ app: { head: { htmlAttrs: { lang: 'en' } } },
devServer: { port: 3001 },
nitro: {
...sharedUi.nitro,
diff --git a/apps/cloud/package.json b/apps/cloud/package.json
index 84041190..a27507b9 100644
--- a/apps/cloud/package.json
+++ b/apps/cloud/package.json
@@ -12,29 +12,34 @@
"deploy": "wrangler deploy --config .output/server/wrangler.json"
},
"dependencies": {
- "nuxt": "^4.6.1",
- "vue": "^3.5.43",
+ "@chronoframe/console": "workspace:*",
+ "@chronoframe/contracts": "workspace:*",
+ "@chronoframe/core": "workspace:*",
+ "@chronoframe/gallery": "workspace:*",
+ "@chronoframe/platform": "workspace:*",
+ "@nuxt/icon": "2.5.1",
"@nuxt/ui": "^4.11.3",
- "reka-ui": "^2.11.0",
+ "@nuxtjs/color-mode": "4.0.1",
+ "@nuxtjs/i18n": "10.6.0",
"@pinia/nuxt": "^0.11.3",
- "pinia": "^3.0.4",
- "motion-v": "^2.6.0",
- "nuxt-auth-utils": "0.5.31",
+ "@unhead/vue": "3.4.2",
"@vueuse/nuxt": "14.4.0",
+ "class-variance-authority": "^0.7.1",
+ "clsx": "^2.1.1",
"dayjs-nuxt": "2.1.11",
- "@nuxtjs/i18n": "10.6.0",
+ "h3": "1.15.11",
+ "lucide-vue-next": "^1.0.0",
+ "motion-v": "^2.6.0",
+ "nuxt": "^4.6.1",
+ "nuxt-auth-utils": "0.5.31",
"nuxt-mapbox": "1.6.4",
"nuxt-maplibre": "^1.2.2",
"nuxt-og-image": "6.10.3",
- "@chronoframe/gallery": "workspace:*",
- "@chronoframe/console": "workspace:*",
- "@nuxtjs/color-mode": "4.0.1",
- "@nuxt/icon": "2.5.1",
"nuxt-site-config": "4.2.3",
- "@unhead/vue": "3.4.2",
- "@chronoframe/platform": "workspace:*",
- "@chronoframe/core": "workspace:*",
- "h3": "1.15.11",
- "@chronoframe/contracts": "workspace:*"
+ "pinia": "^3.0.4",
+ "reka-ui": "^2.11.0",
+ "shadcn-nuxt": "^2.8.2",
+ "tailwind-merge": "^3.7.0",
+ "vue": "^3.5.43"
}
}
diff --git a/apps/cloud/public/images/coast.jpg b/apps/cloud/public/images/coast.jpg
new file mode 100644
index 00000000..fe0b9ac1
Binary files /dev/null and b/apps/cloud/public/images/coast.jpg differ
diff --git a/apps/cloud/public/images/forest.jpg b/apps/cloud/public/images/forest.jpg
new file mode 100644
index 00000000..21066616
Binary files /dev/null and b/apps/cloud/public/images/forest.jpg differ
diff --git a/apps/cloud/public/images/mountains.jpg b/apps/cloud/public/images/mountains.jpg
new file mode 100644
index 00000000..1cfabe19
Binary files /dev/null and b/apps/cloud/public/images/mountains.jpg differ
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 8f673eff..c9f26ecd 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -709,6 +709,21 @@ importers:
apps/cloud:
dependencies:
+ shadcn-nuxt:
+ specifier: ^2.8.2
+ version: 2.8.2(@emnapi/[email protected])(@emnapi/[email protected])([email protected])
+ class-variance-authority:
+ specifier: ^0.7.1
+ version: 0.7.1
+ clsx:
+ specifier: ^2.1.1
+ version: 2.1.1
+ tailwind-merge:
+ specifier: ^3.7.0
+ version: 3.7.0
+ lucide-vue-next:
+ specifier: ^1.0.0
'@chronoframe/contracts':
specifier: workspace:*
version: link:../../packages/contracts
@@ -9230,6 +9245,177 @@ packages:
engines:
node: '>=22.0.0'
+ '@oxc-parser/[email protected]':
+ resolution:
+ integrity: sha512-pD2if3w3cxPvYbsBSTbhxAYGDaG6WVwnqYG0mYRQ142D6SJ6BpNs7YVQrqpRA2AJQCmzaPP5TRp/koFLebagfQ==
+ engines:
+ node: ^20.19.0 || >=22.12.0
+ cpu:
+ - arm64
+ os:
+ - android
+ '@oxc-parser/[email protected]':
+ resolution:
+ integrity: sha512-RzMN6f6MrjjpQC2Dandyod3iOscofYBpHaTecmoRRbC5sJMwsurkqUMHzoJX9F6IM87kn8m/JcClnoOfx5Sesw==
+ engines:
+ node: ^20.19.0 || >=22.12.0
+ cpu:
+ - arm64
+ os:
+ - darwin
+ '@oxc-parser/[email protected]':
+ resolution:
+ integrity: sha512-Sr2/3K6GEcejY+HgWp5HaxRPzW5XHe9IfGKVn9OhLt8fzVLnXbK5/GjXj7JjMCNKI3G3ZPZDG2Dgm6CX3MaHCA==
+ engines:
+ node: ^20.19.0 || >=22.12.0
+ cpu:
+ - x64
+ os:
+ - darwin
+ '@oxc-parser/[email protected]':
+ resolution:
+ integrity: sha512-s9F2N0KJCGEpuBW6ChpFfR06m2Id9ReaHSl8DCca4HvFNt8SJFPp8fq42n2PZy68rtkremQasM0JDrK2BoBeBQ==
+ engines:
+ node: ^20.19.0 || >=22.12.0
+ cpu:
+ - x64
+ os:
+ - freebsd
+ '@oxc-parser/[email protected]':
+ resolution:
+ integrity: sha512-zRCIOWzLbqhfY4g8KIZDyYfO2Fl5ltxdQI1v2GlePj66vFWRl8cf4qcBGzxKfsH3wCZHAhmWd1Ht59mnrfH/UQ==
+ engines:
+ node: ^20.19.0 || >=22.12.0
+ cpu:
+ - arm
+ os:
+ - linux
+ '@oxc-parser/[email protected]':
+ resolution:
+ integrity: sha512-5n5RbHgfjulRhKB0pW5p0X/NkQeOpI4uI9WHgIZbORUDATGFC8yeyPA6xYGEs+S3MyEAFxl4v544UEIWwqAgsA==
+ engines:
+ node: ^20.19.0 || >=22.12.0
+ cpu:
+ - arm64
+ os:
+ - linux
+ libc:
+ - glibc
+ '@oxc-parser/[email protected]':
+ resolution:
+ integrity: sha512-/XWcmglH/VJ4yKAGTLRgPKSSikh3xciNxkwGiURt8dS30b+3pwc4ZZmudMu0tQ3mjSu0o7V9APZLMpbHK8Bp5w==
+ engines:
+ node: ^20.19.0 || >=22.12.0
+ cpu:
+ - arm64
+ os:
+ - linux
+ libc:
+ - musl
+ '@oxc-parser/[email protected]':
+ resolution:
+ integrity: sha512-2jtIq4nswvy6xdqv1ndWyvVlaRpS0yqomLCvvHdCFx3pFXo5Aoq4RZ39kgvFWrbAtpeYSYeAGFnwgnqjx9ftdw==
+ engines:
+ node: ^20.19.0 || >=22.12.0
+ cpu:
+ - riscv64
+ os:
+ - linux
+ libc:
+ - glibc
+ '@oxc-parser/[email protected]':
+ resolution:
+ integrity: sha512-Yp6HX/574mvYryiqj0jNvNTJqo4pdAsNP2LPBTxlDQ1cU3lPd7DUA4MQZadaeLI8+AGB2Pn50mPuPyEwFIxeFg==
+ engines:
+ node: ^20.19.0 || >=22.12.0
+ cpu:
+ - s390x
+ os:
+ - linux
+ libc:
+ - glibc
+ '@oxc-parser/[email protected]':
+ resolution:
+ integrity: sha512-R4b0xZpDRhoNB2XZy0kLTSYm0ZmWeKjTii9fcv1Mk3/SIGPrrglwt4U6zEtwK54Dfi4Bve5JnQYduigR/gyDzw==
+ engines:
+ node: ^20.19.0 || >=22.12.0
+ cpu:
+ - x64
+ os:
+ - linux
+ libc:
+ - glibc
+ '@oxc-parser/[email protected]':
+ resolution:
+ integrity: sha512-xM5A+03Ti3jvWYZoqaBRS3lusvnvIQjA46Fc9aBE/MHgvKgHSkrGEluLWg/33QEwBwxupkH25Pxc1yu97oZCtg==
+ engines:
+ node: ^20.19.0 || >=22.12.0
+ cpu:
+ - x64
+ os:
+ - linux
+ libc:
+ - musl
+ '@oxc-parser/[email protected]':
+ resolution:
+ integrity: sha512-AieLlsliblyaTFq7Iw9Nc618tgwV02JT4fQ6VIUd/3ZzbluHIHfPjIXa6Sds+04krw5TvCS8lsegtDYAyzcyhg==
+ engines:
+ node: ^20.19.0 || >=22.12.0
+ cpu:
+ - arm64
+ os:
+ - openharmony
+ '@oxc-parser/[email protected]':
+ resolution:
+ integrity: sha512-w6HRyArs1PBb9rDsQSHlooe31buUlUI2iY8sBzp62jZ1tmvaJo9EIVTQlRNDkwJmk9DF9uEyIJ82EkZcCZTs9A==
+ engines:
+ node: '>=14.0.0'
+ cpu:
+ - wasm32
+ '@oxc-parser/[email protected]':
+ resolution:
+ integrity: sha512-pqP5UuLiiFONQxqGiUFMdsfybaK1EOK4AXiPlvOvacLaatSEPObZGpyCkAcj9aZcvvNwYdeY9cxGM9IT3togaA==
+ engines:
+ node: ^20.19.0 || >=22.12.0
+ cpu:
+ - arm64
+ os:
+ - win32
+ '@oxc-parser/[email protected]':
+ resolution:
+ integrity: sha512-ntMcL35wuLR1A145rLSmm7m7j8JBZGkROoB9Du0KFIFcfi/w1qk75BdCeiTl3HAKrreAnuhW3QOGs6mJhntowA==
+ engines:
+ node: ^20.19.0 || >=22.12.0
+ cpu:
+ - x64
+ os:
+ - win32
+ '@oxc-project/[email protected]':
+ resolution:
+ integrity: sha512-8Skrw405g+/UJPKWJ1twIk3BIH2nXdiVlVNtYT23AXVwpsd79es4K+KYt06Fbnkc5BaTvk/COT2JuCLYdwnCdA==
+ resolution:
+ integrity: sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==
+ resolution:
+ integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==
+ engines:
+ node: '>=6'
+ resolution:
+ integrity: sha512-V6SPvx1IHTj/UY+FrIYWV5faISsPSb8BnWSFDxAtezWKvWc9ZZ40PDrdu1/Qb5vg4lHWr1hs1BAMGVGm6V1Xdg==
+ deprecated: Package deprecated. Please use @lucide/vue instead.
+ peerDependencies:
+ vue: '>=3.0.1'
+ resolution:
+ integrity: sha512-xMiyHgr2FZsphQ12ZCsXRvSYzmKXCm1ejmyG4GDZIiKOmhyt5iKtWq0klOfFsEQ6jcgbwrUdwcCVYzr1F+h5og==
+ engines:
+ node: ^20.19.0 || >=22.12.0
+ resolution:
+ integrity: sha512-MjHCs7tAO/xJDk80JUeHe2QtkOAN3a/qEK5zX4UTrZY0q1/pFglBdf88OUC+w0SNZJBIeCMjdth57ucK74hM5g==
+
snapshots:
'@adonisjs/[email protected]':
@@ -18066,3 +18252,83 @@ snapshots:
optionalDependencies:
workerd: 1.20261019.1
'@cloudflare/[email protected]': {}
+
+ dependencies:
+ '@emnapi/core': 1.11.2
+ '@emnapi/runtime': 1.11.3
+ '@tybys/wasm-util': 0.10.3
+ optional: true
+ '@oxc-parser/[email protected]':
+ optional: true
+ '@oxc-parser/[email protected]':
+ optional: true
+ '@oxc-parser/[email protected]':
+ optional: true
+ '@oxc-parser/[email protected]':
+ optional: true
+ '@oxc-parser/[email protected]':
+ optional: true
+ '@oxc-parser/[email protected]':
+ optional: true
+ '@oxc-parser/[email protected]':
+ optional: true
+ '@oxc-parser/[email protected]':
+ optional: true
+ '@oxc-parser/[email protected]':
+ optional: true
+ '@oxc-parser/[email protected]':
+ optional: true
+ '@oxc-parser/[email protected]':
+ optional: true
+ '@oxc-parser/[email protected]':
+ optional: true
+ '@oxc-parser/[email protected](@emnapi/[email protected])(@emnapi/[email protected])':
+ dependencies:
+ '@napi-rs/wasm-runtime': 1.1.6(@emnapi/[email protected])(@emnapi/[email protected])
+ transitivePeerDependencies:
+ - '@emnapi/core'
+ - '@emnapi/runtime'
+ optional: true
+ '@oxc-parser/[email protected]':
+ optional: true
+ '@oxc-parser/[email protected]':
+ optional: true
+ '@oxc-project/[email protected]': {}
+ dependencies:
+ clsx: 2.1.1
+ dependencies:
+ vue: 3.5.43([email protected])
+ dependencies:
+ '@oxc-project/types': 0.102.0
+ optionalDependencies:
+ '@oxc-parser/binding-android-arm64': 0.102.0
+ '@oxc-parser/binding-darwin-arm64': 0.102.0
+ '@oxc-parser/binding-darwin-x64': 0.102.0
+ '@oxc-parser/binding-freebsd-x64': 0.102.0
+ '@oxc-parser/binding-linux-arm-gnueabihf': 0.102.0
+ '@oxc-parser/binding-linux-arm64-gnu': 0.102.0
+ '@oxc-parser/binding-linux-arm64-musl': 0.102.0
+ '@oxc-parser/binding-linux-riscv64-gnu': 0.102.0
+ '@oxc-parser/binding-linux-s390x-gnu': 0.102.0
+ '@oxc-parser/binding-linux-x64-gnu': 0.102.0
+ '@oxc-parser/binding-linux-x64-musl': 0.102.0
+ '@oxc-parser/binding-openharmony-arm64': 0.102.0
+ '@oxc-parser/binding-wasm32-wasi': 0.102.0(@emnapi/[email protected])(@emnapi/[email protected])
+ '@oxc-parser/binding-win32-arm64-msvc': 0.102.0
+ '@oxc-parser/binding-win32-x64-msvc': 0.102.0
+ transitivePeerDependencies:
+ - '@emnapi/core'
+ - '@emnapi/runtime'
+ dependencies:
+ '@nuxt/kit': 3.21.2([email protected])
+ oxc-parser: 0.102.0(@emnapi/[email protected])(@emnapi/[email protected])
+ transitivePeerDependencies:
+ - '@emnapi/core'
+ - '@emnapi/runtime'
+ - magicast
diff --git a/scripts/smoke-edge-entry.mjs b/scripts/smoke-edge-entry.mjs
index 2dd42df9..44e2544e 100644
--- a/scripts/smoke-edge-entry.mjs
+++ b/scripts/smoke-edge-entry.mjs
@@ -84,7 +84,7 @@ try {
if (!portalOrigin)
assert.match(
html,
- entry === 'cloud' ? /A home for the moments/ : /service unavailable/i,
+ entry === 'cloud' ? /Every frame\./ : /service unavailable/i,
)
if (entry === 'cloud') {
assert.equal((await fetch(base + '/signin')).status, 200)