Skip to content

Commit

Permalink
fix: fix mobile views
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Won committed Sep 7, 2020
1 parent 21359b7 commit ac37db7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pages/contact.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ export default function Contact(props: IContactProps) {

function ContactItem(props) {
return (
<Flex flexDirection="column">
<Flex flexDirection="column" my={{ xs: '1rem', sm: '0rem' }}>
<Heading size="sm" as="h3">
{props.title}
</Heading>
<Divider width="10%" borderColor="black"></Divider>
<ChakraLink href={props.src}>
<ChakraLink href={props.src} isExternal>
{props.linkName ? props.linkName : props.src}
</ChakraLink>
</Flex>
Expand All @@ -40,9 +40,9 @@ export default function Contact(props: IContactProps) {

return (
<Layout>
<Flex flexDirection="column">
<Flex flexDirection="column" px={'1rem'}>
<Heading>Want to get in touch?</Heading>
<Flex mt={'4rem'}>
<Flex mt={'2rem'} flexWrap="wrap">
{contactItems.map((item, index) => {
if (index + 1 === contactItems.length) {
// last one
Expand Down

0 comments on commit ac37db7

Please sign in to comment.