refactor: update routes, marketing links, and footer configuration

This commit is contained in:
javayhu 2025-03-01 16:42:50 +08:00
parent 1f6f9f0f2d
commit 24eb819a85
4 changed files with 49 additions and 40 deletions

View File

@ -1,5 +1,5 @@
---
slug: mkdirs
name: mkdirs
name: Mkdirs
avatar: /images/avatars/mkdirs.png
---

View File

@ -32,6 +32,11 @@ export const MENU_LINKS = [
href: Routes.Blog,
external: false
},
{
title: 'Docs',
href: Routes.Docs,
external: false
},
{
title: 'AI',
items: [
@ -39,42 +44,42 @@ export const MENU_LINKS = [
title: 'Features',
description: 'Short description here',
icon: <CubeIcon className="size-5 shrink-0" />,
href: '#',
href: Routes.Features,
external: false
},
{
title: 'Pricing',
description: 'Short description here',
icon: <PlayIcon className="size-5 shrink-0" />,
href: '#',
external: false
},
{
title: 'Testimonials',
description: 'Short description here',
icon: <CircuitBoardIcon className="size-5 shrink-0" />,
href: '#',
href: Routes.Pricing,
external: false
},
{
title: 'FAQ',
description: 'Short description here',
icon: <LayoutIcon className="size-5 shrink-0" />,
href: '#',
href: Routes.FAQ,
external: false
},
{
title: 'Roadmap',
description: 'Short description here',
icon: <FileBarChartIcon className="size-5 shrink-0" />,
href: '#',
external: false
href: Routes.Roadmap,
external: true
}
]
},
{
title: 'Pages',
items: [
{
title: 'About',
description: 'Short description here',
icon: <PaperPlaneIcon className="size-5 shrink-0" />,
href: Routes.About,
external: false
},
{
title: 'Contact',
description: 'Short description here',
@ -82,18 +87,11 @@ export const MENU_LINKS = [
href: Routes.Contact,
external: false
},
{
title: 'Roadmap',
description: 'Short description here',
icon: <LayoutIcon className="size-5 shrink-0" />,
href: Routes.Roadmap,
external: true
},
{
title: 'Waitlist',
description: 'Short description here',
icon: <BookOpenIcon className="size-5 shrink-0" />,
href: Routes.Docs,
href: Routes.Waitlist,
external: false
}
]

View File

@ -1,37 +1,39 @@
import type { FooterConfig } from "@/types";
import { Routes } from "@/routes";
export const footerConfig: FooterConfig = {
links: [
{
title: "Product",
items: [
{ title: "Features", href: "/#features" },
{ title: "Pricing", href: "/#pricing" },
{ title: "FAQ", href: "/#faq" },
{ title: "Features", href: Routes.Features },
{ title: "Pricing", href: Routes.Pricing },
{ title: "FAQ", href: Routes.FAQ },
],
},
{
title: "Resources",
items: [
{ title: "Blog", href: "/blog" },
{ title: "Documentation", href: "/docs", },
{ title: "Changelog", href: "/changelog" },
{ title: "Blog", href: Routes.Blog },
{ title: "Documentation", href: Routes.Docs },
{ title: "Changelog", href: Routes.Changelog },
{ title: "Roadmap", href: Routes.Roadmap },
],
},
{
title: "Company",
items: [
{ title: "Waitlist", href: "/waitlist" },
{ title: "About Us", href: "/about" },
{ title: "Contact Us", href: "/contact" },
{ title: "Waitlist", href: Routes.Waitlist },
{ title: "About Us", href: Routes.About },
{ title: "Contact Us", href: Routes.Contact },
],
},
{
title: "Legal",
items: [
{ title: "Cookie Policy", href: "/cookie" },
{ title: "Privacy Policy", href: "/privacy" },
{ title: "Terms of Service", href: "/terms" },
{ title: "Cookie Policy", href: Routes.CookiePolicy },
{ title: "Privacy Policy", href: Routes.PrivacyPolicy },
{ title: "Terms of Service", href: Routes.TermsOfUse },
],
},
],

View File

@ -3,17 +3,26 @@
*/
export enum Routes {
Root = '/',
Contact = '/contact',
Roadmap = 'https://achromatic.canny.io',
Docs = '/docs',
Pricing = '/pricing',
Blog = '/blog',
Story = '/story',
Careers = '/careers',
Features = '/#features',
Pricing = '/#pricing',
FAQ = '/#faq',
TermsOfUse = '/terms-of-use',
PrivacyPolicy = '/privacy-policy',
CookiePolicy = '/cookie-policy',
Blog = '/blog',
Docs = '/docs',
Changelog = '/changelog',
Roadmap = 'https://mksaas.canny.io',
About = '/about',
Contact = '/contact',
Waitlist = '/waitlist',
Story = '/story',
Careers = '/careers',
Login = '/auth/login',
Register = '/auth/register',
AuthError = '/auth/error',