-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnav_bar_6_bloom.html
163 lines (132 loc) · 3.53 KB
/
nav_bar_6_bloom.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
<!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">
<title>My Socials</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
margin: 0;
padding: 0;
display: grid;
font-family: "Poppins", sans-serif;
place-items: center;
height: 100vh;
overflow: hidden;
}
.wrapper {
display: flex;
align-items: center;
justify-content: center;
gap: 20px;
margin: 0;
padding: 0;
}
.icon {
/* Change the icon size here */
font-size: 3em;
/* Change the icons colours here*/
color: #0b0b0b
}
.blog:hover {
color: #ffbd2f;
}
.email:hover {
color: #23c8c8;
}
.discord:hover {
color: #7289da;
}
.zoom:hover {
color: #0B5CFF;
}
.icon.pass {
color: #0b0b0b;
}
.icon.pass:hover {
color: #ff0000;
}
#canva {
position: relative;
height: 3em;
width: 3em;
margin: 20px;
display: flex;
align-items: center;
justify-content: center;
}
#canva img {
max-width: 100%;
max-height: 100%;
position: absolute;
transition: opacity 0s ease-in-out;
}
#canva img.top:hover {
opacity: 0;
}
.social {
position: relative;
margin: 60px;
cursor: pointer;
}
</style>
</head>
<body>
<body>
<div class="wrapper">
<!-- Start email Icon -->
<div id="email" onclick="navigate(this.id)" class="social">
<span class="icon email"><i class="fa-solid fa-envelope"></i></span>
</div>
<!-- End email Icon -->
<!-- Start canva Icon -->
<div id="canva" onclick="navigate(this.id)" class="social">
<img class="bottom" src="images/canva_icon_hover.png" />
<img class="top" src="images/canva_icon.png" />
</div>
<!-- End canva Icon -->
<!-- Start discord Icon -->
<div id="discord" onclick="navigate(this.id)" class="social">
<span class="icon discord"><i class="fab fa-discord"></i></span>
</div>
<!-- End discord Icon -->
<!-- Start zoom Icon -->
<div id="zoom" onclick="navigate(this.id)" class="social">
<span class="icon zoom"><i class="fa-solid fa-video"></i></span>
</div>
<!-- End zoom Icon -->
<!-- Start 1pass Icon -->
<div id="pass" onclick="navigate(this.id)" class="social">
<span class="icon pass"><i class="fa-solid fa-unlock-keyhole"></i></span>
</div>
<!-- End 1pass Icon -->
</div>
<script>
function navigate(id) {
//if you want the URL to open in the same window use '_parent' instead of '_blank'
if (id === "email") {
window.open("https://www.gmail.com", '_blank').focus();
}
else if (id === "discord") {
window.open("https://discord.com/", '_blank').focus();
}
else if (id === "canva") {
window.open("https://www.canva.com/", '_blank').focus();
}
else if (id === "zoom") {
window.open("https://www.zoom.us/", '_blank').focus();
}
else if (id === "pass") {
window.open("https://1password.com/", '_blank').focus();
}
}
</script>
</body>
</html>