cool fancy unimportant styling stuff
This commit is contained in:
parent
af5476ec1f
commit
986ef00dd5
3 changed files with 54 additions and 28 deletions
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 14 KiB |
|
@ -1,12 +1,29 @@
|
||||||
<script>
|
<script>
|
||||||
import Header from './Header.svelte';
|
import Header from './Header.svelte';
|
||||||
import './styles.css';
|
import './styles.css';
|
||||||
|
import { onNavigate } from '$app/navigation';
|
||||||
|
|
||||||
|
onNavigate((navigation) => {
|
||||||
|
// @ts-ignore
|
||||||
|
if (!document.startViewTransition) return;
|
||||||
|
|
||||||
|
return new Promise((resolve) => {
|
||||||
|
// @ts-ignore
|
||||||
|
document.startViewTransition(async () => {
|
||||||
|
resolve();
|
||||||
|
await navigation.complete;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="app">
|
<div class="app">
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
<slot />
|
<slot />
|
||||||
|
<footer>
|
||||||
|
© 2024 Aleks Rūtiņš
|
||||||
|
</footer>
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -14,7 +31,6 @@
|
||||||
.app {
|
.app {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
min-height: 100vh;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main {
|
main {
|
||||||
|
@ -34,6 +50,8 @@
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 12px;
|
padding: 12px;
|
||||||
|
margin-top: 25px;
|
||||||
|
border-top: 1px solid var(--color-text);
|
||||||
}
|
}
|
||||||
|
|
||||||
footer a {
|
footer a {
|
||||||
|
|
|
@ -12,11 +12,10 @@
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<h1>
|
<h1 class="welcome">
|
||||||
<span class="welcome">
|
<img src={welcome} alt="Welcome" />
|
||||||
<img src={welcome} alt="Welcome" />
|
|
||||||
</span>
|
|
||||||
</h1>
|
</h1>
|
||||||
|
<p class="tagline">for mere mortals</p>
|
||||||
|
|
||||||
<p use:reveal class="sr__hide">
|
<p use:reveal class="sr__hide">
|
||||||
Biological circuit design is the science of abstracting <em>natural</em> biological processes by defining them
|
Biological circuit design is the science of abstracting <em>natural</em> biological processes by defining them
|
||||||
|
@ -43,18 +42,21 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.welcome {
|
.welcome {
|
||||||
display: block;
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 0;
|
|
||||||
padding: 0 0 calc(100% * 495 / 2048) 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.welcome img {
|
.welcome img {
|
||||||
position: absolute;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
top: 0;
|
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tagline {
|
||||||
|
align-self: center;
|
||||||
|
font-style: italic;
|
||||||
|
margin-top: -10px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue