Skip to content

Commit

Permalink
feat: hero desktop (#39)
Browse files Browse the repository at this point in the history
* feat: hero desktop

* fix: style fixed value
  • Loading branch information
alamsyaah authored Jan 7, 2024
1 parent aaf414c commit 615112e
Show file tree
Hide file tree
Showing 6 changed files with 146 additions and 4 deletions.
14 changes: 14 additions & 0 deletions public/assets/icons/discord-fill.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions public/assets/icons/github-fill.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions public/assets/icons/product-hunt-fill.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
100 changes: 100 additions & 0 deletions src/modules/LandingPage/Hero.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
import {
Button,
HStack,
IconButton,
Image,
Text,
VStack,
} from '@chakra-ui/react';

export function Hero() {
return (
<VStack
w='100%'
px={{ base: 4, md: 8, lg: '6rem' }}
mt={{ base: 8, md: 12, lg: '11rem' }}
alignItems='flex-start'
spacing='3rem'>
<VStack maxW='60%' alignItems='flex-start' spacing={12}>
<Text
color='white'
fontSize={{ base: '2xl', md: '4xl', lg: '6xl' }}
lineHeight='normal'
fontWeight='bold'>
Drink mocha with people accross the universe
</Text>
<Text color='white' fontSize={20} lineHeight='normal' fontWeight={400}>
Mocha is a Discord bot for multi-chat cross-server, that allows you to
send messages to multiple channels at once.{' '}
</Text>
</VStack>
<HStack w='100%' justifyContent='space-between'>
<HStack>
<Button
size='lg'
color='white'
rounded='full'
backgroundColor='rgba(1, 1, 1, 0.40)'
fontSize='sm'
fontWeight={500}
variant='outline'>
Discover More
</Button>
<Button
size='lg'
color='white'
rounded='full'
fontSize='sm'
fontWeight={500}
variant='ghost'>
See Documentation
</Button>
</HStack>
<HStack spacing={8}>
<IconButton
isRound
backgroundColor='rgba(255, 255, 255, 0.20)'
p='6px'
aria-label='discord mocha'
icon={
<Image
src='assets/icons/discord-fill.svg'
width={8}
height={8}
alt='Discord Icon'
/>
}
/>
<IconButton
isRound
backgroundColor='rgba(255, 255, 255, 0.20)'
p='6px'
aria-label='github mocha'
icon={
<Image
src='assets/icons/github-fill.svg'
width={8}
height={8}
alt='Github Icon'
/>
}
/>
<IconButton
isRound
backgroundColor='rgba(255, 255, 255, 0.20)'
p='6px'
aria-label='product hunt mocha'
icon={
<Image
src='assets/icons/product-hunt-fill.svg'
width={8}
height={8}
alt='Product Hunt Icon'
/>
}
/>
</HStack>
</HStack>
</VStack>
);
}
6 changes: 3 additions & 3 deletions src/modules/LandingPage/LandingPageContainer.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Box } from '@chakra-ui/react';

import Layout from '@/uikit/Layout';

import { Hero } from './Hero';

export function LandingPageContainer() {
return (
<Layout>
<Box />
<Hero />
</Layout>
);
}
2 changes: 1 addition & 1 deletion src/uikit/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function Layout({ children }: LayoutProps) {
backgroundRepeat='no-repeat'
backgroundSize='cover'>
<Header />
<Box as='main' pt='8' h='100vh'>
<Box as='main' pt='8' h='100vh' zIndex={999}>
{children}
</Box>
<Footer />
Expand Down

0 comments on commit 615112e

Please sign in to comment.