<template>
 <div class="wrapper">
    <Header />
    <div class="container "><router-view /></div>
    <Footer />
    <button class="scroll-up"  @click="scrollToTop">
      <img src="../resources/images/icon/top.png" alt="">
    </button>
  </div>
</template>
<script>
import Header from './layout/Header.vue';
import Footer from './layout/Footer.vue';

export default {

  components: {
    Header: Header,
    Footer: Footer,
  },
  methods: {
    scrollToTop() {
      window.scrollTo({
        top: 0,
        behavior: 'smooth' // 부드러운 스크롤 효과
      });
    },
  },
}
</script>
<style></style>