Compare commits

..

No commits in common. "608cef5827d31fc0c8b97ccf00dba1c23230e7df" and "d8d8119dd1d4590d11a9afd286395584c2c3e58f" have entirely different histories.

3 changed files with 4 additions and 37 deletions

View file

@ -1,7 +0,0 @@
.nav
position: fixed
top: 0
width: 100%
padding: 1rem 0
// margin: 5rem

View file

@ -1,18 +0,0 @@
import './Navbar.sass'
import { Show } from 'solid-js'
import Row from '../Row/Row'
interface Props {
transparent?: boolean
children: any
}
export default (props: Props) => {
return (
<>
<nav class="nav" role="navigation" aria-label="main navigation">
<Row content="split">{props.children}</Row>
</nav>
</>
)
}

View file

@ -1,5 +1,5 @@
import './Row.sass' import './Row.sass'
import { Show } from 'solid-js' // import { Switch, Match } from 'solid-js'
interface Props { interface Props {
children: any children: any
@ -10,17 +10,9 @@ interface Props {
export default (props: Props) => { export default (props: Props) => {
return ( return (
<> <>
<Show when={props.gap}> <div class={props.content} style={`gap: ${props.gap}rem`}>
<div class={props.content} style={`gap: ${props.gap}rem`}> {props.children}
{props.children} </div>
</div>
</Show>
<Show when={!props.gap}>
<div class={props.content} >
{props.children}
</div>
</Show>
</> </>
) )
} }