move meowo to another file

This commit is contained in:
b1ek 2023-07-20 20:34:25 +10:00
parent 6ce8753a38
commit 949c74cf2d
Signed by: blek
GPG Key ID: 14546221E3595D0C
3 changed files with 30 additions and 14 deletions

View File

@ -1,12 +1,6 @@
<script>
import styles from './app.module.scss';
let meowo_meow = '';
for (let i = 0; i != 50; i++) {
const meows = ['meow', 'mowe', 'mewo', 'mweo', 'nya', 'm:3wo'];
meowo_meow += meows[Math.floor(Math.random() * meows.length)] + ' ';
if (i % 10 === 0 && i != 0) meowo_meow += '<br/>'
}
import Meowo from './meowo.svelte';
</script>
<main class={styles.root}>
@ -52,12 +46,7 @@
</table>
</div>
<div class={styles.block + ' ' + styles.cat}>
<h1>meow mewoweu :3</h1>
<p>this is a cat cat kitty cat zone :3</p>
<img src='/assets/the_meowo.png' alt='meowo the greatnes :3' width="600px">
<h1>Meowo "The greatness"</h1>
<p>Worship the great Meowo</p>
<p>{@html meowo_meow}</p>
<div class={styles.block}>
<Meowo></Meowo>
</div>
</main>

7
src/meowo.module.scss Normal file
View File

@ -0,0 +1,7 @@
.cat {
padding: 32px 0;
background: url(/assets/kittycatcat.png);
background-size: cover;
text-shadow: 0 2px 2px black;
}

20
src/meowo.svelte Normal file
View File

@ -0,0 +1,20 @@
<script>
import styles from './meowo.module.scss';
let meowo_meow = '';
for (let i = 0; i != 50; i++) {
const meows = ['meow', 'mowe', 'mewo', 'mweo', 'nya', 'm:3wo'];
meowo_meow += meows[Math.floor(Math.random() * meows.length)] + ' ';
if (i % 10 === 0 && i != 0) meowo_meow += '<br/>'
}
</script>
<div class={styles.cat}>
<h1>meow mewoweu :3</h1>
<p>this is a cat cat kitty cat zone :3</p>
<img src='/assets/the_meowo.png' alt='meowo the greatnes :3' width="600px">
<h1>Meowo "The greatness"</h1>
<p>Worship the great Meowo</p>
<p>{@html meowo_meow}</p>
</div>