Skip to content

Commit 74fdd5e

Browse files
committed
fearture: convert to bulma css framework
1 parent 14e6bdb commit 74fdd5e

File tree

6 files changed

+62
-69
lines changed

6 files changed

+62
-69
lines changed

auth/package-lock.json

Lines changed: 5 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

auth/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"vue-template-compiler": "^2.5.17"
1919
},
2020
"dependencies": {
21-
"milligram": "^1.3.0",
21+
"bulma": "^0.8.0",
2222
"vue": "^2.5.17",
2323
"vue-router": "^3.0.2",
2424
"vuex": "^3.1.0"

auth/src/App.vue

Lines changed: 32 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,44 @@
11
// App.vue
22
<template>
33
<div>
4-
<header class="header-main">
5-
<div class="row">
6-
<div class="column text-center">
7-
<router-link :to="{ name: 'index' }">
8-
<h2 class="no-margin"><strong>My App</strong></h2>
4+
<nav class="navbar is-info" role="navigation" aria-label="main navigation">
5+
<div class="container">
6+
<div class="navbar-brand">
7+
<router-link :to="{ name: 'index' }" class="navbar-item">
8+
<strong>My App</strong>
99
</router-link>
1010
</div>
11+
12+
<div id="navbarBasicExample" class="navbar-menu">
13+
<div class="navbar-start">
14+
<router-link :to="{ name: 'index' }" class="navbar-item">
15+
Home
16+
</router-link>
17+
18+
<router-link :to="{ name: 'profile' }" class="navbar-item">
19+
Profile
20+
</router-link>
21+
</div>
22+
23+
<div class="navbar-end">
24+
<div class="navbar-item">
25+
<div class="buttons">
26+
<router-link :to="{ name: 'index' }" class="button is-light">
27+
Log in
28+
</router-link>
29+
</div>
30+
</div>
31+
</div>
32+
</div>
1133
</div>
12-
</header>
34+
</nav>
1335
<div class="container">
1436
<!-- component matched by the route will render here -->
1537
<router-view></router-view>
1638
</div>
17-
<footer class="footer-main">
18-
<div class="row">
19-
<div class="column text-center">
20-
<p class="no-margin">&copy; Copyleft {{ new Date().toLocaleString('it-IT', { year: 'numeric' }) }} Point of Vue</p>
21-
</div>
39+
<footer class="footer">
40+
<div class="content has-text-centered">
41+
<p>&copy; Copyleft {{ new Date().toLocaleString('it-IT', { year: 'numeric' }) }} Point of Vue</p>
2242
</div>
2343
</footer>
2444
</div>
@@ -31,10 +51,7 @@ export default {
3151
</script>
3252

3353
<style lang="scss">
34-
$color-secondary: #9c9c9c;
35-
36-
@import '../node_modules/milligram/src/milligram.sass';
37-
@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i');
54+
@import '../node_modules/bulma/bulma.sass';
3855
3956
html,
4057
body {
@@ -43,45 +60,6 @@ export default {
4360
min-height: 100%;
4461
padding: 0;
4562
margin: 0;
46-
background-color: #f8f9f9;
4763
overflow-x: hidden;
4864
}
49-
50-
body {
51-
font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Oxygen-Sans", Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
52-
}
53-
54-
.text-left {
55-
text-align: left;
56-
}
57-
58-
.text-center {
59-
text-align: center;
60-
}
61-
62-
.text-right {
63-
text-align: right;
64-
}
65-
66-
.text-medium {
67-
font-weight: 500;
68-
}
69-
70-
.text-white {
71-
color: #ffffff;
72-
}
73-
74-
.no-margin {
75-
margin: 0;
76-
}
77-
78-
.footer-main,
79-
.header-main {
80-
background: white;
81-
padding: 1rem 0;
82-
}
83-
84-
.header-main {
85-
margin-bottom: 20px;
86-
}
8765
</style>

auth/src/pages/Index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Index.vue
22
<template>
33
<div class="container">
4-
Pagina profilo
4+
Home
55
</div>
66
</template>
77

auth/src/pages/Profile.vue

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Index.vue
2+
<template>
3+
<div class="container">
4+
Pagina profilo
5+
</div>
6+
</template>
7+
8+
<script>
9+
export default {
10+
name: 'ProfilePage',
11+
12+
data() {
13+
return {
14+
};
15+
},
16+
}
17+
</script>

auth/src/router.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import VueRouter from 'vue-router';
44
import store from './store';
55

66
import IndexPage from './pages/Index';
7+
import ProfilePage from './pages/Profile';
78
import LoginPage from './pages/Login';
89

910
const router = new VueRouter({
@@ -14,6 +15,11 @@ const router = new VueRouter({
1415
name: 'index',
1516
component: IndexPage,
1617
},
18+
{
19+
path: '/profile',
20+
name: 'profile',
21+
component: ProfilePage,
22+
},
1723
{
1824
path: '/login',
1925
name: 'login',

0 commit comments

Comments
 (0)