https://v3.router.vuejs.org/kr/api/#to
API 레퍼런스 | Vue Router
API 레퍼런스 는 라우터 지원 앱에서 사용자 네비게이션을 가능하게하는 컴포넌트입니다. 목표 위치는 to prop로 지정됩니다. 기본적으로 올바른 href를 갖는 태그로 렌더링 되지만 tag prop로 구성
v3.router.vuejs.org
router-link
to
<!-- 리터럴 string -->
<router-link to="home">Home</router-link>
<!-- 이렇게 렌더링 됩니다. -->
<a href="home">Home</a>
active-class
default: router-link-active
https://getbootstrap.com/docs/5.3/components/navs-tabs/
Navs and tabs
Documentation and examples for how to use Bootstrap’s included navigation components.
getbootstrap.com
// HeaderMenu.vue
<template>
<header>
<div class="nav nav-pills">
<div
v-for="nav in navigations"
:key="nav.name"
class="nav-item">
<RouterLink
:to="nav.href"
active-class="active"
class="nav-link">
{{ nav.name }}
</RouterLink>
</div>
</div>
</header>
</template>
<script>
export default {
data() {
return {
navigations: [
{
name: 'Search',
href: '/'
},
{
name: 'Movie',
href: '/movie'
},
{
name: 'About',
href: '/about'
}
]
}
}
}
</script>
logo
// LogoVue.vue
<template>
<RouterLink
to="/"
class="logo">
<span>OMDbAPI</span>.COM
</RouterLink>
</template>
<style lang="scss" scoped>
@import "~/scss/main";
.logo {
font-family: 'Oswald', sans-serif;
font-size: 20px;
color: $black;
text-decoration: none;
&:hover {
color: $black;
}
span {
color: $primary;
}
}
</style>
headline
.container 사용
https://getbootstrap.com/docs/5.3/layout/containers/
Containers
Containers are a fundamental building block of Bootstrap that contain, pad, and align your content within a given device or viewport.
getbootstrap.com
'영화 검색 사이트' 카테고리의 다른 글
| [영화 검색 사이트] 로딩 애니메이션, Footer (0) | 2023.02.11 |
|---|---|
| [영화 검색 사이트] 텍스트 말줄임 표시 (0) | 2023.02.11 |
| [영화 검색 사이트] VUEX(STORE) (0) | 2023.02.10 |
| [영화 검색 사이트] Search 영역, 필터, 버튼 (0) | 2023.02.10 |
| [영화 검색 사이트] Vue Router, Bootstrap 구성 (0) | 2023.02.10 |