-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
200 lines (176 loc) · 5.71 KB
/
index.html
File metadata and controls
200 lines (176 loc) · 5.71 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
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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
<!DOCTYPE html>
<html class="theme-auto" lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Media Selaras - Linktree</title>
<link rel="icon" type="image/x-icon" href="/images/icons/medsel2.png">
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/brands.css">
<style>
/* Styling for loading screen */
.loading-screen {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100vh;
background-color: #fff;
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
transition: opacity 1s ease-out;
}
.loading-screen img {
width: 150px;
height: auto;
animation: fadeIn 1.5s ease-in-out;
}
@keyframes fadeIn {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
.hidden {
opacity: 0;
pointer-events: none;
}
/* Animasi Ketik Teks */
.typing-text {
font-weight: bold;
font-family: "Courier New", monospace;
white-space: nowrap;
overflow: hidden;
border-right: 2px solid black;
}
/* Animasi Tombol */
@keyframes wiggle {
0% {
transform: rotate(0deg);
}
25% {
transform: rotate(2deg);
}
50% {
transform: rotate(-2deg);
}
75% {
transform: rotate(1deg);
}
100% {
transform: rotate(0deg);
}
}
.button:hover {
animation: wiggle 0.3s ease-in-out;
}
</style>
</head>
<body>
<!-- Preloader -->
<div class="loading-screen" id="loadingScreen">
<img src="/images/icons/medsel2.png" alt="Media Selaras Logo">
</div>
<!-- Main Content -->
<div class="container" id="mainContent" style="display: none;">
<div class="column">
<img class="avatar avatar--rounded" src="/images/icons/medsel2.png" srcset="/images/icons/medsel2.png 2x"
alt="LittleLink">
<h1>
<div><span id="typingText" class="typing-text"></span></div>
</h1>
<p>✨ Learning Together to Getting Better<br>📚 Workshop Kreatif & Webinar Inspiratif<br>📥
Collaboration/Partnership</p>
<div class="button-stack" role="navigation">
<a class="button button-default" href="https://open.spotify.com/show/3ryqxrMgIF6rpfRIAgdevh" target="_blank"
rel="noopener" role="button">
<img class="icon" aria-hidden="true" src="images/icons/podcast.svg" alt="Suara Selaras">Suara Selaras
</a>
<a class="button button-etsy" href="#" target="_blank" rel="noopener" role="button">
<img class="icon" aria-hidden="true" src="images/icons/website.svg" alt="Website Media Selaras">Website Media
Selaras
</a>
<a class="button button-faceb" href="https://wa.me/6285121089405" target="_blank" rel="noopener" role="button">
<img class="icon" aria-hidden="true" src="images/icons/partnership.svg" alt="Partnership">Partnership Media
Selaras
</a>
<a class="button button-instagram" href="https://www.instagram.com/mediaselaras/" target="_blank" rel="noopener"
role="button">
<img class="icon" aria-hidden="true" src="images/icons/instagram.svg" alt="Instagram">Instagram
</a>
<a class="button button-linked" href="https://id.linkedin.com/company/media-selaras" target="_blank"
rel="noopener" role="button">
<img class="icon" aria-hidden="true" src="images/icons/linkedin.svg" alt="LinkedIn">LinkedIn
</a>
</div>
<footer>
Developed by Kepengurusan 2025
<p>© <span id="currentYear"></span> Media Selaras</p>
</footer>
</div>
</div>
<script>
document.getElementById("currentYear").textContent = new Date().getFullYear();
// Preloader Animasi
window.addEventListener("load", function () {
setTimeout(function () {
document.getElementById("loadingScreen").classList.add("hidden");
document.getElementById("mainContent").style.display = "block";
}, 2000);
});
// Fungsi Mendapatkan Salam Berdasarkan Waktu
function getTimeBasedText() {
const hour = new Date().getHours();
if (hour >= 5 && hour < 12) return "Selamat Pagi";
if (hour >= 12 && hour < 18) return "Selamat Siang";
if (hour >= 18 && hour < 21) return "Selamat Sore";
return "Selamat Malam";
}
// Animasi Ketik Teks
function typeText(element, text, speed = 100, callback) {
let index = 0;
function typing() {
if (index < text.length) {
element.textContent += text.charAt(index);
index++;
setTimeout(typing, speed);
} else {
setTimeout(() => deleteText(element, speed, callback), 2000);
}
}
typing();
}
function deleteText(element, speed = 50, callback) {
let text = element.textContent;
function deleting() {
if (text.length > 0) {
text = text.slice(0, -1);
element.textContent = text;
setTimeout(deleting, speed);
} else if (callback) {
setTimeout(callback, 500);
}
}
deleting();
}
function animateText() {
const textElement = document.getElementById("typingText");
let isOriginal = true;
function switchText() {
const newText = isOriginal ? getTimeBasedText() : "Media Selaras";
typeText(textElement, newText, 100, () => {
isOriginal = !isOriginal;
setTimeout(switchText, 500);
});
}
switchText();
}
document.addEventListener("DOMContentLoaded", animateText);
</script>
</body>
</html>