Skip to content

Commit

Permalink
blog in progress sign
Browse files Browse the repository at this point in the history
  • Loading branch information
Flagro committed Jan 9, 2024
1 parent 1907f26 commit 966b87d
Showing 1 changed file with 39 additions and 2 deletions.
41 changes: 39 additions & 2 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,2 +1,39 @@
<h1>Welcome to SvelteKit</h1>
<p>Visit <a href="https://kit.svelte.dev">kit.svelte.dev</a> to read the documentation</p>
<script>
import { onMount } from 'svelte';
let randomEmoji = '';
const getRandomEmoji = () => {
const emojis = ['🔥', '💡', '🚀', '🎉', '🔨'];
const randomIndex = Math.floor(Math.random() * emojis.length);
randomEmoji = emojis[randomIndex];
};
onMount(() => {
getRandomEmoji();
});
</script>

<style>
.container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
background-color: black;
}
.sign {
font-size: 48px;
font-weight: bold;
color: white;
background-color: rgba(0, 0, 0, 0.5);
padding: 20px;
}
</style>

<div class="container">
<div class="sign">{randomEmoji} BLOG IN PROGRESS {randomEmoji}</div>
</div>

0 comments on commit 966b87d

Please sign in to comment.