PHhTTPS commited on
Commit
94e6960
Β·
verified Β·
1 Parent(s): 1d4b6bd

<!DOCTYPE html>

Browse files

<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Smashy Counter Smasher</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<link rel="stylesheet" href="style.css">
<script>
tailwind.config = {
theme: {
extend: {
colors: {
primary: {
500: '#3b82f6', // blue-500 as fallback
},
secondary: {
500: '#10b981', // emerald-500 as fallback
}
}
}
}
}
</script>
</head>
<body class="bg-gray-900 text-white h-screen flex flex-col">
<div class="container mx-auto flex-grow flex flex-col">
<header class="py-4 text-center">
<h1 class="text-4xl font-bold">Smashy Counter</h1>
<div id="counter" class="text-6xl font-bold my-8">0</div>
</header>

<main class="flex-grow flex items-center justify-center">
<button id="smashButton" class="w-4/5 h-2/5 bg-primary-500 hover:bg-primary-600 active:bg-primary-700 rounded-2xl flex flex-col items-center justify-center transition-all duration-200 transform hover:scale-105 active:scale-95 shadow-2xl">
<i data-feather="arrow-down" class="w-32 h-32"></i>
<span class="text-5xl font-bold mt-4">SMASH (-1)</span>
</button>
</main>
</div>

<script src="script.js"></script>
<script>
feather.replace();
</script>
</body>
</html> just the greY OLD designed button

Files changed (5) hide show
  1. README.md +8 -5
  2. components/footer.js +24 -0
  3. index.html +48 -19
  4. script.js +16 -0
  5. style.css +1 -28
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Smashy Counter Smasher
3
- emoji: πŸŒ–
4
- colorFrom: blue
5
- colorTo: red
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: Smashy Counter Smasher 🎯
3
+ colorFrom: gray
4
+ colorTo: blue
5
+ emoji: 🐳
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite-v3
10
  ---
11
 
12
+ # Welcome to your new DeepSite project!
13
+ This project was created with [DeepSite](https://huggingface.co/deepsite).
components/footer.js ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomFooter extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ footer {
7
+ background: #111827;
8
+ color: #9ca3af;
9
+ padding: 1.5rem;
10
+ text-align: center;
11
+ border-top: 1px solid #374151;
12
+ }
13
+ .footer-text {
14
+ font-size: 0.875rem;
15
+ opacity: 0.8;
16
+ }
17
+ </style>
18
+ <footer>
19
+ <p class="footer-text">Smash to your heart's content 🎯</p>
20
+ </footer>
21
+ `;
22
+ }
23
+ }
24
+ customElements.define('custom-footer', CustomFooter);
index.html CHANGED
@@ -1,19 +1,48 @@
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>Smashy Counter Smasher</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
9
+ <link rel="stylesheet" href="style.css">
10
+ <script>
11
+ tailwind.config = {
12
+ theme: {
13
+ extend: {
14
+ colors: {
15
+ primary: {
16
+ 500: '#6b7280', // gray-500 as fallback
17
+ },
18
+ secondary: {
19
+ 500: '#9ca3af', // gray-400 as fallback
20
+ }
21
+ }
22
+ }
23
+ }
24
+ }
25
+ </script>
26
+ </head>
27
+ <body class="bg-gray-900 text-white h-screen flex flex-col">
28
+ <div class="container mx-auto flex-grow flex flex-col">
29
+ <header class="py-4 text-center">
30
+ <h1 class="text-4xl font-bold">Smashy Counter</h1>
31
+ <div id="counter" class="text-6xl font-bold my-8">0</div>
32
+ </header>
33
+
34
+ <main class="flex-grow flex items-center justify-center">
35
+ <button id="smashButton" class="w-4/5 h-2/5 bg-gray-700 hover:bg-gray-600 active:bg-gray-800 rounded-2xl flex flex-col items-center justify-center transition-all duration-200 transform hover:scale-105 active:scale-95 shadow-2xl border-2 border-gray-600">
36
+ <i data-feather="arrow-down" class="w-32 h-32 text-gray-400"></i>
37
+ <span class="text-5xl font-bold mt-4 text-gray-300">SMASH (-1)</span>
38
+ </button>
39
+ </main>
40
+ </div>
41
+
42
+ <script src="script.js"></script>
43
+ <script>
44
+ feather.replace();
45
+ </script>
46
+ <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
47
+ </body>
48
+ </html>
script.js ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ document.addEventListener('DOMContentLoaded', () => {
2
+ const smashButton = document.getElementById('smashButton');
3
+ const counterElement = document.getElementById('counter');
4
+ let count = 0;
5
+
6
+ smashButton.addEventListener('click', () => {
7
+ count--;
8
+ counterElement.textContent = count;
9
+
10
+ // Add animation effect
11
+ counterElement.classList.add('animate-pulse');
12
+ setTimeout(() => {
13
+ counterElement.classList.remove('animate-pulse');
14
+ }, 300);
15
+ });
16
+ });
style.css CHANGED
@@ -1,28 +1 @@
1
- body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
4
- }
5
-
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
9
- }
10
-
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
- }
17
-
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
24
- }
25
-
26
- .card p:last-child {
27
- margin-bottom: 0;
28
- }
 
1
+ /* No additional styles needed - using Tailwind for everything */