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.

fix(cloud): simplify mobile marketing navigation

Timothy Yinc693c6b7e58e
diff --git a/apps/cloud/app/assets/cloud.css b/apps/cloud/app/assets/cloud.css
index 51eb7d47..92bbfded 100644
--- a/apps/cloud/app/assets/cloud.css
+++ b/apps/cloud/app/assets/cloud.css
@@ -1112,18 +1112,6 @@
border-top: 1px solid var(--border);
}
@media (max-width: 600px) {
- .cf-marketing-header {
- flex-wrap: wrap;
- gap: 14px;
- }
- .cf-marketing-nav {
- justify-content: flex-end;
- flex: 1;
- gap: 6px;
- }
- .cf-marketing-nav .cf-button {
- padding-inline: 10px;
- }
.cf-portal-header {
flex-wrap: wrap;
gap: 12px;
@@ -1132,3 +1120,83 @@
grid-template-columns: 1fr;
}
}
+
+/* A single quiet header row on small screens; secondary actions live together. */
+.cf-mobile-header-actions {
+ display: none;
+}
+.cf-mobile-menu {
+ z-index: 60;
+ width: 240px;
+ padding: 8px;
+ border: 1px solid var(--border);
+ border-radius: 14px;
+ background: var(--card);
+ color: var(--foreground);
+ box-shadow: 0 12px 32px #20281f14;
+}
+.cf-mobile-menu nav {
+ display: grid;
+ gap: 2px;
+}
+.cf-mobile-menu nav a {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: 12px;
+ border-radius: 8px;
+ font-size: 14px;
+}
+.cf-mobile-menu nav a:hover {
+ background: var(--secondary);
+}
+.cf-mobile-menu-theme {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: 8px 8px 0 12px;
+ margin-top: 6px;
+ border-top: 1px solid var(--border);
+ color: var(--muted-foreground);
+ font-size: 12px;
+}
+@media (max-width: 700px) {
+ .cf-marketing {
+ padding-inline: 20px;
+ }
+ .cf-marketing-header {
+ height: 72px;
+ min-height: 72px;
+ flex-wrap: nowrap;
+ gap: 10px;
+ padding-block: 0;
+ }
+ .cf-marketing-header > .cf-brand {
+ font-size: 18px;
+ gap: 7px;
+ white-space: nowrap;
+ }
+ .cf-marketing-header .cf-brand-logo {
+ width: 28px;
+ height: 28px;
+ }
+ .cf-marketing-nav {
+ display: none;
+ }
+ .cf-mobile-header-actions {
+ display: flex;
+ align-items: center;
+ gap: 5px;
+ }
+ .cf-mobile-header-actions > .cf-button {
+ height: 36px;
+ padding-inline: 12px;
+ white-space: nowrap;
+ }
+ .cf-mobile-header-actions .cf-button-icon {
+ width: 36px;
+ height: 36px;
+ padding: 0;
+ flex-shrink: 0;
+ }
+}
diff --git a/apps/cloud/app/pages/index.vue b/apps/cloud/app/pages/index.vue
index f42e0704..7c1bca11 100644
--- a/apps/cloud/app/pages/index.vue
+++ b/apps/cloud/app/pages/index.vue
@@ -7,7 +7,10 @@ import {
HardDrive,
Code2,
Check,
+ Menu,
} from 'lucide-vue-next'
+import { PopoverRoot, PopoverTrigger, PopoverContent } from 'reka-ui'
+const mobileMenuOpen = ref(false)
const entrance = useCloudMotion()
const links = useCloudLinks()
useSeoMeta({
@@ -50,6 +53,50 @@ useSeoMeta({
>Get started <ArrowUpRight :size="14" /></NuxtLink
></CloudButton>
</nav>
+ <div class="cf-mobile-header-actions">
+ <CloudButton
+ as-child
+ size="sm"
+ ><NuxtLink
+ :to="links.signup"
+ external
+ >Sign up</NuxtLink
+ ></CloudButton
+ >
+ <PopoverRoot v-model:open="mobileMenuOpen">
+ <PopoverTrigger as-child
+ ><CloudButton
+ variant="ghost"
+ size="icon"
+ aria-label="Open navigation"
+ ><Menu :size="20" /></CloudButton
+ ></PopoverTrigger>
+ <PopoverContent
+ class="cf-mobile-menu"
+ align="end"
+ :side-offset="12"
+ :collision-padding="20"
+ aria-label="Navigation"
+ >
+ <nav aria-label="Mobile navigation">
+ <NuxtLink
+ :to="links.signin"
+ external
+ >Log in <ArrowRight :size="16"
+ /></NuxtLink>
+ <a href="https://docs.chronoframe.art/"
+ >Documentation <ArrowUpRight :size="15"
+ /></a>
+ <a href="https://github.com/HoshinoSuzumi/chronoframe"
+ >GitHub <ArrowUpRight :size="15"
+ /></a>
+ </nav>
+ <div class="cf-mobile-menu-theme">
+ <span>Appearance</span><CloudThemeToggle />
+ </div>
+ </PopoverContent>
+ </PopoverRoot>
+ </div>
</header>
<main
id="main-content"