boredgame/src/routes/__layout.svelte

65 lines
1.2 KiB
Svelte
Raw Normal View History

2022-01-28 05:27:12 +00:00
<script lang="ts">
import Header from '$lib/header/Header.svelte';
2022-05-16 06:42:50 +00:00
// import 'carbon-components-svelte/css/all.css';
import '$root/styles/styles.scss';
2022-01-28 05:27:12 +00:00
</script>
2022-05-16 06:42:50 +00:00
<div class="fade" style:animation-duration="250ms" style:animation-delay="250ms">
<Header />
<main>
<slot />
</main>
<footer>
<p>Built by <a target="__blank" href="https://bradleyshellnut.com">Bradley Shellnut</a></p>
2022-07-07 22:17:05 +00:00
<p>
<a href="https://www.flaticon.com/free-icons/board-game" title="board game icons">Board game icons created by Freepik - Flaticon</a>
</p>
2022-05-16 06:42:50 +00:00
</footer>
</div>
2022-01-28 05:27:12 +00:00
<style>
2022-05-16 06:42:50 +00:00
.fade {
2022-07-07 22:17:05 +00:00
display: grid;
grid-template-rows: auto 1fr auto;
min-height: 100vh;
2022-05-16 06:42:50 +00:00
animation-name: fadeIn;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
main {
flex: 1;
display: flex;
flex-direction: column;
padding: 1rem;
width: 100%;
max-width: 1024px;
margin: 0 auto;
box-sizing: border-box;
}
2022-01-28 05:27:12 +00:00
footer {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 40px;
}
2022-01-28 05:27:12 +00:00
footer a {
font-weight: bold;
}
2022-01-28 05:27:12 +00:00
@media (min-width: 480px) {
footer {
padding: 40px 0;
}
}
2022-01-28 05:27:12 +00:00
</style>