Last change
on this file since 231918f was 2a2614e, checked in by Ljubomir Ilievski <ilievski.ljubomir@…>, 3 months ago |
Celosno funkcionalna logika na login/register/logout
|
-
Property mode
set to
100644
|
File size:
2.2 KB
|
Line | |
---|
1 | <script>
|
---|
2 | //import { RouterLink, RouterView } from 'vue-router'
|
---|
3 | import NavBar from './components/Project/Nav_bar_new.vue'
|
---|
4 | import Footer_ from '@/components/Project/Footer_.vue'
|
---|
5 | import { userStore } from '@/PiniaStores/UserStore.js'
|
---|
6 |
|
---|
7 | export default {
|
---|
8 | components: {
|
---|
9 | NavBar,
|
---|
10 | Footer_,
|
---|
11 | },
|
---|
12 | beforeMount() {
|
---|
13 | userStore().getLocalStorage()
|
---|
14 | },
|
---|
15 | }
|
---|
16 | </script>
|
---|
17 |
|
---|
18 | <template>
|
---|
19 | <!-- <header>
|
---|
20 | <img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="125" height="125" />
|
---|
21 |
|
---|
22 | <div class="wrapper">
|
---|
23 | <HelloWorld msg="You did it!" />
|
---|
24 |
|
---|
25 | <nav>
|
---|
26 | <RouterLink to="/">Home</RouterLink>
|
---|
27 | <RouterLink to="/about">About</RouterLink>
|
---|
28 | </nav>
|
---|
29 | </div>
|
---|
30 | </header>
|
---|
31 |
|
---|
32 | <RouterView />-->
|
---|
33 |
|
---|
34 | <div class="wrapper">
|
---|
35 | <NavBar></NavBar>
|
---|
36 | <main>
|
---|
37 | <router-view />
|
---|
38 | </main>
|
---|
39 | <footer>
|
---|
40 | <div class="container-fluid">
|
---|
41 | <div class="row">
|
---|
42 | <Footer_></Footer_>
|
---|
43 | </div>
|
---|
44 | </div>
|
---|
45 | </footer>
|
---|
46 | </div>
|
---|
47 |
|
---|
48 | <!-- <Locale_listing_container></Locale_listing_container>
|
---|
49 | <Locale_listing_container></Locale_listing_container>
|
---|
50 | <Locale_listing_container></Locale_listing_container>-->
|
---|
51 | </template>
|
---|
52 |
|
---|
53 | <style scoped>
|
---|
54 | .wrapper {
|
---|
55 | display: flex;
|
---|
56 | flex-direction: column;
|
---|
57 | min-height: 100vh;
|
---|
58 | }
|
---|
59 |
|
---|
60 | main {
|
---|
61 | flex: 1; /*istrazi*/
|
---|
62 | }
|
---|
63 | footer {
|
---|
64 | background: #8377d1;
|
---|
65 | }
|
---|
66 |
|
---|
67 | template {
|
---|
68 | background: #fbfff1;
|
---|
69 | }
|
---|
70 | /*header {
|
---|
71 | line-height: 1.5;
|
---|
72 | max-height: 100vh;
|
---|
73 | }
|
---|
74 |
|
---|
75 | .logo {
|
---|
76 | display: block;
|
---|
77 | margin: 0 auto 2rem;
|
---|
78 | }
|
---|
79 |
|
---|
80 | nav {
|
---|
81 | width: 100%;
|
---|
82 | font-size: 12px;
|
---|
83 | text-align: center;
|
---|
84 | margin-top: 2rem;
|
---|
85 | }
|
---|
86 |
|
---|
87 | nav a.router-link-exact-active {
|
---|
88 | color: var(--color-text);
|
---|
89 | }
|
---|
90 |
|
---|
91 | nav a.router-link-exact-active:hover {
|
---|
92 | background-color: transparent;
|
---|
93 | }
|
---|
94 |
|
---|
95 | nav a {
|
---|
96 | display: inline-block;
|
---|
97 | padding: 0 1rem;
|
---|
98 | border-left: 1px solid var(--color-border);
|
---|
99 | }
|
---|
100 |
|
---|
101 | nav a:first-of-type {
|
---|
102 | border: 0;
|
---|
103 | }
|
---|
104 |
|
---|
105 | @media (min-width: 1024px) {
|
---|
106 | header {
|
---|
107 | display: flex;
|
---|
108 | place-items: center;
|
---|
109 | padding-right: calc(var(--section-gap) / 2);
|
---|
110 | }
|
---|
111 |
|
---|
112 | .logo {
|
---|
113 | margin: 0 2rem 0 0;
|
---|
114 | }
|
---|
115 |
|
---|
116 | header .wrapper {
|
---|
117 | display: flex;
|
---|
118 | place-items: flex-start;
|
---|
119 | flex-wrap: wrap;
|
---|
120 | }
|
---|
121 |
|
---|
122 | nav {
|
---|
123 | text-align: left;
|
---|
124 | margin-left: -1rem;
|
---|
125 | font-size: 1rem;
|
---|
126 |
|
---|
127 | padding: 1rem 0;
|
---|
128 | margin-top: 1rem;
|
---|
129 | }
|
---|
130 | }*/
|
---|
131 | </style>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.