File tree Expand file tree Collapse file tree 1 file changed +22
-5
lines changed Expand file tree Collapse file tree 1 file changed +22
-5
lines changed Original file line number Diff line number Diff line change 11import React from 'react' ;
22import { 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
419const 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 ) ;
You can’t perform that action at this time.
0 commit comments