-
Notifications
You must be signed in to change notification settings - Fork 0
/
dashboard.html
133 lines (108 loc) · 4.38 KB
/
dashboard.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dashboard</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="form.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"
integrity="sha512-iecdLmaskl7CVkqkXNQ/ZH/XLlvWZOJyj7Yy7tcenmpD1ypASozpmT/E0iPtmFIB46ZmdtAc9eNBvH0H/ZpiBw=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
<body>
<nav class="dash-nav">
<div class="header">
<div class="header-con">
<span>
<h2 id="logo">Personal Blogging App</h2>
</span>
<span id="nav-con">
<a href="profile.html" style="text-decoration: none;">
<p id="top-name"></p>
</a>
<button class="buts" id="logout-but" style="background-color: #7394ff; border: none;"><abbr
title="Logout"><i class="fa-solid fa-arrow-right-from-bracket"></i></abbr></button>
</span>
</div>
</div>
<div class="nav-con">
<h1 style="font-size: 32px;">Dashboard</h1>
</div>
</nav>
<div class="con-blog" id="modal">
<div class="blog-post">
<div class="posting-loader" id="updating-loader">
<div></div>
</div>
<i class="fa-solid fa-xmark" id="cancelBtn"></i>
<div class="postOpa">
<h1 style="margin: 0;">Edit</h1>
<input type="text" name="" class="blog-inp" id="title-edit-inp" placeholder="Enter Title" maxlength="50">
<textarea style="resize: none;" name="" class="blog-inp" id="content-edit-inp" placeholder="What is in your mind" cols="30"
rows="6" maxlength="2000"></textarea>
</div>
<div class="posting-con">
<button id="post-but" onclick="updateBlog()">Update Blog</button>
<div class="blogLoader" id="updatingLoader">
<p>Updating</p>
</div>
</div>
</div>
</div>
<div class="con-blog">
<div class="blog-post">
<div class="posting-loader" id="posting-Loader">
<div></div>
</div>
<div class="postOpa">
<input type="text" name="" class="blog-inp" id="title-inp" placeholder="Enter Title" maxlength="50">
<textarea style="resize: none;" name="" class="blog-inp" id="content-inp" placeholder="What is in your mind" cols="30"
rows="6" maxlength="2000"></textarea>
</div>
<div class="posting-con">
<button id="post-but" onclick="addBlog()">Publish Blog</button>
<div class="blogLoader" id="postingLoader">
<p>Posting</p>
</div>
</div>
</div>
<div class="blogs-con">
<h1 id="blog-head">All Blogs</h1>
<div class="blog-con" id="blog-con"></div>
</div>
<div class="loader1" id="dash-loader">
<div class="loader"></div>
</div>
</div>
<script type="module" src="app.js"></script>
</body>
</html>
<!-- <div class="blog">
<div class="blog-title">
<div>
<img src="${userProf}" alt="" id="blog-img">
</div>
<div>
<div>
<h2 id="blog-title">${blog.doc.data().blogTitle}</h2>
</div>
${console.log(blog.doc.data().blogTitle)}
<div class="blog-info">
<div style="display: flex;">
<p>${nameUser}</p>
<p>-</p>
<p>${timestamp}</p>
</div>
<div class="view-all">
<p>View all blogs</p>
</div>
</div>
</div>
</div>
<div id="blog-content">${blog.doc.data().blogCon}</div>
${currentID === userID ? `<div>
<button class="blog-but" id="blog-delete" onclick="deleteBlog('${blog.doc.id}', this.parentNode.parentNode)">Delete</button>
<button class="blog-but" id="blog-edit" onclick="editBlog('${blog.doc.id}', this)">Edit</button>
</div>` : ``}
</div>` -->