Compare commits
No commits in common. "608cef5827d31fc0c8b97ccf00dba1c23230e7df" and "d8d8119dd1d4590d11a9afd286395584c2c3e58f" have entirely different histories.
608cef5827
...
d8d8119dd1
3 changed files with 4 additions and 37 deletions
|
|
@ -1,7 +0,0 @@
|
|||
.nav
|
||||
position: fixed
|
||||
top: 0
|
||||
width: 100%
|
||||
padding: 1rem 0
|
||||
// margin: 5rem
|
||||
|
||||
|
|
@ -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>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
import './Row.sass'
|
||||
import { Show } from 'solid-js'
|
||||
// import { Switch, Match } from 'solid-js'
|
||||
|
||||
interface Props {
|
||||
children: any
|
||||
|
|
@ -10,17 +10,9 @@ interface Props {
|
|||
export default (props: Props) => {
|
||||
return (
|
||||
<>
|
||||
<Show when={props.gap}>
|
||||
<div class={props.content} style={`gap: ${props.gap}rem`}>
|
||||
{props.children}
|
||||
</div>
|
||||
</Show>
|
||||
|
||||
<Show when={!props.gap}>
|
||||
<div class={props.content} >
|
||||
{props.children}
|
||||
</div>
|
||||
</Show>
|
||||
<div class={props.content} style={`gap: ${props.gap}rem`}>
|
||||
{props.children}
|
||||
</div>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue