forked from Adityaranjanpatra/Btecky2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dailydairy.html
125 lines (106 loc) · 2.94 KB
/
dailydairy.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
margin: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: linear-gradient(135deg, #cf9aff, #95c0ff);
/* background: url(./Screenshot\ 2023-08-24\ 002543.png); */
background-image: image-set();
}
.content {
width: 350px;
height: 470px;
/* background-color: rgba(88, 152, 230, 0.8); */
text-align: center;
background-image: url('./diary.jpeg');
background-size: contain;
padding: 20px;
box-shadow: 19px 20px 10px rgba(0, 0, 0, 0.3);
}
.multiline-input {
width: 90%;
height: 85%;
padding: 10px;
/* padding-right: 40px; */
resize: none;
background-color: transparent;
border: none;
box-sizing: border-box;
font-size: 18px;
margin-bottom: 25px;
font-family: cursive;
}
.multiline-input:focus {
outline: none;
}
.save-btn {
width: 80px;
height: 40px;
font-size: 16px;
background-color: greenyellow;
border-radius: 5px;
margin-right: 20px;
}
.title {
background-color: transparent;
border: none;
border-bottom: 1px solid black;
height: 22px;
font-size: 16px;
}
.title:focus {
outline: none;
}
.voice-btn {
height: 40px;
width: 40px;
border-radius: 20px;
background-image: url("./voice.png");
background-size: cover;
color: transparent;
}
.label-date {
font-size: 18px;
font-weight: bold;
text-align: left;
font-family: cursive;
}
.label-title {
font-size: 18px;
font-weight: bold;
font-family: cursive;
}
.input-date {
margin-bottom: 10px;
height: 25px;
width: 130px;
}
</style>
<title>Background Image with Multiline Input</title>
</head>
<body>
<div class="content">
<label class="label-date">Date :</label>
<input type="date" class="input-date" id="date"><br>
<label class="label-title">Title:</Label>
<input type="text" class="title" style="margin-bottom :15px;">
<textarea class="multiline-input" placeholder="Tell me about your Day" cols="15" id="diary"></textarea>
<button class="save-btn" onclick="Submit()" id="submitButton">Submit</button>
<button class="save-btn" onclick="Update()" id="updateButton" style="display: none;">Update </button>
<button class="voice-btn" id="voiceButton">Voice</button>
</div>
<div>
</div>
</body>
<script src="https://www.gstatic.com/firebasejs/8.10.1/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.1/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.1/firebase-firestore.js"></script>
<script src="app.js"></script>
</html>