Skip to content

Commit

Permalink
adjusted design for mobile first development
Browse files Browse the repository at this point in the history
  • Loading branch information
spencer-rafada committed Dec 28, 2023
1 parent 0223ba3 commit 36f0d85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
5 changes: 2 additions & 3 deletions src/app/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import Link from 'next/link'
import CTAButton from './CTAButton'

const links = [
{ to: '/', text: 'Home' },
{ to: '/about', text: 'About Us' },
{ to: '/contact', text: 'Contact' },
{ to: '/projects', text: 'Our Projects' },
Expand All @@ -21,7 +20,7 @@ export default function Navbar() {
return (
<Flex
alignItems='center'
p={6}
p={{ base: 4, md: 6 }}
justifyContent='space-between'
border='1px'
borderColor='gray.200'
Expand All @@ -32,7 +31,7 @@ export default function Navbar() {
<Box>
<Link href='/'>
<Text
fontSize='1.5rem'
fontSize={{ base: '1rem', md: '1.5rem' }}
fontWeight={700}
textTransform='uppercase'
color='brand.300'
Expand Down
7 changes: 2 additions & 5 deletions src/app/components/NavbarLinks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function NavbarLinks({
return (
<>
<Box display={{ base: 'none', md: 'block' }}>
<Stack direction={{ base: 'column', md: 'row' }} spacing='1.5rem'>
<Stack direction={{ base: 'column', md: 'row' }}>
{links.map((link) => {
return <NavbarLink key={link.to} to={link.to} text={link.text} />
})}
Expand All @@ -44,10 +44,7 @@ export default function NavbarLinks({
<DrawerCloseButton />
<DrawerHeader>Menu</DrawerHeader>
<DrawerBody>
<Stack
spacing='1.5rem'
divider={<StackDivider borderColor='gray.200' />}
>
<Stack divider={<StackDivider borderColor='gray.200' />}>
{links.map((link) => {
return (
<NavbarLink key={link.to} to={link.to} text={link.text} />
Expand Down

0 comments on commit 36f0d85

Please sign in to comment.