2021-12-11 14:04:05 +01:00
|
|
|
import Icon from 'shared/components/icon/index.js'
|
|
|
|
|
2021-12-11 18:19:20 +01:00
|
|
|
const TopLevel = ({ icon, title }) => (
|
|
|
|
<details className='p-3'>
|
|
|
|
<summary className='flex flex-row uppercase font-bold text-lg gap-6'>
|
|
|
|
{icon}
|
|
|
|
{title}
|
|
|
|
</summary>
|
|
|
|
<div className='pl-4'>
|
|
|
|
<ul>
|
|
|
|
<li>Getting started on Linux</li>
|
|
|
|
<li>Getting started on Mac</li>
|
|
|
|
<li>Getting started on Windows</li>
|
|
|
|
<li>Pattern design tutorial</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</details>
|
|
|
|
)
|
|
|
|
|
2021-12-11 14:04:05 +01:00
|
|
|
const PrimaryMenu = props => {
|
|
|
|
|
|
|
|
return (
|
|
|
|
<nav className={`
|
|
|
|
sm:max-w-sm
|
|
|
|
bg-base-200
|
2021-12-11 18:19:20 +01:00
|
|
|
grow
|
2021-12-11 14:04:05 +01:00
|
|
|
`}>
|
2021-12-11 18:19:20 +01:00
|
|
|
<TopLevel icon={<Icon icon='tutorial' size={28}/>} title='tutorials' />
|
|
|
|
<TopLevel icon={<Icon icon='guide' size={28}/>} title='guides' />
|
|
|
|
<TopLevel icon={<Icon icon='help' size={28}/>} title='howtos' />
|
|
|
|
<TopLevel icon={<Icon icon='docs' size={28}/>} title='reference' />
|
2021-12-11 14:04:05 +01:00
|
|
|
</nav>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default PrimaryMenu
|