asifpa commited on
Commit
8da47df
·
verified ·
1 Parent(s): 378a306

Add 2 files

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +210 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Carpuco
3
- emoji:
4
- colorFrom: pink
5
- colorTo: green
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: carpuco
3
+ emoji: 🐳
4
+ colorFrom: yellow
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,210 @@
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>Neighbor Carpool Coordinator</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
+ body {
11
+ background-color: #4ade80;
12
+ }
13
+ .time-input {
14
+ width: 80px;
15
+ text-align: center;
16
+ }
17
+ .day-header {
18
+ transition: all 0.3s ease;
19
+ }
20
+ .day-header:hover {
21
+ transform: translateY(-2px);
22
+ }
23
+ .checkbox-container {
24
+ transition: all 0.3s ease;
25
+ }
26
+ .checkbox-container:hover {
27
+ transform: scale(1.05);
28
+ }
29
+ </style>
30
+ </head>
31
+ <body class="min-h-screen p-4 md:p-8">
32
+ <div class="max-w-4xl mx-auto bg-white rounded-xl shadow-xl overflow-hidden">
33
+ <!-- Header -->
34
+ <div class="bg-green-600 p-6 text-white">
35
+ <div class="flex items-center justify-between">
36
+ <div>
37
+ <h1 class="text-2xl md:text-3xl font-bold">
38
+ <i class="fas fa-car-side mr-3"></i>
39
+ Neighbor Carpool Coordinator
40
+ </h1>
41
+ <p class="mt-2 opacity-90">Coordinate rides with your neighbors for the week</p>
42
+ </div>
43
+ <div class="hidden md:block">
44
+ <i class="fas fa-users fa-3x opacity-80"></i>
45
+ </div>
46
+ </div>
47
+ </div>
48
+
49
+ <!-- Main Content -->
50
+ <div class="p-6">
51
+ <!-- Instructions -->
52
+ <div class="mb-8 p-4 bg-green-50 rounded-lg border border-green-200">
53
+ <h2 class="text-lg font-semibold text-green-800 mb-2">
54
+ <i class="fas fa-info-circle mr-2"></i>How it works
55
+ </h2>
56
+ <p class="text-green-700">
57
+ Enter your departure and return times for each day, then check the boxes for days you need carpooling.
58
+ Share this with your neighbors to coordinate rides!
59
+ </p>
60
+ </div>
61
+
62
+ <!-- Carpool Table -->
63
+ <div class="overflow-x-auto">
64
+ <table class="w-full border-collapse">
65
+ <thead>
66
+ <tr class="bg-green-100">
67
+ <th class="p-3 text-left text-green-800">Day</th>
68
+ <th class="p-3 text-green-800 day-header">Monday</th>
69
+ <th class="p-3 text-green-800 day-header">Tuesday</th>
70
+ <th class="p-3 text-green-800 day-header">Wednesday</th>
71
+ <th class="p-3 text-green-800 day-header">Thursday</th>
72
+ <th class="p-3 text-green-800 day-header">Friday</th>
73
+ </tr>
74
+ </thead>
75
+ <tbody>
76
+ <!-- Leaving Home Row -->
77
+ <tr class="border-b border-green-200 hover:bg-green-50">
78
+ <td class="p-3 font-medium text-green-700">
79
+ <i class="fas fa-home mr-2"></i>Leaving Home
80
+ </td>
81
+ <td class="p-3 text-center">
82
+ <input type="time" class="time-input border border-green-300 rounded p-1">
83
+ </td>
84
+ <td class="p-3 text-center">
85
+ <input type="time" class="time-input border border-green-300 rounded p-1">
86
+ </td>
87
+ <td class="p-3 text-center">
88
+ <input type="time" class="time-input border border-green-300 rounded p-1">
89
+ </td>
90
+ <td class="p-3 text-center">
91
+ <input type="time" class="time-input border border-green-300 rounded p-1">
92
+ </td>
93
+ <td class="p-3 text-center">
94
+ <input type="time" class="time-input border border-green-300 rounded p-1">
95
+ </td>
96
+ </tr>
97
+
98
+ <!-- Heading Home Row -->
99
+ <tr class="border-b border-green-200 hover:bg-green-50">
100
+ <td class="p-3 font-medium text-green-700">
101
+ <i class="fas fa-building mr-2"></i>Heading Home
102
+ </td>
103
+ <td class="p-3 text-center">
104
+ <input type="time" class="time-input border border-green-300 rounded p-1">
105
+ </td>
106
+ <td class="p-3 text-center">
107
+ <input type="time" class="time-input border border-green-300 rounded p-1">
108
+ </td>
109
+ <td class="p-3 text-center">
110
+ <input type="time" class="time-input border border-green-300 rounded p-1">
111
+ </td>
112
+ <td class="p-3 text-center">
113
+ <input type="time" class="time-input border border-green-300 rounded p-1">
114
+ </td>
115
+ <td class="p-3 text-center">
116
+ <input type="time" class="time-input border border-green-300 rounded p-1">
117
+ </td>
118
+ </tr>
119
+
120
+ <!-- Carpool Needed Row -->
121
+ <tr>
122
+ <td class="p-3 font-medium text-green-700">
123
+ <i class="fas fa-check-circle mr-2"></i>Carpool Needed
124
+ </td>
125
+ <td class="p-3 text-center checkbox-container">
126
+ <label class="inline-flex items-center">
127
+ <input type="checkbox" class="form-checkbox h-5 w-5 text-green-600 rounded border-green-300">
128
+ </label>
129
+ </td>
130
+ <td class="p-3 text-center checkbox-container">
131
+ <label class="inline-flex items-center">
132
+ <input type="checkbox" class="form-checkbox h-5 w-5 text-green-600 rounded border-green-300">
133
+ </label>
134
+ </td>
135
+ <td class="p-3 text-center checkbox-container">
136
+ <label class="inline-flex items-center">
137
+ <input type="checkbox" class="form-checkbox h-5 w-5 text-green-600 rounded border-green-300">
138
+ </label>
139
+ </td>
140
+ <td class="p-3 text-center checkbox-container">
141
+ <label class="inline-flex items-center">
142
+ <input type="checkbox" class="form-checkbox h-5 w-5 text-green-600 rounded border-green-300">
143
+ </label>
144
+ </td>
145
+ <td class="p-3 text-center checkbox-container">
146
+ <label class="inline-flex items-center">
147
+ <input type="checkbox" class="form-checkbox h-5 w-5 text-green-600 rounded border-green-300">
148
+ </label>
149
+ </td>
150
+ </tr>
151
+ </tbody>
152
+ </table>
153
+ </div>
154
+
155
+ <!-- Action Buttons -->
156
+ <div class="mt-8 flex flex-col sm:flex-row justify-center gap-4">
157
+ <button class="bg-green-600 hover:bg-green-700 text-white font-bold py-3 px-6 rounded-lg flex items-center justify-center transition">
158
+ <i class="fas fa-save mr-2"></i> Save Schedule
159
+ </button>
160
+ <button class="bg-white hover:bg-green-50 text-green-700 border border-green-300 font-bold py-3 px-6 rounded-lg flex items-center justify-center transition">
161
+ <i class="fas fa-share-alt mr-2"></i> Share with Neighbors
162
+ </button>
163
+ <button class="bg-gray-100 hover:bg-gray-200 text-gray-700 font-bold py-3 px-6 rounded-lg flex items-center justify-center transition">
164
+ <i class="fas fa-sync-alt mr-2"></i> Reset
165
+ </button>
166
+ </div>
167
+ </div>
168
+
169
+ <!-- Footer -->
170
+ <div class="bg-green-50 p-4 text-center text-green-700 text-sm">
171
+ <p>Made with <i class="fas fa-heart text-red-400"></i> for neighbors helping neighbors</p>
172
+ </div>
173
+ </div>
174
+
175
+ <script>
176
+ // Add some interactivity
177
+ document.addEventListener('DOMContentLoaded', function() {
178
+ // Make checkboxes toggle the row color
179
+ const checkboxes = document.querySelectorAll('input[type="checkbox"]');
180
+ checkboxes.forEach(checkbox => {
181
+ checkbox.addEventListener('change', function() {
182
+ const dayIndex = this.closest('td').cellIndex;
183
+ const timeInputs = document.querySelectorAll(`tbody tr:nth-child(-n+2) td:nth-child(${dayIndex + 1}) input`);
184
+
185
+ if(this.checked) {
186
+ timeInputs.forEach(input => {
187
+ input.classList.add('bg-green-100', 'border-green-400');
188
+ });
189
+ } else {
190
+ timeInputs.forEach(input => {
191
+ input.classList.remove('bg-green-100', 'border-green-400');
192
+ });
193
+ }
194
+ });
195
+ });
196
+
197
+ // Add current time to inputs on double click
198
+ const timeInputs = document.querySelectorAll('.time-input');
199
+ timeInputs.forEach(input => {
200
+ input.addEventListener('dblclick', function() {
201
+ const now = new Date();
202
+ const hours = now.getHours().toString().padStart(2, '0');
203
+ const minutes = now.getMinutes().toString().padStart(2, '0');
204
+ this.value = `${hours}:${minutes}`;
205
+ });
206
+ });
207
+ });
208
+ </script>
209
+ <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=asifpa/carpuco" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
210
+ </html>