blackbirdchess-website-wip/src/routes/+page.svelte

40 lines
1.4 KiB
Svelte
Raw Normal View History

2023-01-05 13:59:59 +01:00
<div class="container h-full">
<div class="h-full flex flex-row justify-center items-center">
2023-01-06 11:47:48 +01:00
<div class="content flex flex-col items-center">
2023-01-06 10:15:24 +01:00
{#if Math.floor(Math.random() * 10) >= 5}
2023-01-06 11:47:48 +01:00
<img src="{bird}" alt="bird" class="image p-3">
2023-01-06 10:15:24 +01:00
{:else}
2023-01-06 11:47:48 +01:00
<iframe class="image p-3" src="https://www.youtube-nocookie.com/embed/Man4Xw8Xypo" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
2023-01-06 10:15:24 +01:00
{/if}
{#if $page.url.hostname.endsWith('.ru')}
2023-01-06 10:18:30 +01:00
<p class="text-center text-3xl p-3">Мы строим нечто великое</p>
2023-01-06 10:15:24 +01:00
{:else if $page.url.hostname.endsWith('.be')}
2023-01-06 10:18:30 +01:00
<p class="text-center text-3xl p-3">We bouwen aan iets groots</p>
<p class="text-center text-3xl p-3">Nous construisons quelque chose de grand</p>
<p class="text-center text-3xl p-3">Wir bauen etwas Großes auf</p>
2023-01-06 09:48:32 +01:00
{:else}
2023-01-06 10:18:30 +01:00
<p class="text-center text-3xl p-3">We are building something great</p>
2023-01-06 09:48:32 +01:00
{/if}
2023-01-06 15:28:44 +01:00
<p class="text-center text-blue-400 text-sm hover:underline"><a href="https://git.jeroened.be/blackbirdchess" target="_blank">Git-repositories</a></p>
2023-01-05 13:59:59 +01:00
</div>
</div>
</div>
<script>
import bird from '$lib/images/bird.png';
2023-01-06 09:48:32 +01:00
import { page } from '$app/stores';
2023-01-05 13:59:59 +01:00
</script>
2023-01-06 11:47:48 +01:00
<style lang="scss">
.image {
width: 300px;
height: 200px;
@media (min-width: 640px) {
width: 600px;
height: 400px;
}
}
2023-01-05 13:59:59 +01:00
</style>