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: refine hosting cards and pricing footer

Timothy Yin79df0eda2070
diff --git a/apps/cloud/app/assets/cloud.css b/apps/cloud/app/assets/cloud.css
index 730f8de2..665a50ac 100644
--- a/apps/cloud/app/assets/cloud.css
+++ b/apps/cloud/app/assets/cloud.css
@@ -168,9 +168,24 @@
.cf-story-details p, .cf-ways-grid p { color: var(--muted-foreground); font-size: 13px; line-height: 1.8; }
.cf-ways { padding: 80px 0 90px; border-top: 1px solid var(--border); }
.cf-ways-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
-.cf-ways-grid article { padding: 30px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); }
-.cf-ways-grid p { max-width: 420px; min-height: 48px; }
-.cf-ways-grid a { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--foreground); font-size: 13px; font-weight: 550; }
+.cf-ways-grid .cf-way-card { display: block; color: var(--foreground); padding: 26px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); }
+.cf-ways-grid .cf-way-card { position: relative; overflow: hidden; isolation: isolate; transition: border-color .2s ease, box-shadow .2s ease; }
+.cf-ways-grid .cf-way-card::after { content: ''; position: absolute; z-index: -1; right: -48px; top: -84px; width: 210px; height: 210px; border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent); border-radius: 50%; box-shadow: 0 0 0 28px color-mix(in srgb, var(--accent) 4%, transparent), 0 0 0 56px color-mix(in srgb, var(--accent) 3%, transparent); pointer-events: none; }
+.cf-ways-grid .cf-way-server::after { border-radius: 28px; transform: rotate(45deg); }
+.cf-ways-grid .cf-way-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: 0 12px 28px -22px color-mix(in srgb, var(--accent) 45%, transparent); }
+.cf-way-card:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
+.cf-way-ribbon { position: absolute; top: 22px; right: -38px; width: 160px; padding: 6px 0; transform: rotate(45deg); background: var(--accent); color: var(--card); text-align: center; font-size: 10px; font-weight: 650; letter-spacing: .02em; }
+.cf-way-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, var(--card)); color: var(--accent); }
+.cf-ways-grid .cf-way-card h3 { margin-top: 18px; }
+.cf-way-card h3 { display: flex; align-items: center; gap: 8px; }
+.cf-way-card h3 svg { transition: transform .2s ease; }
+.cf-way-card:hover h3 svg { transform: translateX(4px); }
+@media (prefers-reduced-motion: reduce) { .cf-way-card h3 svg { transition: none; } }
+.cf-ways-grid p { max-width: 420px; }
+.cf-ways-grid .cf-way-action { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--foreground); font-size: 13px; font-weight: 550; }
+.cf-ways-grid .cf-way-action svg { transition: transform .2s ease; }
+.cf-ways-grid .cf-way-card:hover .cf-way-action svg { transform: translateX(4px); }
+@media (prefers-reduced-motion: reduce) { .cf-ways-grid .cf-way-card, .cf-ways-grid .cf-way-action svg { transition: none; } }
.cf-home-cta { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 64px 0 76px; border-top: 1px solid var(--border); }
.cf-home-cta .cf-button { flex-shrink: 0; }
@media (max-width: 700px) {
@@ -3029,13 +3044,21 @@ a.cf-domain-address:hover {
.cf-pricing-footer {
display: flex;
align-items: center;
- justify-content: center;
+ justify-content: space-between;
flex-wrap: wrap;
- gap: 12px 24px;
- margin-top: 24px;
+ gap: 16px 32px;
+ margin-top: 48px;
+ padding: 24px 0 32px;
+ border-top: 1px solid var(--border);
color: var(--muted-foreground);
font-size: 12px;
}
+.cf-pricing-footer-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
+.cf-pricing-footer .cf-legal-links { padding: 0; gap: 8px 20px; }
+.cf-pricing-footer a:hover { color: var(--foreground); }
+@media (max-width: 700px) {
+ .cf-pricing-footer { align-items: flex-start; flex-direction: column; }
+}
.cf-pricing-card:target {
outline: 2px solid var(--ring);
outline-offset: 3px;
diff --git a/apps/cloud/app/components/CloudPricing.vue b/apps/cloud/app/components/CloudPricing.vue
index 89db3ee6..dd3cce62 100644
--- a/apps/cloud/app/components/CloudPricing.vue
+++ b/apps/cloud/app/components/CloudPricing.vue
@@ -833,13 +833,14 @@ async function submitCheckout(plan: any, mode?: string) {
>
</section></template
>
- <div class="cf-pricing-footer">
- <CloudSupportLink /><NuxtLink
+ <footer class="cf-pricing-footer">
+ <div class="cf-pricing-footer-actions"><CloudSupportLink /><NuxtLink
:to="links.redeem"
:external="!portal"
>{{ $t('cloud.billing.redeem') }}</NuxtLink
- >
- </div>
+ ></div>
+ <CloudLegalLinks />
+ </footer>
<UModal
v-model:open="checkoutOpen"
:title="$t('cloud.payments.subscribeConfirm')"
@@ -1050,6 +1051,5 @@ async function submitCheckout(plan: any, mode?: string) {
></template
>
</UModal>
- <CloudLegalLinks />
</div>
</template>
diff --git a/apps/cloud/app/pages/index.vue b/apps/cloud/app/pages/index.vue
index 91dd7a8e..222234f7 100644
--- a/apps/cloud/app/pages/index.vue
+++ b/apps/cloud/app/pages/index.vue
@@ -10,6 +10,8 @@ import {
Code2,
Search,
SlidersHorizontal,
+ Cloud,
+ Server,
} from 'lucide-vue-next'
const entrance = useCloudMotion()
const links = useCloudLinks()
@@ -203,8 +205,8 @@ useSeoMeta({
<p>{{ $t('cloud.home.waysDescription') }}</p>
</div>
<div class="cf-ways-grid">
- <article><h3>ChronoFrame Cloud</h3><p>{{ $t('cloud.home.cloudDescription') }}</p><NuxtLink :to="links.signup" external>{{ $t('cloud.messages.createYourAccount') }} <ArrowRight :size="15" /></NuxtLink></article>
- <article><h3>{{ $t('cloud.home.selfHostedTitle') }}</h3><p>{{ $t('cloud.home.selfHostedDescription') }}</p><a href="https://docs.chronoframe.art/guide/getting-started.html">{{ $t('cloud.messages.exploreSelfHosted') }} <ArrowUpRight :size="15" /></a></article>
+ <NuxtLink :to="links.signup" external class="cf-way-card cf-way-cloud"><span class="cf-way-ribbon">{{ $t('cloud.home.trialRibbon') }}</span><div class="cf-way-icon" aria-hidden="true"><Cloud :size="22" :stroke-width="1.5" /></div><h3>ChronoFrame Cloud <ArrowRight :size="16" aria-hidden="true" /></h3><p>{{ $t('cloud.home.cloudDescription') }}</p></NuxtLink>
+ <a href="https://docs.chronoframe.art/guide/getting-started.html" class="cf-way-card cf-way-server"><div class="cf-way-icon" aria-hidden="true"><Server :size="22" :stroke-width="1.5" /></div><h3>{{ $t('cloud.home.selfHostedTitle') }} <ArrowUpRight :size="16" aria-hidden="true" /></h3><p>{{ $t('cloud.home.selfHostedDescription') }}</p></a>
</div>
</section>
<section class="cf-home-cta" aria-labelledby="home-cta-heading">
diff --git a/apps/cloud/i18n/locales/en.json b/apps/cloud/i18n/locales/en.json
index 6aa087e3..b3cf2b80 100644
--- a/apps/cloud/i18n/locales/en.json
+++ b/apps/cloud/i18n/locales/en.json
@@ -1,6 +1,7 @@
{
"cloud": {
"home": {
+ "trialRibbon": "14-day trial",
"selfHostedTitle": "Self-hosted",
"ctaDescription": "Bring your photographs together and make a gallery that feels like yours.",
"detailDescription": "Open a photograph in the dedicated viewer and spend time with the details.",
@@ -9,7 +10,7 @@
"detailTitle": "Take a closer look",
"storyTitle": "See the whole story. Stay for the details.",
"storyCaption": "A place for the moments that stay with you.",
- "selfHostedDescription": "Run ChronoFrame on your own infrastructure, with storage you control.",
+ "selfHostedDescription": "Run ChronoFrame on your own infrastructure.",
"waysDescription": "Start with a hosted gallery or make a home for your photographs on your own infrastructure.",
"ctaEyebrow": "MAKE SPACE FOR YOUR PHOTOGRAPHS",
"ctaTitle": "Your next chapter starts here.",
diff --git a/apps/cloud/i18n/locales/zh-Hans.json b/apps/cloud/i18n/locales/zh-Hans.json
index 61949290..052ee9c1 100644
--- a/apps/cloud/i18n/locales/zh-Hans.json
+++ b/apps/cloud/i18n/locales/zh-Hans.json
@@ -1,6 +1,7 @@
{
"cloud": {
"home": {
+ "trialRibbon": "14 天试用",
"selfHostedTitle": "自部署",
"ctaDescription": "把照片聚在一起,打造真正属于你的图库。",
"detailDescription": "在专属照片查看器中打开画面,细细欣赏每处细节。",
@@ -9,7 +10,7 @@
"detailTitle": "靠近一点看",
"storyTitle": "看见完整故事,也看见每处细节。",
"storyCaption": "为值得珍藏的瞬间,留一个位置。",
- "selfHostedDescription": "在自己的基础设施上运行 ChronoFrame,使用由你掌控的存储。",
+ "selfHostedDescription": "在自己的基础设施上运行 ChronoFrame。",
"waysDescription": "使用托管图库开始,或在自己的基础设施上为照片安家。",
"ctaEyebrow": "为照片留一处空间",
"ctaTitle": "从这里,开启下一章。",