-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
57 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import React from 'react'; | ||
import tw, { styled } from 'twin.macro'; | ||
import { Icon } from '~/components/ui/icons/Icon'; | ||
import { Link } from 'gatsby'; | ||
import { Groups } from '~/components/ui/groups/Groups'; | ||
|
||
const Root = styled.nav` | ||
${tw`bg-blue-600 text-white flex items-center justify-between`} | ||
min-height: 2rem; | ||
`; | ||
|
||
const NavLink = styled(Link)` | ||
${tw`h-full block flex items-center px-3`} | ||
`; | ||
|
||
export function Nav({ profile: { github, linkedin, facebook } }) { | ||
return ( | ||
<Root> | ||
<div> | ||
<Groups | ||
className={'flex p-2 items-center justify-center md:justify-start'} | ||
size={2} | ||
> | ||
<a href={github}> | ||
<Icon name={'github'} size={24} /> | ||
</a> | ||
<a href={linkedin}> | ||
<Icon name={'linkedin'} size={24} /> | ||
</a> | ||
<a href={facebook}> | ||
<Icon name={'facebook'} size={24} /> | ||
</a> | ||
</Groups> | ||
</div> | ||
<div tw={'self-stretch'}> | ||
<NavLink to='/' activeClassName='bg-accent'> | ||
<Icon name={'home'} className={'mr-2'} size={20} /> Home | ||
</NavLink> | ||
</div> | ||
</Root> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ export default { | |
name: 'Tuan Nguyen', | ||
githubUsername: 'tuan231195', | ||
avatar: | ||
'https://media-exp1.licdn.com/dms/image/C5103AQGbaWNuZzFiXg/profile-displayphoto-shrink_400_400/0?e=1602115200&v=beta&t=aN91iPo88eeXRzYz5C-v-J2zzoLoS2UmmXCCKc5qqw8', | ||
'https://ik.imagekit.io/emtg9z3bqr/tr:h-160,w-160/avatar_cubwNe2pI.jpeg', | ||
role: 'Software Developer', | ||
email: '[email protected]', | ||
phone: '0450082978', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters