| | <!DOCTYPE html> |
| | <html lang="ko"> |
| | <head> |
| | <meta charset="UTF-8"> |
| | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| | <title>μ΄λ¦ νμΈκΈ°</title> |
| | <script src="https://cdn.tailwindcss.com"></script> |
| | <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> |
| | <style> |
| | @keyframes bounce { |
| | 0%, 100% { transform: translateY(0); } |
| | 50% { transform: translateY(-10px); } |
| | } |
| | .bounce { |
| | animation: bounce 1s infinite; |
| | } |
| | .vegetable-emoji { |
| | font-size: 3rem; |
| | display: inline-block; |
| | } |
| | @keyframes sparkle { |
| | 0% { transform: scale(1); opacity: 1; } |
| | 50% { transform: scale(1.2); opacity: 0.7; } |
| | 100% { transform: scale(1); opacity: 1; } |
| | } |
| | .sparkle { |
| | animation: sparkle 1.5s infinite; |
| | } |
| | .star-emoji { |
| | font-size: 2rem; |
| | display: inline-block; |
| | } |
| | </style> |
| | </head> |
| | <body class="bg-gradient-to-br from-blue-50 to-purple-50 min-h-screen flex items-center justify-center p-4"> |
| | <div class="bg-white rounded-2xl shadow-xl p-8 max-w-md w-full"> |
| | <div class="text-center mb-8"> |
| | <i class="fas fa-user-check text-5xl text-purple-500 mb-4"></i> |
| | <h1 class="text-3xl font-bold text-gray-800">μ΄λ¦ νμΈνκΈ°</h1> |
| | <p class="text-gray-600 mt-2">μ΄λ¦μ μ
λ ₯ν΄λ³΄μΈμ. νΉλ³ν λ©μμ§κ° λνλ μ§λ?</p> |
| | </div> |
| | |
| | <div class="mb-6"> |
| | <label for="nameInput" class="block text-sm font-medium text-gray-700 mb-2">μ΄λ¦ μ
λ ₯</label> |
| | <div class="relative"> |
| | <input |
| | type="text" |
| | id="nameInput" |
| | class="w-full px-4 py-3 rounded-lg border border-gray-300 focus:ring-2 focus:ring-purple-500 focus:border-purple-500 transition-all duration-200" |
| | placeholder="μ΄λ¦μ μ
λ ₯νμΈμ" |
| | oninput="checkName()" |
| | > |
| | <i class="fas fa-pencil-alt absolute right-3 top-3.5 text-gray-400"></i> |
| | </div> |
| | </div> |
| | |
| | <div id="resultContainer" class="hidden bg-purple-50 rounded-lg p-4 text-center transition-all duration-300"> |
| | <div id="resultMessage" class="font-bold text-xl"></div> |
| | <div id="specialEmoji" class="mt-2"></div> |
| | </div> |
| | |
| | <div class="mt-8 text-center text-sm text-gray-500"> |
| | <p>μ΄λ¦μ μ
λ ₯ν΄λ³΄μΈμ!</p> |
| | </div> |
| | </div> |
| |
|
| | <script> |
| | function checkName() { |
| | const nameInput = document.getElementById('nameInput').value.trim(); |
| | const resultContainer = document.getElementById('resultContainer'); |
| | const resultMessage = document.getElementById('resultMessage'); |
| | const specialEmoji = document.getElementById('specialEmoji'); |
| | |
| | if (nameInput === 'μ±κ·λ³') { |
| | resultContainer.classList.remove('hidden'); |
| | resultMessage.textContent = 'μΌμ±!'; |
| | resultMessage.className = 'font-bold text-xl text-green-600'; |
| | |
| | |
| | specialEmoji.innerHTML = ''; |
| | specialEmoji.className = 'vegetable-emoji mt-2'; |
| | const emojis = ['π₯¬', 'π₯¦', 'π₯', 'π', 'π
', 'π½']; |
| | emojis.forEach(emoji => { |
| | const span = document.createElement('span'); |
| | span.textContent = emoji; |
| | span.className = 'mx-1 bounce'; |
| | span.style.animationDelay = `${Math.random() * 0.5}s`; |
| | specialEmoji.appendChild(span); |
| | }); |
| | |
| | |
| | resultContainer.className = 'bg-green-50 rounded-lg p-4 text-center transition-all duration-300'; |
| | } |
| | else if (nameInput === 'μΈμκΈ°') { |
| | resultContainer.classList.remove('hidden'); |
| | resultMessage.textContent = 'μ΄ νμ΄μ§λ₯Ό λ§λ νλ₯ν λΆμ΄μλ€μ!'; |
| | resultMessage.className = 'font-bold text-xl text-yellow-600'; |
| | specialEmoji.innerHTML = ''; |
| | specialEmoji.className = 'star-emoji mt-2'; |
| | |
| | |
| | const stars = ['β', 'π', 'β¨', 'π«', 'βοΈ']; |
| | stars.forEach((star, index) => { |
| | const span = document.createElement('span'); |
| | span.textContent = star; |
| | span.className = 'mx-1 sparkle'; |
| | span.style.animationDelay = `${index * 0.3}s`; |
| | specialEmoji.appendChild(span); |
| | }); |
| | |
| | |
| | resultContainer.className = 'bg-yellow-50 rounded-lg p-4 text-center transition-all duration-300'; |
| | } |
| | else if (nameInput !== '') { |
| | resultContainer.classList.remove('hidden'); |
| | resultMessage.textContent = `${nameInput}λ, μλ
νμΈμ!`; |
| | resultMessage.className = 'font-bold text-xl text-purple-600'; |
| | specialEmoji.innerHTML = ''; |
| | |
| | |
| | resultContainer.className = 'bg-purple-50 rounded-lg p-4 text-center transition-all duration-300'; |
| | } else { |
| | resultContainer.classList.add('hidden'); |
| | } |
| | } |
| | </script> |
| | <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 𧬠<a href="https://enzostvs-deepsite.hf.space?remix=adslhdsl/test" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> |
| | </html> |