Merge branch 'main' of https://git-eng.ukwms.ac.id/2526-web/Kelompok09-SPOILER
This commit is contained in:
commit
f83821447f
326
Login1.css
Normal file
326
Login1.css
Normal file
@ -0,0 +1,326 @@
|
||||
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Orbitron', sans-serif;
|
||||
background: #0a0a0a;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.stars {
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: radial-gradient(2px 2px at 20% 30%, white, transparent),
|
||||
radial-gradient(2px 2px at 60% 70%, white, transparent),
|
||||
radial-gradient(1px 1px at 50% 50%, white, transparent),
|
||||
radial-gradient(1px 1px at 80% 10%, white, transparent),
|
||||
radial-gradient(2px 2px at 90% 60%, white, transparent);
|
||||
background-size: 200% 200%;
|
||||
animation: twinkle 8s ease-in-out infinite;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
@keyframes twinkle {
|
||||
0%, 100% { opacity: 0.5; }
|
||||
50% { opacity: 0.8; }
|
||||
}
|
||||
|
||||
.neon-grid {
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-image: linear-gradient(90deg, rgba(0, 255, 255, 0.15) 1px, transparent 1px);
|
||||
background-size: 50px 50px;
|
||||
}
|
||||
|
||||
.layout {
|
||||
position: relative;
|
||||
display: flex;
|
||||
height: 100vh;
|
||||
width: 100vw;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.left-panel {
|
||||
width: 55%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 40px;
|
||||
}
|
||||
|
||||
.title-container {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.main-title {
|
||||
font-size: clamp(55px, 10vw, 140px);
|
||||
font-weight: 900;
|
||||
line-height: 0.9;
|
||||
background: linear-gradient(45deg, #FF006E, #8338EC, #00F5FF);
|
||||
background-size: 200% 200%;
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
animation: gradientShift 3s ease infinite;
|
||||
text-shadow: 0 0 80px rgba(255, 0, 110, 0.5);
|
||||
filter: drop-shadow(0 0 20px rgba(131, 56, 236, 0.8));
|
||||
}
|
||||
|
||||
@keyframes gradientShift {
|
||||
0%, 100% { background-position: 0% 50%; }
|
||||
50% { background-position: 100% 50%; }
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-size: clamp(14px, 2vw, 20px);
|
||||
color: #00F5FF;
|
||||
letter-spacing: 8px;
|
||||
margin-top: 20px;
|
||||
opacity: 0.8;
|
||||
animation: pulse 2s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes pulse {
|
||||
0%, 100% { opacity: 0.6; }
|
||||
50% { opacity: 1; }
|
||||
}
|
||||
|
||||
.right-panel {
|
||||
width: 45%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 40px;
|
||||
}
|
||||
|
||||
.form-box {
|
||||
width: 100%;
|
||||
max-width: 420px;
|
||||
background: rgba(20, 20, 40, 0.8);
|
||||
border-radius: 20px;
|
||||
padding: 40px;
|
||||
border: 2px solid rgba(255, 0, 110, 0.3);
|
||||
box-shadow:
|
||||
0 0 40px rgba(255, 0, 110, 0.3),
|
||||
0 0 80px rgba(131, 56, 236, 0.2),
|
||||
inset 0 0 60px rgba(0, 245, 255, 0.05);
|
||||
backdrop-filter: blur(10px);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.form-content {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.form-title {
|
||||
font-size: 28px;
|
||||
color: #00F5FF;
|
||||
text-align: center;
|
||||
margin-bottom: 30px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 3px;
|
||||
text-shadow: 0 0 20px rgba(0, 245, 255, 0.8);
|
||||
}
|
||||
|
||||
label {
|
||||
display: block;
|
||||
color: #FF006E;
|
||||
font-size: 14px;
|
||||
margin-bottom: 8px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 2px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
input[type="text"],
|
||||
input[type="password"] {
|
||||
width: 100%;
|
||||
padding: 15px 20px;
|
||||
margin-bottom: 25px;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
border: 2px solid rgba(0, 245, 255, 0.3);
|
||||
border-radius: 10px;
|
||||
color: #00F5FF;
|
||||
font-size: 16px;
|
||||
font-family: 'Orbitron', sans-serif;
|
||||
transition: all 0.3s ease;
|
||||
box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
input[type="text"]:focus,
|
||||
input[type="password"]:focus {
|
||||
outline: none;
|
||||
border-color: #FF006E;
|
||||
box-shadow:
|
||||
0 0 20px rgba(255, 0, 110, 0.5),
|
||||
inset 0 0 20px rgba(255, 0, 110, 0.1);
|
||||
background: rgba(0, 0, 0, 0.7);
|
||||
}
|
||||
|
||||
input::placeholder {
|
||||
color: rgba(0, 245, 255, 0.4);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.button-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 20px;
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
button {
|
||||
width: 100%;
|
||||
max-width: 250px;
|
||||
padding: 15px;
|
||||
font-family: 'Orbitron', sans-serif;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 2px;
|
||||
border: none;
|
||||
border-radius: 10px;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.btn-send {
|
||||
background: linear-gradient(45deg, #FF006E, #8338EC);
|
||||
color: white;
|
||||
box-shadow: 0 0 20px rgba(255, 0, 110, 0.5);
|
||||
}
|
||||
|
||||
.btn-send:hover {
|
||||
box-shadow: 0 0 40px rgba(255, 0, 110, 0.8);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.btn-reset {
|
||||
background: linear-gradient(45deg, #8338EC, #00F5FF);
|
||||
color: white;
|
||||
box-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
|
||||
}
|
||||
|
||||
.btn-reset:hover {
|
||||
box-shadow: 0 0 40px rgba(0, 245, 255, 0.8);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.signup-text {
|
||||
color: rgba(0, 245, 255, 0.7);
|
||||
font-size: 13px;
|
||||
text-align: center;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
.signup-text a {
|
||||
color: #FF006E;
|
||||
text-decoration: none;
|
||||
font-weight: 700;
|
||||
transition: all 0.3s ease;
|
||||
text-shadow: 0 0 10px rgba(255, 0, 110, 0.3);
|
||||
}
|
||||
|
||||
.signup-text a:hover {
|
||||
color: #00F5FF;
|
||||
text-shadow: 0 0 15px rgba(0, 245, 255, 0.8);
|
||||
}
|
||||
|
||||
button::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-radius: 50%;
|
||||
background: rgba(255, 255, 255, 0.3);
|
||||
transform: translate(-50%, -50%);
|
||||
transition: width 0.6s, height 0.6s;
|
||||
}
|
||||
|
||||
button:active::before {
|
||||
width: 300px;
|
||||
height: 300px;
|
||||
}
|
||||
|
||||
.user-list {
|
||||
position: absolute;
|
||||
bottom: 30px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: 90%;
|
||||
max-width: 500px;
|
||||
max-height: 200px;
|
||||
overflow-y: auto;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.user-card {
|
||||
background: rgba(20, 20, 40, 0.9);
|
||||
border: 1px solid rgba(0, 245, 255, 0.4);
|
||||
border-radius: 10px;
|
||||
padding: 20px 25px;
|
||||
margin-bottom: 10px;
|
||||
text-align: center;
|
||||
box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
|
||||
animation: slideIn 0.4s ease;
|
||||
opacity: 1;
|
||||
transition: opacity 1.5s ease;
|
||||
|
||||
}
|
||||
|
||||
.usercardfade-out {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
|
||||
@keyframes slideIn {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(20px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
.user-name {
|
||||
color: #00F5FF;
|
||||
font-size: 16px;
|
||||
font-weight: 400;
|
||||
text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.user-name strong {
|
||||
color: #FF006E;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.user-list::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
}
|
||||
|
||||
.user-list::-webkit-scrollbar-track {
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.user-list::-webkit-scrollbar-thumb {
|
||||
background: linear-gradient(45deg, #FF006E, #8338EC);
|
||||
border-radius: 10px;
|
||||
}
|
||||
79
Login1.html
Normal file
79
Login1.html
Normal file
@ -0,0 +1,79 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="Login1.css">
|
||||
<title>Space Odyssey</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="stars"></div>
|
||||
<div class="neon-grid"></div>
|
||||
|
||||
<div class="layout">
|
||||
<div class="left-panel">
|
||||
<div class="title-container">
|
||||
<h1 class="main-title">SPACE<br>ODYSSEY</h1>
|
||||
<div class="subtitle">Initializing Spaceship</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="right-panel">
|
||||
<div class="form-box">
|
||||
<div class="form-content">
|
||||
<h2 class="form-title">Access Terminal</h2>
|
||||
<!-- box login-->
|
||||
<label for="username">Username</label>
|
||||
<input type="text" id="username" placeholder="Enter callsign...">
|
||||
<label for="password">Password</label>
|
||||
<input type="password" id="password" placeholder="Enter access code...">
|
||||
|
||||
<div class="button-group">
|
||||
<button class="btn-send" onclick="registerUser()">Connect</button>
|
||||
<div class="signup-text">
|
||||
<!-- link belm selsai-->
|
||||
Don't have a terminal? <a href="#">Sign up</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="user-list" id="userList"></div>
|
||||
|
||||
<script>
|
||||
let userCounter = 0;
|
||||
|
||||
function registerUser() {
|
||||
const username = document.getElementById('username').value.trim();
|
||||
const password = document.getElementById('password').value;
|
||||
|
||||
if (!username || !password) {
|
||||
alert('ya begitulah');
|
||||
return;
|
||||
}
|
||||
|
||||
const userId = 'user_' + userCounter++;
|
||||
|
||||
const userCard = document.createElement('div');
|
||||
userCard.className = 'user-card';
|
||||
userCard.id = userId;
|
||||
userCard.innerHTML = `
|
||||
<div class="user-name">✓ You have logged on as <strong>${username}</strong></div>
|
||||
`;
|
||||
|
||||
document.getElementById('userList').appendChild(userCard);
|
||||
|
||||
setTimeout(() => {
|
||||
userCard.classList.add('usercardfade-out');
|
||||
|
||||
setTimeout(() => {
|
||||
userCard.remove();
|
||||
}, 500);
|
||||
|
||||
}, 3000);
|
||||
|
||||
};
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
x
Reference in New Issue
Block a user