From ebe92f0eb18ef7f299f7dda8a561c19554d944a7 Mon Sep 17 00:00:00 2001 From: shenlan Date: Tue, 2 Dec 2025 00:24:44 +0800 Subject: [PATCH] Redesign homepage layout and footer (#694) --- dashboard/src/components/Footer.tsx | 95 +++++++++++-------- dashboard/src/modules/homepage/page.tsx | 120 ++++++++++++++---------- 2 files changed, 126 insertions(+), 89 deletions(-) diff --git a/dashboard/src/components/Footer.tsx b/dashboard/src/components/Footer.tsx index d34eada..efca3c8 100644 --- a/dashboard/src/components/Footer.tsx +++ b/dashboard/src/components/Footer.tsx @@ -3,6 +3,7 @@ import { usePathname } from 'next/navigation' import { useLanguage } from '../i18n/LanguageProvider' import { translations } from '../i18n/translations' +import { useTheme } from './theme/useTheme' const HIDDEN_PATH_PREFIXES = ['/login', '/register'] @@ -16,55 +17,71 @@ export default function Footer() { const { language } = useLanguage() const t = translations[language].footerLinks const [privacy, terms, contact] = t + const { isDark, toggleTheme, theme } = useTheme() + + const socialLinks = [ + { label: 'GitHub', href: 'https://github.com/CloudNativeSuite', icon: 'GH' }, + { label: 'X', href: 'https://x.com', icon: 'X' }, + { label: 'LinkedIn', href: 'https://www.linkedin.com', icon: 'in' }, + { label: 'Mail', href: 'mailto:manbuzhe2008@gmail.com', icon: '✉' }, + ] return ( -