Created
May 3, 2020 22:12
-
-
Save marshallmurphy/3eae81f82f276009cb0f526bd9c5a684 to your computer and use it in GitHub Desktop.
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
import React from 'react'; | |
import Dropdown from './Dropdown'; | |
import ToggleRow from './ToggleRow'; | |
import styles from './app.module.css'; | |
const App = () => { | |
const options = [ | |
'Subscribe to all emails', | |
'Marketing emails only', | |
'Weekly newsletter', | |
'Emails for direct messages', | |
'Some other option', | |
'Emails about sasquatch', | |
'Notify me whenever you notify me', | |
'Send emails to everyone I know' | |
]; | |
return ( | |
<main className={styles.main}> | |
<nav className={styles.navbar}> | |
<div className={styles.logo} tabIndex='0'>Logo</div> | |
<div className={styles.navlinks}> | |
<a href='#'>Link A</a> | |
<a href='#'>Link B</a> | |
<a href='#'>Link C</a> | |
<Dropdown /> | |
</div> | |
</nav> | |
<div className={styles.body}> | |
<h1>Preferences</h1> | |
<div className={styles.preferences}> | |
{options.map((item, index) => { | |
return ( | |
<ToggleRow option={item} index={index} /> | |
); | |
})} | |
</div> | |
</div> | |
</main> | |
); | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment