-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from esciencecenter-digital-skills/layout
Layout and main menu
- Loading branch information
Showing
14 changed files
with
3,832 additions
and
1,324 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
<template> | ||
<div class="flex flex-col w-screen bg-gentleBlue h-screen overflow-hidden"> | ||
<Banner /> | ||
|
||
<div class="flex-1 overflow-auto"> | ||
<NuxtPage /> | ||
<Banner /> | ||
<div class="flex-1 overflow-auto"> | ||
<NuxtPage /> | ||
</div> | ||
<Footer /> | ||
</div> | ||
<Footer /> | ||
</div> | ||
</template> | ||
<script setup> | ||
|
||
<script setup lang="ts"> | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<template> | ||
<div class="flex no-wrap text-left ml-20"> | ||
<div v-for="chapter in chapterList" :key="chapter._path"> | ||
<nuxt-link :to="chapter._path" role="button" class="flex max-h-20 m-4 "> | ||
<div class="text-2xl px-1.5 py-3 content-center flex-none rounded-bl-xl bg-eScienceYellow"> | ||
<img v-if="chapter.type === `info`" src="/icons/info.svg" width="25"></img> | ||
<img v-else-if="chapter.type === `exercise`" src="/icons/exercise.svg" width="25"></img> | ||
<img v-else-if="chapter.type === `reading`" src="/icons/reading.svg" width="25"></img> | ||
<img v-else-if="chapter.type === 'slides'" src="/icons/presentation.svg" width="25"></img> | ||
</div> | ||
<div class="p-4 flex-initial text-lg font-display font-semibold rounded-tr-xl bg-eScienceBlue bg-opacity-10 text-eSciencePurple hover:bg-eScienceWhite hover:text-eScienceBlue"> | ||
{{ chapter.title }} | ||
</div> | ||
</nuxt-link> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
const route = useRoute(); | ||
const chapterList = await queryContent('/modules/' + route.params.module + '/') | ||
.sort({ order: 1, $numeric: true }) | ||
.find(); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.