Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.
TypeScript albumsexif-extractiongeocodinglive-photomotion-photophoto-galleryphoto-sharingwebgl-viewer
feat: redesign homepage gallery section
Timothy Yin8d7d1e2a2276
diff --git a/apps/cloud/app/assets/cloud.css b/apps/cloud/app/assets/cloud.cssindex e0c81261..7bb25f53 100644--- a/apps/cloud/app/assets/cloud.css+++ b/apps/cloud/app/assets/cloud.css@@ -156,14 +156,19 @@max-width: 290px;line-height: 1.8;}-.cf-story { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(40px, 8vw, 110px); padding: 90px 0; border-top: 1px solid var(--border); }-.cf-story-image { position: relative; overflow: hidden; border-radius: 8px; aspect-ratio: 5 / 4; background: var(--card); }-.cf-story-image img { width: 100%; height: 100%; object-fit: cover; }-.cf-story-image span { position: absolute; bottom: 20px; left: 22px; color: white; font-size: 11px; text-shadow: 0 1px 8px #000; }+.cf-story { padding: 80px 0 90px; border-top: 1px solid var(--border); }+.cf-story-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 36px; }.cf-story h2, .cf-ways h2, .cf-home-cta h2 { margin: 18px 0 !important; font-size: clamp(32px, 3.3vw, 48px); font-weight: 450; letter-spacing: -.045em; line-height: 1.15; }-.cf-story-content > p:not(.cf-eyebrow), .cf-ways-heading > p:not(.cf-eyebrow), .cf-home-cta p:not(.cf-eyebrow) { max-width: 440px; color: var(--muted-foreground); line-height: 1.8; font-size: 15px; }-.cf-story-details { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-top: 38px; }-.cf-story-details span, .cf-ways-number { color: var(--accent); font-size: 10px; letter-spacing: .12em; }+.cf-story-intro h2 { max-width: none; margin-bottom: 0 !important; }+.cf-story-intro > p, .cf-ways-heading > p:not(.cf-eyebrow), .cf-home-cta p:not(.cf-eyebrow) { max-width: 440px; color: var(--muted-foreground); line-height: 1.8; font-size: 15px; }+.cf-story-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 40px; align-items: stretch; }+.cf-story-gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 360px; }+.cf-story-gallery img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 5px; }+.cf-story-gallery img:first-child { grid-row: span 2; }+.cf-story-details { display: grid; grid-template-rows: 1fr 1fr; }+.cf-story-details > div { padding: 18px 0; border-top: 1px solid var(--border); }+.cf-story-details > div:first-child { border-top: 0; padding-top: 0; }+.cf-story-details svg { color: var(--accent); }.cf-story-details h3, .cf-ways-grid h3 { margin: 12px 0 8px; font-size: 16px; font-weight: 550; }.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); }@@ -190,7 +195,12 @@.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) {- .cf-story { grid-template-columns: 1fr; gap: 32px; padding: 60px 0; }+ .cf-story { padding: 60px 0; }+ .cf-story-intro { align-items: flex-start; flex-direction: column; gap: 12px; }+ .cf-story-layout { grid-template-columns: 1fr; gap: 24px; }+ .cf-story-gallery { height: 280px; }+ .cf-story-details { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 20px; }+ .cf-story-details > div { border-top: 0; padding-top: 0; }.cf-ways { padding: 60px 0; }.cf-ways-grid { grid-template-columns: 1fr; }.cf-home-cta { align-items: flex-start; flex-direction: column; padding: 55px 0; }@@ -775,7 +785,19 @@.cf-marketing {padding: 0 24px;}- .cf-marketing-header {+ .cf-home-page { position: relative; isolation: isolate; }+.cf-home-page::before {+ content: '';+ position: absolute;+ z-index: -1;+ inset: 0;+ pointer-events: none;+ background:+ radial-gradient(ellipse 390px 430px at 95% 13%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 75%),+ radial-gradient(ellipse 360px 400px at 4% 55%, color-mix(in srgb, var(--accent) 4%, transparent), transparent 75%),+ radial-gradient(ellipse 360px 300px at 92% 83%, color-mix(in srgb, var(--accent) 5%, transparent), transparent 75%);+}+.cf-marketing-header {height: 80px;}.cf-marketing-nav {@@ -902,6 +924,18 @@font-size: clamp(44px, 15vw, 56px);}}+.cf-home-page { position: relative; isolation: isolate; }+.cf-home-page::before {+ content: '';+ position: absolute;+ z-index: -1;+ inset: 0;+ pointer-events: none;+ background:+ radial-gradient(ellipse 390px 430px at 95% 13%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 75%),+ radial-gradient(ellipse 360px 400px at 4% 55%, color-mix(in srgb, var(--accent) 4%, transparent), transparent 75%),+ radial-gradient(ellipse 360px 300px at 92% 83%, color-mix(in srgb, var(--accent) 5%, transparent), transparent 75%);+}.cf-marketing-header {height: auto;min-height: 76px;@@ -969,7 +1003,19 @@.cf-marketing {padding-inline: 20px;}- .cf-marketing-header {+ .cf-home-page { position: relative; isolation: isolate; }+.cf-home-page::before {+ content: '';+ position: absolute;+ z-index: -1;+ inset: 0;+ pointer-events: none;+ background:+ radial-gradient(ellipse 390px 430px at 95% 13%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 75%),+ radial-gradient(ellipse 360px 400px at 4% 55%, color-mix(in srgb, var(--accent) 4%, transparent), transparent 75%),+ radial-gradient(ellipse 360px 300px at 92% 83%, color-mix(in srgb, var(--accent) 5%, transparent), transparent 75%);+}+.cf-marketing-header {height: 72px;min-height: 72px;flex-wrap: nowrap;diff --git a/apps/cloud/app/pages/index.vue b/apps/cloud/app/pages/index.vueindex ffd21b1c..443d8ae3 100644--- a/apps/cloud/app/pages/index.vue+++ b/apps/cloud/app/pages/index.vue@@ -184,17 +184,19 @@ useSeoMeta({</div></section><section class="cf-story" aria-labelledby="story-heading">- <div class="cf-story-image">- <img src="/images/valley.jpg" alt="" loading="lazy" width="600" height="400" />- <span>{{ $t('cloud.home.storyCaption') }}</span>- </div>- <div class="cf-story-content">-+ <div class="cf-story-intro"><h2 id="story-heading">{{ $t('cloud.home.storyTitle') }}</h2><p>{{ $t('cloud.home.storyDescription') }}</p>+ </div>+ <div class="cf-story-layout">+ <div class="cf-story-gallery" aria-hidden="true">+ <img src="/images/valley.jpg" alt="" loading="lazy" width="600" height="400" />+ <img src="/images/forest.jpg" alt="" loading="lazy" width="400" height="300" />+ <img src="/images/coast.jpg" alt="" loading="lazy" width="400" height="300" />+ </div><div class="cf-story-details">- <div><h3>{{ $t('cloud.home.browseTitle') }}</h3><p>{{ $t('cloud.home.browseDescription') }}</p></div>- <div><h3>{{ $t('cloud.home.detailTitle') }}</h3><p>{{ $t('cloud.home.detailDescription') }}</p></div>+ <div><Image :size="21" :stroke-width="1.5" aria-hidden="true" /><h3>{{ $t('cloud.home.browseTitle') }}</h3><p>{{ $t('cloud.home.browseDescription') }}</p></div>+ <div><Search :size="21" :stroke-width="1.5" aria-hidden="true" /><h3>{{ $t('cloud.home.detailTitle') }}</h3><p>{{ $t('cloud.home.detailDescription') }}</p></div></div></div></section>@@ -228,7 +230,7 @@ useSeoMeta({</div></div><div class="cf-footer-bottom">- <span>© {{ new Date().getFullYear() }} {{ $t('cloud.messages.chronoframeMadeForTheWayYouSee') }}</span>+ <span>© {{ new Date().getFullYear() }} ChronoFrame.</span><CloudLegalLinks /></div></footer>diff --git a/apps/cloud/i18n/locales/en.json b/apps/cloud/i18n/locales/en.jsonindex b3cf2b80..f30130f1 100644--- a/apps/cloud/i18n/locales/en.json+++ b/apps/cloud/i18n/locales/en.json@@ -8,7 +8,7 @@"cloudDescription": "Create an account and get started with a hosted ChronoFrame gallery.","storyEyebrow": "MADE FOR LOOKING BACK","detailTitle": "Take a closer look",- "storyTitle": "See the whole story. Stay for the details.",+ "storyTitle": "A gallery made for the way you see.","storyCaption": "A place for the moments that stay with you.","selfHostedDescription": "Run ChronoFrame on your own infrastructure.","waysDescription": "Start with a hosted gallery or make a home for your photographs on your own infrastructure.",@@ -16,7 +16,7 @@"ctaTitle": "Your next chapter starts here.","browseDescription": "Explore photographs in a masonry gallery, or bring related moments together in albums.","waysEyebrow": "YOUR GALLERY, YOUR WAY",- "storyDescription": "From a collection of everyday moments to a favorite frame, give your photographs a home that invites you to look a little longer.",+ "storyDescription": "Bring your photographs together, explore them your way, and enjoy each image in detail.","waysTitle": "Choose where your story lives.","browseTitle": "Browse your way"},diff --git a/apps/cloud/i18n/locales/zh-Hans.json b/apps/cloud/i18n/locales/zh-Hans.jsonindex 052ee9c1..144cf816 100644--- a/apps/cloud/i18n/locales/zh-Hans.json+++ b/apps/cloud/i18n/locales/zh-Hans.json@@ -8,7 +8,7 @@"cloudDescription": "创建账号,即可开始使用托管的 ChronoFrame 图库。","storyEyebrow": "为回忆而设计","detailTitle": "靠近一点看",- "storyTitle": "看见完整故事,也看见每处细节。",+ "storyTitle": "以你的视角,呈现每一张照片。","storyCaption": "为值得珍藏的瞬间,留一个位置。","selfHostedDescription": "在自己的基础设施上运行 ChronoFrame。","waysDescription": "使用托管图库开始,或在自己的基础设施上为照片安家。",@@ -16,7 +16,7 @@"ctaTitle": "从这里,开启下一章。","browseDescription": "在瀑布流图库中探索照片,或将相关的瞬间整理成相簿。","waysEyebrow": "你的图库,由你选择",- "storyDescription": "从日常点滴到最珍爱的画面,为照片打造一个让人愿意驻足回看的家。",+ "storyDescription": "把照片聚在一起,用喜欢的方式浏览,细细欣赏每一张作品。","waysTitle": "选择故事安放的地方。","browseTitle": "用喜欢的方式浏览"},