Skip to content

Commit dd84d9a

Browse files
committed
feat: new logo
1 parent df76d81 commit dd84d9a

5 files changed

Lines changed: 53 additions & 118 deletions

File tree

public/logo.svg

Lines changed: 42 additions & 57 deletions
Loading

src/app/app/dashboard/client.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ const DashboardLayout = ({ children }: { children: React.ReactNode }) => {
9494
className="border-r border-border/40 bg-card/50 backdrop-blur-xl"
9595
>
9696
<SidebarHeader className="h-16 flex items-center justify-center border-b border-border/40">
97-
<div className="w-full justify-center flex items-center gap-2">
97+
<div className="w-full justify-center flex items-center">
9898
<Logo
9999
className="cursor-pointer hover:opacity-80 transition-opacity"
100-
size={32}
100+
size={48}
101101
onClick={() => router.push("/")}
102102
/>
103103
{open && (

src/components/home/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default function Footer() {
99
<div className="container mx-auto px-6 max-w-6xl">
1010
<div className="flex flex-col md:flex-row justify-between items-center gap-8">
1111
<div className="flex items-center gap-3">
12-
<Logo size={24} />
12+
<Logo size={32} />
1313
<span className="font-serif font-semibold text-lg text-foreground/80">Magic Resume</span>
1414
</div>
1515

src/components/home/LandingHeader.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ export default function LandingHeader() {
2626
<div className="mx-auto max-w-[1200px] px-4">
2727
<div className="flex items-center justify-between h-20">
2828
<div
29-
className="flex items-center gap-3 cursor-pointer group"
29+
className="flex items-center cursor-pointer group"
3030
onClick={() => (window.location.href = `/${locale}/`)}
3131
>
32-
<Logo size={32} />
32+
<Logo size={60} />
3333
<span className="font-serif text-[24px] tracking-tight font-semibold text-foreground/90">
3434
{t("header.title")}
3535
</span>

src/components/shared/Logo.tsx

Lines changed: 6 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,28 @@
11
"use client";
22
import React from "react";
3-
import { useTheme } from "next-themes";
3+
import Image from "next/image";
44

55
interface LogoProps {
66
size?: number;
77
className?: string;
88
onClick?: () => void;
9-
startColor?: string;
10-
endColor?: string;
119
}
1210

1311
const Logo: React.FC<LogoProps> = ({
1412
size = 100,
1513
className = "",
1614
onClick,
17-
startColor,
18-
endColor,
1915
}) => {
20-
const { theme } = useTheme();
21-
22-
// 默认使用主题色
23-
const defaultStartColor = theme === "dark" ? "#A700FF" : "#000000";
24-
const defaultEndColor = theme === "dark" ? "#4F46E5" : "#171717";
25-
26-
// 使用传入的颜色或默认颜色
27-
const gradientStartColor = startColor || defaultStartColor;
28-
const gradientEndColor = endColor || defaultEndColor;
29-
3016
return (
31-
<svg
17+
<Image
18+
src="/logo.svg"
19+
alt="Magic Resume Logo"
3220
width={size}
3321
height={size}
34-
viewBox="0 0 100 100"
35-
fill="none"
36-
xmlns="http://www.w3.org/2000/svg"
3722
className={className}
38-
aria-label="Magic Resume Logo"
3923
onClick={onClick}
40-
>
41-
<defs>
42-
<linearGradient id="gradient" x1="0%" y1="0%" x2="100%" y2="100%">
43-
<stop offset="0%" stopColor={gradientStartColor} />
44-
<stop offset="100%" stopColor={gradientEndColor} />
45-
</linearGradient>
46-
<filter id="glow">
47-
<feGaussianBlur stdDeviation="2" result="coloredBlur" />
48-
<feMerge>
49-
<feMergeNode in="coloredBlur" />
50-
<feMergeNode in="SourceGraphic" />
51-
</feMerge>
52-
</filter>
53-
</defs>
54-
55-
{/* 背景圆角矩形 */}
56-
<rect
57-
x="5"
58-
y="5"
59-
width="90"
60-
height="90"
61-
rx="24"
62-
fill="url(#gradient)"
63-
filter="url(#glow)"
64-
/>
65-
66-
{/* 字母 R */}
67-
<path
68-
d="M35 30 L35 70 L35 30 L60 30 C67 30 70 35 70 40 C70 45 67 50 60 50 L35 50 L60 70"
69-
stroke="white"
70-
strokeWidth="8"
71-
strokeLinecap="round"
72-
strokeLinejoin="round"
73-
fill="none"
74-
/>
75-
</svg>
24+
priority={size >= 64}
25+
/>
7626
);
7727
};
7828

0 commit comments

Comments
 (0)