2023-01-18 20:59:00 +01:00
|
|
|
<script>
|
|
|
|
import { createEventDispatcher } from 'svelte';
|
|
|
|
|
|
|
|
const dispatch = createEventDispatcher();
|
|
|
|
|
|
|
|
function createHost() {
|
|
|
|
dispatch('createHost');
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<div class="welcome">
|
2023-01-21 10:27:52 +01:00
|
|
|
<div class="brand">
|
|
|
|
<img src="/logo.png" alt="" class="logo" />
|
|
|
|
<div class="text">
|
|
|
|
<div class="name">Welcome to Rolens!</div>
|
|
|
|
<div class="subtitle">A modest MongoDB client</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-01-18 20:59:00 +01:00
|
|
|
<button class="btn" on:click={createHost}>Create your first host</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.welcome {
|
2023-01-21 10:27:52 +01:00
|
|
|
/* transform: translateY(-80px); */
|
|
|
|
margin-top: -90px;
|
2023-01-18 20:59:00 +01:00
|
|
|
padding: 2rem;
|
|
|
|
}
|
|
|
|
|
2023-01-21 10:27:52 +01:00
|
|
|
.brand {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
.brand .logo {
|
|
|
|
height: 200px;
|
|
|
|
}
|
|
|
|
.brand .text {
|
|
|
|
align-self: flex-end;
|
|
|
|
margin: 0 0 4rem 1rem;
|
|
|
|
}
|
|
|
|
.brand .text .name {
|
|
|
|
font-size: 2.5rem;
|
|
|
|
margin-bottom: 1.5rem;
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
.brand .text .subtitle {
|
|
|
|
font-size: 1.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.logo {
|
|
|
|
height: 250px;
|
|
|
|
}
|
|
|
|
|
2023-01-18 20:59:00 +01:00
|
|
|
.title {
|
|
|
|
font-weight: 600;
|
|
|
|
font-size: 1.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn {
|
|
|
|
margin-top: 2rem;
|
|
|
|
}
|
|
|
|
</style>
|