make scroll hint clickable

This commit is contained in:
Vri 🌈 2023-03-15 11:42:08 +01:00
parent 2f94404a61
commit 7362dc790f
Signed by: vrifox
GPG key ID: D40098E5B60B2197
4 changed files with 17 additions and 7 deletions

View file

@ -36,19 +36,26 @@
p { p {
letter-spacing: 0.15rem; letter-spacing: 0.15rem;
} }
&::after { #scroll-down {
content: "­☟";
font-size: 4.8rem; font-size: 4.8rem;
position: absolute; position: absolute;
bottom: 2rem; bottom: 2rem;
animation: 1s ease-in infinite alternate scrollDown; animation: 1s ease-in infinite alternate scrollDown;
font-family: serif; font-family: serif;
text-decoration: none;
color: var(--vriish-gradient-text);
transition: color 0.2s ease-in-out;
&:hover {
color: var(--vriish-gradient-text-hover);
} }
@keyframes scrollDown { @keyframes scrollDown {
from { transform: translateY(0); } from { transform: translateY(0); }
to { transform: translateY(1rem); } to { transform: translateY(1rem); }
} }
} }
}
main > p { main > p {
font-family: "playfair"; font-family: "playfair";

View file

@ -2,6 +2,7 @@
box-sizing: border-box; box-sizing: border-box;
scrollbar-color: var(--vriish-rose) var(--background); scrollbar-color: var(--vriish-rose) var(--background);
scrollbar-width: thin; scrollbar-width: thin;
scroll-behavior: smooth;
&::-webkit-scrollbar { &::-webkit-scrollbar {
background: var(--background); background: var(--background);
width: 6px; width: 6px;

View file

@ -45,6 +45,7 @@
--vriish-gradient: linear-gradient(-35deg, var(--primary-light-300) -50%, var(--primary-dark-300) 150%); --vriish-gradient: linear-gradient(-35deg, var(--primary-light-300) -50%, var(--primary-dark-300) 150%);
--vriish-gradient-shadow: 2px 2px 10px var(--background); --vriish-gradient-shadow: 2px 2px 10px var(--background);
--vriish-gradient-text: var(--primary-light-950); --vriish-gradient-text: var(--primary-light-950);
--vriish-gradient-text-hover: var(--primary-light-900);
--vriish-waves: --vriish-waves:
radial-gradient(2.64rem at 50% calc(100% - 3.67rem),#000 99%,#0000 101%) calc(50% - 3rem) 0/6rem 100%, radial-gradient(2.64rem at 50% calc(100% - 3.67rem),#000 99%,#0000 101%) calc(50% - 3rem) 0/6rem 100%,

View file

@ -7,11 +7,12 @@
<header id="introduction" class="global-header"> <header id="introduction" class="global-header">
<h1>{{ i18n "introduction-heading" }}</h1> <h1>{{ i18n "introduction-heading" }}</h1>
<p>{{ i18n "introduction-sub" }}</p> <p>{{ i18n "introduction-sub" }}</p>
<a href="#main" id="scroll-down"></a>
</header> </header>
{{ end }} {{ end }}
{{- define "main" }} {{- define "main" }}
<main> <main id="main">
{{ .Content }} {{ .Content }}
</main> </main>
{{- end }} {{- end }}