본문 바로가기

포트폴리오 만들기/Vue, firebase 게시판 만들기

vuetify 활용하기1(appbar, footer, navigation drwer 만들기)

반응형

-app bar 앱바 만들기

vuetifyjs.com/ko/components/app-bars

 

App-bar component — Vuetify.js

The app bar component is a supercharged toolbar with advanced scrolling techniques and application layout support.

vuetifyjs.com

 

 

-footer 만들기

https://vuetifyjs.com/ko/components/footer/

 

Footer component — Vuetify.js

The footer component provides a container for displaying additional navigation information about a site.

vuetifyjs.com

-Navigation Drawer 만들기

https://vuetifyjs.com/ko/components/navigation-drawers/

 

Navigation drawer component — Vuetify.js

The navigation drawer component contains internal navigation links for an application and can be permanently on-screen or controlled programmatically.

vuetifyjs.com

<template>
 <v-app>
   ...
  <!-- drawer 토글역할을 함. 누르면 나오고 누르면 들어가고... -->
  <v-app-bar-nav-icon @click="drawer = !drawer"/>
  <!-- drawer 삽입 -->
   <v-navigation-drawer app v-model="drawer">
   </v-navigation-drawer>
   ...
 </v-app>
</template>

<script>
export default {
  name: 'App',
  //추가한 내용. 처음에는 drawer가 false로 들어가있음.
  data () {
    return {
      drawer: false
    }
  }
}
</script>

 

반응형