files linted, multiword-component rule turned off

This commit is contained in:
Nikita Krupin committed 2021-12-12 18:32:42 -05:00
1 parent 8de9dfc9df
commit c6b51561ca
12 files changed
+379 -311

No files matched your search

+52 -44
View File
@@ -1,6 +1,5 @@
<template>
<v-app dark>
<!-- height = 4rem, margin-y = 1rem -->
<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>
@@ -9,30 +8,65 @@
</v-tab>
</v-tabs>
</v-app-bar>
<!-- abstract background -->
<v-img src="/ui/abstract.svg" style="position: absolute; left: 0; right: 0; width: 100%; height: 100%;" />
<v-main style="padding-top: 4rem !important;">
<!-- abstract background -->
<v-img
src="/ui/abstract.svg"
style="position: absolute; left: 0; right: 0; width: 100%; height: 100%"
/>
<v-main style="padding-top: 4rem !important">
<!-- min-height helps keep content centered, use .debug to to see it -->
<center
class="py-8 mx-auto d-flex flex-column justify-center items-center"
style="width: 90vw; min-height: calc(100vh - 8rem);">
<nuxt />
style="width: 90vw; min-height: calc(100vh - 8rem)"
>
<nuxt />
</center>
</v-main>
</v-app>
</template>
<script>
export default {
data: () => ({
links: [
{
name: "Home",
path: "/",
},
{
name: "Install",
path: "/install",
},
{
name: "FAQ",
path: "/faq",
},
{
name: "Donate",
path: "/donate",
},
{
name: "Links",
path: "/links",
},
],
}),
};
</script>
<style>
html, body {
html,
body {
height: 100%;
background: #111; /* for MacOS/iOS overscroll */
height: -webkit-fill-available;
overflow: auto;
}
.debug { /* usage: add class="debug" to the element */
.debug {
/* usage: add class="debug" to the element */
outline: 2px solid red;
}
@@ -45,20 +79,23 @@ html, body {
width: fit-content !important;
background-color: #222 !important;
border-radius: 1rem !important;
border-radius: .75rem;
border-radius: 0.75rem;
overflow: hidden;
}
.title-text {
font-size: 3rem;
}
@media (max-width: 768px) { /* mobile */
@media (max-width: 768px) {
/* mobile */
.title-text {
font-size: 2rem;
}
.topBar {
width: calc(100vw - 2rem) !important; /* (2rem = mx-4) 1rem on left, 1rem on right */
.topBar {
width: calc(
100vw - 2rem
) !important; /* (2rem = mx-4) 1rem on left, 1rem on right */
padding: 0;
}
}
}
/* animations and all that */
@@ -102,7 +139,7 @@ html, body {
.fly-in-from-top {
opacity: 0;
transform: scale(0.8) translateY(-12rem);
animation: fly-in-from-top 0.5s .3s ease forwards;
animation: fly-in-from-top 0.5s 0.3s ease forwards;
}
@keyframes fly-in-from-top {
@@ -161,32 +198,3 @@ html, body {
}
}
</style>
<script>
export default {
data: () => ({
links: [
{
name: 'Home',
path: '/'
},
{
name: 'Install',
path: '/install'
},
{
name: 'FAQ',
path: '/faq'
},
{
name: 'Donate',
path: '/donate'
},
{
name: 'Links',
path: '/links'
},
],
}),
}
</script>
+14 -16
View File
@@ -6,35 +6,33 @@
<h1 v-else>
{{ otherError }}
</h1>
<NuxtLink to="/">
Home page
</NuxtLink>
<NuxtLink to="/"> Home page </NuxtLink>
</v-app>
</template>
<script>
export default {
layout: 'empty',
layout: "empty",
props: {
error: {
type: Object,
default: null
}
default: null,
},
},
data () {
data() {
return {
pageNotFound: '404 Not Found',
otherError: 'An error occurred'
}
pageNotFound: "404 Not Found",
otherError: "An error occurred",
};
},
head () {
head() {
const title =
this.error.statusCode === 404 ? this.pageNotFound : this.otherError
this.error.statusCode === 404 ? this.pageNotFound : this.otherError;
return {
title
}
}
}
title,
};
},
};
</script>
<style scoped>