-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile.html
124 lines (120 loc) · 5.14 KB
/
profile.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./style/profile.css">
<link rel="stylesheet" href="./style/style.css">
<script src="script/profile.js" defer></script>
<!-- It is a Awasome Font Link -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<title>Document</title>
</head>
<body>
<header>
<a href="index.html"><h1>Blog Website</h1></a>
<nav class="nav">
<button class="bars" onclick="dropdown(this)"><i class="fa fa-bars"></i> MENU</button>
<ul class="nav-list">
<li><a href="Catagories.html">Categories</a></li>
<li><a href="Search.html"><i class="fa fa-search"></i> Search</a></li>
<li>About</li>
<!-- if not login -->
<!-- <li><a href="login-signup.html"><i class="fa fa-user"></i> Login / Signup</a></li> -->
<!-- if login -->
<li><i class="fa fa-file"></i> Post Article</li>
<li class="active"><a href="profile.html"><i class="fa fa-user"></i> View Profile</a></li>
</ul>
</nav>
</header>
<main>
<div class="profile">
<div class="pic">
<img src="https://mearjuntripathi.github.io/image/profile.JPG" alt="">
<button style="display: none;">Change Picture</button>
<input type="file" onchange="showImage();" name="pic" id="pic" accept="image/*" style="display: none;">
</div>
<hr>
<div class="change-button">
<button class="logout"><i class="fa fa-power-off"></i> Logout</button>
<button id="check" class="edit"><i class="fa fa-edit"> Edit Profile</i></button>
</div>
<div class="info">
<p class="name">Arjun Tripathi</p>
<p class="title">Software Engineer</p>
<p class="mail">[email protected]</p>
<a style="background-color: blueviolet; padding: 5px 10px; border-radius: 15px;">View written Blogs</a>
</div>
<form action="" method="get" class="update" style="display: none;">
<label for="">Name: </label>
<div class="input">
<input type="text" name="name" value="Arjun Tripathi" />
</div>
<label for="">Title: </label>
<div class="input">
<input type="text" name="title" value="Software Enginner" />
</div>
<label for="">Email: </label>
<div class="input">
<input type="email" name="email" value="[email protected]" />
</div>
<label for="">Password: </label>
<div class="input">
<i class="fa fa-lock" id="passid"></i>
<input id="pass" type="password" name="Password" value="" />
</div>
<label for=""> Confirm Password: </label>
<div class="input">
<i class="fa fa-lock" id="cskpassid"></i>
<input id="cskpass" type="password" name="confirm" value="" />
</div>
<button type="submit" style=" margin:10px;background-color: rgb(8, 164, 70);
font-size: medium; border:none; padding:5px;
color: white; border-radius: 10px">
<i class="fa fa-save"> Save</i></button>
</form>
</div>
</main>
<footer>
<div class="info">
<div class="block">
<h1>Blog Website</h1>
<p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Itaque a cumque ducimus qui fugiat.
Recusandae iusto ipsam tempore, suscipit illo magni voluptatem distinctio quo laudantium facere
fugit saepe voluptate labore.</p>
</div>
<div class="block">
<h2>Popular Post</h2>
<ul>
<li>Some time</li>
<li>Some time</li>
<li>Some time</li>
<li>Some time</li>
</ul>
</div>
<div class="block">
<h2>Our Top Writer</h2>
<ul>
<li>Some time</li>
<li>Some time</li>
<li>Some time</li>
<li>Some time</li>
</ul>
</div>
</div>
<div class="intro">ⓒ 2024 Arjun Tripathi, All right reserved</div>
</footer>
</body>
</html>
<script>
function dropdown(bars) {
let value = document.querySelector('.nav-list');
if (value.classList.contains('dropdown')) {
value.classList.remove('dropdown');
bars.classList.remove('bars-focus');
} else {
value.classList.add('dropdown');
bars.classList.add('bars-focus');
}
}
</script>