Skip to content

Commit 32fc945

Browse files
committed
feat: add logo at docs
1 parent b36a548 commit 32fc945

File tree

12 files changed

+54
-13
lines changed

12 files changed

+54
-13
lines changed

packages/docs/app/_components/Layout.tsx

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,31 @@
11
import { Footer, Navbar } from "nextra-theme-docs";
22
import cn from "clsx";
33
import { REPO_URL } from "@/const/link";
4+
import Image from "next/image";
45
//import { Banner } from "nextra/components";
56

6-
export const banner = <></>
7+
export const banner = <></>;
78
export const navbar = (
89
<Navbar
910
logo={
10-
<span
11-
className={cn(
12-
"font-bold",
13-
"hover:transition-all hover:duration-1000 motion-reduce:hover:transition-none",
14-
"[mask-image:linear-gradient(60deg,#000_25%,rgba(0,0,0,.2)_50%,#000_75%)] [mask-position:0] [mask-size:400%]",
15-
"hover:[mask-position:100%]"
16-
)}
17-
>
18-
<span className="text-orange-500">MSW</span> DEV TOOL
11+
<span className="flex items-center gap-2">
12+
<Image
13+
src="/msw-dev-tool-logo.svg"
14+
alt="MSW Dev Tool Logo"
15+
width={24}
16+
height={24}
17+
style={{ borderRadius: 4 }}
18+
/>
19+
<span
20+
className={cn(
21+
"font-bold",
22+
"hover:transition-all hover:duration-1000 motion-reduce:hover:transition-none",
23+
"[mask-image:linear-gradient(60deg,#000_25%,rgba(0,0,0,.2)_50%,#000_75%)] [mask-position:0] [mask-size:400%]",
24+
"hover:[mask-position:100%]"
25+
)}
26+
>
27+
<span className="text-orange-500">MSW</span> DEV TOOL
28+
</span>
1929
</span>
2030
}
2131
projectLink={REPO_URL}
@@ -35,7 +45,7 @@ export const footer = (
3545
Powered by nextra
3646
</a>
3747
<p className="mt-6 text-xs">
38-
© {new Date().getFullYear()} The MSW dev tool Project.
48+
© {new Date().getFullYear()} The msw dev tool Project.
3949
</p>
4050
</Footer>
4151
);

packages/docs/app/favicon.ico

-25.3 KB
Binary file not shown.

packages/docs/app/layout.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,20 @@ export const metadata: Metadata = {
4545
],
4646
other: {
4747
"google-site-verification":"nZV_ZdGfP7qnS6DjjdRD9T6a6XLWkdKXYYpphQg-w2s"
48+
},
49+
icons: {
50+
icon: [
51+
{ url: "/favicon/favicon.ico" },
52+
{ url: "/favicon/favicon-32x32.png", sizes: "32x32", type: "image/png" },
53+
{ url: "/favicon/favicon-16x16.png", sizes: "16x16", type: "image/png" }
54+
],
55+
apple: [
56+
{ url: "/favicon/apple-touch-icon.png", sizes: "180x180" }
57+
],
58+
shortcut: ["/favicon/favicon.ico"],
59+
other: [
60+
{ rel: "manifest", url: "/favicon/site.webmanifest" }
61+
]
4862
}
4963
};
5064

packages/docs/app/page.tsx

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { REPO_URL } from "@/const/link";
22
import { SquareTerminal } from "lucide-react";
33
import Link from "next/link";
44
import { GitHubIcon } from "nextra/icons";
5+
import Image from "next/image";
56

67
export default function Home() {
78
return (
@@ -10,8 +11,18 @@ export default function Home() {
1011
<div className="max-w-3xl mx-auto">
1112
{/* Hero Section */}
1213
<div className="space-y-6 mb-12">
13-
<h1 className="text-4xl md:text-6xl font-bold animate-fadeIn">
14-
<span className="text-orange-500 animate-pulse">MSW</span> DEV TOOL
14+
<h1 className="text-4xl md:text-6xl font-bold animate-fadeIn flex items-center justify-center gap-3">
15+
<Image
16+
src="/msw-dev-tool-logo.svg"
17+
alt="MSW Dev Tool Logo"
18+
width={40}
19+
height={40}
20+
className="rounded-lg shadow-lg"
21+
priority
22+
/>
23+
<span>
24+
<span className="text-orange-500 animate-pulse">MSW</span> DEV TOOL
25+
</span>
1526
</h1>
1627
<h2 className="text-xl md:text-2xl font-extralight text-neutral-200 leading-relaxed animate-fadeIn animation-delay-200">
1728
Dev tool to control mock logic, modify responses, and monitor API calls
17.3 KB
Loading
67.7 KB
Loading
15.5 KB
Loading
585 Bytes
Loading
1.36 KB
Loading
15 KB
Binary file not shown.

0 commit comments

Comments
 (0)