Some tools
- Animate.css
- Bootstrap
- FontAwesome
- Vue Routers
$npm i --save animate.css bootstrap jquery popper.js vue-router
$npm i --save @fortawesome/fontawesome-free @fortawesome/fontawesome-svg-core @fortawesome/free-solid-svg-icons @fortawesome/vue-fontawesome
main.js
import Vue from "vue";
import App from "./App.vue";
import "bootstrap";
import { library } from "@fortawesome/fontawesome-svg-core";
import "bootstrap/dist/css/bootstrap.css";
import "animate.css/animate.css";
import {
faShoppingCart,
faDollarSign
} from "@fortawesome/free-solid-svg-icons";
library.add(faShoppingCart, faDollarSign);
Vue.config.productionTip = false;
new Vue({
render: h => h(App)
}).$mount("#app");
App.vue
<template>
<div id="app" class="container mt-5">
<h1>My Shop</h1>
<p class="animated fadeInRight">Take a look at our offerings below</p>
<font-awesome-icon icon="shopping-cart"></font-awesome-icon>
</div>
</template>
<script>
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
export default {
name: "app",
components: {
FontAwesomeIcon
}
};
</script>
'Vue.js' 카테고리의 다른 글
[Vue.js] State (0) | 2022.05.13 |
---|---|
[Vuex] Vuex Intro (0) | 2022.05.13 |
[Vue.js] Components based Vue (0) | 2022.05.12 |
[Vue.js] Deleting Items and Modifiers (0) | 2022.05.11 |
[Vue.js] Adding computed classes (0) | 2022.05.11 |