2022-07-08 12:50:15 +00:00
|
|
|
<script>
|
2022-07-08 15:17:17 +00:00
|
|
|
import { onMount } from 'svelte';
|
|
|
|
|
|
|
|
onMount(() => console.log('test'));
|
2022-07-08 12:50:15 +00:00
|
|
|
</script>
|
|
|
|
|
2022-07-08 15:17:17 +00:00
|
|
|
<div class="center">
|
|
|
|
<div class="ratio">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-07-08 12:50:15 +00:00
|
|
|
|
|
|
|
<style>
|
2022-07-09 11:10:08 +00:00
|
|
|
:global(html), :global(body) {
|
2022-07-08 12:50:15 +00:00
|
|
|
--radius: 10px;
|
2022-07-09 09:12:39 +00:00
|
|
|
--tile-bg: #181818;
|
2022-07-08 12:50:15 +00:00
|
|
|
|
|
|
|
background-color: #000;
|
|
|
|
color: #fff;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
2022-07-08 15:17:17 +00:00
|
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
|
|
|
}
|
|
|
|
|
|
|
|
.center {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
width: 100vw;
|
|
|
|
height: 100vh;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ratio {
|
|
|
|
height: 56.25vw;
|
|
|
|
left: 50%;
|
|
|
|
max-height: 100vh;
|
|
|
|
max-width: 177.77778vh;
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
transform: translate(-50%,-50%);
|
|
|
|
width: 100vw;
|
2022-07-08 12:50:15 +00:00
|
|
|
}
|
|
|
|
</style>
|