|
@@ -1,8 +1,6 @@
|
|
|
<template>
|
|
|
<v-app dark>
|
|
|
- <v-app-bar app flat class="topBar fly-in-from-top"
|
|
|
- :class="$vuetify.breakpoint.mobile ? 'ma-4' : 'my-4 mx-auto'"
|
|
|
- >
|
|
|
+ <v-app-bar app flat class="topBar fly-in-from-top my-4 mx-auto" >
|
|
|
<v-tabs centered center-active color="primary" router show-arrows>
|
|
|
<v-tab v-for="link in links" :key="link.path" :to="link.path">
|
|
|
{{ link.name }}
|
|
@@ -16,11 +14,9 @@
|
|
|
|
|
|
<section class="hidden-chrome-scrollbar" style="height: calc(100vh - 1rem); padding-top: 5rem; padding-bottom: 5rem; overflow-y: auto;">
|
|
|
<center
|
|
|
- class="hidden-chrome-scrollbar mx-auto d-flex flex-column justify-center items-center"
|
|
|
- style="width: 90vw; min-height: 100%; overflow-y: auto;">
|
|
|
-
|
|
|
- <nuxt />
|
|
|
-
|
|
|
+ class="mx-auto d-flex flex-column justify-center items-center"
|
|
|
+ style="width: 90vw; min-height: 100%;">
|
|
|
+ <nuxt />
|
|
|
</center>
|
|
|
</section>
|
|
|
|
|
@@ -33,6 +29,29 @@ html, body {
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
|
|
|
+.title-text {
|
|
|
+ font-size: 3rem;
|
|
|
+}
|
|
|
+
|
|
|
+.topBar {
|
|
|
+ padding: 0 3rem;
|
|
|
+ width: fit-content !important;
|
|
|
+ background-color: #222 !important;
|
|
|
+ border-radius: 1rem !important;
|
|
|
+ border-radius: .75rem;
|
|
|
+ overflow: hidden;
|
|
|
+}
|
|
|
+
|
|
|
+@media (max-width: 768px) { /* mobile */
|
|
|
+ .title-text {
|
|
|
+ font-size: 2rem;
|
|
|
+ }
|
|
|
+ .topBar {
|
|
|
+ width: calc(100vw - 2rem) !important; /* (2rem = mx-4) */
|
|
|
+ padding: 0;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
.mainAltButton {
|
|
|
margin: 0.25em;
|
|
|
}
|
|
@@ -41,15 +60,44 @@ html, body {
|
|
|
display: none;
|
|
|
}
|
|
|
|
|
|
-.topBar {
|
|
|
- background-color: #222 !important;
|
|
|
- border-radius: 12px;
|
|
|
- width: fit-content !important;
|
|
|
- padding: 0 50px;
|
|
|
- border-radius: 1rem !important;
|
|
|
+/* animations and all that */
|
|
|
+.swoop-in-enter-active,
|
|
|
+.swoop-in-leave-active,
|
|
|
+.swoop-out-enter-active,
|
|
|
+.swoop-out-leave-active,
|
|
|
+.swoop-left-enter-active,
|
|
|
+.swoop-left-leave-active,
|
|
|
+.swoop-right-enter-active,
|
|
|
+.swoop-right-leave-active {
|
|
|
+ transition-duration: 0.1s;
|
|
|
+ transition-property: opacity, transform;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
|
|
|
+.swoop-left-enter,
|
|
|
+.swoop-right-leave-active {
|
|
|
+ opacity: 0;
|
|
|
+ transform: translate(1rem, 0);
|
|
|
+}
|
|
|
+
|
|
|
+.swoop-left-leave-active,
|
|
|
+.swoop-right-enter {
|
|
|
+ opacity: 0;
|
|
|
+ transform: translate(-1rem, 0);
|
|
|
+}
|
|
|
+
|
|
|
+.swoop-in-enter,
|
|
|
+.swoop-out-leave-active {
|
|
|
+ opacity: 0;
|
|
|
+ transform: scale(0.9);
|
|
|
+}
|
|
|
+
|
|
|
+.swoop-in-leave-active,
|
|
|
+.swoop-out-enter {
|
|
|
+ opacity: 0;
|
|
|
+ transform: scale(1.1);
|
|
|
+}
|
|
|
+
|
|
|
.fly-in-from-top {
|
|
|
opacity: 0;
|
|
|
transform: scale(0.8) translateY(-200%);
|
|
@@ -66,14 +114,51 @@ html, body {
|
|
|
transform: scale(1) translateY(0);
|
|
|
}
|
|
|
}
|
|
|
-/*
|
|
|
-@media (min-width: 1234px) {
|
|
|
- .topBar {
|
|
|
- width: 95%;
|
|
|
- }
|
|
|
-}
|
|
|
-*/
|
|
|
|
|
|
+/* reduced-motion animations */
|
|
|
+@media (prefers-reduced-motion) {
|
|
|
+ .fly-in-from-top {
|
|
|
+ opacity: 1;
|
|
|
+ transform: none;
|
|
|
+ animation: none;
|
|
|
+ }
|
|
|
+
|
|
|
+ .swoop-in-enter-active,
|
|
|
+ .swoop-in-leave-active,
|
|
|
+ .swoop-out-enter-active,
|
|
|
+ .swoop-out-leave-active,
|
|
|
+ .swoop-left-enter-active,
|
|
|
+ .swoop-left-leave-active,
|
|
|
+ .swoop-right-enter-active,
|
|
|
+ .swoop-right-leave-active {
|
|
|
+ transition-duration: 0.05s;
|
|
|
+ transition-property: opacity;
|
|
|
+ }
|
|
|
+
|
|
|
+ .swoop-left-enter,
|
|
|
+ .swoop-right-leave-active {
|
|
|
+ opacity: 0;
|
|
|
+ transform: none;
|
|
|
+ }
|
|
|
+
|
|
|
+ .swoop-left-leave-active,
|
|
|
+ .swoop-right-enter {
|
|
|
+ opacity: 0;
|
|
|
+ transform: none;
|
|
|
+ }
|
|
|
+
|
|
|
+ .swoop-in-enter,
|
|
|
+ .swoop-out-leave-active {
|
|
|
+ opacity: 0;
|
|
|
+ transform: none;
|
|
|
+ }
|
|
|
+
|
|
|
+ .swoop-in-leave-active,
|
|
|
+ .swoop-out-enter {
|
|
|
+ opacity: 0;
|
|
|
+ transform: none;
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|
|
|
|
|
|
<script>
|