File size: 6,459 Bytes
603b5e7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ccd7f10
 
 
 
 
 
 
 
 
 
 
 
603b5e7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ccd7f10
603b5e7
 
 
cd9dd84
603b5e7
 
 
 
 
 
 
 
ccd7f10
603b5e7
 
 
 
 
 
 
ccd7f10
 
603b5e7
 
 
 
 
 
ccd7f10
603b5e7
 
 
 
ccd7f10
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
603b5e7
 
 
ccd7f10
603b5e7
 
 
 
 
 
 
 
 
 
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
<!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>