1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-04-20 01:01:03 +00:00

61 lines
1.0 KiB
Svelte
Raw Normal View History

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>