added component templates and structure
This commit is contained in:
parent
a049027c3f
commit
e84e4ea7fa
10 changed files with 62 additions and 2 deletions
16
src/base.css
Normal file
16
src/base.css
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
* {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
background-image: url($lib/assets/img/bg.webp);
|
||||
background-size: 256px;
|
||||
|
||||
color: #fefefe;
|
||||
|
||||
|
||||
}
|
||||
|
||||
.window {
|
||||
border: solid 2px rgba(222,222,108,1);
|
||||
}
|
||||
BIN
src/lib/assets/img/bg.webp
Normal file
BIN
src/lib/assets/img/bg.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 61 KiB |
BIN
src/lib/assets/img/star.gif
Normal file
BIN
src/lib/assets/img/star.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 826 B |
0
src/lib/components/banners.svelte
Normal file
0
src/lib/components/banners.svelte
Normal file
25
src/lib/components/billboard.svelte
Normal file
25
src/lib/components/billboard.svelte
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<script>
|
||||
import star from "$lib/assets/img/star.gif"
|
||||
// import quote from randomquote function
|
||||
</script>
|
||||
|
||||
<div class="window">
|
||||
<div id="quote">
|
||||
<img src="{star}" alt=""/>
|
||||
<p>meowwww</p>
|
||||
<img src="{star}" alt=""/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
#quote {
|
||||
display: flex;
|
||||
line-height: 32px;
|
||||
margin: 8px 0 8px 0;
|
||||
|
||||
justify-content: center;
|
||||
}
|
||||
img {
|
||||
margin: 0 8px 0 8px;
|
||||
}
|
||||
</style>
|
||||
0
src/lib/components/blinkies.svelte
Normal file
0
src/lib/components/blinkies.svelte
Normal file
0
src/lib/components/nav.svelte
Normal file
0
src/lib/components/nav.svelte
Normal file
9
src/lib/components/title.svelte
Normal file
9
src/lib/components/title.svelte
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<p>welcome to...</p>
|
||||
<h1>BANII.CAFE</h1>
|
||||
|
||||
<style>
|
||||
h1 {
|
||||
background: linear-gradient(90deg,#dede6c,#dede6c 25%,#00d4ff00);
|
||||
color: black;
|
||||
}
|
||||
</style>
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
<script lang="ts">
|
||||
import favicon from '$lib/assets/favicon.ico';
|
||||
//TODO - make function to handle what stylesheet is used
|
||||
import "../base.css"
|
||||
|
||||
let { children } = $props();
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -1,2 +1,10 @@
|
|||
<h1>Welcome to SvelteKit</h1>
|
||||
<p>Visit <a href="https://svelte.dev/docs/kit">svelte.dev/docs/kit</a> to read the documentation</p>
|
||||
<script lang="ts">
|
||||
import Title from "$lib/components/title.svelte";
|
||||
import Billboard from "$lib/components/billboard.svelte";
|
||||
</script>
|
||||
|
||||
<header>
|
||||
<Title/>
|
||||
<Billboard/>
|
||||
</header>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue