hero1 and hero2 updated

This commit is contained in:
2025-10-25 15:49:49 +08:00
parent 251dd79adc
commit 21bd827520
15 changed files with 147 additions and 41 deletions

View File

@@ -0,0 +1,53 @@
import { Box, Stack, Image } from '@chakra-ui/react'
function Hero2() {
return (
<Box
position="relative"
w="100%"
alignItems={"center"}
justifyContent={"center"}
>
<Stack gap={0}>
<Box
position="relative"
w="100%"
minH={{ base: "100vh", sm: "100vh", md: "100vh", lg: "70vw", xl: "70vw" }}
bgImage={"url('/images/new/hero2bg.webp')"}
bgSize="cover"
backgroundPosition="center"
justifyItems={'center'}
bgRepeat="no-repeat"
zIndex={-1}
>
<Image src="/images/new/hero2title.webp"
position={'absolute'}
top={"50px"}
w={{ base: "80%", sm: "70%", md: "60%", lg: "50vw", xl: "40vw" }}
/>
<Image src="/images/new/hero2subtitle.webp"
position={'absolute'}
zIndex={1}
top={"18vw"}
right={{ base: "10px", sm: "10px", md: "10px", lg: "3vw", xl: "27vw" }}
w={{ base: "80%", sm: "70%", md: "60%", lg: "50vw", xl: "20vw" }}
/>
<Image src="/images/new/oil.webp"
zIndex={0}
position={'absolute'}
bottom={-20}
w={{ base: "80%", sm: "70%", md: "60%", lg: "50vw", xl: "44vw" }}
/>
</Box>
</Stack>
</Box>
);
}
export default Hero2;