-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
69 lines (59 loc) · 2.7 KB
/
index.html
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<!-- title in browser -->
<title>The Online Diary 📔</title>
<meta name="description" content="">
<!-- responsive meta tag -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- my style sheet -->
<link rel="stylesheet" href="styles.css">
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<!-- vue -->
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<!-- icons -->
<script src="https://kit.fontawesome.com/5e785b2c48.js" crossorigin="anonymous"></script>
</head>
<body>
<!-- where vue is able to be used -->
<div id="app">
<!-- Everything on Dashboard -->
<div class="dash Wrapper">
<!-- menu -->
<nav-menu></nav-menu>
<!-- main welcome block -->
<main-welcome-block v-bind:name="Name"></main-welcome-block>
<!-- diary block -->
<div class="diary block">
<transition name="fade" mode="out-in">
<div key="save" v-if="state==='edit'" style="display: block;height: 95%;">
<!-- diary text input -->
<textarea autofocus v-model="message" maxlength = "250" class="diaryInput" placeholder="How was your day?"
contenteditable="false" @keyup.enter="submit">
</textarea>
<p>{{inputCharacterCount}}/250</p>
<!-- diary emotional slider -->
<i class="fas fa-frown"></i>
<input type="range" v-model="slider" min="1" max="100" value="50" class="slider" id="myRange">
<i class="fas fa-smile"></i>
<!-- TODO make button look deactivated in css -->
<button v-bind:disabled="message.length === 0" v-on:click="submit">Submit</button>
</div>
<div key="save2" v-else >
<h1>Thankyou - come back tomororw</h1>
<button @click="changeState('edit')" >New Entry</button>
</div>
</transition>
</div>
<!-- previous enteries block -->
<previous-entries-block></previous-entries-block>
<!-- weather block -->
<weather-block></weather-block>
<!-- quote block -->
<quote-block></quote-block>
</div>
</div>
<!-- my js file -->
<script src="my.js"></script>
</body>
</html>