@@ -7,6 +7,8 @@ import Button from "@/components/Button"
77import OrientationToView from "@/components/Motion/OrientationToView"
88import useCheckViewport from "@/hooks/useCheckViewport"
99
10+ const ANNOUNCEMENT_HEIGHT = "5.9rem"
11+
1012const Title = styled ( Typography ) ( ( { theme } ) => ( {
1113 fontSize : "6.4rem" ,
1214 lineHeight : "8.8rem" ,
@@ -40,15 +42,15 @@ const Header = () => {
4042 theme => ( {
4143 [ theme . breakpoints . up ( "md" ) ] : {
4244 background : "url(/imgs/homepage/landing-bg.webp) center / cover no-repeat" ,
43- aspectRatio : "16 / 9 " ,
44- marginTop : " -6.5rem" ,
45+ minHeight : "40rem " ,
46+ marginTop : `calc( -6.5rem - ${ ANNOUNCEMENT_HEIGHT } )` ,
4547 } ,
4648 } ) ,
4749 ] }
4850 >
4951 { isLandscape && (
5052 < Box >
51- < video style = { { width : "100vw" , objectFit : "cover" } } autoPlay muted loop playsInline preload = "none" >
53+ < video style = { { width : "100vw" , height : "100vh" , objectFit : "cover" } } autoPlay muted loop playsInline preload = "none" >
5254 < source src = "/videos/home-header-bg.mp4" type = "video/mp4" />
5355 < source src = "/videos/home-header-bg-264.mp4" type = "video/mp4" />
5456 Not support video
@@ -60,13 +62,13 @@ const Header = () => {
6062 [ theme . breakpoints . down ( "md" ) ] : { paddingTop : "7.2rem" } ,
6163 [ theme . breakpoints . up ( "md" ) ] : {
6264 position : "absolute" ,
63- top : " 10rem" ,
65+ top : `calc( 10rem + ${ ANNOUNCEMENT_HEIGHT } )` ,
6466 left : "50%" ,
6567 transform : "translateX(-50%)" ,
6668 zIndex : 1 ,
6769 } ,
6870 "@media (min-width: 1680px)" : {
69- top : " calc(100vw*0.06 + 6.5rem)" ,
71+ top : ` calc(100vw*0.06 + 6.5rem + ${ ANNOUNCEMENT_HEIGHT } )` ,
7072 } ,
7173 } ) }
7274 >
0 commit comments