Skip to content

Commit

Permalink
Improve padding in navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
devinshoemaker committed Feb 7, 2021
1 parent bd44b89 commit 9e55c33
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/components/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ import NavBarLink from './NavBarLink';

function NavBar() {
return (
<div className="flex justify-between items-center px-6 h-16 w-full bg-gray-900 dark:bg-black shadow-lg z-10 fixed top-0 overflow-auto">
<div className="flex justify-between items-center h-16 w-full bg-gray-900 dark:bg-black shadow-lg z-10 fixed top-0 overflow-auto">
<nav className="flex">
<NavBarLink label="Home" href="/" />
<NavBarLink label="Blog" href="/blog" />
<NavBarLink label="Projects" href="/projects" />
<NavBarLink label="About" href="/about" />
</nav>
<div className="flex">
<div className="flex ml-6">
<NavBarExternalLink href="https://dev.to/devinshoemaker" icon={faDev} />
<NavBarExternalLink
href="https://twitch.tv/paranoidcoder"
Expand Down
2 changes: 1 addition & 1 deletion src/components/NavBarExternalLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface NavBarExternalLinkProps {

function NavBarExternalLink({ href, icon }: NavBarExternalLinkProps) {
return (
<a href={href} target="blank" className="ml-6">
<a href={href} target="blank" className="mr-6">
<FontAwesomeIcon
icon={icon}
color="white"
Expand Down
4 changes: 2 additions & 2 deletions src/components/NavBarLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ interface NavBarLinkProps {

function NavBarLink({ label, href }: NavBarLinkProps) {
return (
<ul style={{ height: 'fit-content' }}>
<ul style={{ height: 'fit-content' }} className="ml-6">
<Link href={href}>
<a className="mr-4 text-xl text-gray-100 no-underline">{label}</a>
<a className="text-xl text-gray-100 no-underline">{label}</a>
</Link>
</ul>
);
Expand Down

1 comment on commit 9e55c33

@vercel
Copy link

@vercel vercel bot commented on 9e55c33 Feb 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.