Compare commits

..

No commits in common. "2684f9faa66e3b912bc0bf21c429a39593ad1e3a" and "9e7c3e6b7f769d51195ce274f85df73819c954c5" have entirely different histories.

3 changed files with 0 additions and 33 deletions

View file

@ -33,8 +33,3 @@ pnpm install
```
pnpm update
```
# To Use Background
Place your background image in `assets/images/background.avif` or `assets/images/background.webp`.
Then, enable by adding <Background image /> or <Background color="#123456">

View file

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

View file

@ -1,27 +0,0 @@
import './Background.sass'
import { Show } from 'solid-js'
import backgroundAvif from '../../assets/images/background.avif'
import backgroundWebp from '../../assets/images/background.webp'
interface Props {
image?: boolean
color?: string
}
export default (props: Props) => {
return (
<>
<Show when={props.image}>
<picture class="fullscreen">
<source srcset={backgroundAvif.src} type="image/avif" />
<source srcset={backgroundWebp.src} type="image/webp" />
<img src={backgroundWebp.src} width="1920" height="auto" decoding="async" loading="lazy" alt="An image background" />
</picture>
</Show>
<Show when={!props.image}>
<div style={{ background: props.color }} class="fullscreen" />
</Show>
</>
)
}