Compare commits

..

No commits in common. "bc7760cef5d8d949b1b1e202199b9077559c884c" and "f22261fff3d1a46596b43935aef191580b1c851d" have entirely different histories.

4 changed files with 32 additions and 63 deletions

View file

@ -1,41 +0,0 @@
import '../styles/Viewport.sass'
import { type JSXElement, Switch, Match } from 'solid-js'
interface Props {
children: JSXElement
desktop?: boolean
tablet?: boolean
mobile?: boolean
}
export default (props: Props) => {
return (
<>
<Switch>
<Match when={props.desktop && !props.tablet && !props.mobile}>
<div class="on-desktop-only">{props.children}</div>
</Match>
<Match when={!props.desktop && props.tablet && !props.mobile}>
<div class="on-tablet-only">{props.children}</div>
</Match>
<Match when={!props.desktop && !props.tablet && props.mobile}>
<div class="on-mobile-only">{props.children}</div>
</Match>
<Match when={props.desktop && props.tablet && !props.mobile}>
<div class="on-desktop-tablet-only">{props.children}</div>
</Match>
<Match when={props.desktop && !props.tablet && props.mobile}>
<div class="on-desktop-mobile-only">{props.children}</div>
</Match>
<Match when={!props.desktop && props.tablet && props.mobile}>
<div class="on-tablet-mobile-only">{props.children}</div>
</Match>
</Switch>
</>
)
}

View file

@ -12,7 +12,6 @@ export { default as Logo } from './components/Logo'
export { default as Navbar } from './components/Navbar'
export { default as Page } from './components/Page'
export { default as Row } from './components/Row'
export { default as Display } from './components/Display'
export { default as OptimizeBackground } from './Optimizers/OptimizeBackground'
export { default as OptimizeImage } from './Optimizers/OptimizeImage'

View file

@ -1 +0,0 @@
@use '/src/styles/classes.sass'

View file

@ -11,49 +11,61 @@
opacity: 1
.on-desktop-only
@media only screen and (min-width: 0px) and (max-width: view.$desktop)
@media only screen and (max-width: view.$desktop)
display: block
@media only screen and (max-width: view.$tablet)
display: none
@media only screen and (min-width: view.$desktop)
display: block
@media only screen and (max-width: view.$mobile)
display: none
.on-tablet-only
@media only screen and (min-width: 0px) and (max-width: view.$tablet)
@media only screen and (max-width: view.$desktop)
display: none
@media only screen and (min-width: view.$tablet) and (max-width: view.$desktop)
@media only screen and (max-width: view.$tablet)
display: block
@media only screen and (min-width: view.$desktop)
@media only screen and (max-width: view.$mobile)
display: none
.on-mobile-only
@media only screen and (min-width: view.$mobile)
display: block
@media only screen and (min-width: view.$tablet)
@media only screen and (max-width: view.$desktop)
display: none
@media only screen and (max-width: view.$tablet)
display: none
@media only screen and (max-width: view.$mobile)
display: block
.on-desktop-tablet-only
@media only screen and (min-width: 0px) and (max-width: view.$tablet)
display: none
@media only screen and (min-width: view.$tablet)
@media only screen and (max-width: view.$desktop)
display: block
@media only screen and (max-width: view.$tablet)
display: block
@media only screen and (max-width: view.$mobile)
display: none
.on-desktop-mobile-only
@media only screen and (min-width: 0px) and (max-width: view.$mobile)
@media only screen and (max-width: view.$desktop)
display: block
@media only screen and (min-width: view.$mobile) and (max-width: view.$desktop)
@media only screen and (max-width: view.$tablet)
display: none
@media only screen and (min-width: view.$desktop)
@media only screen and (max-width: view.$mobile)
display: block
.on-tablet-mobile-only
@media only screen and (min-width: 0px) and (max-width: view.$desktop)
@media only screen and (max-width: view.$desktop)
display: none
@media only screen and (max-width: view.$tablet)
display: block
@media only screen and (min-width: view.$desktop)
display: none
@media only screen and (max-width: view.$mobile)
display: block