-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move site nav into a menu on smaller screens (#234)
* Add basic mobile menu implementation Pages that are not responsive: * Component Name Matrix * Select Propsals * Checkbox Propsals Also, component name matrix is really slow to show menu. React is hogging the main thread. Also, the mobile menu won't show until the client-side React render happens, siiighh. This is blocked by a >1MB download of JS (mostly inlined images). siiggh * Prevent re-building the page content DOM on layout rerender * Add community links to mobile nav
- Loading branch information
1 parent
f305abe
commit 0788ecd
Showing
7 changed files
with
154 additions
and
34 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 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,23 @@ | ||
import React from 'react' | ||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' | ||
import { faDiscord, faGithub } from '@fortawesome/free-brands-svg-icons' | ||
|
||
export default function CommunityLinks({ githubURL, className = '' }) { | ||
return ( | ||
<div className={'community-links ' + className}> | ||
<a href={githubURL} target="_blank" rel="noreferrer noopener" style={{ color: 'inherit' }}> | ||
<FontAwesomeIcon style={{ marginRight: '0.2em' }} icon={faGithub} /> GitHub | ||
</a> | ||
|
||
<a | ||
href="https://discord.gg/DEWjhSw" | ||
target="_blank" | ||
rel="noreferrer noopener" | ||
style={{ color: 'inherit' }} | ||
> | ||
<FontAwesomeIcon style={{ marginRight: '0.2em', marginLeft: '1em' }} icon={faDiscord} />{' '} | ||
Discord | ||
</a> | ||
</div> | ||
) | ||
} |
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
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