mirror of
https://github.com/NotXia/notxia.github.io.git
synced 2025-12-15 19:22:21 +01:00
Migration to Nuxt3
This commit is contained in:
23
components/projects/ProjectCard.vue
Normal file
23
components/projects/ProjectCard.vue
Normal file
@ -0,0 +1,23 @@
|
||||
<template>
|
||||
<div class="border border-gray-500 dark:border-gray-300 rounded-md p-3 mx-auto w-full lg:w-2/3 xl:w-1/2">
|
||||
<h3 class="text-2xl font-semibold text-center text-gray-900 dark:text-white">{{ props.title }}</h3>
|
||||
<div class="text-center mb-2">
|
||||
<a v-for="link in props.links" :href="link.url" class="font-mono inline-block hover:underline mx-2">{{ link.label }}</a>
|
||||
</div>
|
||||
<p class="text-lg whitespace-pre-wrap mb-2 text-gray-500 dark:text-gray-400">
|
||||
<slot></slot>
|
||||
</p>
|
||||
<img :src="props.image" alt="" class="max-w-full max-h-96 mx-auto">
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
<script setup lang="ts">
|
||||
import type { PropType } from "vue";
|
||||
|
||||
const props = defineProps({
|
||||
title: String,
|
||||
links: Object as PropType<{ label: string, url: string }[]>,
|
||||
image: String
|
||||
});
|
||||
</script>
|
||||
21
components/projects/cards/AnimalHouse.vue
Normal file
21
components/projects/cards/AnimalHouse.vue
Normal file
@ -0,0 +1,21 @@
|
||||
<template>
|
||||
<ProjectCard
|
||||
title="Animal House" :image="image"
|
||||
:links="[
|
||||
{ label: 'Repository', url: 'https://github.com/NotXia/animal-house' }
|
||||
]">
|
||||
|
||||
<p class="text-center">{{ $t("unibo_21-22") }}</p>
|
||||
<p>{{ $t('animalhouse.description') }}</p>
|
||||
<ul class="list-inside list-['-_']">
|
||||
<li>{{ $t('animalhouse.description.game') }}</li>
|
||||
<li>{{ $t('animalhouse.description.frontoffice') }}</li>
|
||||
<li>{{ $t('animalhouse.description.backoffice') }}</li>
|
||||
</ul>
|
||||
</ProjectCard>
|
||||
</template>
|
||||
|
||||
|
||||
<script setup lang="ts">
|
||||
import image from "@/assets/images/projects/animal-house.png";
|
||||
</script>
|
||||
16
components/projects/cards/Imaging.vue
Normal file
16
components/projects/cards/Imaging.vue
Normal file
@ -0,0 +1,16 @@
|
||||
<template>
|
||||
<ProjectCard
|
||||
title="Image deblur" :image="image"
|
||||
:links="[
|
||||
{ label: 'Repository', url: 'https://github.com/NotXia/imaging' }
|
||||
]">
|
||||
|
||||
<p class="text-center">{{ $t("unibo_21-22") }}</p>
|
||||
<p>{{ $t('imaging.description') }}</p>
|
||||
</ProjectCard>
|
||||
</template>
|
||||
|
||||
|
||||
<script setup lang="ts">
|
||||
import image from "@/assets/images/projects/imaging.png";
|
||||
</script>
|
||||
16
components/projects/cards/MNKGame.vue
Normal file
16
components/projects/cards/MNKGame.vue
Normal file
@ -0,0 +1,16 @@
|
||||
<template>
|
||||
<ProjectCard
|
||||
title="MNK Game" :image="image"
|
||||
:links="[
|
||||
{ label: 'Repository', url: 'https://github.com/NotXia/MNKGame' }
|
||||
]">
|
||||
|
||||
<p class="text-center">{{ $t("unibo_20-21") }}</p>
|
||||
<p>{{ $t('mnk.description') }}</p>
|
||||
</ProjectCard>
|
||||
</template>
|
||||
|
||||
|
||||
<script setup lang="ts">
|
||||
import image from "@/assets/images/projects/mnkgame.png";
|
||||
</script>
|
||||
40
components/projects/cards/NotXiaGithubio.vue
Normal file
40
components/projects/cards/NotXiaGithubio.vue
Normal file
@ -0,0 +1,40 @@
|
||||
<template>
|
||||
<ProjectCard
|
||||
title="notxia.github.io"
|
||||
:links="[
|
||||
{ label: 'Repository', url: 'https://github.com/NotXia/notxia.github.io' },
|
||||
]">
|
||||
|
||||
<p v-if="!show_recursive_message">{{ $t('notxia.github.io.description') }}</p>
|
||||
|
||||
<div class="w-full h-72 relative">
|
||||
<div role="status" v-if="!iframe_loaded && !show_recursive_message" class="absolute top-0 left-0 w-full h-full flex justify-center items-center">
|
||||
<svg aria-hidden="true" class="w-8 h-8 animate-spin text-gray-200 fill-gray-600 dark:text-gray-600 dark:fill-gray-300" viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z" fill="currentColor"/>
|
||||
<path d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z" fill="currentFill"/>
|
||||
</svg>
|
||||
</div>
|
||||
|
||||
<div v-if="show_recursive_message" class="flex justify-center items-center w-full h-full">
|
||||
<p>{{ $t("no recursion") }}</p>
|
||||
</div>
|
||||
|
||||
<iframe v-if="!show_recursive_message" src="/" frameborder="0" width="100%" height="100%" @load="iframe_loaded=true"></iframe>
|
||||
</div>
|
||||
</ProjectCard>
|
||||
</template>
|
||||
|
||||
|
||||
<script setup lang="ts">
|
||||
const iframe_loaded = ref(false);
|
||||
const show_recursive_message = ref(false);
|
||||
|
||||
onMounted(() => {
|
||||
try {
|
||||
if (window.frameElement) { // The component is loaded inside an iframe
|
||||
show_recursive_message.value = true;
|
||||
}
|
||||
}
|
||||
catch (err) { show_recursive_message.value = false; }
|
||||
});
|
||||
</script>
|
||||
11
components/projects/cards/PandOSplus.vue
Normal file
11
components/projects/cards/PandOSplus.vue
Normal file
@ -0,0 +1,11 @@
|
||||
<template>
|
||||
<ProjectCard
|
||||
title="PandOS+"
|
||||
:links="[
|
||||
{ label: 'Repository', url: 'https://github.com/NotXia/pandos-plus' }
|
||||
]">
|
||||
|
||||
<p class="text-center">{{ $t("unibo_21-22") }}</p>
|
||||
<p>{{ $t('pandos+.description') }}</p>
|
||||
</ProjectCard>
|
||||
</template>
|
||||
16
components/projects/cards/PathfindingVisualizer.vue
Normal file
16
components/projects/cards/PathfindingVisualizer.vue
Normal file
@ -0,0 +1,16 @@
|
||||
<template>
|
||||
<ProjectCard
|
||||
title="Pathfinding visualizer" :image="image"
|
||||
:links="[
|
||||
{ label: 'Repository', url: 'https://github.com/NotXia/pathfinding-visualizer' },
|
||||
{ label: 'Demo', url: 'https://notxia.github.io/pathfinding-visualizer/' }
|
||||
]">
|
||||
|
||||
{{ $t('pathfinding_visualizer.description') }}
|
||||
</ProjectCard>
|
||||
</template>
|
||||
|
||||
|
||||
<script setup lang="ts">
|
||||
import image from "@/assets/images/projects/pathfinding-visualizer.png";
|
||||
</script>
|
||||
16
components/projects/cards/Platform.vue
Normal file
16
components/projects/cards/Platform.vue
Normal file
@ -0,0 +1,16 @@
|
||||
<template>
|
||||
<ProjectCard
|
||||
title="Platform game" :image="image"
|
||||
:links="[
|
||||
{ label: 'Repository', url: 'https://github.com/NotXia/platform-game' }
|
||||
]">
|
||||
|
||||
<p class="text-center">{{ $t("unibo_20-21") }}</p>
|
||||
<p>{{ $t('platform.description') }}</p>
|
||||
</ProjectCard>
|
||||
</template>
|
||||
|
||||
|
||||
<script setup lang="ts">
|
||||
import image from "@/assets/images/projects/platform.png";
|
||||
</script>
|
||||
16
components/projects/cards/SortingVisualizer.vue
Normal file
16
components/projects/cards/SortingVisualizer.vue
Normal file
@ -0,0 +1,16 @@
|
||||
<template>
|
||||
<ProjectCard
|
||||
title="Sorting visualizer" :image="image"
|
||||
:links="[
|
||||
{ label: 'Repository', url: 'https://github.com/NotXia/sorting-visualizer' },
|
||||
{ label: 'Demo', url: 'https://notxia.github.io/sorting-visualizer/' }
|
||||
]">
|
||||
|
||||
{{ $t('sort_visualizer.description') }}
|
||||
</ProjectCard>
|
||||
</template>
|
||||
|
||||
|
||||
<script setup lang="ts">
|
||||
import image from "@/assets/images/projects/sorting-visualizer.png";
|
||||
</script>
|
||||
16
components/projects/cards/TweetAnalysis.vue
Normal file
16
components/projects/cards/TweetAnalysis.vue
Normal file
@ -0,0 +1,16 @@
|
||||
<template>
|
||||
<ProjectCard
|
||||
title="Tweet Analysis" :image="image"
|
||||
:links="[
|
||||
{ label: 'Repository', url: 'https://github.com/NotXia/tweet-analysis' }
|
||||
]">
|
||||
|
||||
<p class="text-center">{{ $t("unibo_22-23") }}</p>
|
||||
<p>{{ $t('tweet_analysis.description') }}</p>
|
||||
</ProjectCard>
|
||||
</template>
|
||||
|
||||
|
||||
<script setup lang="ts">
|
||||
import image from "@/assets/images/projects/tweet-analysis.png";
|
||||
</script>
|
||||
12
components/projects/cards/Wirefilter.vue
Normal file
12
components/projects/cards/Wirefilter.vue
Normal file
@ -0,0 +1,12 @@
|
||||
<template>
|
||||
<ProjectCard
|
||||
title="Wirefilter"
|
||||
:links="[
|
||||
{ label: 'Repository', url: 'https://github.com/NotXia/vdeplug_wirefilter' },
|
||||
{ label: 'VirtualSquare', url: 'http://wiki.virtualsquare.org/#!index.md' }
|
||||
]">
|
||||
|
||||
<p class="text-center">{{ $t("unibo_22-23") }}</p>
|
||||
<p>{{ $t("wirefilter.description") }}</p>
|
||||
</ProjectCard>
|
||||
</template>
|
||||
Reference in New Issue
Block a user