mirror of
https://github.com/LJ5O/website.git
synced 2026-08-11 22:54:46 +02:00
Working on skills page
This commit is contained in:
@@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|
||||||
|
|||||||
@@ -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
17
src/views/SkillsView.vue
Normal 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>
|
||||||
|
|
||||||
Reference in New Issue
Block a user