diff --git a/public/images/new/info_title.webp b/public/images/new/info_title.webp new file mode 100644 index 0000000..70deca8 Binary files /dev/null and b/public/images/new/info_title.webp differ diff --git a/public/images/new/wraning_bg_mobile.webp b/public/images/new/wraning_bg_mobile.webp index 8f0cedd..d39b8ab 100644 Binary files a/public/images/new/wraning_bg_mobile.webp and b/public/images/new/wraning_bg_mobile.webp differ diff --git a/src/components/new_ui/wraning.tsx b/src/components/new_ui/wraning.tsx index 7eca387..0940e0d 100644 --- a/src/components/new_ui/wraning.tsx +++ b/src/components/new_ui/wraning.tsx @@ -1,5 +1,11 @@ import { Box, Stack, Text, Image } from '@chakra-ui/react' +import { motion } from 'framer-motion' import CyclingImage from './CyclingImage' + +const MotionStack = motion.create(Stack) +const MotionText = motion.create(Text) +const MotionImage = motion.create(Image) + function Wraning() { const bigWarningSize = { base: "15vw", sm: "15vw", md: "9vw", lg: "7vw", xl: "6vw" }; const midWarningSize = { base: "10vw", sm: "10vw", md: "6vw", lg: "4vw", xl: "4vw" }; @@ -99,8 +105,8 @@ function Wraning() { - {'你要注意!'} - - + {'身體健康響起警號!'} - - + {'好多時係同'} - + - {'日常飲食習慣'} - - + {'有關!'} - + - {'簡單到喺你屋企'} - + - - {'其實已經日積月累'} - - + {'咁影響緊你!'} - - + +