ulang tahun ulwan

 

<!DOCTYPE html>
<html lang="id">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Happy Birthday Surprise</title>
  <style>
    body {
      margin: 0;
      font-family: Arial, sans-serif;
      background: linear-gradient(135deg, #ff9a9e, #fad0c4);
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100vh;
      overflow: hidden;
    }

    .container {
      background: rgba(255,255,255,0.95);
      padding: 30px;
      border-radius: 20px;
      text-align: center;
      box-shadow: 0 10px 25px rgba(0,0,0,0.2);
      max-width: 400px;
      width: 90%;
      position: relative;
      z-index: 2;
    }

    h1, h2 {
      color: #ff4d6d;
    }

    p {
      color: #444;
      font-size: 18px;
    }

    input {
      padding: 12px;
      width: 80%;
      border: none;
      border-radius: 10px;
      margin-top: 15px;
      font-size: 16px;
      text-align: center;
      box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
    }

    button {
      margin-top: 15px;
      padding: 12px 25px;
      border: none;
      border-radius: 10px;
      background: #ff4d6d;
      color: white;
      font-size: 16px;
      cursor: pointer;
      transition: 0.3s;
    }

    button:hover {
      background: #e63956;
      transform: scale(1.05);
    }

    #birthdayBox {
      display: none;
      animation: fadeIn 2s ease-in-out;
    }

    #error {
      color: red;
      margin-top: 10px;
    }

    .balloons {
      position: absolute;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      overflow: hidden;
      z-index: 1;
    }

    .balloon {
      position: absolute;
      bottom: -150px;
      width: 60px;
      height: 80px;
      border-radius: 50%;
      animation: floatUp 10s infinite ease-in;
    }

    .balloon::after {
      content: '';
      position: absolute;
      width: 2px;
      height: 50px;
      background: #555;
      top: 80px;
      left: 50%;
    }

    .balloon:nth-child(1) {
      left: 10%;
      background: #ff4d6d;
      animation-delay: 0s;
    }

    .balloon:nth-child(2) {
      left: 30%;
      background: #4dabf7;
      animation-delay: 2s;
    }

    .balloon:nth-child(3) {
      left: 50%;
      background: #ffd43b;
      animation-delay: 4s;
    }

    .balloon:nth-child(4) {
      left: 70%;
      background: #69db7c;
      animation-delay: 1s;
    }

    .balloon:nth-child(5) {
      left: 90%;
      background: #b197fc;
      animation-delay: 3s;
    }

    @keyframes floatUp {
      from {
        transform: translateY(0);
      }
      to {
        transform: translateY(-120vh);
      }
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: scale(0.8);}
      to { opacity: 1; transform: scale(1);}
    }
  </style>
</head>
<body>

<div class="container" id="loginBox">
  <h2>🎁 Masukkan Password 🎁</h2>
  <input type="password" id="password" placeholder="Masukkan password">
  <br>
  <button onclick="checkPassword()">Buka Surprise</button>
  <p id="error"></p>
</div>

<div class="container" id="birthdayBox">
  <h1>🎉 Happy Birthday! 🎂</h1>
  <p>Semoga panjang umur, sehat selalu, dan semua impianmu tercapai 💖</p>
  <h2>🥳 Selamat Ulang Tahun 🥳</h2>
  <p>Hari ini spesial banget, nikmati hari bahagiamu! 🎈</p>
</div>

<div class="balloons">
  <div class="balloon"></div>
  <div class="balloon"></div>
  <div class="balloon"></div>
  <div class="balloon"></div>
  <div class="balloon"></div>
</div>

<script>
  function checkPassword() {
    var password = document.getElementById("password").value;
    var correctPassword = "090609";

    if (password === correctPassword) {
      document.getElementById("loginBox").style.display = "none";
      document.getElementById("birthdayBox").style.display = "block";
    } else {
      document.getElementById("error").innerText = "❌ Password salah, coba lagi!";
    }
  }
</script>

</body>
</html>

Reviews:

Posting Komentar

Ali Food Surabaya © 2014 - Designed by Templateism.com, Plugins By MyBloggerLab.com | Published By Gooyaabi Templates

Contact us

Diberdayakan oleh Blogger.