-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
60 lines (56 loc) · 1.26 KB
/
Copy pathscript.js
File metadata and controls
60 lines (56 loc) · 1.26 KB
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
const links = [
{
title: "Portfolio",
sub: "Mes projets dev & design",
url: "https://devfolio.com",
icon: "💻",
cta: "Voir"
},
{
title: "GitHub",
sub: "Code & repos publics",
url: "https://github.com/devyverse",
icon: "🐙",
cta: "Ouvrir"
},
{
title: "LinkedIn",
sub: "Profil pro & expériences",
url: "https://linkedin.com/in/devyreale-dev",
icon: "💼",
cta: "Connecter"
},
{
title: "Instagram",
sub: "UX/UI ",
url: "https://www.instagram.com/devreal.pro/",
icon: "📷",
cta: " Voir"
},
{
title: "Contact",
sub: "Mail pro",
url: "mailto:[email protected]",
icon: "✉️",
cta: "Écrire"
}
];
const container = document.getElementById("links");
links.forEach(link => {
const a = document.createElement("a");
a.href = link.url;
a.target = "_blank";
a.rel = "noopener noreferrer";
a.className = "link-item";
a.innerHTML = `
<div class="link-left">
<div class="link-icon">${link.icon}</div>
<div class="link-label">
<span class="link-title">${link.title}</span>
<span class="link-sub">${link.sub}</span>
</div>
</div>
<span class="link-cta">${link.cta}</span>
`;
container.appendChild(a);
});