2020-12-09 13:33:29 +00:00
|
|
|
<template>
|
2021-06-28 19:45:03 +00:00
|
|
|
<div
|
|
|
|
class="uk-container uk-container-expand uk-height-viewport"
|
|
|
|
:style="[{ background: backgroundColor, colour: foregroundColor }]"
|
|
|
|
:class="{ 'uk-light': darkMode }"
|
|
|
|
>
|
2021-03-31 22:09:39 +00:00
|
|
|
<Navigation />
|
2021-07-07 14:18:09 +00:00
|
|
|
<router-view v-slot="{ Component }">
|
|
|
|
<keep-alive :max="5">
|
|
|
|
<component :key="$route.fullPath" :is="Component" />
|
|
|
|
</keep-alive>
|
|
|
|
</router-view>
|
2021-03-29 06:38:29 +00:00
|
|
|
|
|
|
|
<div style="text-align: center">
|
2021-05-10 18:14:28 +00:00
|
|
|
<a aria-label="GitHub" href="https://github.com/TeamPiped/Piped">
|
2021-04-07 11:45:40 +00:00
|
|
|
<font-awesome-icon :icon="['fab', 'github']"></font-awesome-icon>
|
2021-03-29 06:38:29 +00:00
|
|
|
</a>
|
|
|
|
|
2021-07-18 17:36:59 +00:00
|
|
|
<a href="https://github.com/TeamPiped/Piped#donations">
|
2021-04-07 11:45:40 +00:00
|
|
|
<font-awesome-icon :icon="['fab', 'bitcoin']"></font-awesome-icon>
|
2021-07-18 17:36:59 +00:00
|
|
|
Donations
|
2021-03-29 06:38:29 +00:00
|
|
|
</a>
|
|
|
|
</div>
|
2020-12-09 13:33:29 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2021-03-31 22:09:39 +00:00
|
|
|
import Navigation from "@/components/Navigation";
|
2020-12-09 13:33:29 +00:00
|
|
|
export default {
|
2021-03-31 22:09:39 +00:00
|
|
|
components: {
|
2021-05-10 18:14:28 +00:00
|
|
|
Navigation,
|
|
|
|
},
|
2021-07-18 20:20:35 +00:00
|
|
|
mounted() {
|
|
|
|
if (window.location.pathname === "/" || window.location.pathname.length == 0)
|
|
|
|
switch (this.getPreferenceString("homepage", "trending")) {
|
|
|
|
case "trending":
|
|
|
|
break;
|
|
|
|
case "feed":
|
|
|
|
this.$router.push("/feed");
|
|
|
|
return;
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
},
|
2020-12-09 13:33:29 +00:00
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
2021-06-28 16:23:24 +00:00
|
|
|
h1,
|
|
|
|
p,
|
|
|
|
a,
|
|
|
|
b {
|
|
|
|
unicode-bidi: plaintext;
|
|
|
|
text-align: start;
|
|
|
|
}
|
|
|
|
|
2020-12-09 13:33:29 +00:00
|
|
|
::-webkit-scrollbar {
|
|
|
|
background-color: #15191a;
|
|
|
|
color: #c5bcae;
|
|
|
|
}
|
|
|
|
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
|
|
background-color: #4b4f52;
|
|
|
|
}
|
|
|
|
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
|
|
background-color: #5b6469;
|
|
|
|
}
|
|
|
|
|
|
|
|
::-webkit-scrollbar-thumb:active {
|
|
|
|
background-color: #485053;
|
|
|
|
}
|
|
|
|
|
|
|
|
::-webkit-scrollbar-corner {
|
|
|
|
background-color: #0b0e0f;
|
|
|
|
}
|
|
|
|
|
2021-02-24 09:35:41 +00:00
|
|
|
* {
|
|
|
|
scrollbar-color: #15191a #444a4e;
|
|
|
|
}
|
|
|
|
</style>
|