Adapt design of media library

This commit is contained in:
Daniel Egger 2022-10-05 14:12:03 +02:00
parent 6abeb6a2b1
commit 914223bc77
9 changed files with 56 additions and 35 deletions

View File

@ -5,10 +5,17 @@ log.debug("AppFooter created");
</script> </script>
<template> <template>
<footer class="px-8 py-4 bg-gray-200 border-t border-gray-500 flex"> <footer
class="px-8 py-4 bg-gray-200 border-t border-gray-500 flex flex-col lg:flex-row"
>
<div>@2022 VBV</div> <div>@2022 VBV</div>
<div class="lg:ml-8">FAQ</div>
<div class="lg:ml-8">Datenschutzbestimmungen</div>
<div class="lg:ml-8">Impressum</div>
<div class="flex-grow"></div> <div class="flex-grow"></div>
<div>VBV_VERSION_BUILD_NUMBER_VBV</div> <div>VBV_VERSION_BUILD_NUMBER_VBV</div>
<div class="lg:ml-8">Deutsch</div>
<div class="lg:ml-8">Kontakt</div>
</footer> </footer>
</template> </template>

View File

@ -1,7 +1,7 @@
<script setup lang="ts"> <script setup lang="ts">
import MediaLink from "@/components/mediaLibrary/MediaLink.vue"; import MediaLink from "@/components/mediaLibrary/MediaLink.vue";
export interface Props { interface Props {
title: string; title: string;
description: string; description: string;
linkText: string; linkText: string;
@ -18,7 +18,7 @@ const props = withDefaults(defineProps<Props>(), {
</script> </script>
<template> <template>
<div class="border-gray-500 border flex p-4 items-center"> <div class="border-gray-500 border flex flex-col lg:flex-row p-4 items-center">
<img class="mr-6" :src="icon" /> <img class="mr-6" :src="icon" />
<div> <div>
<h4 class="mb-2 text-bold">{{ title }}</h4> <h4 class="mb-2 text-bold">{{ title }}</h4>

View File

@ -16,8 +16,8 @@ const props = withDefaults(defineProps<Props>(), {
<div class="bg-white p-8 flex justify-between"> <div class="bg-white p-8 flex justify-between">
<div> <div>
<h3 class="mb-4">{{ title }}</h3> <h3 class="mb-4">{{ title }}</h3>
<p class="mb-4">{{ description }}</p> <p class="mb-4 text-xl">{{ description }}</p>
<router-link :to="link" class="inline-flex items-center font-normal"> <router-link :to="link" class="text-xl inline-flex items-center font-normal">
<span class="inline">{{ call2Action }}</span> <span class="inline">{{ call2Action }}</span>
<it-icon-arrow-right class="ml-1 h-5 w-5"></it-icon-arrow-right> <it-icon-arrow-right class="ml-1 h-5 w-5"></it-icon-arrow-right>
</router-link> </router-link>
@ -25,7 +25,7 @@ const props = withDefaults(defineProps<Props>(), {
<div <div
v-if="icon" v-if="icon"
:class="[`bg-${icon}`]" :class="[`bg-${icon}`]"
class="bg-contain bg-no-repeat bg-right w-2/6 -mr-8" class="hidden lg:block bg-contain bg-no-repeat bg-right w-2/6 -mr-8"
></div> ></div>
</div> </div>
</template> </template>

View File

@ -52,27 +52,32 @@ const hasMoreItemsForType = (itemType: string, items: object[]) => {
<MLCategoryLayout> <MLCategoryLayout>
<template #header> <template #header>
<div class="flex justify-between"> <div class="flex justify-between">
<div class="w-5/12"> <div class="lg:w-6/12">
<h3 class="font-normal text-large mb-3">Handlungsfeld</h3> <h3 class="font-normal text-large mb-3">Handlungsfeld</h3>
<h1 class="mb-4 lg:mb-8">{{ mediaCategory.title }}</h1> <h1 class="mb-4 lg:mb-8">{{ mediaCategory.title }}</h1>
<p>{{ mediaCategory.introduction_text }}</p> <p class="text-xl">{{ mediaCategory.introduction_text }}</p>
</div>
<div>
<img
class="hidden lg:block float-right"
src="/static/icons/demo/category-large.png"
/>
</div> </div>
<img class="w-5/12" :src="mediaCategory.icon" />
</div> </div>
</template> </template>
<template #body> <template #body>
<section class="mb-20"> <section class="mb-20 mt-8 lg:w-2/3">
<h2 class="mb-4">{{ mediaCategory.description_title }}</h2> <h2 class="mb-4">{{ mediaCategory.description_title }}</h2>
<p class="mb-4 lg:w-2/3">{{ mediaCategory.description_text }}</p> <p class="mb-4">{{ mediaCategory.description_text }}</p>
<ul> <ul>
<li <li
v-for="item in mediaCategory.items" v-for="item in mediaCategory.items"
:key="item" :key="item"
class="mb-2 h-10 leading-10 flex items-center" class="mb-2 flex items-center"
> >
<span <it-icon-check
class="text-sky-500 bg-[url('/static/icons/icon-check.svg')] bg-no-repeat h-10 w-10 mr-2" class="h-8 w-8 text-sky-500 mr-4 flex-none"
></span> ></it-icon-check>
{{ item.value }} {{ item.value }}
</li> </li>
</ul> </ul>

View File

@ -25,8 +25,8 @@ watch(dropdownSelected, (newValue) =>
</script> </script>
<template> <template>
<div class="mx-auto max-w-5xl"> <div class="container-large">
<div class="flex flex-col lg:flex-row items-center justify-between mb-10"> <div class="flex flex-col lg:flex-row items-center justify-between mb-10 mt-6">
<h1>Handlungsfelder</h1> <h1>Handlungsfelder</h1>
<!-- <ItDropdownSelect v-model="dropdownSelected" :items="mediaStore.availableLearningPaths"></ItDropdownSelect>--> <!-- <ItDropdownSelect v-model="dropdownSelected" :items="mediaStore.availableLearningPaths"></ItDropdownSelect>-->
</div> </div>

View File

@ -6,17 +6,25 @@ const router = useRouter();
<template> <template>
<Teleport to="body"> <Teleport to="body">
<div class="px-16 fixed top-0 overflow-y-scroll bg-white h-full w-full"> <div class="fixed top-0 overflow-y-scroll bg-white h-full w-full">
<div class="-mx-16 pt-4 pb-24 px-16 mb-20 bg-gray-200"> <div class="bg-gray-200">
<div class="container-large">
<nav> <nav>
<a class="block my-9 cursor-pointer flex items-center" @click="router.go(-1)" <a
><it-icon-arrow-left /><span>zurück</span></a class="block my-9 cursor-pointer flex items-center"
@click="router.go(-1)"
>
<it-icon-arrow-left />
<span>zurück</span></a
> >
</nav> </nav>
<slot name="header"></slot> <slot name="header"></slot>
</div> </div>
</div>
<div class="container-large">
<slot name="body"></slot> <slot name="body"></slot>
</div> </div>
</div>
</Teleport> </Teleport>
</template> </template>
@ -24,6 +32,7 @@ const router = useRouter();
.it-icon-hf { .it-icon-hf {
color: blue; color: blue;
} }
.it-icon-hf > * { .it-icon-hf > * {
@apply m-auto; @apply m-auto;
} }

View File

@ -26,8 +26,8 @@ watch(dropdownSelected, (newValue) =>
</script> </script>
<template> <template>
<div class="mx-auto max-w-5xl"> <div class="container-large">
<div class="flex flex-col lg:flex-row items-center justify-between mb-10"> <div class="flex flex-col lg:flex-row items-center justify-between mb-12 mt-6">
<h1>Mediathek</h1> <h1>Mediathek</h1>
<!-- <ItDropdownSelect--> <!-- <ItDropdownSelect-->
<!-- v-model="dropdownSelected"--> <!-- v-model="dropdownSelected"-->

View File

@ -24,18 +24,18 @@ onMounted(async () => {
<template> <template>
<div class="bg-gray-200"> <div class="bg-gray-200">
<nav class="h-12 px-6 py-2 border-b border-gray-500 bg-white"> <nav class="px-6 py-4 border-b border-gray-500 bg-white">
<ul class="flex"> <ul class="flex text-xl flex-col lg:flex-row">
<li>Übersicht</li> <li>Übersicht</li>
<li class="ml-10">Handlungsfelder</li> <li class="lg:ml-12">Handlungsfelder</li>
<li class="ml-10">Allgemeines zu Versicherungen</li> <li class="lg:ml-12">Allgemeines zu Versicherungen</li>
<li class="ml-10">Lernmedien</li> <li class="lg:ml-12">Lernmedien</li>
<li class="ml-10"> <li class="lg:ml-12">
<a href="https://www.vbv.ch/de/der-vbv/lernen-lehren/lexikon">Lexikon</a> <a href="https://www.vbv.ch/de/der-vbv/lernen-lehren/lexikon">Lexikon</a>
</li> </li>
</ul> </ul>
</nav> </nav>
<main class="px-8 py-8"> <main>
<router-view></router-view> <router-view></router-view>
</main> </main>
</div> </div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB