diff --git a/surfsense_web/app/(home)/changelog/page.tsx b/surfsense_web/app/(home)/changelog/page.tsx index 343e8964e..b4754e105 100644 --- a/surfsense_web/app/(home)/changelog/page.tsx +++ b/surfsense_web/app/(home)/changelog/page.tsx @@ -5,122 +5,118 @@ import { formatDate } from "@/lib/utils"; import { getMDXComponents } from "@/mdx-components"; export const metadata: Metadata = { - title: "Changelog | SurfSense", - description: "See what's new in SurfSense.", + title: "Changelog | SurfSense", + description: "See what's new in SurfSense.", }; const source = loader({ - baseUrl: "/changelog", - source: changelog.toFumadocsSource(), + baseUrl: "/changelog", + source: changelog.toFumadocsSource(), }); interface ChangelogData { - title: string; - date: string; - version?: string; - tags?: string[]; - body: React.ComponentType<{ - components?: Record; - }>; + title: string; + date: string; + version?: string; + tags?: string[]; + body: React.ComponentType<{ components?: Record }>; } interface ChangelogPageItem { - url: string; - data: ChangelogData; + url: string; + data: ChangelogData; } export default async function ChangelogPage() { - const allPages = source.getPages() as ChangelogPageItem[]; - const sortedChangelogs = allPages.sort((a, b) => { - const dateA = new Date(a.data.date).getTime(); - const dateB = new Date(b.data.date).getTime(); - return dateB - dateA; - }); + const allPages = source.getPages() as ChangelogPageItem[]; + const sortedChangelogs = allPages.sort((a, b) => { + const dateA = new Date(a.data.date).getTime(); + const dateB = new Date(b.data.date).getTime(); + return dateB - dateA; + }); - return ( -
- {/* Header */} -
-
-
-
-

- Changelog -

-

- Stay up to date with the latest updates and improvements to - SurfSense. -

-
-
-
-
+ return ( +
+ {/* Header */} +
+
+
+
+

+ Changelog +

+

+ Stay up to date with the latest updates and improvements to SurfSense. +

+
+
+
+
- {/* Timeline */} -
-
- {sortedChangelogs.map((changelog) => { - const MDX = changelog.data.body; - const date = new Date(changelog.data.date); - const formattedDate = formatDate(date); + {/* Timeline */} +
+
+ {sortedChangelogs.map((changelog) => { + const MDX = changelog.data.body; + const date = new Date(changelog.data.date); + const formattedDate = formatDate(date); - return ( -
-
-
-
- + return ( +
+
+
+
+ - {changelog.data.version && ( -
- {changelog.data.version} -
- )} -
-
+ {changelog.data.version && ( +
+ {changelog.data.version} +
+ )} +
+
- {/* Right side - Content */} -
- {/* Vertical timeline line */} -
- {/* Timeline dot */} -
-
+ {/* Right side - Content */} +
+ {/* Vertical timeline line */} +
+ {/* Timeline dot */} +
+
-
-
-

- {changelog.data.title} -

+
+
+

+ {changelog.data.title} +

- {/* Tags */} - {changelog.data.tags && - changelog.data.tags.length > 0 && ( -
- {changelog.data.tags.map((tag: string) => ( - - {tag} - - ))} -
- )} -
-
- -
-
-
-
-
- ); - })} -
-
-
- ); + {/* Tags */} + {changelog.data.tags && changelog.data.tags.length > 0 && ( +
+ {changelog.data.tags.map((tag: string) => ( + + {tag} + + ))} +
+ )} +
+
+ +
+
+
+
+
+ ); + })} +
+
+
+ ); } diff --git a/surfsense_web/app/(home)/contact/page.tsx b/surfsense_web/app/(home)/contact/page.tsx index b64080ead..097f753cb 100644 --- a/surfsense_web/app/(home)/contact/page.tsx +++ b/surfsense_web/app/(home)/contact/page.tsx @@ -2,16 +2,16 @@ import type { Metadata } from "next"; import { ContactFormGridWithDetails } from "@/components/contact/contact-form"; export const metadata: Metadata = { - title: "Contact | SurfSense", - description: "Get in touch with the SurfSense team.", + title: "Contact | SurfSense", + description: "Get in touch with the SurfSense team.", }; const page = () => { - return ( -
- -
- ); + return ( +
+ +
+ ); }; export default page; diff --git a/surfsense_web/app/(home)/pricing/page.tsx b/surfsense_web/app/(home)/pricing/page.tsx index 4b7bf6201..3236e54df 100644 --- a/surfsense_web/app/(home)/pricing/page.tsx +++ b/surfsense_web/app/(home)/pricing/page.tsx @@ -2,16 +2,16 @@ import type { Metadata } from "next"; import PricingBasic from "@/components/pricing/pricing-section"; export const metadata: Metadata = { - title: "Pricing | SurfSense", - description: "Explore SurfSense plans and pricing options.", + title: "Pricing | SurfSense", + description: "Explore SurfSense plans and pricing options.", }; const page = () => { - return ( -
- -
- ); + return ( +
+ +
+ ); }; export default page;