diff --git a/src/builtin-components/Background/Background.sass b/src/builtin-components/Background/Background.sass new file mode 100644 index 0000000..1e0b5bc --- /dev/null +++ b/src/builtin-components/Background/Background.sass @@ -0,0 +1 @@ +@use '/src/styles/classes.sass' diff --git a/src/builtin-components/Background/Background.tsx b/src/builtin-components/Background/Background.tsx new file mode 100644 index 0000000..40d93c7 --- /dev/null +++ b/src/builtin-components/Background/Background.tsx @@ -0,0 +1,27 @@ +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 ( + <> + + + + + An image background + + + + +
+ + + ) +}