Skip to content

Instantly share code, notes, and snippets.

@irsydhg
Created May 8, 2025 10:29
Show Gist options
  • Save irsydhg/3b467b172767fb130b0006b54e4aa228 to your computer and use it in GitHub Desktop.
Save irsydhg/3b467b172767fb130b0006b54e4aa228 to your computer and use it in GitHub Desktop.
Untitled
<!DOCTYPE html>
<html lang="ms">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SADPIPOLFAM</title>
<link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@600&family=Poppins&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="overlay moving-background">
<div class="title">
SADPIPOLFAM <span class="emoji">⛈️</span>
</div>
<div class="form-box">
<label for="nama"><strong>Masukkan Nama Ahli:</strong></label><br><br>
<input type="text" id="nama" placeholder="">
<button onclick="paparNama()">🚀 Hantar</button>
</div>
<div id="output" class="member">
NAMA AHLI: <strong id="namaAhli"></strong>
<div class="byline">by: csy</div>
<br>
<a class="discord-link" href="https://discord.gg/86fVS9aYXW" target="_blank">
<img class="discord-logo" src="https://cdn-icons-png.flaticon.com/512/2111/2111370.png" alt="Discord Logo">
MAJU KE SINI WAHAI AHLI
</a>
</div>
</div>
<script src="script.js"></script>
</body>
</html>
function paparNama() {
const nama = document.getElementById("nama").value.trim();
if (nama !== "") {
document.getElementById("namaAhli").textContent = nama;
const output = document.getElementById("output");
output.style.display = "block";
output.style.animation = "fadeIn 1s ease forwards";
}
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-image: url('https://cdn.pixabay.com/photo/2017/08/30/07/52/galaxy-2695569_1280.jpg');
background-size: cover;
background-position: center;
background-attachment: fixed;
color: white;
font-family: 'Poppins', sans-serif;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
overflow: hidden;
position: relative;
}
.overlay {
background-color: rgba(0, 0, 0, 0.7);
padding: 50px;
border-radius: 20px;
max-width: 700px;
margin: auto;
animation: fadeIn 1s ease-in-out;
}
.title {
font-family: 'Orbitron', sans-serif;
font-weight: bold;
font-size: 60px;
background: linear-gradient(to right, gold, red, violet);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
text-transform: uppercase;
animation: glow 1.5s infinite alternate;
}
@keyframes glow {
from { text-shadow: 0 0 10px gold, 0 0 20px red, 0 0 30px violet; }
to { text-shadow: 0 0 20px red, 0 0 30px violet, 0 0 40px gold; }
}
.emoji {
font-size: 48px;
margin-left: 12px;
}
.form-box {
margin-top: 30px;
}
input[type="text"] {
padding: 15px;
font-size: 18px;
width: 350px;
border: 2px solid #ccc;
border-radius: 10px;
transition: 0.3s;
background-color: rgba(255, 255, 255, 0.7);
color: #333;
}
input[type="text"]:focus {
border-color: violet;
outline: none;
}
button {
padding: 15px 25px;
font-size: 20px;
background: linear-gradient(to right, black, purple);
color: white;
border: none;
border-radius: 10px;
cursor: pointer;
transition: 0.3s;
}
button:hover {
transform: scale(1.1);
background: linear-gradient(to right, purple, black);
box-shadow: 0 0 15px purple;
}
.member {
margin-top: 40px;
font-size: 24px;
animation: slideUp 1s ease forwards;
}
@keyframes slideUp {
from { opacity: 0; transform: translateY(50px); }
to { opacity: 1; transform: translateY(0); }
}
.byline {
font-size: 18px;
color: #ccc;
margin-top: 5px;
}
.discord-link {
margin-top: 25px;
font-size: 20px;
background-color: purple;
color: white;
padding: 15px 20px;
border-radius: 10px;
display: inline-block;
text-decoration: none;
transition: 0.3s;
}
.discord-link:hover {
background-color: darkviolet;
transform: scale(1.05);
box-shadow: 0 0 10px darkviolet;
}
.discord-logo {
height: 24px;
vertical-align: middle;
margin-right: 8px;
}
#output {
display: none;
opacity: 0;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
.moving-background {
animation: moveBackground 30s infinite linear;
}
@keyframes moveBackground {
0% { background-position: 0% 0%; }
100% { background-position: 100% 100%; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment