2022-09-03 15:30:38 -07:00
|
|
|
:root {
|
2022-09-11 10:53:07 -07:00
|
|
|
--animation-offset: 6px;
|
2022-09-03 15:30:38 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
display: flex;
|
2022-09-11 10:39:06 -07:00
|
|
|
flex-direction: column;
|
2022-09-03 15:30:38 -07:00
|
|
|
font-size: 2rem;
|
|
|
|
justify-content: center;
|
2022-09-11 10:39:06 -07:00
|
|
|
margin: auto;
|
2022-09-03 15:30:38 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
h1 {
|
2022-09-11 10:39:06 -07:00
|
|
|
font-size: 5rem;
|
|
|
|
line-height: 1.3;
|
2022-09-03 15:30:38 -07:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
@media (max-width: 450px) {
|
|
|
|
h1 { font-size: 4.25rem; }
|
|
|
|
}
|
|
|
|
|
2022-09-11 10:39:06 -07:00
|
|
|
main {
|
|
|
|
margin-block-start: 10vh;
|
2022-09-25 07:53:43 -07:00
|
|
|
width: inherit;
|
2022-09-03 15:30:38 -07:00
|
|
|
}
|
|
|
|
|
2022-09-11 10:39:06 -07:00
|
|
|
main .grid {
|
2022-09-03 15:30:38 -07:00
|
|
|
align-items: baseline;
|
|
|
|
display: grid;
|
2022-09-11 10:39:06 -07:00
|
|
|
gap: 0 2rem;
|
2022-10-09 13:46:08 -07:00
|
|
|
grid-template-columns: min-content 200px;
|
2022-09-03 15:30:38 -07:00
|
|
|
grid-template-rows: repeat(2, max-content);
|
|
|
|
grid-template-areas:
|
|
|
|
"title blurb"
|
|
|
|
"title nav";
|
2022-09-11 10:39:06 -07:00
|
|
|
padding-inline: 1em;
|
|
|
|
width: min-content;
|
2022-09-03 15:30:38 -07:00
|
|
|
}
|
|
|
|
@media (max-width: 450px) {
|
2022-09-11 10:39:06 -07:00
|
|
|
main .grid {
|
2022-09-11 10:53:07 -07:00
|
|
|
gap: 1rem 0;
|
2022-09-03 15:30:38 -07:00
|
|
|
grid-template-columns: 1fr;
|
|
|
|
grid-template-rows: repeat(3, max-content);
|
|
|
|
grid-template-areas:
|
|
|
|
"title"
|
2022-09-11 10:53:07 -07:00
|
|
|
"blurb"
|
|
|
|
"nav";
|
2022-09-03 15:30:38 -07:00
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
main h1 {
|
|
|
|
letter-spacing: 0.025em;
|
|
|
|
text-align: end;
|
|
|
|
}
|
|
|
|
@media (max-width: 450px) {
|
|
|
|
main h1 { text-align: center; }
|
|
|
|
}
|
|
|
|
|
|
|
|
main nav {
|
2022-09-11 10:39:06 -07:00
|
|
|
align-items: baseline;
|
2022-09-03 15:30:38 -07:00
|
|
|
}
|
|
|
|
|
2022-09-11 10:39:06 -07:00
|
|
|
main p {
|
|
|
|
margin: 0;
|
2022-09-03 15:30:38 -07:00
|
|
|
}
|
|
|
|
|
2022-09-11 10:39:06 -07:00
|
|
|
#title { grid-area: title; }
|
|
|
|
#content { grid-area: blurb }
|
|
|
|
#nav { grid-area: nav }
|
|
|
|
|
|
|
|
#title > *, #content > *, #nav > * { position: relative; }
|
|
|
|
|
|
|
|
#title > * {
|
2022-09-24 07:47:09 -07:00
|
|
|
animation: left-fade-in var(--transition-duration) ease-in-out;
|
2022-09-11 10:39:06 -07:00
|
|
|
}
|
2022-09-11 10:53:07 -07:00
|
|
|
@media (max-width: 450px) {
|
|
|
|
#title > * {
|
2022-09-24 07:47:09 -07:00
|
|
|
animation: top-fade-in var(--transition-duration) ease-in-out;
|
2022-09-11 10:53:07 -07:00
|
|
|
}
|
|
|
|
}
|
2022-09-11 10:39:06 -07:00
|
|
|
#content > *, #nav > * {
|
2022-09-24 07:47:09 -07:00
|
|
|
animation: right-fade-in var(--transition-duration) ease-in-out;
|
2022-09-03 15:30:38 -07:00
|
|
|
}
|
2022-09-11 10:53:07 -07:00
|
|
|
@media (max-width: 450px) {
|
|
|
|
#content > *, #nav > * {
|
2022-09-24 07:47:09 -07:00
|
|
|
animation: bottom-fade-in var(--transition-duration) ease-in-out;
|
2022-09-11 10:53:07 -07:00
|
|
|
}
|
|
|
|
}
|
2022-09-03 15:30:38 -07:00
|
|
|
|
2022-09-11 10:39:06 -07:00
|
|
|
@keyframes left-fade-in {
|
|
|
|
from {
|
|
|
|
opacity: 0%;
|
2022-09-11 10:53:07 -07:00
|
|
|
left: var(--animation-offset);
|
2022-09-11 10:39:06 -07:00
|
|
|
}
|
|
|
|
33% {
|
|
|
|
opacity: 0%;
|
2022-09-11 10:53:07 -07:00
|
|
|
left: var(--animation-offset);
|
2022-09-11 10:39:06 -07:00
|
|
|
}
|
|
|
|
to {
|
|
|
|
opacity: 100%;
|
|
|
|
left: 0;
|
|
|
|
}
|
2022-09-03 15:30:38 -07:00
|
|
|
}
|
|
|
|
|
2022-09-11 10:39:06 -07:00
|
|
|
@keyframes right-fade-in {
|
|
|
|
from {
|
|
|
|
opacity: 0%;
|
2022-09-11 10:53:07 -07:00
|
|
|
left: calc(-1 * var(--animation-offset));
|
2022-09-11 10:39:06 -07:00
|
|
|
}
|
|
|
|
33% {
|
|
|
|
opacity: 0%;
|
2022-09-11 10:53:07 -07:00
|
|
|
left: calc(-1 * var(--animation-offset));
|
2022-09-11 10:39:06 -07:00
|
|
|
}
|
|
|
|
to {
|
|
|
|
opacity: 100%;
|
|
|
|
left: 0;
|
|
|
|
}
|
2022-09-03 15:30:38 -07:00
|
|
|
}
|
|
|
|
|
2022-09-11 10:53:07 -07:00
|
|
|
@keyframes top-fade-in {
|
|
|
|
from {
|
|
|
|
opacity: 0%;
|
|
|
|
bottom: calc(-1 * var(--animation-offset));
|
|
|
|
}
|
|
|
|
33% {
|
|
|
|
opacity: 0%;
|
|
|
|
bottom: calc(-1 * var(--animation-offset));
|
|
|
|
}
|
|
|
|
to {
|
|
|
|
opacity: 100%;
|
|
|
|
bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes bottom-fade-in {
|
|
|
|
from {
|
|
|
|
opacity: 0%;
|
|
|
|
bottom: var(--animation-offset);
|
|
|
|
}
|
|
|
|
33% {
|
|
|
|
opacity: 0%;
|
|
|
|
bottom: var(--animation-offset);
|
|
|
|
}
|
|
|
|
to {
|
|
|
|
opacity: 100%;
|
|
|
|
bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-09-11 10:39:06 -07:00
|
|
|
.platter {
|
|
|
|
padding: 1.5rem 3rem;
|
2022-09-03 15:30:38 -07:00
|
|
|
}
|