Files
docker-website/app/components/scroll-down-button.vue
valere 87f0cbb2cd
All checks were successful
Deploy App / deploy (push) Successful in 30s
fixes
2025-08-29 16:53:14 +02:00

17 lines
613 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<section class="py-4 sm:flex justify-center items-center">
<button @click="scrollDown"
class="p-6 h-14 leading-3 flex justify-center bg-green-500 text-white text-lg capitalize font-semibold mb-4 sm:mb-0 rounded-full shadow-md hover:bg-green-400 focus:outline-none focus:ring-4 hover:ring-indigo-200 focus:ring-indigo-300 focus:ring-opacity-100 transition-all">
</button>
</section>
</template>
<script setup>
function scrollDown() {
window.scrollBy({
top: window.innerHeight, // une hauteur décran
behavior: 'smooth' // animation fluide
})
}
</script>