-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
App.vue
55 lines (52 loc) · 1.38 KB
/
App.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<template>
<div id="app">
<header-component></header-component>
<div class="main-content">
<sidebar-component></sidebar-component>
<div class="content-area">
<notes-component></notes-component>
<calculator-component v-if="showCalculator"></calculator-component>
<mood-tracker-component v-if="showMoodTracker"></mood-tracker-component>
</div>
</div>
<footer-component></footer-component>
</div>
</template>
<script>
import HeaderComponent from './components/HeaderComponent.vue';
import SidebarComponent from './components/SidebarComponent.vue';
import NotesComponent from './components/NotesComponent.vue';
import CalculatorComponent from './components/CalculatorComponent.vue';
import MoodTrackerComponent from './components/MoodTrackerComponent.vue';
import FooterComponent from './components/FooterComponent.vue';
export default {
name: 'App',
components: {
HeaderComponent,
SidebarComponent,
NotesComponent,
CalculatorComponent,
MoodTrackerComponent,
FooterComponent
},
data() {
return {
showCalculator: false,
showMoodTracker: false,
};
},
methods: {
toggleCalculator() {
this.showCalculator = !this.showCalculator;
},
toggleMoodTracker() {
this.showMoodTracker = !this.showMoodTracker;
},
},
};
</script>
<style>
#app {
text-align: center;
}
</style>