From 9e7e3aac4afc8a329cd51f67c0fe0a8e7ad9530f Mon Sep 17 00:00:00 2001 From: tianyaxiang Date: Sat, 1 Feb 2025 14:53:28 +0800 Subject: [PATCH] add logo --- public/favicon.svg | 16 +++++ src/app/layout.tsx | 45 +++++++------- src/app/wechat/page.tsx | 62 ------------------- .../editor/components/EditorToolbar.tsx | 29 +++++---- src/components/icons/Logo.tsx | 37 +++++++++++ 5 files changed, 94 insertions(+), 95 deletions(-) create mode 100644 public/favicon.svg create mode 100644 src/components/icons/Logo.tsx diff --git a/public/favicon.svg b/public/favicon.svg new file mode 100644 index 0000000..20611ce --- /dev/null +++ b/public/favicon.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 5b6ebf9..b054228 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,16 +1,24 @@ -import type { Metadata, Viewport } from "next"; -import "./globals.css"; -import { cn } from "@/lib/utils"; -import { Toaster } from "@/components/ui/toaster"; -import { ThemeProvider } from "@/components/theme/ThemeProvider"; +import './globals.css' +import { ThemeProvider } from '@/components/theme/ThemeProvider' +import { cn } from '@/lib/utils' +import { Inter } from 'next/font/google' +const inter = Inter({ subsets: ['latin'] }) -export const metadata: Metadata = { - title: "NeuraPress", - description: "一个现代化的内容创作平台", -}; +export const metadata = { + title: 'NeuraPress - AI Enhanced Article Editor', + description: 'An intelligent article editor for creating and formatting content', + icons: { + icon: [ + { + url: '/favicon.svg', + type: 'image/svg+xml', + } + ], + }, +} -export const viewport: Viewport = { +export const viewport = { width: "device-width", initialScale: 1, maximumScale: 1, @@ -28,15 +36,11 @@ export default function RootLayout({ children: React.ReactNode }) { return ( - - - - - - - + + {children} - - ); -} \ No newline at end of file + ) +} \ No newline at end of file diff --git a/src/app/wechat/page.tsx b/src/app/wechat/page.tsx index 032b849..4c5d6f0 100644 --- a/src/app/wechat/page.tsx +++ b/src/app/wechat/page.tsx @@ -1,70 +1,8 @@ import WechatEditor from '@/components/editor/WechatEditor' -import { Menu } from 'lucide-react' -import { Button } from '@/components/ui/button' -import { - Sheet, - SheetContent, - SheetTrigger, -} from "@/components/ui/sheet" -import { ThemeToggle } from '@/components/theme/ThemeToggle' export default function WechatPage() { return (
-
-
-
-
- - - - - - - - -
- - - NeuraPress - - -
- -
-
diff --git a/src/components/editor/components/EditorToolbar.tsx b/src/components/editor/components/EditorToolbar.tsx index 1527365..6d0aaf4 100644 --- a/src/components/editor/components/EditorToolbar.tsx +++ b/src/components/editor/components/EditorToolbar.tsx @@ -6,6 +6,9 @@ import { StyleConfigDialog } from '../StyleConfigDialog' import { ArticleList } from '../ArticleList' import { type Article } from '../constants' import { type RendererOptions } from '@/lib/markdown' +import { ThemeToggle } from '@/components/theme/ThemeToggle' +import { Logo } from '@/components/icons/Logo' +import Link from 'next/link' interface EditorToolbarProps { value: string @@ -42,10 +45,14 @@ export function EditorToolbar({ }: EditorToolbarProps) { return (
-
+
-
-
+
+
+ + + NeuraPress +
-
+
{isDraft && ( 未保存 )} +
diff --git a/src/components/icons/Logo.tsx b/src/components/icons/Logo.tsx new file mode 100644 index 0000000..9ac7509 --- /dev/null +++ b/src/components/icons/Logo.tsx @@ -0,0 +1,37 @@ +import { SVGProps } from 'react' + +export function Logo({ className, ...props }: SVGProps) { + return ( + + {/* Neural network nodes */} + + + + + + + {/* Connections */} + + + + + + {/* Pen tip overlay */} + + + ) +}