Skip to content

Commit

Permalink
Refactored Code, Optimized Imports, Fixed Images
Browse files Browse the repository at this point in the history
  • Loading branch information
parzival-space committed May 17, 2024
1 parent 1f4ebf0 commit 8021718
Show file tree
Hide file tree
Showing 15 changed files with 201 additions and 187 deletions.
12 changes: 6 additions & 6 deletions src/MarkdownModules.d.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
declare module '@/views/legal/PrivacyPolicy-DE.md' {
const content: any;
export default content;
const content: any;
export default content;
}

declare module '@/views/legal/PrivacyPolicy-EN.md' {
const content: any;
export default content;
const content: any;
export default content;
}

declare module '@/views/legal/Imprint.md' {
const content: any;
export default content;
const content: any;
export default content;
}
16 changes: 8 additions & 8 deletions src/assets/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,29 @@

/* define mardown css rules here */
.markdown-body h1 {
@apply mt-2 text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl;
@apply mt-2 text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl;
}

.markdown-body h2 {
@apply mt-16 text-2xl font-bold tracking-tight text-gray-900;
@apply mt-16 text-2xl font-bold tracking-tight text-gray-900;
}

.markdown-body h3 {
@apply mt-8 text-xl font-bold tracking-tight text-gray-900;
@apply mt-8 text-xl font-bold tracking-tight text-gray-900;
}

.markdown-body h4 {
@apply mt-4 mb-2 font-bold tracking-tight text-gray-900;
@apply mt-4 mb-2 font-bold tracking-tight text-gray-900;
}

.markdown-body p, .markdown-body ul {
@apply mt-6 text-xl leading-8 text-gray-700;
@apply mt-6 text-xl leading-8 text-gray-700;
}

.markdown-body a {
@apply mt-6 text-xl leading-8 text-blue-400;
@apply mt-6 text-xl leading-8 text-blue-400;
}

.markdown-body ul {
@apply ml-6 list-disc;
}
@apply ml-6 list-disc;
}
62 changes: 31 additions & 31 deletions src/assets/branding/LogoFull.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 32 additions & 24 deletions src/assets/branding/LogoFullTransparent.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 5 additions & 4 deletions src/components/Menubar.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<template>
<header class="fixed inset-x-0 top-0 z-50">
<nav class="flex transition-colors delay-150 items-center justify-between p-6 lg:px-8" aria-label="Global" :transparent="navbarTransparent">
<nav class="flex transition-colors delay-150 items-center justify-between p-6 lg:px-8" aria-label="Global"
:transparent="navbarTransparent">
<div class="flex lg:flex-1">
<slot name="logo">

Expand All @@ -23,7 +24,7 @@
<Dialog class="lg:hidden" @close="mobileMenuOpen = false" :open="mobileMenuOpen">
<div class="fixed inset-0 z-50"/>
<DialogPanel
class="fixed inset-y-0 right-0 z-50 w-full overflow-y-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10">
class="fixed inset-y-0 right-0 z-50 w-full overflow-y-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10">
<div class="flex items-center justify-between">
<slot name="logo">

Expand Down Expand Up @@ -51,7 +52,7 @@
import {FontAwesomeIcon} from "@fortawesome/vue-fontawesome";
import {faBars, faXmark} from "@fortawesome/free-solid-svg-icons";
import {Dialog, DialogPanel} from "@headlessui/vue";
import {ref, onMounted, onBeforeUnmount} from 'vue';
import {onBeforeUnmount, onMounted, ref} from 'vue';
let navbarTransparent = ref(true);
const handleScroll = () => navbarTransparent.value = window.scrollY <= 10;
Expand All @@ -69,4 +70,4 @@ nav[transparent=false] {
.mobileMenu * {
@apply -mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50;
}
</style>
</style>
24 changes: 12 additions & 12 deletions src/components/containment/LinkButton.vue
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
<template>
<RouterLink
v-if="!openExternal && !newTab"
:to="to"
class="rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
v-if="!openExternal && !newTab"
:to="to"
class="rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
>
<slot></slot>
</RouterLink>

<a
v-else-if="openExternal && !newTab"
:href="to"
class="rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
v-else-if="openExternal && !newTab"
:href="to"
class="rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
>
<slot></slot>
</a>

<a
v-else
:href="to"
class="rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
target="_blank"
rel="noopener noreferrer"
v-else
:href="to"
class="rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
target="_blank"
rel="noopener noreferrer"
>
<slot></slot>
</a>
Expand All @@ -36,4 +36,4 @@ const props = defineProps({

<style scoped>
</style>
</style>
24 changes: 12 additions & 12 deletions src/components/containment/LinkText.vue
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
<template>
<RouterLink
v-if="!openExternal && !newTab"
:to="to"
class="text-sm font-semibold leading-6 text-gray-900"
v-if="!openExternal && !newTab"
:to="to"
class="text-sm font-semibold leading-6 text-gray-900"

>
<slot></slot>
</RouterLink>

<a
v-else-if="openExternal && !newTab"
:href="to"
class="text-sm font-semibold leading-6 text-gray-900"
v-else-if="openExternal && !newTab"
:href="to"
class="text-sm font-semibold leading-6 text-gray-900"
>
<slot></slot>
</a>

<a
v-else
:href="to"
class="text-sm font-semibold leading-6 text-gray-900"
target="_blank"
rel="noopener noreferrer"
v-else
:href="to"
class="text-sm font-semibold leading-6 text-gray-900"
target="_blank"
rel="noopener noreferrer"
>
<slot></slot>
</a>
Expand All @@ -37,4 +37,4 @@ const props = defineProps({

<style scoped>
</style>
</style>
Loading

0 comments on commit 8021718

Please sign in to comment.