Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
fix(website): remove doc
Browse files Browse the repository at this point in the history
  • Loading branch information
lennartkloock committed Jul 9, 2024
1 parent 01d690c commit 2038250
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 46 deletions.
2 changes: 0 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ const theme = computed(() => {
switch (notFoundMode.value) {
case "troll-despair":
return "troll-despair";
case "doctor-wtf":
return "doctor-wtf";
case "pot-friend":
return "pot-friend";
default:
Expand Down
10 changes: 0 additions & 10 deletions src/assets/scss/themes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,6 @@ $themes: (
navBackgroundColor: black,
footerBackgroundColor: black,
),
doctor-wtf: (
color: white,
extreme: black,
primary: rgb(155, 50, 250),
accent: black,
warning: black,
backgroundColor: #120458,
navBackgroundColor: rgb(27, 76, 211),
footerBackgroundColor: black,
),
pot-friend: (
color: white,
extreme: rgb(105, 105, 105),
Expand Down
25 changes: 0 additions & 25 deletions src/components/base/DoctorWTF.vue

This file was deleted.

2 changes: 1 addition & 1 deletion src/store/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,4 @@ export const useStore = defineStore("main", {
});

export type Theme = "light" | "dark";
export type NotFoundMode = "troll-despair" | "doctor-wtf" | "pot-friend";
export type NotFoundMode = "troll-despair" | "pot-friend";
9 changes: 1 addition & 8 deletions src/views/404.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@
<h1>{{ t("notFound.troll_despair") }}</h1>
</span>
</div>
<div v-else-if="mode === 'doctor-wtf'">
<DoctorWTF class="doctor-wtf" />
<span>
<h1>{{ t("notFound.doctor_wtf") }}</h1>
</span>
</div>
<div v-else-if="mode === 'pot-friend'">
<PotFriend class="pot-friend" />
<span>
Expand All @@ -28,14 +22,13 @@ import { onBeforeUnmount } from "vue";
import { useI18n } from "vue-i18n";
import { useHead } from "@vueuse/head";
import { NotFoundMode, useStore } from "@store/main";
import DoctorWTF from "@/components/base/DoctorWTF.vue";
import PotFriend from "@/components/base/PotFriend.vue";
import Button from "@/components/utility/Button.vue";
import TrollDespair from "@base/TrollDespair.vue";
const { t } = useI18n();
const store = useStore();
const modes = ["doctor-wtf", "troll-despair", "pot-friend"] as NotFoundMode[];
const modes = ["troll-despair", "pot-friend"] as NotFoundMode[];
const mode = modes[Math.floor(Math.random() * modes.length)];
store.setNotFoundMode(mode);
Expand Down

0 comments on commit 2038250

Please sign in to comment.