Skip to content

Commit 2e8bc7b

Browse files
committed
refactor: update imports and styling for consistency across Open Source and Security pages
- Changed import from "framer-motion" to "motion/react" for both Open Source and Security pages. - Updated color classes from "gray" to "neutral" for better theming consistency. - Adjusted button and text styles to use neutral colors in both pages. - Enhanced accessibility by ensuring consistent dark mode styles. - Added link items configuration in layout for Blog and Sponsors with appropriate icons.
1 parent 325fabb commit 2e8bc7b

File tree

7 files changed

+1320
-957
lines changed

7 files changed

+1320
-957
lines changed

src/app/(site)/contact/page.tsx

Lines changed: 80 additions & 80 deletions
Large diffs are not rendered by default.

src/app/(site)/layout.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use client";
22

3-
import { baseOptions } from "@/app/layout.config";
3+
import { baseOptions, linkItems } from "@/app/layout.config";
44
import { Footer } from "@/components/footer";
55
import { GitHubIcon } from "@/components/icons";
66
import { useDarkMode } from "@/hooks/useDarkMode";
@@ -137,7 +137,7 @@ export default function SiteLayout({ children }: { children: ReactNode }) {
137137
<ComponentIcon className="bg-fd-primary text-fd-primary-foreground mb-2 rounded-md p-1" />
138138
<p className="font-medium">Data Types & Variables</p>
139139
<p className="text-fd-muted-foreground text-sm">
140-
Understand Java&apos;s primitive data types and variable
140+
Understand Java's primitive data types and variable
141141
declarations.
142142
</p>
143143
</NavbarMenuLink>
@@ -251,6 +251,7 @@ export default function SiteLayout({ children }: { children: ReactNode }) {
251251
</NavbarMenu>
252252
),
253253
},
254+
...linkItems,
254255
]}
255256
>
256257
{children}

src/app/(site)/legal/privacy/page.tsx

Lines changed: 629 additions & 488 deletions
Large diffs are not rendered by default.

src/app/(site)/legal/terms/page.tsx

Lines changed: 493 additions & 287 deletions
Large diffs are not rendered by default.

src/app/(site)/open-source/page.tsx

Lines changed: 48 additions & 48 deletions
Large diffs are not rendered by default.

src/app/(site)/security/page.tsx

Lines changed: 47 additions & 47 deletions
Large diffs are not rendered by default.

src/app/layout.config.tsx

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import Logo from "@/components/logo";
2-
import type { BaseLayoutProps } from "fumadocs-ui/layouts/shared";
2+
import type { BaseLayoutProps, LinkItemType } from "fumadocs-ui/layouts/shared";
3+
import { AlbumIcon, HeartIcon } from "lucide-react";
34

45
/**
56
* Shared layout configurations
@@ -29,14 +30,28 @@ export const baseOptions: BaseLayoutProps = {
2930
text: "Sponsors",
3031
url: "/sponsors",
3132
},
32-
{
33-
text: "Playground",
34-
url: "/playground",
35-
}
33+
{
34+
text: "Playground",
35+
url: "/playground",
36+
},
3637
],
3738
githubUrl: "https://github.com/javaistic/javaistic",
3839
themeSwitch: {
3940
enabled: true,
4041
mode: "light-dark",
4142
},
4243
};
44+
45+
export const linkItems: LinkItemType[] = [
46+
{
47+
icon: <AlbumIcon />,
48+
text: "Blog",
49+
url: "/blog",
50+
active: "nested-url",
51+
},
52+
{
53+
text: "Sponsors",
54+
url: "/sponsors",
55+
icon: <HeartIcon />,
56+
},
57+
];

0 commit comments

Comments
 (0)