AhBoh commited on
Commit
0cb6d29
·
verified ·
1 Parent(s): 9ec25c6

Add 3 files

Browse files
Files changed (3) hide show
  1. README.md +7 -5
  2. index.html +157 -19
  3. prompts.txt +1 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Cazzata
3
- emoji: 🚀
4
- colorFrom: purple
5
- colorTo: blue
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: cazzata
3
+ emoji: 🐳
4
+ colorFrom: red
5
+ colorTo: purple
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,157 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Interactive Exclamation Generator</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+ <style>
10
+ @keyframes bounce {
11
+ 0%, 100% { transform: translateY(0); }
12
+ 50% { transform: translateY(-20px); }
13
+ }
14
+ @keyframes shake {
15
+ 0% { transform: rotate(0deg); }
16
+ 25% { transform: rotate(5deg); }
17
+ 50% { transform: rotate(0deg); }
18
+ 75% { transform: rotate(-5deg); }
19
+ 100% { transform: rotate(0deg); }
20
+ }
21
+ @keyframes confused {
22
+ 0% { transform: rotate(0deg) scale(1); }
23
+ 50% { transform: rotate(10deg) scale(1.1); }
24
+ 100% { transform: rotate(0deg) scale(1); }
25
+ }
26
+ .character {
27
+ transition: all 0.3s ease;
28
+ }
29
+ .bounce {
30
+ animation: bounce 0.5s ease;
31
+ }
32
+ .shake {
33
+ animation: shake 0.5s ease;
34
+ }
35
+ .confused {
36
+ animation: confused 0.8s ease;
37
+ }
38
+ .speech-bubble {
39
+ position: relative;
40
+ background: #fff;
41
+ border-radius: 1rem;
42
+ padding: 1rem;
43
+ filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
44
+ }
45
+ .speech-bubble:after {
46
+ content: '';
47
+ position: absolute;
48
+ bottom: 0;
49
+ left: 50%;
50
+ width: 0;
51
+ height: 0;
52
+ border: 10px solid transparent;
53
+ border-top-color: #fff;
54
+ border-bottom: 0;
55
+ margin-left: -10px;
56
+ margin-bottom: -10px;
57
+ }
58
+ </style>
59
+ </head>
60
+ <body class="bg-gradient-to-br from-purple-100 to-blue-100 min-h-screen flex flex-col items-center justify-center p-4">
61
+ <div class="max-w-md w-full bg-white rounded-2xl shadow-xl overflow-hidden">
62
+ <div class="p-6">
63
+ <h1 class="text-3xl font-bold text-center text-purple-800 mb-2">Exclamation Generator</h1>
64
+ <p class="text-gray-600 text-center mb-6">Click the buttons to hear reactions!</p>
65
+
66
+ <div class="flex flex-col items-center mb-8">
67
+ <!-- Character -->
68
+ <div class="character relative mb-4" id="character">
69
+ <div class="w-32 h-32 bg-yellow-300 rounded-full relative">
70
+ <!-- Eyes -->
71
+ <div class="absolute top-8 left-6 w-6 h-6 bg-white rounded-full flex justify-center items-center">
72
+ <div class="w-3 h-3 bg-black rounded-full"></div>
73
+ </div>
74
+ <div class="absolute top-8 right-6 w-6 h-6 bg-white rounded-full flex justify-center items-center">
75
+ <div class="w-3 h-3 bg-black rounded-full"></div>
76
+ </div>
77
+ <!-- Mouth -->
78
+ <div class="absolute bottom-8 left-1/2 transform -translate-x-1/2 w-8 h-2 bg-black rounded-full"></div>
79
+ </div>
80
+ </div>
81
+
82
+ <!-- Speech bubble -->
83
+ <div class="speech-bubble mb-4 hidden" id="speechBubble">
84
+ <p class="text-lg font-medium" id="exclamationText"></p>
85
+ </div>
86
+ </div>
87
+
88
+ <!-- Buttons -->
89
+ <div class="grid grid-cols-3 gap-3">
90
+ <button onclick="triggerReaction('Ouch!', 'shake', 'bg-red-500')" class="bg-red-500 hover:bg-red-600 text-white font-bold py-3 px-4 rounded-lg transition-colors flex items-center justify-center">
91
+ <i class="fas fa-bolt mr-2"></i> Pain
92
+ </button>
93
+ <button onclick="triggerReaction('Iggit!', 'bounce', 'bg-green-500')" class="bg-green-500 hover:bg-green-600 text-white font-bold py-3 px-4 rounded-lg transition-colors flex items-center justify-center">
94
+ <i class="fas fa-star mr-2"></i> Surprise
95
+ </button>
96
+ <button onclick="triggerReaction('Äh?', 'confused', 'bg-blue-500')" class="bg-blue-500 hover:bg-blue-600 text-white font-bold py-3 px-4 rounded-lg transition-colors flex items-center justify-center">
97
+ <i class="fas fa-question mr-2"></i> Confusion
98
+ </button>
99
+ </div>
100
+
101
+ <!-- Custom input -->
102
+ <div class="mt-6">
103
+ <label class="block text-gray-700 mb-2">Make your own exclamation:</label>
104
+ <div class="flex">
105
+ <input type="text" id="customExclamation" class="flex-1 border border-gray-300 rounded-l-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-purple-500">
106
+ <button onclick="triggerCustom()" class="bg-purple-600 hover:bg-purple-700 text-white font-bold px-4 py-2 rounded-r-lg transition-colors">
107
+ Go!
108
+ </button>
109
+ </div>
110
+ </div>
111
+ </div>
112
+ </div>
113
+
114
+ <script>
115
+ function triggerReaction(text, animation, colorClass) {
116
+ const character = document.getElementById('character');
117
+ const speechBubble = document.getElementById('speechBubble');
118
+ const exclamationText = document.getElementById('exclamationText');
119
+
120
+ // Reset classes
121
+ character.className = 'character relative mb-4';
122
+ speechBubble.className = 'speech-bubble mb-4';
123
+
124
+ // Add new classes
125
+ character.classList.add(animation);
126
+ speechBubble.classList.remove('hidden');
127
+ speechBubble.classList.add(colorClass);
128
+ exclamationText.textContent = text;
129
+
130
+ // Reset after animation
131
+ setTimeout(() => {
132
+ character.classList.remove(animation);
133
+ }, 1000);
134
+ }
135
+
136
+ function triggerCustom() {
137
+ const input = document.getElementById('customExclamation');
138
+ if (input.value.trim() !== '') {
139
+ triggerReaction(input.value, 'bounce', 'bg-purple-500');
140
+ input.value = '';
141
+ }
142
+ }
143
+
144
+ // Easter egg - click on character
145
+ document.getElementById('character').addEventListener('click', function() {
146
+ const reactions = [
147
+ {text: "Hey!", animation: "bounce", color: "bg-pink-500"},
148
+ {text: "Stop that!", animation: "shake", color: "bg-red-500"},
149
+ {text: "Haha!", animation: "bounce", color: "bg-yellow-500"},
150
+ {text: "Äh?", animation: "confused", color: "bg-blue-500"}
151
+ ];
152
+ const random = Math.floor(Math.random() * reactions.length);
153
+ triggerReaction(reactions[random].text, reactions[random].animation, reactions[random].color);
154
+ });
155
+ </script>
156
+ <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=AhBoh/cazzata" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
157
+ </html>
prompts.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ Ouch! Iggit! Äh?