Working on skills page

This commit is contained in:
2025-03-25 00:45:22 +01:00
parent 6a681e06a3
commit ba92749517
5 changed files with 34 additions and 3 deletions

View File

@@ -18,7 +18,7 @@
}, },
"skills":{ "skills":{
"title": "Knowledge and Skills", "title": "Knowledge and Skills",
"desc": "As I have worked on various topics, I learned a lot about different technologies. As years and tasks are going by, I always strive to learn more and make a good use of my capacities.", "desc": "As part of my projects, I have to master a lot of different fields, like website creation, data analysis, artificial intelligence, or software creation.",
"buttonText": "More about skills" "buttonText": "More about skills"
} }
} }

View File

@@ -8,12 +8,16 @@
<article> <article>
<p>{{ props.desc }}</p> <p>{{ props.desc }}</p>
</article> </article>
<button class="button feature_button">{{ props.buttonText }}</button> <RouterLink :to="props.link">
<button @click="goToTop" class="button feature_button">{{ props.buttonText }}</button>
</RouterLink>
</div> </div>
</div> <!-- Feature div --> </div> <!-- Feature div -->
</template> </template>
<script setup> <script setup>
import { RouterLink } from 'vue-router';
const props = defineProps({ const props = defineProps({
title:{ title:{
type:String, type:String,
@@ -40,6 +44,10 @@
required:true required:true
} }
}); });
function goToTop(){
window.scrollTo(0, 0);
}
</script> </script>
<style scoped> <style scoped>

View File

@@ -30,7 +30,7 @@
desc: i18n.t("home.features.skills.desc"), desc: i18n.t("home.features.skills.desc"),
buttonText: i18n.t("home.features.skills.buttonText"), buttonText: i18n.t("home.features.skills.buttonText"),
picture: skillsSvg, picture: skillsSvg,
link: "#" link: "skills"
}]; }];
</script> </script>

View File

@@ -1,6 +1,7 @@
import { createRouter, createWebHistory } from 'vue-router' import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue' import HomeView from '../views/HomeView.vue'
import BaseArticle from '@/views/BaseArticle.vue' import BaseArticle from '@/views/BaseArticle.vue'
import SkillsView from '@/views/SkillsView.vue'
const router = createRouter({ const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL), history: createWebHistory(import.meta.env.BASE_URL),
@@ -15,6 +16,11 @@ const router = createRouter({
name: 'knowledge', name: 'knowledge',
component: BaseArticle component: BaseArticle
}, },
{
path: '/skills',
name: 'skills',
component: SkillsView
},
{ {
path: '/about', path: '/about',
name: 'about', name: 'about',

17
src/views/SkillsView.vue Normal file
View File

@@ -0,0 +1,17 @@
<template>
<Header/>
<h1 class="center">Skills</h1>
<p class="center">
As I have worked on various topics, I learned a lot about different technologies. As years and tasks are going by, I always strive to learn more and make a good use of my capacities.</p>
</template>
<script setup>
import Header from '@/components/header.vue';
</script>
<style scoped>
.center{
text-align: center;
}
</style>