random quotes for billboard
This commit is contained in:
parent
575b20dd0f
commit
3150e2c372
2 changed files with 23 additions and 2 deletions
|
|
@ -1,12 +1,12 @@
|
|||
<script>
|
||||
import star from '$lib/assets/img/star.gif';
|
||||
// import quote from randomquote function
|
||||
import randomQuote from '$lib/functions/randomquote';
|
||||
</script>
|
||||
|
||||
<div class="billboard noselect">
|
||||
<div class="quote">
|
||||
<img src={star} alt="" />
|
||||
<p>meowwww</p>
|
||||
<p>{randomQuote()}</p>
|
||||
<img src={star} alt="" />
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
21
src/lib/functions/randomquote.ts
Normal file
21
src/lib/functions/randomquote.ts
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
const quotes: string[] = [
|
||||
"meowwwww",
|
||||
"made with my tiny paws :3c",
|
||||
"no bunnies were harmed in the making of this site",
|
||||
"everyday is halloween!!!",
|
||||
"proud bug parent",
|
||||
"was zur hölle",
|
||||
"katzenhasen sind echt!",
|
||||
"are you lost?",
|
||||
"i am within 100 metres of your current location...",
|
||||
"all bite, no bark",
|
||||
"halloween is just a week away",
|
||||
"WOOF WOO- i mean meow meow =^w^=",
|
||||
"let's go gambling!"
|
||||
]
|
||||
|
||||
export default function randomQuote() {
|
||||
const index: number = Math.floor(Math.random() * quotes.length);
|
||||
const quote: string = quotes[index]
|
||||
return quote
|
||||
}
|
||||
Loading…
Reference in a new issue