Skip to content

Commit 0da5c0c

Browse files
committed
fix: correct URL structure by moving brand and product pages to root level
- Move /design/brand/page.tsx to /brand/page.tsx - Move /design/product/page.tsx to /product/page.tsx - Update Header navigation links: /design/brand → /brand, /design/product → /product - Update Hero component links: /design/brand/ → /brand/, /design/product/ → /product/ - Update Footer links: /design/brand# → /brand#, /design/product# → /product# - Remove old /design folder structure - Fix production URLs: buzzvil.github.io/design/brand/ → buzzvil.github.io/design/brand/ - Maintain basePath: '/design' for GitHub Pages deployment
1 parent 3f4ac02 commit 0da5c0c

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed
File renamed without changes.
File renamed without changes.

src/components/layout/Footer.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ const Footer = () => {
1717
{ name: t('footer.foundations.tools'), href: '#tools' },
1818
],
1919
'Brand': [
20-
{ name: t('footer.brand.principles'), href: '/design/brand#principles' },
21-
{ name: t('footer.brand.guidelines'), href: '/design/brand#guidelines' },
22-
{ name: t('footer.brand.resources'), href: '/design/brand#resources' },
20+
{ name: t('footer.brand.principles'), href: '/brand#principles' },
21+
{ name: t('footer.brand.guidelines'), href: '/brand#guidelines' },
22+
{ name: t('footer.brand.resources'), href: '/brand#resources' },
2323
],
2424
'Product': [
25-
{ name: t('footer.product.principles'), href: '/design/product#principles' },
26-
{ name: t('footer.product.guidelines'), href: '/design/product#guidelines' },
27-
{ name: t('footer.product.resources'), href: '/design/product#resources' },
25+
{ name: t('footer.product.principles'), href: '/product#principles' },
26+
{ name: t('footer.product.guidelines'), href: '/product#guidelines' },
27+
{ name: t('footer.product.resources'), href: '/product#resources' },
2828
],
2929
'Connect': [
3030
{ name: t('footer.connect.contact'), href: 'mailto:design@buzzvil.com' },

src/components/layout/Header.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ const Header = () => {
1515

1616
const navItems = [
1717
{ name: t('nav.foundations'), href: '/', icon: BookOpen },
18-
{ name: t('nav.brand'), href: '/design/brand', icon: Award },
19-
{ name: t('nav.product'), href: '/design/product', icon: Code },
18+
{ name: t('nav.brand'), href: '/brand', icon: Award },
19+
{ name: t('nav.product'), href: '/product', icon: Code },
2020
];
2121

2222
return (

src/components/sections/Hero.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,15 @@ const Hero = () => {
9696
{t('hero.explore')}
9797
</motion.a>
9898
<motion.a
99-
href="/design/brand/"
99+
href="/brand/"
100100
whileHover={{ scale: 1.02, y: -1 }}
101101
whileTap={{ scale: 0.98 }}
102102
className="px-6 py-3 border border-border/50 text-foreground rounded-lg font-medium hover:border-border hover:bg-muted/50 transition-all duration-150 focus-ring"
103103
>
104104
{t('hero.brand')}
105105
</motion.a>
106106
<motion.a
107-
href="/design/product/"
107+
href="/product/"
108108
whileHover={{ scale: 1.02, y: -1 }}
109109
whileTap={{ scale: 0.98 }}
110110
className="px-6 py-3 border border-border/50 text-foreground rounded-lg font-medium hover:border-border hover:bg-muted/50 transition-all duration-150 focus-ring"

0 commit comments

Comments
 (0)