File tree 5 files changed +52
-17
lines changed
5 files changed +52
-17
lines changed Original file line number Diff line number Diff line change 4
4
"version" : " 0.0.0" ,
5
5
"type" : " module" ,
6
6
"scripts" : {
7
- "dev" : " vite" ,
7
+ "dev" : " vite --host " ,
8
8
"build" : " tsc && vite build" ,
9
9
"preview" : " vite preview"
10
10
},
Original file line number Diff line number Diff line change 11
11
12
12
.ImgContainer img {
13
13
height : 320px ;
14
+ max-width : calc (100% - 40px );
14
15
margin : 0 20px ;
15
16
}
16
17
Original file line number Diff line number Diff line change 1
1
.Frame {
2
2
position : fixed;
3
- left : 0 ;
4
- top : 0 ;
5
- width : 100% ;
6
- height : 100% ;
7
3
box-sizing : border-box;
8
- border : 1px solid # 00FFEE ;
9
4
z-index : 999999 ;
10
5
pointer-events : none;
11
- box-shadow : inset 0px 0px 10px # 00FFEE ;
12
- transition : all 1s ;
6
+ }
7
+ .Frame .top {
8
+ width : 100% ;
9
+ height : 2px ;
10
+ top : 0px ;
11
+ left : 0px ;
12
+ transition : all 0.5s 0s ;
13
+ }
14
+ .Frame .bottom {
15
+ width : 100% ;
16
+ height : 2px ;
17
+ bottom : 0px ;
18
+ left : 0px ;
19
+ transition : all 0.5s 0.4s ;
20
+ }
21
+ .Frame .left {
22
+ width : 2px ;
23
+ height : 200% ;
24
+ top : 0px ;
25
+ left : 0px ;
26
+ transition : all 0.5s 0.2s ;
27
+ }
28
+ .Frame .right {
29
+ width : 2px ;
30
+ height : 200% ;
31
+ top : 0px ;
32
+ right : 0px ;
33
+ transition : all 0.5s 0.2s ;
13
34
}
Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ type Props = {
8
8
} ;
9
9
10
10
const Frame : React . FC < Props > = ( props : Props ) => {
11
- const [ borderColor , setBorderColor ] = useState ( "#00FFEE" ) ;
11
+ const [ backgroundColor , setBorderColor ] = useState ( "#00FFEE" ) ;
12
12
const [ boxShadow , setBoxShadow ] = useState ( "inset 0 0 10px #00FFEE" ) ;
13
- const interval = props . interval || 5000 ;
13
+ const interval = props . interval || 4000 ;
14
14
15
15
useEffect ( ( ) => {
16
16
let count = 0 ;
@@ -25,7 +25,26 @@ const Frame: React.FC<Props> = (props: Props) => {
25
25
} ;
26
26
} , [ interval ] ) ;
27
27
28
- return < div className = "Frame" style = { { borderColor, boxShadow } } > </ div > ;
28
+ return (
29
+ < >
30
+ < div
31
+ className = "Frame top"
32
+ style = { { backgroundColor, boxShadow } }
33
+ > </ div >
34
+ < div
35
+ className = "Frame bottom"
36
+ style = { { backgroundColor, boxShadow } }
37
+ > </ div >
38
+ < div
39
+ className = "Frame left"
40
+ style = { { backgroundColor, boxShadow } }
41
+ > </ div >
42
+ < div
43
+ className = "Frame right"
44
+ style = { { backgroundColor, boxShadow } }
45
+ > </ div >
46
+ </ >
47
+ ) ;
29
48
} ;
30
49
31
50
export default Frame ;
Original file line number Diff line number Diff line change 14
14
width : 1280px ;
15
15
max-width : 100% ;
16
16
}
17
-
18
- @media (max-width : 768px ) {
19
- .LogoSection .logo {
20
- max-width : 110% ;
21
- }
22
- }
You can’t perform that action at this time.
0 commit comments