-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlinktree.html
176 lines (158 loc) · 10.4 KB
/
linktree.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
164
165
166
167
168
169
170
171
172
173
174
175
176
<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NFA Academy - Fatkhurrhn</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
</head>
<body style="margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Arial, sans-serif; display: flex; justify-content: center; align-items: center; min-height: 100vh; position: relative;">
<div style="width: 100%; max-width: 700px; display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 20px;">
<div style="display: flex; flex-direction: column; align-items: center; gap: 15px; margin-top: 50px;">
<div style="position: relative; width: 180px; height: 180px;">
<img src="pp.png" alt="Fatkhurrhn's profile" style="width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 5px solid #4c9aff;">
<div class="dark-mode-toggle" style="position: absolute; bottom: 15px; right: 5px; background-color: black; color: white; border: 2px solid white; border-radius: 50%; width: 30px; height: 30px; display: flex; justify-content: center; align-items: center; cursor: pointer;">
<i class="fas fa-moon"></i>
</div>
</div>
<div class="profile-name" style="display: flex; align-items: center; gap: 10px; font-size: 28px; font-weight: bold; margin-bottom: -12px;">
Fatkhurrhn
<span style="color: #4c9aff; font-size: 24px;">
<i class="fas fa-check-circle"></i>
</span>
</div>
<a href="https://fatkhurrhn.vercel.app/" style="color: #4c9aff; text-decoration: none; font-size: 16px;">https://fatkhurrhn.vercel.app/</a>
<div class="bio-text" style="text-align: center; font-size: 16px; margin-bottom: 1px;">
Pengen jago ngoding kaya panutan, pak dika hhe
</div>
</div>
<div style="display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 20px;">
<a href="https://fatkhurrhn.vercel.app/"
style="display: flex; align-items: center; gap: 6px; background-color: #f3f4f6; color: #333; padding: 6px 12px; border-radius: 15px; text-decoration: none; font-size: 13px; font-weight: 500; transition: background 0.2s, box-shadow 0.2s;">
<i class="fas fa-globe"></i> Website
</a>
<a href="https://github.com/fatkhurrhn"
style="display: flex; align-items: center; gap: 6px; background-color: #f3f4f6; color: #333; padding: 6px 12px; border-radius: 15px; text-decoration: none; font-size: 13px; font-weight: 500; transition: background 0.2s, box-shadow 0.2s;">
<i class="fab fa-github"></i> Github
</a>
<a href="http://instagram.com/story.thur"
style="display: flex; align-items: center; gap: 6px; background-color: #f3f4f6; color: #333; padding: 6px 12px; border-radius: 15px; text-decoration: none; font-size: 13px; font-weight: 500; transition: background 0.2s, box-shadow 0.2s;">
<i class="fab fa-instagram"></i> Instagram
</a>
<a href="https://www.tiktok.com/@fatkhurrhnn"
style="display: flex; align-items: center; gap: 6px; background-color: #f3f4f6; color: #333; padding: 6px 12px; border-radius: 15px; text-decoration: none; font-size: 13px; font-weight: 500; transition: background 0.2s, box-shadow 0.2s;">
<i class="fab fa-tiktok"></i> Tiktok
</a>
<a href="https://www.linkedin.com/in/fatkhurrhn/"
style="display: flex; align-items: center; gap: 6px; background-color: #f3f4f6; color: #333; padding: 6px 12px; border-radius: 15px; text-decoration: none; font-size: 13px; font-weight: 500; transition: background 0.2s, box-shadow 0.2s;">
<i class="fab fa-linkedin"></i> LinkedIn
</a>
</div>
<div style="width: 100%; display: flex; flex-direction: column; gap: 12px;">
<a href="#" id="openPopup" style="display: flex; align-items: center; justify-content: space-between; background-color: #FAFAFA; border-radius: 12px; padding: 14px 18px; text-decoration: none; color: #222; transition: all 0.2s; border: 1px solid #EAEAEA; box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.05);">
<div style="display: flex; align-items: center; gap: 12px;">
<div style="width: 40px; height: 40px; display: flex; justify-content: center; align-items: center; border-radius: 10px; font-size: 18px; background-color: #4A4A4A; color: white;">
<i class="fas fa-layer-group"></i>
</div>
<div style="font-weight: 600; font-size: 15px; color: #333;">NF Academy Course - Fullstack</div>
</div>
<div style="font-size: 18px; color: #777;">
<i class="fas fa-arrow-right"></i>
</div>
</a>
<div id="popupContainer" style="display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.3); display: flex; justify-content: center; align-items: center;">
<div id="popup" style="background: white; padding: 20px; border-radius: 10px; box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2); border: 1px solid #EAEAEA; width: 320px; text-align: center; position: relative;">
<span id="closePopup" style="position: absolute; top: 10px; right: 15px; cursor: pointer; font-size: 20px; color: #777; font-weight: bold;">×</span>
<h3 style="margin: 0 0 10px; color: #333; font-size: 18px;">Link Penting</h3>
<ul style="list-style: none; padding: 0; margin: 0;">
<li style="padding: 8px 0;"><a href="#" style="text-decoration: none; color: #007BFF; font-size: 16px;">Dashboard</a></li>
<li style="padding: 8px 0;"><a href="#" style="text-decoration: none; color: #007BFF; font-size: 16px;">Course Materials</a></li>
<li style="padding: 8px 0;"><a href="#" style="text-decoration: none; color: #007BFF; font-size: 16px;">Community Forum</a></li>
</ul>
</div>
</div>
<a href="#" style="display: flex; align-items: center; justify-content: space-between; background-color: #FAFAFA; border-radius: 12px; padding: 14px 18px; text-decoration: none; color: #222; transition: all 0.2s; border: 1px solid #EAEAEA; box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.05);">
<div style="display: flex; align-items: center; gap: 12px;">
<div style="width: 40px; height: 40px; display: flex; justify-content: center; align-items: center; border-radius: 10px; font-size: 18px; background-color: #FF6D42; color: white;">
<i class="fas fa-cloud"></i>
</div>
<div style="font-weight: 600; font-size: 15px; color: #333;">Dicoding | Bangkit - Cloud Computing</div>
</div>
<div style="font-size: 18px; color: #777;">
<i class="fas fa-arrow-right"></i>
</div>
</a>
</div>
</div>
<script>
// popup
document.getElementById('openPopup').addEventListener('click', function(event) {
event.preventDefault();
document.getElementById('popupContainer').style.display = 'flex';
});
document.getElementById('closePopup').addEventListener('click', function() {
document.getElementById('popupContainer').style.display = 'none';
});
document.getElementById('popupContainer').addEventListener('click', function(event) {
let popup = document.getElementById('popup');
if (!popup.contains(event.target)) {
document.getElementById('popupContainer').style.display = 'none';
}
});
// Efek hover lebih halus
document.querySelectorAll("a").forEach(link => {
link.addEventListener("mouseenter", () => {
link.style.background = "#e5e7eb";
link.style.boxShadow = "0px 2px 5px rgba(0, 0, 0, 0.1)";
});
link.addEventListener("mouseleave", () => {
link.style.background = "#f3f4f6";
link.style.boxShadow = "none";
});
});
// Dark mode toggle functionality
const darkModeToggle = document.querySelector('.dark-mode-toggle');
const body = document.body;
const gradientDiv = document.querySelector('.gradient-bg'); // Gunakan class yang lebih aman
// Cek apakah user pernah menyimpan preferensi dark mode
let isDarkMode = localStorage.getItem('darkMode') === 'enabled';
function applyDarkMode() {
body.classList.add('dark-mode');
if (gradientDiv) gradientDiv.style.opacity = '0.3';
darkModeToggle.innerHTML = '<i class="fas fa-sun"></i>';
localStorage.setItem('darkMode', 'enabled');
}
function removeDarkMode() {
body.classList.remove('dark-mode');
if (gradientDiv) gradientDiv.style.opacity = '1';
darkModeToggle.innerHTML = '<i class="fas fa-moon"></i>';
localStorage.setItem('darkMode', 'disabled');
}
// Terapkan mode berdasarkan preferensi yang tersimpan
if (isDarkMode) {
applyDarkMode();
}
darkModeToggle.addEventListener('click', () => {
isDarkMode = !isDarkMode;
isDarkMode ? applyDarkMode() : removeDarkMode();
});
// Ganti gambar profil jika tersedia
document.addEventListener('DOMContentLoaded', () => {
const profileImg = document.querySelector('img[alt="Fatkhurrhn\'s profile"]');
if (profileImg) {
profileImg.src = "pp.png"; // Perbaikan URL
profileImg.onerror = () => {
profileImg.src = "pp.png";
};
}
});
</script>
<style>
/* Tambahkan class dark-mode */
.dark-mode {
background: #121212 !important;
color: #fff;
}
</style>
</body>
</html>