-
Notifications
You must be signed in to change notification settings - Fork 16
/
index.html
178 lines (145 loc) · 7.16 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src='https://kit.fontawesome.com/49a2f38d1d.js' crossorigin='anonymous'></script>
<title>NOTES APP</title>
<link rel = "icon" href = "images/notes-1.png" type = "image/x-icon">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
<style>
.center-image {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.image-container {
width: 500px;
height: 400px;
}
body{background: var(--color-secondary)}
.toast{
color: white;
background: var(--color-secondary);
}
.fade {
transition-duration: 1s;
}
.btn-grad {
background-image: linear-gradient(to right, #9259b8 0%, #49a09d 51%, #af68df 100%);
margin: 10px;
padding: 15px 45px;
text-align: center;
text-transform: uppercase;
transition: 0.5s;
background-size: 200% auto;
color: white;
box-shadow: 0 0 20px #eee;
border-radius: 10px;
display: block;
}
.btn-grad:hover {
background-position: right center; /* change the direction of the change here */
color: #fff;
text-decoration: none;
transform: scale(1.1);
}
</style>
</head>
<body>
<div class="scroll-up-btn">
<i class="fas fa-angle-up"></i>
</div>
<!-- navbar -->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<img class="logo" src="images/notes-1.png" alt="">
<a class="navbar-brand" href="#">Notes</a>
<form class="form-inline my-2 my-lg-0">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search" id="searchTxt">
</form>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="#"><span class="sr-only">(current)</span></a>
</li>
</ul>
<i id="mute-button" onclick="toggleMute()" class='fas fa-volume-up blue-mute'></i>
<form class="form-inline my-2 my-lg-0">
<!-- theme switcher -->
<div class="container">
<label id="switch" class="switch">
<input type="checkbox" onchange="toggleTheme()" id="slider">
<span class="slider round"></span>
</label>
</div>
</form>
</div>
</nav>
<!-- navbar -->
<div class="center-image">
<div class="image-container">
<img src="boy.jpg" style="width: 100%; height: 100%;" alt="Boy Image">
</div>
<div class="container my-3">
<h1 style="color: rgb(134, 153, 237);">Welcome To Notes</h1>
<div id="styled-message-container"></div>
<div class="card">
<div class="card-body" style="background: var(--color-secondary);">
<h5 class="card-title" style="color: rgb(134, 153, 237);">Add a note
<audio src="sounds/mixkit-tile-game-reveal-960.wav" class="sound"></audio>
</h5>
<div class="form-group">
<input class="form-control" id="labelInput" rows="1" placeholder="Label"></input>
<br>
<input class="form-control" id="heading" rows="1" placeholder="Title"
onkeydown="if(event.keyCode==13 && !event.ctrlKey && !event.shiftKey){document.getElementById('addTxt').focus(); return false;}"
></input>
<span id="styled-title"></span>
<br>
<!-- Adding checkbox in HTML -->
<input type="checkbox" id="useDefaultTitle"> Use Default Title <br>
<!-- Color picker for background color -->
<label for="backgroundColorPicker">Background Color:</label>
<input type="color" id="backgroundColorPicker" value="#ffffff">
<textarea class="form-control" id="addTxt" rows="3" placeholder="Note"
onkeydown="if(event.keyCode==13 && !event.ctrlKey && !event.shiftKey){document.getElementById('addBtn').click(); return false;}"
></textarea>
</div>
<button class="btn-grad" id="addBtn" style="margin-top: 7px; padding-left: 65px; padding-right: 65px;">Add Note</button>
<button class="btn-grad" id="editBtn" style="margin-top: 7px;padding-left: 65px; padding-right: 65px;">DONE</button>
</div>
</div>
<h3 style="color: rgb(134, 153, 237); margin:1rem 0;">Your Notes</h3>
<div id="notes" class="row container-fluid" style="gap: 1rem;"> </div>
</div>
<submit id="btn"><a style="text-decoration:none" href="faq.html">FAQ'S</a></submit><!---adding faq section in form of buttton-->
</div>
</div>
<!-- *** Toast Message *** -->
<div id="" role="alert" aria-live="assertive" aria-atomic="true" class="toast" data-animation="true" data-autohide="true" data-delay="1000" style="position: absolute; top:90vh; right:18px;color: var(--font-color);">
<img src="images/check-mark.png" class="rounded mr-2" width="23px">
<span>Note Created Successfully!</span>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"></script>
<script src="app.js"></script>
</body>
</html>