mirror of
https://github.com/ArthurDanjou/artsite.git
synced 2026-02-07 17:05:50 +01:00
Refactor code structure for improved readability and maintainability
This commit is contained in:
13
app/pages/activity.vue
Normal file
13
app/pages/activity.vue
Normal file
@@ -0,0 +1,13 @@
|
||||
<script lang="ts" setup>
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
13
app/pages/ecosystem.vue
Normal file
13
app/pages/ecosystem.vue
Normal file
@@ -0,0 +1,13 @@
|
||||
<script lang="ts" setup>
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
15
app/pages/hobbies.vue
Normal file
15
app/pages/hobbies.vue
Normal file
@@ -0,0 +1,15 @@
|
||||
<script lang="ts" setup>
|
||||
const { data: page } = await useAsyncData('hobbies', () => {
|
||||
return queryCollection('hobbies').first()
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<main>
|
||||
<ContentRenderer
|
||||
v-if="page"
|
||||
:value="page"
|
||||
class="mt-8 md:mt-16"
|
||||
/>
|
||||
</main>
|
||||
</template>
|
||||
@@ -16,6 +16,9 @@ const { data: page } = await useAsyncData('index', () => {
|
||||
:value="page"
|
||||
class="mt-8 md:mt-16"
|
||||
/>
|
||||
<HomeSkills />
|
||||
<HomeEducation />
|
||||
<HomeExperiences />
|
||||
<HomeStats />
|
||||
<HomeActivity />
|
||||
<HomeQuote />
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
<script lang="ts" setup>
|
||||
|
||||
const { data: projects } = await useAsyncData('projects', () => {
|
||||
return queryCollection('projects').all()
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
PROJECTS PAGE
|
||||
{{ projects }}
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
15
app/pages/uses.vue
Normal file
15
app/pages/uses.vue
Normal file
@@ -0,0 +1,15 @@
|
||||
<script lang="ts" setup>
|
||||
const { data: page } = await useAsyncData('uses', () => {
|
||||
return queryCollection('uses').first()
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<main>
|
||||
<ContentRenderer
|
||||
v-if="page"
|
||||
:value="page"
|
||||
class="mt-8 md:mt-16"
|
||||
/>
|
||||
</main>
|
||||
</template>
|
||||
Reference in New Issue
Block a user