Moved to Nuxt
pipeline / build-and-push-images (push) Successful in 3m12s

NuxtJS, Vue, real web app

Nuxt content: blog

Better mobile/responsive design and practices

Better practices overall
This commit is contained in:
2025-11-18 20:59:23 +01:00
parent 93a4e124ff
commit 99a943eb36
57 changed files with 19126 additions and 718 deletions
+12
View File
@@ -0,0 +1,12 @@
<script setup lang="ts">
const props = defineProps<{
image: string
}>()
</script>
<template>
<img class="object-contain sm:max-w-[85%] max-w-[95%] m-auto" :src="props.image" />
<div class="ml-auto mr-auto w-fit">
<slot />
</div>
</template>
+18
View File
@@ -0,0 +1,18 @@
<script setup lang="ts">
const props = defineProps<{
image: string,
imageRight?: boolean | string
}>()
let imagePosition = "sm:flex-row";
if(props.imageRight == true || props.imageRight == "true") imagePosition = "sm:flex-row-reverse"
</script>
<template>
<div :class="imagePosition" class="flex mt-5 mb-4 flex-col">
<img class="object-contain sm:max-w-[40%] sm:max-h-[350px] max-h-[300px] max-w-[80%] m-auto" :src="props.image" />
<p class="self-center ml-5 sm:mt-2 mt-4">
<slot />
</p>
</div>
</template>
+14
View File
@@ -0,0 +1,14 @@
<script setup lang="ts">
import type { TocLink } from '@nuxt/content';
const props = defineProps<{
link: TocLink
}>()
</script>
<template>
<li class="mt-1 mb-1"><a :href="`#${link.id}`">{{ link.text }}</a></li>
<ul class="ml-2 mt-1 mb-1">
<BlogTocLink v-for="child in link.children" :link="child" />
</ul>
</template>