-
Notifications
You must be signed in to change notification settings - Fork 2
/
home.html
108 lines (94 loc) · 4.05 KB
/
home.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Responsive Profile Card</title>
<!-- Link to CSS stylesheet -->
<link rel="stylesheet" href="style.css">
<!-- Boxicon CSS for social media icons -->
<link href='https://unpkg.com/[email protected]/css/boxicons.min.css' rel='stylesheet' />
</head>
<body>
<!-- Profile Card Container -->
<div class="profile-card">
<!-- Profile Image Section -->
<div class="image">
<img src="profile.jpg" alt="Profile Picture" class="profile-img">
</div>
<!-- Profile Details Section -->
<div class="text-data">
<span class="name">Muskan Choudhary</span>
<span class="job">Web Developer</span>
</div>
<!-- Social Media Links -->
<div class="media-buttons">
<a href="https://mail.google.com/mail/u/0/#inbox" style="background:#f10f0f;" class="link">
<i class='bx bxl-gmail'></i>
</a>
<a href="https://github.com/muskanchoudhary001" style="background:#161617;" class="link">
<i class='bx bxl-github'></i>
</a>
<a href="https://www.linkedin.com/in/muskan-choudhary-789759175/" style="background:#4267b2;" class="link">
<i class='bx bxl-linkedin'></i>
</a>
<a href="https://twitter.com/BhalothiaMuskan" style="background:#1da1f2;" class="link">
<i class='bx bxl-twitter'></i>
</a>
</div>
<!-- Action Buttons (Follow and Connect) -->
<div class="buttons">
<div class="button" onclick="window.location.href='https://github.com/muskanchoudhary001';">
Follow Me
</div>
<div class="button" onclick="window.location.href='https://www.linkedin.com/in/muskan-choudhary-789759175/';">
Connect with Me
</div>
</div>
<!-- Analytics Section for Likes, Comments, and Shares -->
<div class="analytics">
<div class="data" onclick="likePost()">
<i class='bx bxs-heart' id="like-icon"></i>
<span class="number" id="like-count">60k</span>
<span class="label">Likes</span>
</div>
<div class="data" onclick="commentPost()">
<i class='bx bx-message-rounded' id="comment-icon"></i>
<span class="number" id="comment-count">20k</span>
<span class="label">Comments</span>
</div>
<div class="data" onclick="sharePost()">
<i class='bx bx-share' id="share-icon"></i>
<span class="number" id="share-count">12k</span>
<span class="label">Shares</span>
</div>
</div>
</div>
<!-- JavaScript for Like, Comment, and Share functionality -->
<script>
let likes = 60000;
let comments = 20000;
let shares = 12000;
// Function to handle Like action
function likePost() {
likes++;
document.getElementById('like-count').innerText = likes;
document.getElementById('like-icon').style.color = "#1e90ff"; // Change to blue
}
// Function to handle Comment action
function commentPost() {
comments++;
document.getElementById('comment-count').innerText = comments;
document.getElementById('comment-icon').style.color = "#32CD32"; // Change to green
alert("Thank you for your comment!");
}
// Function to handle Share action
function sharePost() {
shares++;
document.getElementById('share-count').innerText = shares;
document.getElementById('share-icon').style.color = "#FF4500"; // Change to orange
alert("Post shared successfully!");
}
</script>
</body>
</html>