The22Mindset commited on
Commit
116a72b
·
verified ·
1 Parent(s): 88629c0

Add 2 files

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +262 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Nfc
3
- emoji: 📚
4
- colorFrom: green
5
- colorTo: indigo
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: nfc
3
+ emoji: 🐳
4
+ colorFrom: purple
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,262 @@
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>TagCheck - NFC Tools</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
+ .gradient-bg {
11
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
12
+ }
13
+ .tag-shadow {
14
+ box-shadow: 0 10px 25px -5px rgba(101, 90, 223, 0.4);
15
+ }
16
+ .pulse {
17
+ animation: pulse 2s infinite;
18
+ }
19
+ @keyframes pulse {
20
+ 0% {
21
+ transform: scale(0.95);
22
+ box-shadow: 0 0 0 0 rgba(101, 90, 223, 0.7);
23
+ }
24
+ 70% {
25
+ transform: scale(1);
26
+ box-shadow: 0 0 0 10px rgba(101, 90, 223, 0);
27
+ }
28
+ 100% {
29
+ transform: scale(0.95);
30
+ box-shadow: 0 0 0 0 rgba(101, 90, 223, 0);
31
+ }
32
+ }
33
+ .slide-up {
34
+ animation: slideUp 0.5s ease-out;
35
+ }
36
+ @keyframes slideUp {
37
+ from {
38
+ transform: translateY(20px);
39
+ opacity: 0;
40
+ }
41
+ to {
42
+ transform: translateY(0);
43
+ opacity: 1;
44
+ }
45
+ }
46
+ </style>
47
+ </head>
48
+ <body class="bg-gray-100 font-sans">
49
+ <div class="min-h-screen flex flex-col">
50
+ <!-- Header -->
51
+ <header class="gradient-bg text-white p-4 shadow-md">
52
+ <div class="container mx-auto flex justify-between items-center">
53
+ <div class="flex items-center space-x-2">
54
+ <i class="fas fa-tag text-2xl"></i>
55
+ <h1 class="text-xl font-bold">TagCheck</h1>
56
+ </div>
57
+ <div class="flex space-x-4">
58
+ <button class="p-2 rounded-full hover:bg-white/10 transition">
59
+ <i class="fas fa-cog"></i>
60
+ </button>
61
+ <button class="p-2 rounded-full hover:bg-white/10 transition">
62
+ <i class="fas fa-question-circle"></i>
63
+ </button>
64
+ </div>
65
+ </div>
66
+ </header>
67
+
68
+ <!-- Main Content -->
69
+ <main class="flex-1 container mx-auto p-4">
70
+ <!-- Scan Section -->
71
+ <div class="bg-white rounded-xl p-6 mb-6 shadow-md slide-up">
72
+ <div class="text-center">
73
+ <div class="mx-auto w-24 h-24 gradient-bg rounded-full flex items-center justify-center mb-4 pulse tag-shadow">
74
+ <i class="fas fa-rss text-white text-4xl"></i>
75
+ </div>
76
+ <h2 class="text-2xl font-bold text-gray-800 mb-2">Scan NFC Tag</h2>
77
+ <p class="text-gray-600 mb-6">Hold your device near an NFC tag to read its contents</p>
78
+ <button id="scanBtn" class="gradient-bg text-white py-3 px-8 rounded-full font-medium hover:opacity-90 transition shadow-lg">
79
+ Start Scanning
80
+ </button>
81
+ </div>
82
+ </div>
83
+
84
+ <!-- Tag Info (Hidden by default) -->
85
+ <div id="tagInfo" class="bg-white rounded-xl p-6 mb-6 shadow-md hidden slide-up">
86
+ <div class="flex justify-between items-center mb-4">
87
+ <h3 class="text-lg font-bold text-gray-800">Tag Information</h3>
88
+ <button id="closeInfo" class="text-gray-500 hover:text-gray-700">
89
+ <i class="fas fa-times"></i>
90
+ </button>
91
+ </div>
92
+ <div class="space-y-4">
93
+ <div class="flex items-center p-3 bg-gray-50 rounded-lg">
94
+ <div class="bg-blue-100 p-2 rounded-full mr-3">
95
+ <i class="fas fa-id-card text-blue-600"></i>
96
+ </div>
97
+ <div>
98
+ <p class="text-sm text-gray-500">Tag Type</p>
99
+ <p class="font-medium" id="tagType">NTAG213</p>
100
+ </div>
101
+ </div>
102
+ <div class="flex items-center p-3 bg-gray-50 rounded-lg">
103
+ <div class="bg-purple-100 p-2 rounded-full mr-3">
104
+ <i class="fas fa-memory text-purple-600"></i>
105
+ </div>
106
+ <div>
107
+ <p class="text-sm text-gray-500">Memory Size</p>
108
+ <p class="font-medium" id="tagMemory">144 bytes</p>
109
+ </div>
110
+ </div>
111
+ <div class="flex items-center p-3 bg-gray-50 rounded-lg">
112
+ <div class="bg-green-100 p-2 rounded-full mr-3">
113
+ <i class="fas fa-unlock text-green-600"></i>
114
+ </div>
115
+ <div>
116
+ <p class="text-sm text-gray-500">Read Status</p>
117
+ <p class="font-medium" id="tagStatus">Successfully read</p>
118
+ </div>
119
+ </div>
120
+ </div>
121
+ </div>
122
+
123
+ <!-- Tag Content (Hidden by default) -->
124
+ <div id="tagContent" class="bg-white rounded-xl p-6 shadow-md hidden slide-up">
125
+ <div class="flex justify-between items-center mb-4">
126
+ <h3 class="text-lg font-bold text-gray-800">Tag Contents</h3>
127
+ <div class="flex space-x-2">
128
+ <button class="p-2 text-blue-500 hover:bg-blue-50 rounded-full">
129
+ <i class="fas fa-edit"></i>
130
+ </button>
131
+ <button class="p-2 text-green-500 hover:bg-green-50 rounded-full">
132
+ <i class="fas fa-save"></i>
133
+ </button>
134
+ </div>
135
+ </div>
136
+ <div class="bg-gray-50 rounded-lg p-4 mb-4">
137
+ <div class="flex items-center mb-2">
138
+ <i class="fas fa-link text-gray-500 mr-2"></i>
139
+ <span class="text-sm font-medium text-gray-700">URL Record</span>
140
+ </div>
141
+ <input type="text" class="w-full p-2 border border-gray-300 rounded focus:outline-none focus:ring-2 focus:ring-blue-500" value="https://example.com" id="tagUrl">
142
+ </div>
143
+ <div class="bg-gray-50 rounded-lg p-4">
144
+ <div class="flex items-center mb-2">
145
+ <i class="fas fa-font text-gray-500 mr-2"></i>
146
+ <span class="text-sm font-medium text-gray-700">Text Record</span>
147
+ </div>
148
+ <textarea class="w-full p-2 border border-gray-300 rounded focus:outline-none focus:ring-2 focus:ring-blue-500" rows="3" id="tagText">Sample NFC tag content</textarea>
149
+ </div>
150
+ </div>
151
+
152
+ <!-- Features Grid -->
153
+ <div class="grid grid-cols-2 gap-4 mt-6">
154
+ <div class="bg-white rounded-xl p-4 shadow-md text-center slide-up" style="animation-delay: 0.1s;">
155
+ <div class="bg-blue-100 w-12 h-12 rounded-full flex items-center justify-center mx-auto mb-3">
156
+ <i class="fas fa-pen text-blue-600"></i>
157
+ </div>
158
+ <h4 class="font-bold text-gray-800 mb-1">Write Tag</h4>
159
+ <p class="text-xs text-gray-500">Write data to NFC tags</p>
160
+ </div>
161
+ <div class="bg-white rounded-xl p-4 shadow-md text-center slide-up" style="animation-delay: 0.2s;">
162
+ <div class="bg-purple-100 w-12 h-12 rounded-full flex items-center justify-center mx-auto mb-3">
163
+ <i class="fas fa-tasks text-purple-600"></i>
164
+ </div>
165
+ <h4 class="font-bold text-gray-800 mb-1">Tasks</h4>
166
+ <p class="text-xs text-gray-500">Automate with tasks</p>
167
+ </div>
168
+ <div class="bg-white rounded-xl p-4 shadow-md text-center slide-up" style="animation-delay: 0.3s;">
169
+ <div class="bg-green-100 w-12 h-12 rounded-full flex items-center justify-center mx-auto mb-3">
170
+ <i class="fas fa-history text-green-600"></i>
171
+ </div>
172
+ <h4 class="font-bold text-gray-800 mb-1">History</h4>
173
+ <p class="text-xs text-gray-500">View scan history</p>
174
+ </div>
175
+ <div class="bg-white rounded-xl p-4 shadow-md text-center slide-up" style="animation-delay: 0.4s;">
176
+ <div class="bg-yellow-100 w-12 h-12 rounded-full flex items-center justify-center mx-auto mb-3">
177
+ <i class="fas fa-share-alt text-yellow-600"></i>
178
+ </div>
179
+ <h4 class="font-bold text-gray-800 mb-1">Share</h4>
180
+ <p class="text-xs text-gray-500">Share tag data</p>
181
+ </div>
182
+ </div>
183
+ </main>
184
+
185
+ <!-- Bottom Navigation -->
186
+ <nav class="bg-white border-t border-gray-200 p-2">
187
+ <div class="container mx-auto flex justify-around">
188
+ <button class="p-2 text-blue-600 rounded-full">
189
+ <i class="fas fa-home text-xl"></i>
190
+ </button>
191
+ <button class="p-2 text-gray-500 hover:text-blue-600 rounded-full">
192
+ <i class="fas fa-wifi text-xl"></i>
193
+ </button>
194
+ <button class="p-2 text-gray-500 hover:text-blue-600 rounded-full">
195
+ <i class="fas fa-bell text-xl"></i>
196
+ </button>
197
+ <button class="p-2 text-gray-500 hover:text-blue-600 rounded-full">
198
+ <i class="fas fa-user text-xl"></i>
199
+ </button>
200
+ </div>
201
+ </nav>
202
+ </div>
203
+
204
+ <script>
205
+ // Simulate NFC scanning functionality
206
+ document.getElementById('scanBtn').addEventListener('click', function() {
207
+ // Show loading state
208
+ this.innerHTML = '<i class="fas fa-spinner fa-spin mr-2"></i> Scanning...';
209
+ this.classList.remove('gradient-bg');
210
+ this.classList.add('bg-gray-400');
211
+ this.disabled = true;
212
+
213
+ // Simulate scan delay
214
+ setTimeout(() => {
215
+ // Show tag info and content
216
+ document.getElementById('tagInfo').classList.remove('hidden');
217
+ document.getElementById('tagContent').classList.remove('hidden');
218
+
219
+ // Reset scan button
220
+ this.innerHTML = 'Start Scanning';
221
+ this.classList.add('gradient-bg');
222
+ this.classList.remove('bg-gray-400');
223
+ this.disabled = false;
224
+
225
+ // Randomize tag info for demo
226
+ const tagTypes = ['NTAG213', 'NTAG215', 'MIFARE Classic 1K', 'MIFARE Ultralight'];
227
+ const tagMemories = ['144 bytes', '504 bytes', '1024 bytes', '64 bytes'];
228
+ const tagStatuses = ['Successfully read', 'Partially read', 'Fully read'];
229
+
230
+ document.getElementById('tagType').textContent = tagTypes[Math.floor(Math.random() * tagTypes.length)];
231
+ document.getElementById('tagMemory').textContent = tagMemories[Math.floor(Math.random() * tagMemories.length)];
232
+ document.getElementById('tagStatus').textContent = tagStatuses[Math.floor(Math.random() * tagStatuses.length)];
233
+
234
+ // Randomize URL for demo
235
+ const domains = ['google.com', 'github.com', 'example.org', 'nfc-tools.com'];
236
+ document.getElementById('tagUrl').value = `https://${domains[Math.floor(Math.random() * domains.length)]}`;
237
+
238
+ // Randomize text for demo
239
+ const texts = [
240
+ 'This is an NFC tag for demonstration purposes.',
241
+ 'Scan me to visit our website!',
242
+ 'NFC technology makes life easier.',
243
+ 'Contactless communication at its best.'
244
+ ];
245
+ document.getElementById('tagText').value = texts[Math.floor(Math.random() * texts.length)];
246
+
247
+ }, 2000);
248
+ });
249
+
250
+ // Close tag info
251
+ document.getElementById('closeInfo').addEventListener('click', function() {
252
+ document.getElementById('tagInfo').classList.add('hidden');
253
+ });
254
+
255
+ // Animation for feature cards
256
+ const featureCards = document.querySelectorAll('.slide-up');
257
+ featureCards.forEach((card, index) => {
258
+ card.style.animationDelay = `${index * 0.1}s`;
259
+ });
260
+ </script>
261
+ <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=The22Mindset/nfc" style="color: #fff;text-decoration: underline;" target="_blank" >🧬 Remix</a></p></body>
262
+ </html>