-
Notifications
You must be signed in to change notification settings - Fork 2
/
settings.js
62 lines (52 loc) · 3.05 KB
/
settings.js
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
// settings.js
// Objek untuk menyimpan semua pengaturan profil
const profileSettings = {
favicon: "media/profile.jpg", // Path ke favicon
title: "Vynaa Valerie | Profile", // Judul halaman
metaTitle: "Vynaa || Profile", // Meta title untuk SEO
metaDescription: "Profile Website Vynaa Valerie, Creator and Dev", // Deskripsi meta untuk SEO
metaKeywords: "Vynaa, Vynaa Valerie, profile Vynaa, siapa Vynaa?", // Keywords meta untuk SEO
metaRobots: "index, follow", // Pengaturan robot meta untuk SEO
imageSrc: "media/profile.jpg", // Path ke gambar profil
name: "Vynaa Valerie", // Nama profil
occupation: "Creator and Dev", // Pekerjaan atau jabatan
location: "Pekanbaru, Riau, Indonesia", // Lokasi
backgroundImage: "media/background.jpg", // Latar belakang halaman
links: [
{ title: "GitHub", url: "https://github.com/VynaaValerie", icon: "fa-github" }, // Tautan GitHub
{ title: "LinkedIn", url: "https://www.linkedin.com/in/vynaaval", icon: "fa-linkedin" }, // Tautan LinkedIn
{ title: "Twitter", url: "https://twitter.com/vynaaval", icon: "fa-twitter" }, // Tautan Twitter
{ title: "Instagram", url: "https://www.instagram.com/vynaa_valerie", icon: "fa-instagram" }, // Tautan Instagram
{ title: "Telegram", url: "https://t.me/VLShop2", icon: "fa-telegram" }, // Tautan Telegram
{ title: "Email", url: "mailto:[email protected]", icon: "fa-envelope" }, // Tautan Email
{ title: "WhatsApp", url: "https://wa.me/6282389924037?text=hai", icon: "fa-whatsapp" }, // Tautan WhatsApp
{ title: "YouTube", url: "https://youtube.com/@VynaaChan", icon: "fa-youtube" } // Tautan YouTube
]
};
// Mengatur favicon
document.getElementById('favicon').href = profileSettings.favicon;
// Mengatur judul halaman
document.getElementById('title').textContent = profileSettings.title;
// Mengatur meta tags
document.getElementById('meta-title').content = profileSettings.metaTitle;
document.getElementById('meta-description').content = profileSettings.metaDescription;
document.getElementById('meta-keywords').content = profileSettings.metaKeywords;
document.getElementById('meta-robots').content = profileSettings.metaRobots;
// Mengatur gambar profil
document.getElementById('profile-image').src = profileSettings.imageSrc;
// Mengatur nama profil
document.getElementById('profile-name').textContent = profileSettings.name;
// Mengatur teks pekerjaan atau jabatan
document.getElementById('occupation-text').textContent = profileSettings.occupation;
// Mengatur lokasi
document.getElementById('location').innerHTML = `<i class="fa fa-map-marker icon" aria-hidden="true"></i> ${profileSettings.location}`;
// Mengatur gambar latar belakang
document.body.style.backgroundImage = `url("${profileSettings.backgroundImage}")`;
// Mengatur tautan-tautan
const linkBoxes = document.getElementById('link-boxes');
profileSettings.links.forEach(link => {
const linkElement = document.createElement('a');
linkElement.href = link.url;
linkElement.innerHTML = `<i class="fa ${link.icon}" aria-hidden="true"></i> ${link.title}`;
linkBoxes.appendChild(linkElement);
});