Skip to content

Commit 1de3379

Browse files
committed
docs: update logo and favicon
1 parent 58b5dcb commit 1de3379

File tree

3 files changed

+30
-5
lines changed

3 files changed

+30
-5
lines changed

docs/components/Header.tsx

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,29 @@ export const Header: React.FC<HeaderProps> = ({ theme, onThemeToggle }) => {
1313
<header className="docs-header">
1414
<div className="header-container">
1515
<div className="header-left">
16-
<Link to="/" className="logo">
17-
<svg width="32" height="32" viewBox="0 0 24 24" fill="none">
18-
<rect x="3" y="3" width="18" height="18" rx="2" stroke="currentColor" strokeWidth="2"/>
19-
<path d="M8 12h8M12 8v8" stroke="currentColor" strokeWidth="2"/>
16+
<Link to="/" className="logo" aria-label="React Code View home">
17+
<svg width="32" height="32" viewBox="0 0 64 64" fill="none" role="img" aria-hidden="true">
18+
<rect x="6" y="6" width="52" height="52" rx="10" fill="currentColor" opacity="0.08" />
19+
<path
20+
d="M24 24.5L16.5 32 24 39.5"
21+
stroke="currentColor"
22+
strokeWidth="4"
23+
strokeLinecap="round"
24+
strokeLinejoin="round"
25+
/>
26+
<path
27+
d="M40 24.5L47.5 32 40 39.5"
28+
stroke="currentColor"
29+
strokeWidth="4"
30+
strokeLinecap="round"
31+
strokeLinejoin="round"
32+
/>
33+
<path
34+
d="M30 44c1.5-2.4 3.5-8 3.5-12s-2-9.6-3.5-12"
35+
stroke="currentColor"
36+
strokeWidth="4"
37+
strokeLinecap="round"
38+
/>
2039
</svg>
2140
<span className="logo-text">React Code View</span>
2241
</Link>

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<meta name="keywords" content="react, code view, live preview, syntax highlighting, markdown, code editor">
88
<meta name="author" content="Simon Guo">
99
<title>React Code View - Live Code Preview for React</title>
10-
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>⚛️</text></svg>">
10+
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
1111
</head>
1212
<body>
1313
<div id="root"></div>

docs/public/favicon.svg

Lines changed: 6 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)