Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add panduan #46

Merged
merged 1 commit into from
Aug 26, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 40 additions & 17 deletions src/components/Homepage/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import {
Center,
Image,
Spacer,
AspectRatio
AspectRatio,
Link,
Button
} from '@chakra-ui/react';
import { motion } from 'framer-motion';
import { getTransition } from 'src/util/transition';
Expand Down Expand Up @@ -39,22 +41,43 @@ const Hero = () => (
<Spacer />
<motion.section {...getTransition('bottom', { delay: 0.5 })}>
<Center>
<AspectRatio
w={{
base: '15em',
md: '25em',
lg: '40em'
}}
ratio={16 / 9}
>
<iframe
src="https://www.youtube.com/embed/9EqZRAUfkuo"
title="YouTube video player"
frameBorder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowFullScreen
/>
</AspectRatio>
<Flex flexDir="column" alignItems="center" gap="5">
<AspectRatio
w={{
base: '15em',
md: '25em',
lg: '40em'
}}
ratio={16 / 9}
>
<iframe
src="https://www.youtube.com/embed/9EqZRAUfkuo"
title="YouTube video player"
frameBorder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowFullScreen
/>
</AspectRatio>
<motion.section {...getTransition('bottom', { delay: 0.5 })}>
<Link
href="https://s.id/ohuitb2022"
target="_blank"
_hover={{ textStyle: 'none' }}
>
<Button
backgroundColor="#FFA06F"
w={{ base: '250px', lg: '20vw' }}
borderRadius="full"
fontSize={{ base: 'md', lg: '2xl' }}
color="white"
transition="all 0.15s ease-in-out"
_hover={{ backgroundColor: '#FFB08D' }}
>
Panduan OHU
</Button>
</Link>
</motion.section>
</Flex>
</Center>
</motion.section>
<Spacer />
Expand Down