-
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.
Start Header, Revise ESLint Rules, Start Custom Styling, Update Packages
- Loading branch information
1 parent
4e5538b
commit 20ce726
Showing
10 changed files
with
124 additions
and
37 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
This file was deleted.
Oops, something went wrong.
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,14 @@ | ||
import React, { FC } from 'react'; | ||
import { HeaderMenuItem } from '@carbon/react'; | ||
|
||
const HeaderMenuItems: FC = () => ( | ||
<> | ||
<HeaderMenuItem href="/">Home</HeaderMenuItem> | ||
<HeaderMenuItem href="/work">Work</HeaderMenuItem> | ||
<HeaderMenuItem href="/projects">Projects</HeaderMenuItem> | ||
<HeaderMenuItem href="/talks">Talks</HeaderMenuItem> | ||
<HeaderMenuItem href="/writing">Writing</HeaderMenuItem> | ||
</> | ||
); | ||
|
||
export default HeaderMenuItems; |
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,54 @@ | ||
import { | ||
Header, | ||
HeaderContainer, | ||
HeaderName, | ||
HeaderNavigation, | ||
HeaderMenuButton, | ||
SkipToContent, | ||
SideNav, | ||
SideNavItems, | ||
HeaderSideNavItems, | ||
HeaderGlobalBar, | ||
HeaderGlobalAction, | ||
} from '@carbon/react'; | ||
|
||
import HeaderMenuItems from './HeaderMenuItems'; | ||
|
||
export default function NavHeader() { | ||
return ( | ||
<HeaderContainer render={({ isSideNavExpanded, onClickSideNavExpand }) => ( | ||
<Header aria-label="Anthony Jesmok"> | ||
<SkipToContent /> | ||
<HeaderMenuButton | ||
aria-label="Open menu" | ||
onClick={onClickSideNavExpand} | ||
isActive={isSideNavExpanded} | ||
/> | ||
<HeaderName href="/" prefix=""> | ||
Anthony Jesmok | ||
</HeaderName> | ||
<HeaderNavigation aria-label="Site Menu"> | ||
<HeaderMenuItems /> | ||
</HeaderNavigation> | ||
<SideNav | ||
aria-label="Mobile Navigation" | ||
expanded={isSideNavExpanded} | ||
isPersistent={false} | ||
placeholder="Mobile Navigation" | ||
> | ||
<SideNavItems> | ||
<HeaderSideNavItems> | ||
<HeaderMenuItems /> | ||
</HeaderSideNavItems> | ||
</SideNavItems> | ||
</SideNav> | ||
<HeaderGlobalBar> | ||
<HeaderGlobalAction aria-label="Contact Me"> | ||
<p>TODO</p> | ||
</HeaderGlobalAction> | ||
</HeaderGlobalBar> | ||
</Header> | ||
)} | ||
/> | ||
); | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,13 @@ | ||
@use '@carbon/react'; | ||
/* Import the Carbon Framework With Custom Colors */ | ||
@use '@carbon/react' with ( | ||
$theme: ( | ||
background: #083F63, | ||
text-primary: #FFFFFF, | ||
text-secondary: #FFFFFF, | ||
text-inverse: #000000, | ||
) | ||
); | ||
|
||
/* Use the Carbon Grid */ | ||
@use '@carbon/grid'; | ||
@include grid.flex-grid(); |
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