Skip to content

Commit

Permalink
Added Responsive Design
Browse files Browse the repository at this point in the history
  • Loading branch information
patrigarcia committed Aug 13, 2024
1 parent 9a3eaa4 commit ef218d1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions src/Blog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const Blog = () => {
const { t } = useTranslation()

return (
<Box id="blog" py={10} px={{ base: 4, md: 8 }} h="100vh">
<Box id="blog" py={10} px={{ base: 4, md: 8 }} h={{ base: 'fit-content', md: '100vh' }}>
<Box mb={6} mt="6vh" ml="10vw">
<Heading as="h2" size="lg" mb={4} textAlign="left">
{t('blog')}
Expand All @@ -15,20 +15,20 @@ const Blog = () => {
{t('myLinkedInArticles')}
</Text>
</Box>
<Box ml="10vw">
<Box ml={{ base: '2vw', md: '10vw' }}>
<Grid templateColumns="repeat(auto-fit, minmax(300px, 1fr))" justifyContent="center" alignItems="center" w="100%">
<GridItem display="flex" justifyContent="center" maxW="350px" height="auto">
<Box border="1px solid #ccc" borderRadius="md" overflow="hidden" width="100%" height="450px" boxShadow="md">
<GridItem display="flex" justifyContent="center" maxW="350px" h={{ base: '250px', md: 'auto' }} mb={{ base: '20px', md: '0' }}>
<Box border="1px solid #ccc" borderRadius="md" overflow="hidden" width="100%" h={{ base: '250px', md: '450px' }}>
<LinkedInPost1 />
</Box>
</GridItem>
<GridItem display="flex" justifyContent="center" maxW="350px" height="auto">
<Box border="1px solid #ccc" borderRadius="md" overflow="hidden" width="100%" height="450px" boxShadow="md">
<GridItem display="flex" justifyContent="center" maxW="350px" h={{ base: '250px', md: 'auto' }} mb={{ base: '20px', md: '0' }}>
<Box border="1px solid #ccc" borderRadius="md" overflow="hidden" width="100%" h={{ base: '250px', md: '450px' }}>
<LinkedInPost2 />
</Box>
</GridItem>
<GridItem display="flex" justifyContent="center" maxW="350px" height="auto">
<Box border="1px solid #ccc" borderRadius="md" overflow="hidden" width="100%" height="450px" boxShadow="md">
<GridItem display="flex" justifyContent="center" maxW="350px" h={{ base: '250px', md: 'auto' }}>
<Box border="1px solid #ccc" borderRadius="md" overflow="hidden" width="100%" h={{ base: '250px', md: '450px' }}>
<LinkedInPost3 />
</Box>
</GridItem>
Expand Down
6 changes: 3 additions & 3 deletions src/components/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,17 @@ const NavBar = () => {
<DrawerBody>
<VStack spacing={4}>
<Link to="inicio" smooth={true} offset={-70} duration={500} onClick={onClose}>
<Text _hover={linkHoverStyle} color="gray.800" cursor="pointer">
<Text _hover={linkHoverStyle} color="gray.100" cursor="pointer">
{t('inicio')}
</Text>
</Link>
<Link to="blog" smooth={true} offset={-70} duration={500} onClick={onClose}>
<Text _hover={linkHoverStyle} color="gray.800" cursor="pointer">
<Text _hover={linkHoverStyle} color="gray.100" cursor="pointer">
{t('blog')}
</Text>
</Link>
<Link to="contacto" smooth={true} offset={-70} duration={500} onClick={onClose}>
<Text _hover={linkHoverStyle} color="gray.800" cursor="pointer">
<Text _hover={linkHoverStyle} color="gray.100" cursor="pointer">
{t('contacto')}
</Text>
</Link>
Expand Down

0 comments on commit ef218d1

Please sign in to comment.