From 6c04904e44f1bb5f050b08c549ed57c624156997 Mon Sep 17 00:00:00 2001 From: npmrun <1549469775@qq.com> Date: Thu, 21 May 2026 17:21:50 +0800 Subject: [PATCH] feat: implement photo gallery page with masonry layout and infinite scroll - Added a new photo gallery page with a responsive masonry layout. - Implemented infinite scrolling to load more photo cards dynamically. - Created various card components for different content types (text, image, portfolio, etc.). - Enhanced user experience with loading animations and responsive design adjustments. - Updated styles for improved visual presentation and accessibility. --- app/assets/css/main.css | 1 + app/components/TopNav.vue | 85 ++++- app/layouts/default.vue | 6 +- app/pages/auth/index.vue | 648 +++++++++++++++++++++++++++++++++++++ app/pages/discover/index.vue | 368 --------------------- app/pages/index/index.vue | 746 ++++++++++++++++++++++++++++++++++++++++++- app/pages/photo/index.vue | 368 +++++++++++++++++++++ 7 files changed, 1844 insertions(+), 378 deletions(-) create mode 100644 app/pages/auth/index.vue delete mode 100644 app/pages/discover/index.vue create mode 100644 app/pages/photo/index.vue diff --git a/app/assets/css/main.css b/app/assets/css/main.css index 6f9020d..4d5476e 100644 --- a/app/assets/css/main.css +++ b/app/assets/css/main.css @@ -17,6 +17,7 @@ --color-hairline: #e6dfd8; --color-hairline-soft: #ebe6df; --color-on-dark: #faf9f5; + --color-on-dark-soft: #a09d96; --color-on-primary: #ffffff; --color-accent-teal: #5db8a6; --color-accent-amber: #e8a55a; diff --git a/app/components/TopNav.vue b/app/components/TopNav.vue index 180ffff..024f870 100644 --- a/app/components/TopNav.vue +++ b/app/components/TopNav.vue @@ -6,13 +6,13 @@ const navHidden = ref(false) const route = useRoute() const links = [ - { label: '发现', to: '/discover' }, + { label: '摄影', to: '/photo' }, { label: '作品集', to: '/portfolio' }, { label: '关于', to: '/about' }, ] let lastScrollY = 0 -const HIDE_OFFSET = 80 +const HIDE_OFFSET = 520 function onScroll() { const y = window.scrollY @@ -58,8 +58,17 @@ watch(() => route.path, () => { {{ link.label }} +
  • + 登录 + 注册 +
  • + +