flausch commited on
Commit
221dc88
·
verified ·
1 Parent(s): a39f388

überdenke die komplette page nocheinmal und versuche einen anderen ansatz - Initial Deployment

Browse files
Files changed (2) hide show
  1. README.md +6 -4
  2. index.html +320 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Tossi
3
- emoji: 🏢
4
- colorFrom: green
5
  colorTo: yellow
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: tossi
3
+ emoji: 🐳
4
+ colorFrom: pink
5
  colorTo: yellow
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,320 @@
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="de">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Tossi's Nuttenhürden Welt</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
+ <link rel="preconnect" href="https://fonts.googleapis.com">
10
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
11
+ <link href="https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=MedievalSharp&display=swap" rel="stylesheet">
12
+ <style>
13
+ @keyframes flicker {
14
+ 0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
15
+ opacity: 1;
16
+ }
17
+ 20%, 22%, 24%, 55% {
18
+ opacity: 0.7;
19
+ }
20
+ }
21
+ @keyframes float {
22
+ 0%, 100% { transform: translateY(0) rotate(-2deg); }
23
+ 50% { transform: translateY(-10px) rotate(2deg); }
24
+ }
25
+ .tossi-animation {
26
+ animation: tossiDance 2s infinite;
27
+ }
28
+ .egg-spin {
29
+ transition: transform 0.5s;
30
+ }
31
+ .egg-spin:hover {
32
+ transform: rotate(360deg);
33
+ }
34
+ .chocolate-bite {
35
+ transition: all 0.3s;
36
+ }
37
+ .chocolate-bite:active {
38
+ transform: scale(0.9);
39
+ }
40
+ .wood-chip {
41
+ position: absolute;
42
+ width: 10px;
43
+ height: 10px;
44
+ background-color: #8B4513;
45
+ opacity: 0;
46
+ transition: all 1s;
47
+ }
48
+ </style>
49
+ </head>
50
+ <body class="bg-gradient-to-b from-gray-900 to-gray-800 min-h-screen font-sans bg-[url('https://i.imgur.com/JQ1ZQ9j.png')] bg-blend-overlay">
51
+ <header class="bg-gradient-to-b from-black to-gray-900 text-gray-100 p-6 shadow-xl border-b border-gray-700 backdrop-blur-lg">
52
+ <div class="container mx-auto flex flex-col md:flex-row justify-between items-center">
53
+ <div class="flex items-center space-x-4">
54
+ <div class="w-12 h-12 bg-red-900 rounded-full flex items-center justify-center shadow-lg">
55
+ <i class="fas fa-skull text-2xl text-yellow-400"></i>
56
+ </div>
57
+ <h1 class="text-4xl md:text-5xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-red-600 to-yellow-500 font-serif tracking-wider">
58
+ Tossi's Katakomben
59
+ </h1>
60
+ </div>
61
+ <div class="flex space-x-4 mt-4 md:mt-0">
62
+ <button id="voiceBtn" class="bg-gradient-to-br from-gray-800 to-gray-900 hover:from-gray-700 hover:to-gray-800 px-6 py-3 rounded-lg flex items-center border border-gray-700 shadow-lg transition-all duration-300 hover:shadow-red-900/30">
63
+ <i class="fas fa-skull mr-3 text-lg text-red-500"></i> Stimmen der Toten
64
+ </button>
65
+ <button id="huerdenBtn" class="bg-gradient-to-br from-red-900 to-red-800 hover:from-red-800 hover:to-red-700 px-6 py-3 rounded-lg flex items-center border border-yellow-600/50 shadow-lg transition-all duration-300 hover:shadow-yellow-600/30">
66
+ <i class="fas fa-bone mr-3 text-lg text-yellow-400"></i> Hürden sie mal!
67
+ </button>
68
+ </div>
69
+ </div>
70
+ </header>
71
+
72
+ <main class="container mx-auto p-6 max-w-7xl">
73
+ <!-- Tossi's Portrait -->
74
+ <div class="flex justify-center mb-12">
75
+ <div class="relative group">
76
+ <div class="absolute inset-0 bg-gradient-to-br from-red-900/30 to-yellow-600/20 rounded-3xl blur-lg group-hover:blur-xl transition-all duration-500 -z-10"></div>
77
+ <div class="relative overflow-hidden rounded-3xl border-2 border-gray-700/50 shadow-2xl">
78
+ <img src="https://i.imgur.com/JQ1ZQ9j.png" alt="Tossi"
79
+ class="w-full max-w-2xl object-cover grayscale hover:grayscale-0 transition-all duration-700 transform group-hover:scale-105">
80
+ <div class="absolute inset-0 bg-gradient-to-t from-black/80 to-transparent"></div>
81
+ <div class="absolute bottom-0 left-0 right-0 p-6 text-center">
82
+ <h2 class="text-3xl font-bold text-yellow-400 mb-2">Der Schädelkönig</h2>
83
+ <p class="text-gray-300 font-medium">Herrscher der Katakomben</p>
84
+ </div>
85
+ <div class="absolute top-6 right-6 bg-gradient-to-br from-red-900 to-yellow-600 p-3 rounded-full shadow-lg">
86
+ <i class="fas fa-crown text-2xl text-white"></i>
87
+ </div>
88
+ </div>
89
+ </div>
90
+ </div>
91
+
92
+ <!-- Activities Grid -->
93
+ <div class="grid grid-cols-1 lg:grid-cols-3 gap-8 mb-12">
94
+ <!-- Schädelsuppe -->
95
+ <div class="bg-gradient-to-br from-gray-900/80 to-black/80 p-8 rounded-xl shadow-2xl hover:shadow-red-900/30 transition-all duration-500 border border-gray-800/50 hover:border-red-900/50 backdrop-blur-lg group">
96
+ <div class="flex justify-between items-center mb-6">
97
+ <h2 class="text-2xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-yellow-400 to-red-500">
98
+ <i class="fas fa-skull mr-3 text-red-500"></i> Schädelsuppe
99
+ </h2>
100
+ <button id="eatEgg" class="bg-gradient-to-br from-gray-800 to-gray-900 hover:from-gray-700 hover:to-gray-800 text-yellow-400 px-4 py-2 rounded-lg text-sm border border-gray-700 shadow-md hover:shadow-red-500/20 transition-all">
101
+ Jetzt schlürfen
102
+ </button>
103
+ </div>
104
+ <div class="flex justify-center relative mb-6">
105
+ <div class="absolute inset-0 bg-red-900/10 rounded-xl blur-md group-hover:blur-lg transition-all duration-500"></div>
106
+ <img id="eggImage" src="https://i.imgur.com/JQ1ZQ9j.png"
107
+ alt="Schädelsuppe" class="egg-spin w-40 h-40 object-contain grayscale group-hover:grayscale-0 transition-all duration-700 transform group-hover:scale-110">
108
+ </div>
109
+ <p id="eggCounter" class="text-center text-xl font-medium text-transparent bg-clip-text bg-gradient-to-r from-yellow-400 to-red-500">
110
+ 0 Schädel geleert
111
+ </p>
112
+ </div>
113
+
114
+ <!-- Holz schnitzen -->
115
+ <div class="bg-white p-6 rounded-xl shadow-lg hover:shadow-xl transition-shadow">
116
+ <div class="flex justify-between items-center mb-4">
117
+ <h2 class="text-xl font-bold text-amber-900">
118
+ <i class="fas fa-tree mr-2"></i> Holz schnitzen
119
+ </h2>
120
+ <button id="carveWood" class="bg-amber-500 hover:bg-amber-600 text-white px-3 py-1 rounded-full text-sm">
121
+ Schnitzen
122
+ </button>
123
+ </div>
124
+ <div class="relative h-32 flex justify-center items-center">
125
+ <img id="woodImage" src="https://placeholder.pics/svg/100x100/DEDEDE/555555/HOLZ"
126
+ alt="Holz" class="w-24 h-24 object-contain">
127
+ <div id="woodChips"></div>
128
+ </div>
129
+ <p id="woodCounter" class="text-center mt-2 text-amber-800 font-semibold">0 Mal geschnitzt</p>
130
+ </div>
131
+
132
+ <!-- Schokolade mampfen -->
133
+ <div class="bg-white p-6 rounded-xl shadow-lg hover:shadow-xl transition-shadow">
134
+ <div class="flex justify-between items-center mb-4">
135
+ <h2 class="text-xl font-bold text-amber-900">
136
+ <i class="fas fa-candy-cane mr-2"></i> Schoki mampfen
137
+ </h2>
138
+ <button id="eatChocolate" class="bg-amber-500 hover:bg-amber-600 text-white px-3 py-1 rounded-full text-sm">
139
+ Mampfen
140
+ </button>
141
+ </div>
142
+ <div class="flex justify-center">
143
+ <img id="chocolateImage" src="https://placeholder.pics/svg/150x150/DEDEDE/555555/SCHOKI"
144
+ alt="Schokolade" class="chocolate-bite w-32 h-32 object-contain">
145
+ </div>
146
+ <p id="chocolateCounter" class="text-center mt-2 text-amber-800 font-semibold">0 Schokis gemampft</p>
147
+ </div>
148
+ </div>
149
+
150
+ <!-- Tossi's Zitate -->
151
+ <div class="bg-black/80 text-white p-6 rounded-lg shadow-lg border border-gray-800 backdrop-blur-sm">
152
+ <h2 class="text-2xl font-bold mb-4 text-center text-red-700 font-serif tracking-wider">
153
+ <i class="fas fa-skull mr-2 text-gray-400"></i> Tossi's Totenflüstern
154
+ </h2>
155
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
156
+ <div class="bg-gray-800 p-4 rounded-lg border border-yellow-600">
157
+ <p class="italic text-red-300">"Hürden sie mal - ins Grab!"</p>
158
+ <p class="text-right text-yellow-400 mt-2">- Tossi, im Totenreich</p>
159
+ </div>
160
+ <div class="bg-gray-800 p-4 rounded-lg border border-yellow-600">
161
+ <p class="italic text-red-300">"Ihr könnt mich mal am verwesten Tösschen lecken!"</p>
162
+ <p class="text-right text-yellow-400 mt-2">- Tossi, aus dem Jenseits</p>
163
+ </div>
164
+ <div class="bg-gray-800 p-4 rounded-lg md:col-span-2 border border-yellow-600">
165
+ <p class="italic text-red-300">"Erstmal Schädelsuppe schlürfen, Knochen schnitzen und Blut mampfen - dann folgt ihr mir ins Reich der Toten!"</p>
166
+ <p class="text-right text-yellow-400 mt-2">- Tossi's Todesmotto</p>
167
+ </div>
168
+ </div>
169
+ </div>
170
+ </main>
171
+
172
+ <footer class="bg-black/90 text-gray-500 p-4 mt-8 border-t border-gray-800 text-sm">
173
+ <div class="container mx-auto text-center">
174
+ <p>© 2023 Tossi's Schädelhürden GmbH - Alle Rechte verwest, besonders das Recht auf Totenschädel</p>
175
+ <p class="text-sm mt-2">Made with <i class="fas fa-heart text-red-600"></i> and <i class="fas fa-skull text-yellow-400"></i> by Tossi's Toten Hürden</p>
176
+ </div>
177
+ </footer>
178
+
179
+ <!-- Audio Elements -->
180
+ <audio id="voiceAudio" src="https://www.soundjay.com/mechanical/sounds/cuckoo-clock-01.mp3"></audio>
181
+ <audio id="huerdenAudio" src="https://www.soundjay.com/mechanical/sounds/cuckoo-clock-02.mp3"></audio>
182
+ <audio id="eatAudio" src="https://www.soundjay.com/human/sounds/bite-01.mp3"></audio>
183
+ <audio id="carveAudio" src="https://www.soundjay.com/mechanical/sounds/axe-chop-01.mp3"></audio>
184
+
185
+ <script>
186
+ // Counters
187
+ let eggCount = 0;
188
+ let woodCount = 0;
189
+ let chocolateCount = 0;
190
+
191
+ // DOM Elements
192
+ const eggBtn = document.getElementById('eatEgg');
193
+ const woodBtn = document.getElementById('carveWood');
194
+ const chocolateBtn = document.getElementById('eatChocolate');
195
+ const voiceBtn = document.getElementById('voiceBtn');
196
+ const huerdenBtn = document.getElementById('huerdenBtn');
197
+ const eggImage = document.getElementById('eggImage');
198
+ const woodImage = document.getElementById('woodImage');
199
+ const chocolateImage = document.getElementById('chocolateImage');
200
+ const woodChips = document.getElementById('woodChips');
201
+
202
+ // Audio Elements
203
+ const voiceAudio = document.getElementById('voiceAudio');
204
+ const huerdenAudio = document.getElementById('huerdenAudio');
205
+ const eatAudio = document.getElementById('eatAudio');
206
+ const carveAudio = document.getElementById('carveAudio');
207
+
208
+ // Event Listeners
209
+ eggBtn.addEventListener('click', eatEgg);
210
+ woodBtn.addEventListener('click', carveWood);
211
+ chocolateBtn.addEventListener('click', eatChocolate);
212
+ voiceBtn.addEventListener('click', playVoice);
213
+ huerdenBtn.addEventListener('click', playHuerden);
214
+
215
+ // Functions
216
+ function eatEgg() {
217
+ eggCount++;
218
+ document.getElementById('eggCounter').textContent = `${eggCount} Eierlasat gegessen`;
219
+
220
+ // Animation
221
+ eggImage.classList.add('egg-spin');
222
+ setTimeout(() => eggImage.classList.remove('egg-spin'), 500);
223
+
224
+ // Sound
225
+ eatAudio.currentTime = 0;
226
+ eatAudio.play();
227
+
228
+ // Change egg image after 3 clicks
229
+ if (eggCount === 3) {
230
+ eggImage.src = "https://placeholder.pics/svg/150x150/DEDEDE/555555/LEER";
231
+ setTimeout(() => {
232
+ eggImage.src = "https://placeholder.pics/svg/150x150/DEDEDE/555555/EIERLASAT";
233
+ }, 1000);
234
+ }
235
+ }
236
+
237
+ function carveWood() {
238
+ woodCount++;
239
+ document.getElementById('woodCounter').textContent = `${woodCount} Mal geschnitzt`;
240
+
241
+ // Sound
242
+ carveAudio.currentTime = 0;
243
+ carveAudio.play();
244
+
245
+ // Create wood chips
246
+ for (let i = 0; i < 5; i++) {
247
+ const chip = document.createElement('div');
248
+ chip.classList.add('wood-chip');
249
+
250
+ // Random position around the wood
251
+ const angle = Math.random() * Math.PI * 2;
252
+ const distance = 30 + Math.random() * 30;
253
+ const x = Math.cos(angle) * distance;
254
+ const y = Math.sin(angle) * distance;
255
+
256
+ chip.style.left = `calc(50% + ${x}px)`;
257
+ chip.style.top = `calc(50% + ${y}px)`;
258
+ chip.style.opacity = '1';
259
+ chip.style.transform = `rotate(${Math.random() * 360}deg)`;
260
+
261
+ woodChips.appendChild(chip);
262
+
263
+ // Remove chip after animation
264
+ setTimeout(() => {
265
+ chip.style.opacity = '0';
266
+ chip.style.transform += ' translateY(-20px)';
267
+ setTimeout(() => chip.remove(), 1000);
268
+ }, 100);
269
+ }
270
+ }
271
+
272
+ function eatChocolate() {
273
+ chocolateCount++;
274
+ document.getElementById('chocolateCounter').textContent = `${chocolateCount} Schokis gemampft`;
275
+
276
+ // Sound
277
+ eatAudio.currentTime = 0;
278
+ eatAudio.play();
279
+
280
+ // Bite effect
281
+ const biteSize = 10 + Math.random() * 20;
282
+ chocolateImage.style.clipPath = `polygon(0 0, 100% 0, 100% 100%, ${100 - biteSize}% 100%, ${100 - biteSize}% ${biteSize}%, 0 ${biteSize}%)`;
283
+
284
+ // Reset after delay
285
+ setTimeout(() => {
286
+ chocolateImage.style.clipPath = '';
287
+ }, 300);
288
+ }
289
+
290
+ function playVoice() {
291
+ voiceAudio.currentTime = 0;
292
+ voiceAudio.play();
293
+
294
+ // Show notification
295
+ showNotification("Stimmen im Kopf: 'Tossi, du bist der Beste!'");
296
+ }
297
+
298
+ function playHuerden() {
299
+ huerdenAudio.currentTime = 0;
300
+ huerdenAudio.play();
301
+
302
+ // Show notification
303
+ showNotification("Tossi sagt: 'Hürden sie mal! Ihr könnt mich mal am Tösschen lecken!'");
304
+ }
305
+
306
+ function showNotification(message) {
307
+ const notification = document.createElement('div');
308
+ notification.className = 'fixed bottom-4 right-4 bg-amber-700 text-white px-4 py-2 rounded-lg shadow-lg animate-bounce';
309
+ notification.textContent = message;
310
+ document.body.appendChild(notification);
311
+
312
+ setTimeout(() => {
313
+ notification.classList.remove('animate-bounce');
314
+ notification.classList.add('opacity-0', 'transition-opacity', 'duration-500');
315
+ setTimeout(() => notification.remove(), 500);
316
+ }, 3000);
317
+ }
318
+ </script>
319
+ <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=flausch/tossi" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
320
+ </html>