change how the transitions are handled
This commit is contained in:
parent
5114ed70a0
commit
4f5b4dc52c
1 changed files with 66 additions and 60 deletions
|
@ -42,64 +42,70 @@ import "../styles/main.css";
|
||||||
<Intro />
|
<Intro />
|
||||||
|
|
||||||
<Sidebar />
|
<Sidebar />
|
||||||
<main
|
<div class="container">
|
||||||
data-vtbot-replace="main"
|
<main
|
||||||
transition:name="main"
|
data-vtbot-replace="main"
|
||||||
transition:animate="initial"
|
transition:name="main"
|
||||||
>
|
transition:animate="initial"
|
||||||
<slot />
|
>
|
||||||
</main>
|
<slot />
|
||||||
</body><style is:global>
|
</main>
|
||||||
body {
|
</div>
|
||||||
display: grid;
|
</body>
|
||||||
grid-template-columns: min-content auto;
|
|
||||||
grid-template-rows: auto auto;
|
|
||||||
grid-auto-flow: row;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* mobile */
|
|
||||||
@media screen and (max-width: 600px) {
|
|
||||||
body {
|
|
||||||
grid-template-columns: auto auto;
|
|
||||||
grid-template-rows: min-content auto;
|
|
||||||
grid-auto-flow: column;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
main {
|
|
||||||
background: linear-gradient(
|
|
||||||
275deg,
|
|
||||||
#f38ba8,
|
|
||||||
#eba0ac 30%,
|
|
||||||
transparent 0%
|
|
||||||
),
|
|
||||||
linear-gradient(
|
|
||||||
260deg,
|
|
||||||
#74c7ec,
|
|
||||||
#89b4fa 45%,
|
|
||||||
transparent 0%
|
|
||||||
),
|
|
||||||
linear-gradient(
|
|
||||||
270deg,
|
|
||||||
#fab387,
|
|
||||||
#f9e2af 55%,
|
|
||||||
transparent 0%
|
|
||||||
),
|
|
||||||
linear-gradient(
|
|
||||||
265deg,
|
|
||||||
#a6e3a1,
|
|
||||||
#94e2d5 70%,
|
|
||||||
transparent 0%),
|
|
||||||
#181818;
|
|
||||||
background-attachment: fixed;
|
|
||||||
display: flex;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 1em;
|
|
||||||
padding: 1em;
|
|
||||||
min-height: 100vh;
|
|
||||||
height: 100%;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</html>
|
</html>
|
||||||
|
<style is:global>
|
||||||
|
body {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: min-content auto;
|
||||||
|
grid-template-rows: auto auto;
|
||||||
|
grid-auto-flow: row;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* mobile */
|
||||||
|
@media screen and (max-width: 600px) {
|
||||||
|
body {
|
||||||
|
grid-template-columns: auto auto;
|
||||||
|
grid-template-rows: min-content auto;
|
||||||
|
grid-auto-flow: column;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
background: linear-gradient(
|
||||||
|
275deg,
|
||||||
|
#f38ba8,
|
||||||
|
#eba0ac 30%,
|
||||||
|
transparent 0%
|
||||||
|
),
|
||||||
|
linear-gradient(
|
||||||
|
260deg,
|
||||||
|
#74c7ec,
|
||||||
|
#89b4fa 45%,
|
||||||
|
transparent 0%
|
||||||
|
),
|
||||||
|
linear-gradient(
|
||||||
|
270deg,
|
||||||
|
#fab387,
|
||||||
|
#f9e2af 55%,
|
||||||
|
transparent 0%
|
||||||
|
),
|
||||||
|
linear-gradient(
|
||||||
|
265deg,
|
||||||
|
#a6e3a1,
|
||||||
|
#94e2d5 70%,
|
||||||
|
transparent 0%),
|
||||||
|
#181818;
|
||||||
|
background-attachment: fixed;
|
||||||
|
}
|
||||||
|
|
||||||
|
main {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 1em;
|
||||||
|
padding: 1em;
|
||||||
|
min-height: 100vh;
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
</style>
|
Loading…
Add table
Add a link
Reference in a new issue