Skip to content

Commit b7740f1

Browse files
committed
feat(ui): enhance logo visibility and size - Increase logo size to 64x64px - Add prominent border and shadow effects
1 parent 9e85c91 commit b7740f1

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

office-website/src/components/Header/LogoComponent.tsx

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,31 @@
11
import React from 'react';
22
import { Logo } from '../../styles/components/Header.styles';
3+
import styled from 'styled-components';
4+
5+
const LogoSvgWrapper = styled.div`
6+
padding: 16px;
7+
border: 3px solid ${({ theme }) => theme.colors.primary};
8+
border-radius: 14px;
9+
background-color: ${({ theme }) => theme.colors.background};
10+
box-shadow: 0 0 0 3px ${({ theme }) => theme.colors.primary}60;
11+
transition: all 0.2s ease;
12+
13+
&:hover {
14+
box-shadow: 0 0 0 4px ${({ theme }) => theme.colors.primary}60;
15+
transform: translateY(-1px);
16+
}
17+
`;
318

419
const LogoComponent: React.FC = () => {
520
return (
621
<Logo href="/">
7-
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
8-
<path d="M12 2L2 7L12 12L22 7L12 2Z" fill="#3B82F6" />
9-
<path d="M2 17L12 22L22 17" stroke="#3B82F6" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" />
10-
<path d="M2 12L12 17L22 12" stroke="#3B82F6" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" />
11-
</svg>
22+
<LogoSvgWrapper>
23+
<svg width="64" height="64" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">
24+
{/* 简化版JSREI标志 */}
25+
<rect x="20" y="20" width="60" height="60" rx="12" fill="#3B82F6" />
26+
<path d="M35 40H65M35 50H55M35 60H60" stroke="white" strokeWidth="6" strokeLinecap="round" />
27+
</svg>
28+
</LogoSvgWrapper>
1229
<span>Typescript Userscript Template</span>
1330
</Logo>
1431
);

0 commit comments

Comments
 (0)