ishaqsaviani commited on
Commit
1230357
·
verified ·
1 Parent(s): c88e9c7

Add 2 files

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +123 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: First
3
- emoji: 🌖
4
- colorFrom: purple
5
- colorTo: gray
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: first
3
+ emoji: 🐳
4
+ colorFrom: blue
5
+ colorTo: pink
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,123 @@
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>Animated Button with Ripple Effect</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <style>
9
+ .ripple {
10
+ position: relative;
11
+ overflow: hidden;
12
+ }
13
+
14
+ .ripple-effect {
15
+ position: absolute;
16
+ border-radius: 50%;
17
+ background: rgba(255, 255, 255, 0.7);
18
+ transform: scale(0);
19
+ animation: ripple 600ms linear;
20
+ pointer-events: none;
21
+ }
22
+
23
+ @keyframes ripple {
24
+ to {
25
+ transform: scale(4);
26
+ opacity: 0;
27
+ }
28
+ }
29
+
30
+ .btn-glow:hover {
31
+ box-shadow: 0 0 15px rgba(99, 102, 241, 0.7);
32
+ }
33
+
34
+ .btn-transform:hover {
35
+ transform: translateY(-2px);
36
+ }
37
+ </style>
38
+ </head>
39
+ <body class="min-h-screen bg-gradient-to-br from-indigo-50 to-purple-100 flex items-center justify-center p-4">
40
+ <div class="text-center">
41
+ <h1 class="text-4xl font-bold text-indigo-900 mb-8">Interactive Button Showcase</h1>
42
+
43
+ <div class="space-y-8">
44
+ <!-- Primary Animated Button -->
45
+ <div>
46
+ <h2 class="text-xl font-semibold text-indigo-800 mb-4">Primary Button</h2>
47
+ <button id="primaryBtn" class="ripple btn-glow btn-transform px-8 py-3 bg-indigo-600 text-white font-medium rounded-lg shadow-md hover:bg-indigo-700 transition-all duration-300 ease-in-out">
48
+ Click Me
49
+ </button>
50
+ </div>
51
+
52
+ <!-- Outline Button -->
53
+ <div>
54
+ <h2 class="text-xl font-semibold text-indigo-800 mb-4">Outline Button</h2>
55
+ <button id="outlineBtn" class="ripple px-8 py-3 border-2 border-indigo-600 text-indigo-600 font-medium rounded-lg hover:bg-indigo-50 transition-all duration-200 ease-in-out">
56
+ Hover Effect
57
+ </button>
58
+ </div>
59
+
60
+ <!-- Gradient Button -->
61
+ <div>
62
+ <h2 class="text-xl font-semibold text-indigo-800 mb-4">Gradient Button</h2>
63
+ <button id="gradientBtn" class="ripple px-8 py-3 bg-gradient-to-r from-purple-500 to-indigo-600 text-white font-medium rounded-lg hover:shadow-lg transition-all duration-300 ease-in-out">
64
+ Cool Gradient
65
+ </button>
66
+ </div>
67
+ </div>
68
+ </div>
69
+
70
+ <script>
71
+ // Function to create ripple effect
72
+ function createRipple(event) {
73
+ const button = event.currentTarget;
74
+
75
+ const circle = document.createElement("span");
76
+ const diameter = Math.max(button.clientWidth, button.clientHeight);
77
+ const radius = diameter / 2;
78
+
79
+ circle.style.width = circle.style.height = `${diameter}px`;
80
+ circle.style.left = `${event.clientX - button.getBoundingClientRect().left - radius}px`;
81
+ circle.style.top = `${event.clientY - button.getBoundingClientRect().top - radius}px`;
82
+ circle.classList.add("ripple-effect");
83
+
84
+ const ripple = button.getElementsByClassName("ripple-effect")[0];
85
+ if (ripple) {
86
+ ripple.remove();
87
+ }
88
+
89
+ button.appendChild(circle);
90
+
91
+ // Remove the ripple element after animation completes
92
+ setTimeout(() => {
93
+ circle.remove();
94
+ }, 600);
95
+ }
96
+
97
+ // Add click event listeners to all buttons
98
+ document.querySelectorAll('.ripple').forEach(button => {
99
+ button.addEventListener('click', createRipple);
100
+
101
+ // Add click feedback
102
+ button.addEventListener('mousedown', () => {
103
+ button.classList.add('scale-95');
104
+ });
105
+
106
+ button.addEventListener('mouseup', () => {
107
+ button.classList.remove('scale-95');
108
+ });
109
+
110
+ button.addEventListener('mouseleave', () => {
111
+ button.classList.remove('scale-95');
112
+ });
113
+ });
114
+
115
+ // Add special functionality to primary button
116
+ document.getElementById('primaryBtn').addEventListener('click', () => {
117
+ setTimeout(() => {
118
+ alert('Button clicked! Great job!');
119
+ }, 300);
120
+ });
121
+ </script>
122
+ <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=ishaqsaviani/first" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
123
+ </html>