aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docs/components/HeaderLogo.tsx
diff options
context:
space:
mode:
authorHsiangNianian <admin@jyunko.cn>2023-04-22 19:52:26 +0800
committerHsiangNianian <admin@jyunko.cn>2023-04-22 19:52:26 +0800
commit4838df315931bb883f704ec3e1abe2685f296cdf (patch)
tree57a8550c4cd5338f1126364bb518c6cde8d96e7d /docs/components/HeaderLogo.tsx
parentdb74ade0234a40c2120ad5f2a41bee50ce13de02 (diff)
downloadHydroRoll-4838df315931bb883f704ec3e1abe2685f296cdf.tar.gz
HydroRoll-4838df315931bb883f704ec3e1abe2685f296cdf.zip
😀
Diffstat (limited to 'docs/components/HeaderLogo.tsx')
-rw-r--r--docs/components/HeaderLogo.tsx36
1 files changed, 36 insertions, 0 deletions
diff --git a/docs/components/HeaderLogo.tsx b/docs/components/HeaderLogo.tsx
new file mode 100644
index 0000000..a1fc395
--- /dev/null
+++ b/docs/components/HeaderLogo.tsx
@@ -0,0 +1,36 @@
+import SiteSwitcher from "./SiteSwitcher";
+import Link from "next/link";
+import styles from "./header-logo.module.css";
+import TurboAnimated from "./logos/TurboAnimated";
+import { LogoContext } from "./LogoContext";
+
+function HeaderLogo() {
+ return (
+ <>
+ <LogoContext />
+ <svg
+ data-testid="geist-icon"
+ fill="none"
+ height={24}
+ shapeRendering="geometricPrecision"
+ stroke="currentColor"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth="1.5"
+ viewBox="0 0 24 24"
+ className="dark:text-[#333] text-[#eaeaea] ml-2 mr-1"
+ >
+ <path d="M16.88 3.549L7.12 20.451" />
+ </svg>
+
+ <Link href="/" title="Home" className="hover:opacity-75">
+ <TurboAnimated height={32} />
+ </Link>
+ <div className={styles.siteSwitcher}>
+ <SiteSwitcher />
+ </div>
+ </>
+ );
+}
+
+export default HeaderLogo;