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

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

View File

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