Spaces:
Running
Running
Add 3 files
Browse files- README.md +7 -5
- index.html +635 -19
- prompts.txt +1 -0
README.md
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
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: comptabilit
|
3 |
+
emoji: 🐳
|
4 |
+
colorFrom: yellow
|
5 |
+
colorTo: blue
|
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,635 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="fr">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Comptabilité Pro - Gestion des dépenses</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 |
+
.receipt-scanner {
|
11 |
+
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
|
12 |
+
}
|
13 |
+
.camera-preview {
|
14 |
+
width: 100%;
|
15 |
+
height: 300px;
|
16 |
+
background-color: #e5e7eb;
|
17 |
+
display: flex;
|
18 |
+
align-items: center;
|
19 |
+
justify-content: center;
|
20 |
+
position: relative;
|
21 |
+
overflow: hidden;
|
22 |
+
}
|
23 |
+
.scan-animation {
|
24 |
+
position: absolute;
|
25 |
+
top: 0;
|
26 |
+
left: 0;
|
27 |
+
width: 100%;
|
28 |
+
height: 5px;
|
29 |
+
background: rgba(59, 130, 246, 0.5);
|
30 |
+
box-shadow: 0 0 10px rgba(59, 130, 246, 0.7);
|
31 |
+
animation: scan 3s linear infinite;
|
32 |
+
}
|
33 |
+
@keyframes scan {
|
34 |
+
0% { top: 0; }
|
35 |
+
100% { top: 100%; }
|
36 |
+
}
|
37 |
+
.receipt-item:hover {
|
38 |
+
transform: translateY(-2px);
|
39 |
+
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
|
40 |
+
}
|
41 |
+
.chart-container {
|
42 |
+
height: 300px;
|
43 |
+
}
|
44 |
+
.drawer {
|
45 |
+
transition: transform 0.3s ease-in-out;
|
46 |
+
}
|
47 |
+
.drawer.closed {
|
48 |
+
transform: translateX(100%);
|
49 |
+
}
|
50 |
+
.drawer.open {
|
51 |
+
transform: translateX(0);
|
52 |
+
}
|
53 |
+
</style>
|
54 |
+
</head>
|
55 |
+
<body class="bg-gray-50 font-sans">
|
56 |
+
<!-- Header -->
|
57 |
+
<header class="bg-blue-600 text-white shadow-lg">
|
58 |
+
<div class="container mx-auto px-4 py-4 flex justify-between items-center">
|
59 |
+
<div class="flex items-center space-x-2">
|
60 |
+
<i class="fas fa-calculator text-2xl"></i>
|
61 |
+
<h1 class="text-xl font-bold">Comptabilité Pro</h1>
|
62 |
+
</div>
|
63 |
+
<div class="flex items-center space-x-4">
|
64 |
+
<button class="bg-blue-700 hover:bg-blue-800 px-4 py-2 rounded-lg flex items-center">
|
65 |
+
<i class="fas fa-file-export mr-2"></i> Exporter
|
66 |
+
</button>
|
67 |
+
<div class="relative">
|
68 |
+
<img src="https://randomuser.me/api/portraits/women/44.jpg" alt="Profile" class="w-10 h-10 rounded-full cursor-pointer">
|
69 |
+
<div class="absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg py-1 z-50 hidden">
|
70 |
+
<a href="#" class="block px-4 py-2 text-gray-800 hover:bg-gray-100">Profil</a>
|
71 |
+
<a href="#" class="block px-4 py-2 text-gray-800 hover:bg-gray-100">Paramètres</a>
|
72 |
+
<a href="#" class="block px-4 py-2 text-gray-800 hover:bg-gray-100">Déconnexion</a>
|
73 |
+
</div>
|
74 |
+
</div>
|
75 |
+
</div>
|
76 |
+
</div>
|
77 |
+
</header>
|
78 |
+
|
79 |
+
<!-- Main Content -->
|
80 |
+
<div class="container mx-auto px-4 py-6 flex">
|
81 |
+
<!-- Sidebar -->
|
82 |
+
<aside class="w-64 bg-white rounded-lg shadow-md p-4 mr-6 hidden md:block">
|
83 |
+
<nav>
|
84 |
+
<ul class="space-y-2">
|
85 |
+
<li>
|
86 |
+
<a href="#" class="flex items-center space-x-3 p-2 rounded-lg bg-blue-100 text-blue-600">
|
87 |
+
<i class="fas fa-home"></i>
|
88 |
+
<span>Tableau de bord</span>
|
89 |
+
</a>
|
90 |
+
</li>
|
91 |
+
<li>
|
92 |
+
<a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100">
|
93 |
+
<i class="fas fa-receipt"></i>
|
94 |
+
<span>Dépenses</span>
|
95 |
+
</a>
|
96 |
+
</li>
|
97 |
+
<li>
|
98 |
+
<a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100">
|
99 |
+
<i class="fas fa-euro-sign"></i>
|
100 |
+
<span>Revenus</span>
|
101 |
+
</a>
|
102 |
+
</li>
|
103 |
+
<li>
|
104 |
+
<a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100">
|
105 |
+
<i class="fas fa-chart-pie"></i>
|
106 |
+
<span>Rapports</span>
|
107 |
+
</a>
|
108 |
+
</li>
|
109 |
+
<li>
|
110 |
+
<a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100">
|
111 |
+
<i class="fas fa-cog"></i>
|
112 |
+
<span>Paramètres</span>
|
113 |
+
</a>
|
114 |
+
</li>
|
115 |
+
</ul>
|
116 |
+
</nav>
|
117 |
+
|
118 |
+
<div class="mt-8">
|
119 |
+
<h3 class="font-semibold text-gray-500 uppercase text-xs mb-2">Catégories</h3>
|
120 |
+
<ul class="space-y-1">
|
121 |
+
<li><a href="#" class="flex items-center p-2 text-sm rounded-lg hover:bg-gray-100"><span class="w-3 h-3 bg-red-500 rounded-full mr-2"></span> Fournitures</a></li>
|
122 |
+
<li><a href="#" class="flex items-center p-2 text-sm rounded-lg hover:bg-gray-100"><span class="w-3 h-3 bg-blue-500 rounded-full mr-2"></span> Déplacements</a></li>
|
123 |
+
<li><a href="#" class="flex items-center p-2 text-sm rounded-lg hover:bg-gray-100"><span class="w-3 h-3 bg-green-500 rounded-full mr-2"></span> Repas</a></li>
|
124 |
+
<li><a href="#" class="flex items-center p-2 text-sm rounded-lg hover:bg-gray-100"><span class="w-3 h-3 bg-yellow-500 rounded-full mr-2"></span> Équipement</a></li>
|
125 |
+
<li><a href="#" class="flex items-center p-2 text-sm rounded-lg hover:bg-gray-100"><span class="w-3 h-3 bg-purple-500 rounded-full mr-2"></span> Autres</a></li>
|
126 |
+
</ul>
|
127 |
+
</div>
|
128 |
+
</aside>
|
129 |
+
|
130 |
+
<!-- Mobile menu button -->
|
131 |
+
<button id="mobile-menu-button" class="md:hidden fixed bottom-6 right-6 bg-blue-600 text-white p-4 rounded-full shadow-lg z-50">
|
132 |
+
<i class="fas fa-bars text-xl"></i>
|
133 |
+
</button>
|
134 |
+
|
135 |
+
<!-- Mobile drawer -->
|
136 |
+
<div id="mobile-drawer" class="drawer closed fixed inset-y-0 right-0 w-64 bg-white shadow-lg z-40 p-4">
|
137 |
+
<div class="flex justify-between items-center mb-6">
|
138 |
+
<h2 class="text-lg font-semibold">Menu</h2>
|
139 |
+
<button id="close-drawer" class="text-gray-500">
|
140 |
+
<i class="fas fa-times"></i>
|
141 |
+
</button>
|
142 |
+
</div>
|
143 |
+
<nav>
|
144 |
+
<ul class="space-y-2">
|
145 |
+
<li>
|
146 |
+
<a href="#" class="flex items-center space-x-3 p-2 rounded-lg bg-blue-100 text-blue-600">
|
147 |
+
<i class="fas fa-home"></i>
|
148 |
+
<span>Tableau de bord</span>
|
149 |
+
</a>
|
150 |
+
</li>
|
151 |
+
<li>
|
152 |
+
<a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100">
|
153 |
+
<i class="fas fa-receipt"></i>
|
154 |
+
<span>Dépenses</span>
|
155 |
+
</a>
|
156 |
+
</li>
|
157 |
+
<li>
|
158 |
+
<a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100">
|
159 |
+
<i class="fas fa-euro-sign"></i>
|
160 |
+
<span>Revenus</span>
|
161 |
+
</a>
|
162 |
+
</li>
|
163 |
+
<li>
|
164 |
+
<a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100">
|
165 |
+
<i class="fas fa-chart-pie"></i>
|
166 |
+
<span>Rapports</span>
|
167 |
+
</a>
|
168 |
+
</li>
|
169 |
+
<li>
|
170 |
+
<a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100">
|
171 |
+
<i class="fas fa-cog"></i>
|
172 |
+
<span>Paramètres</span>
|
173 |
+
</a>
|
174 |
+
</li>
|
175 |
+
</ul>
|
176 |
+
</nav>
|
177 |
+
</div>
|
178 |
+
|
179 |
+
<!-- Main Content Area -->
|
180 |
+
<main class="flex-1">
|
181 |
+
<!-- Dashboard Header -->
|
182 |
+
<div class="flex justify-between items-center mb-6">
|
183 |
+
<div>
|
184 |
+
<h2 class="text-2xl font-bold text-gray-800">Tableau de bord</h2>
|
185 |
+
<p class="text-gray-600">Bienvenue dans votre espace de gestion comptable</p>
|
186 |
+
</div>
|
187 |
+
<div class="flex space-x-3">
|
188 |
+
<div class="relative">
|
189 |
+
<input type="text" placeholder="Rechercher..." class="pl-10 pr-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
|
190 |
+
<i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
|
191 |
+
</div>
|
192 |
+
<button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center">
|
193 |
+
<i class="fas fa-plus mr-2"></i> Ajouter
|
194 |
+
</button>
|
195 |
+
</div>
|
196 |
+
</div>
|
197 |
+
|
198 |
+
<!-- Stats Cards -->
|
199 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
|
200 |
+
<div class="bg-white p-6 rounded-lg shadow">
|
201 |
+
<div class="flex justify-between">
|
202 |
+
<div>
|
203 |
+
<p class="text-gray-500">Dépenses ce mois</p>
|
204 |
+
<p class="text-2xl font-bold">€1,245</p>
|
205 |
+
</div>
|
206 |
+
<div class="bg-blue-100 text-blue-600 p-3 rounded-full">
|
207 |
+
<i class="fas fa-receipt"></i>
|
208 |
+
</div>
|
209 |
+
</div>
|
210 |
+
<div class="mt-4">
|
211 |
+
<div class="flex items-center text-sm text-green-500">
|
212 |
+
<i class="fas fa-arrow-up mr-1"></i>
|
213 |
+
<span>12% vs mois dernier</span>
|
214 |
+
</div>
|
215 |
+
</div>
|
216 |
+
</div>
|
217 |
+
<div class="bg-white p-6 rounded-lg shadow">
|
218 |
+
<div class="flex justify-between">
|
219 |
+
<div>
|
220 |
+
<p class="text-gray-500">Revenus ce mois</p>
|
221 |
+
<p class="text-2xl font-bold">€3,890</p>
|
222 |
+
</div>
|
223 |
+
<div class="bg-green-100 text-green-600 p-3 rounded-full">
|
224 |
+
<i class="fas fa-euro-sign"></i>
|
225 |
+
</div>
|
226 |
+
</div>
|
227 |
+
<div class="mt-4">
|
228 |
+
<div class="flex items-center text-sm text-green-500">
|
229 |
+
<i class="fas fa-arrow-up mr-1"></i>
|
230 |
+
<span>8% vs mois dernier</span>
|
231 |
+
</div>
|
232 |
+
</div>
|
233 |
+
</div>
|
234 |
+
<div class="bg-white p-6 rounded-lg shadow">
|
235 |
+
<div class="flex justify-between">
|
236 |
+
<div>
|
237 |
+
<p class="text-gray-500">Tickets scannés</p>
|
238 |
+
<p class="text-2xl font-bold">24</p>
|
239 |
+
</div>
|
240 |
+
<div class="bg-purple-100 text-purple-600 p-3 rounded-full">
|
241 |
+
<i class="fas fa-camera"></i>
|
242 |
+
</div>
|
243 |
+
</div>
|
244 |
+
<div class="mt-4">
|
245 |
+
<div class="flex items-center text-sm text-red-500">
|
246 |
+
<i class="fas fa-arrow-down mr-1"></i>
|
247 |
+
<span>5% vs mois dernier</span>
|
248 |
+
</div>
|
249 |
+
</div>
|
250 |
+
</div>
|
251 |
+
<div class="bg-white p-6 rounded-lg shadow">
|
252 |
+
<div class="flex justify-between">
|
253 |
+
<div>
|
254 |
+
<p class="text-gray-500">Bénéfice</p>
|
255 |
+
<p class="text-2xl font-bold">€2,645</p>
|
256 |
+
</div>
|
257 |
+
<div class="bg-yellow-100 text-yellow-600 p-3 rounded-full">
|
258 |
+
<i class="fas fa-chart-line"></i>
|
259 |
+
</div>
|
260 |
+
</div>
|
261 |
+
<div class="mt-4">
|
262 |
+
<div class="flex items-center text-sm text-green-500">
|
263 |
+
<i class="fas fa-arrow-up mr-1"></i>
|
264 |
+
<span>15% vs mois dernier</span>
|
265 |
+
</div>
|
266 |
+
</div>
|
267 |
+
</div>
|
268 |
+
</div>
|
269 |
+
|
270 |
+
<!-- Scanner Section -->
|
271 |
+
<div class="bg-white rounded-lg shadow-md p-6 mb-6 receipt-scanner">
|
272 |
+
<div class="flex justify-between items-center mb-4">
|
273 |
+
<h3 class="text-lg font-semibold">Scanner un ticket de caisse</h3>
|
274 |
+
<button class="text-blue-600 hover:text-blue-800">
|
275 |
+
<i class="fas fa-history mr-1"></i> Historique
|
276 |
+
</button>
|
277 |
+
</div>
|
278 |
+
|
279 |
+
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
|
280 |
+
<div>
|
281 |
+
<div class="camera-preview mb-4 rounded-lg overflow-hidden">
|
282 |
+
<div id="camera-view" class="w-full h-full flex items-center justify-center">
|
283 |
+
<div class="text-center">
|
284 |
+
<i class="fas fa-camera text-4xl text-gray-400 mb-2"></i>
|
285 |
+
<p class="text-gray-500">Appuyez sur le bouton pour démarrer la caméra</p>
|
286 |
+
</div>
|
287 |
+
</div>
|
288 |
+
<div id="scan-animation" class="scan-animation hidden"></div>
|
289 |
+
</div>
|
290 |
+
|
291 |
+
<div class="flex space-x-3">
|
292 |
+
<button id="start-camera" class="flex-1 bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded-lg flex items-center justify-center">
|
293 |
+
<i class="fas fa-camera mr-2"></i> Démarrer la caméra
|
294 |
+
</button>
|
295 |
+
<button id="capture-receipt" class="flex-1 bg-green-600 hover:bg-green-700 text-white py-2 px-4 rounded-lg flex items-center justify-center hidden">
|
296 |
+
<i class="fas fa-camera-retro mr-2"></i> Capturer
|
297 |
+
</button>
|
298 |
+
</div>
|
299 |
+
</div>
|
300 |
+
|
301 |
+
<div>
|
302 |
+
<div class="bg-white p-4 rounded-lg shadow-inner mb-4">
|
303 |
+
<h4 class="font-medium mb-3">Détails du ticket</h4>
|
304 |
+
<form id="receipt-form">
|
305 |
+
<div class="mb-3">
|
306 |
+
<label class="block text-gray-700 text-sm font-medium mb-1">Montant (€)</label>
|
307 |
+
<input type="number" step="0.01" class="w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500" placeholder="0.00" required>
|
308 |
+
</div>
|
309 |
+
<div class="mb-3">
|
310 |
+
<label class="block text-gray-700 text-sm font-medium mb-1">Date</label>
|
311 |
+
<input type="date" class="w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500" required>
|
312 |
+
</div>
|
313 |
+
<div class="mb-3">
|
314 |
+
<label class="block text-gray-700 text-sm font-medium mb-1">Catégorie</label>
|
315 |
+
<select class="w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500" required>
|
316 |
+
<option value="">Sélectionner une catégorie</option>
|
317 |
+
<option value="supplies">Fournitures</option>
|
318 |
+
<option value="travel">Déplacements</option>
|
319 |
+
<option value="meals">Repas</option>
|
320 |
+
<option value="equipment">Équipement</option>
|
321 |
+
<option value="other">Autres</option>
|
322 |
+
</select>
|
323 |
+
</div>
|
324 |
+
<div class="mb-3">
|
325 |
+
<label class="block text-gray-700 text-sm font-medium mb-1">Description</label>
|
326 |
+
<textarea rows="2" class="w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500" placeholder="Notes supplémentaires..."></textarea>
|
327 |
+
</div>
|
328 |
+
<button type="submit" class="w-full bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded-lg">
|
329 |
+
<i class="fas fa-save mr-2"></i> Enregistrer
|
330 |
+
</button>
|
331 |
+
</form>
|
332 |
+
</div>
|
333 |
+
</div>
|
334 |
+
</div>
|
335 |
+
</div>
|
336 |
+
|
337 |
+
<!-- Recent Receipts -->
|
338 |
+
<div class="bg-white rounded-lg shadow-md p-6">
|
339 |
+
<div class="flex justify-between items-center mb-4">
|
340 |
+
<h3 class="text-lg font-semibold">Dépenses récentes</h3>
|
341 |
+
<button class="text-blue-600 hover:text-blue-800">
|
342 |
+
<i class="fas fa-filter mr-1"></i> Filtrer
|
343 |
+
</button>
|
344 |
+
</div>
|
345 |
+
|
346 |
+
<div class="overflow-x-auto">
|
347 |
+
<table class="min-w-full divide-y divide-gray-200">
|
348 |
+
<thead class="bg-gray-50">
|
349 |
+
<tr>
|
350 |
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th>
|
351 |
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Description</th>
|
352 |
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Catégorie</th>
|
353 |
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Montant</th>
|
354 |
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
|
355 |
+
</tr>
|
356 |
+
</thead>
|
357 |
+
<tbody class="bg-white divide-y divide-gray-200">
|
358 |
+
<tr class="receipt-item hover:bg-gray-50 transition duration-150">
|
359 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">15/06/2023</td>
|
360 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
361 |
+
<div class="flex items-center">
|
362 |
+
<div class="flex-shrink-0 h-10 w-10 bg-blue-100 rounded-full flex items-center justify-center">
|
363 |
+
<i class="fas fa-file-invoice text-blue-600"></i>
|
364 |
+
</div>
|
365 |
+
<div class="ml-4">
|
366 |
+
<div class="text-sm font-medium text-gray-900">Achat fournitures</div>
|
367 |
+
<div class="text-sm text-gray-500">Bureau Depot</div>
|
368 |
+
</div>
|
369 |
+
</div>
|
370 |
+
</td>
|
371 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
372 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">Fournitures</span>
|
373 |
+
</td>
|
374 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">€45.20</td>
|
375 |
+
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
|
376 |
+
<button class="text-blue-600 hover:text-blue-900 mr-3"><i class="fas fa-eye"></i></button>
|
377 |
+
<button class="text-green-600 hover:text-green-900 mr-3"><i class="fas fa-edit"></i></button>
|
378 |
+
<button class="text-red-600 hover:text-red-900"><i class="fas fa-trash"></i></button>
|
379 |
+
</td>
|
380 |
+
</tr>
|
381 |
+
<tr class="receipt-item hover:bg-gray-50 transition duration-150">
|
382 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">12/06/2023</td>
|
383 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
384 |
+
<div class="flex items-center">
|
385 |
+
<div class="flex-shrink-0 h-10 w-10 bg-green-100 rounded-full flex items-center justify-center">
|
386 |
+
<i class="fas fa-utensils text-green-600"></i>
|
387 |
+
</div>
|
388 |
+
<div class="ml-4">
|
389 |
+
<div class="text-sm font-medium text-gray-900">Déjeuner client</div>
|
390 |
+
<div class="text-sm text-gray-500">Le Bistrot</div>
|
391 |
+
</div>
|
392 |
+
</div>
|
393 |
+
</td>
|
394 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
395 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Repas</span>
|
396 |
+
</td>
|
397 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">€78.50</td>
|
398 |
+
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
|
399 |
+
<button class="text-blue-600 hover:text-blue-900 mr-3"><i class="fas fa-eye"></i></button>
|
400 |
+
<button class="text-green-600 hover:text-green-900 mr-3"><i class="fas fa-edit"></i></button>
|
401 |
+
<button class="text-red-600 hover:text-red-900"><i class="fas fa-trash"></i></button>
|
402 |
+
</td>
|
403 |
+
</tr>
|
404 |
+
<tr class="receipt-item hover:bg-gray-50 transition duration-150">
|
405 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">10/06/2023</td>
|
406 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
407 |
+
<div class="flex items-center">
|
408 |
+
<div class="flex-shrink-0 h-10 w-10 bg-purple-100 rounded-full flex items-center justify-center">
|
409 |
+
<i class="fas fa-plane text-purple-600"></i>
|
410 |
+
</div>
|
411 |
+
<div class="ml-4">
|
412 |
+
<div class="text-sm font-medium text-gray-900">Billet d'avion</div>
|
413 |
+
<div class="text-sm text-gray-500">Air France</div>
|
414 |
+
</div>
|
415 |
+
</div>
|
416 |
+
</td>
|
417 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
418 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-purple-100 text-purple-800">Déplacements</span>
|
419 |
+
</td>
|
420 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">€245.00</td>
|
421 |
+
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
|
422 |
+
<button class="text-blue-600 hover:text-blue-900 mr-3"><i class="fas fa-eye"></i></button>
|
423 |
+
<button class="text-green-600 hover:text-green-900 mr-3"><i class="fas fa-edit"></i></button>
|
424 |
+
<button class="text-red-600 hover:text-red-900"><i class="fas fa-trash"></i></button>
|
425 |
+
</td>
|
426 |
+
</tr>
|
427 |
+
<tr class="receipt-item hover:bg-gray-50 transition duration-150">
|
428 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">05/06/2023</td>
|
429 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
430 |
+
<div class="flex items-center">
|
431 |
+
<div class="flex-shrink-0 h-10 w-10 bg-yellow-100 rounded-full flex items-center justify-center">
|
432 |
+
<i class="fas fa-laptop text-yellow-600"></i>
|
433 |
+
</div>
|
434 |
+
<div class="ml-4">
|
435 |
+
<div class="text-sm font-medium text-gray-900">Nouvel ordinateur</div>
|
436 |
+
<div class="text-sm text-gray-500">Apple Store</div>
|
437 |
+
</div>
|
438 |
+
</div>
|
439 |
+
</td>
|
440 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
441 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Équipement</span>
|
442 |
+
</td>
|
443 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">€1,299.00</td>
|
444 |
+
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
|
445 |
+
<button class="text-blue-600 hover:text-blue-900 mr-3"><i class="fas fa-eye"></i></button>
|
446 |
+
<button class="text-green-600 hover:text-green-900 mr-3"><i class="fas fa-edit"></i></button>
|
447 |
+
<button class="text-red-600 hover:text-red-900"><i class="fas fa-trash"></i></button>
|
448 |
+
</td>
|
449 |
+
</tr>
|
450 |
+
</tbody>
|
451 |
+
</table>
|
452 |
+
</div>
|
453 |
+
|
454 |
+
<div class="mt-4 flex justify-between items-center">
|
455 |
+
<div class="text-sm text-gray-500">
|
456 |
+
Affichage de 1 à 4 sur 24 entrées
|
457 |
+
</div>
|
458 |
+
<div class="flex space-x-1">
|
459 |
+
<button class="px-3 py-1 border rounded-lg text-gray-700 bg-gray-100">
|
460 |
+
<i class="fas fa-chevron-left"></i>
|
461 |
+
</button>
|
462 |
+
<button class="px-3 py-1 border rounded-lg bg-blue-600 text-white">1</button>
|
463 |
+
<button class="px-3 py-1 border rounded-lg text-gray-700 hover:bg-gray-100">2</button>
|
464 |
+
<button class="px-3 py-1 border rounded-lg text-gray-700 hover:bg-gray-100">3</button>
|
465 |
+
<button class="px-3 py-1 border rounded-lg text-gray-700 hover:bg-gray-100">4</button>
|
466 |
+
<button class="px-3 py-1 border rounded-lg text-gray-700 hover:bg-gray-100">
|
467 |
+
<i class="fas fa-chevron-right"></i>
|
468 |
+
</button>
|
469 |
+
</div>
|
470 |
+
</div>
|
471 |
+
</div>
|
472 |
+
</main>
|
473 |
+
</div>
|
474 |
+
|
475 |
+
<!-- Footer -->
|
476 |
+
<footer class="bg-gray-100 border-t mt-8">
|
477 |
+
<div class="container mx-auto px-4 py-6">
|
478 |
+
<div class="flex flex-col md:flex-row justify-between items-center">
|
479 |
+
<div class="mb-4 md:mb-0">
|
480 |
+
<div class="flex items-center">
|
481 |
+
<i class="fas fa-calculator text-blue-600 text-xl mr-2"></i>
|
482 |
+
<span class="font-semibold">Comptabilité Pro</span>
|
483 |
+
</div>
|
484 |
+
<p class="text-gray-600 text-sm mt-1">Votre solution de gestion comptable simplifiée</p>
|
485 |
+
</div>
|
486 |
+
<div class="flex space-x-6">
|
487 |
+
<a href="#" class="text-gray-600 hover:text-blue-600">Conditions</a>
|
488 |
+
<a href="#" class="text-gray-600 hover:text-blue-600">Confidentialité</a>
|
489 |
+
<a href="#" class="text-gray-600 hover:text-blue-600">Aide</a>
|
490 |
+
</div>
|
491 |
+
</div>
|
492 |
+
<div class="mt-6 pt-6 border-t border-gray-200 text-center text-sm text-gray-500">
|
493 |
+
© 2023 Comptabilité Pro. Tous droits réservés.
|
494 |
+
</div>
|
495 |
+
</div>
|
496 |
+
</footer>
|
497 |
+
|
498 |
+
<!-- Modal for receipt preview -->
|
499 |
+
<div id="receipt-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
|
500 |
+
<div class="bg-white rounded-lg shadow-xl w-full max-w-2xl max-h-screen overflow-auto">
|
501 |
+
<div class="flex justify-between items-center border-b p-4">
|
502 |
+
<h3 class="text-lg font-semibold">Aperçu du ticket</h3>
|
503 |
+
<button id="close-modal" class="text-gray-500 hover:text-gray-700">
|
504 |
+
<i class="fas fa-times"></i>
|
505 |
+
</button>
|
506 |
+
</div>
|
507 |
+
<div class="p-6">
|
508 |
+
<img id="receipt-image" src="" alt="Ticket scanné" class="w-full h-auto mb-4 rounded-lg border">
|
509 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
510 |
+
<div>
|
511 |
+
<h4 class="font-medium mb-2">Informations</h4>
|
512 |
+
<p class="text-sm text-gray-600"><span class="font-medium">Date:</span> <span id="modal-date">15/06/2023</span></p>
|
513 |
+
<p class="text-sm text-gray-600"><span class="font-medium">Montant:</span> <span id="modal-amount">€45.20</span></p>
|
514 |
+
<p class="text-sm text-gray-600"><span class="font-medium">Catégorie:</span> <span id="modal-category">Fournitures</span></p>
|
515 |
+
</div>
|
516 |
+
<div>
|
517 |
+
<h4 class="font-medium mb-2">Description</h4>
|
518 |
+
<p id="modal-description" class="text-sm text-gray-600">Achat de fournitures de bureau pour l'équipe</p>
|
519 |
+
</div>
|
520 |
+
</div>
|
521 |
+
</div>
|
522 |
+
<div class="border-t p-4 flex justify-end space-x-3">
|
523 |
+
<button class="px-4 py-2 border rounded-lg text-gray-700 hover:bg-gray-100">Imprimer</button>
|
524 |
+
<button class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700">Télécharger</button>
|
525 |
+
</div>
|
526 |
+
</div>
|
527 |
+
</div>
|
528 |
+
|
529 |
+
<script>
|
530 |
+
// Mobile drawer functionality
|
531 |
+
const mobileMenuButton = document.getElementById('mobile-menu-button');
|
532 |
+
const mobileDrawer = document.getElementById('mobile-drawer');
|
533 |
+
const closeDrawerButton = document.getElementById('close-drawer');
|
534 |
+
|
535 |
+
mobileMenuButton.addEventListener('click', () => {
|
536 |
+
mobileDrawer.classList.remove('closed');
|
537 |
+
mobileDrawer.classList.add('open');
|
538 |
+
});
|
539 |
+
|
540 |
+
closeDrawerButton.addEventListener('click', () => {
|
541 |
+
mobileDrawer.classList.remove('open');
|
542 |
+
mobileDrawer.classList.add('closed');
|
543 |
+
});
|
544 |
+
|
545 |
+
// Camera functionality (simulated)
|
546 |
+
const startCameraButton = document.getElementById('start-camera');
|
547 |
+
const captureReceiptButton = document.getElementById('capture-receipt');
|
548 |
+
const cameraView = document.getElementById('camera-view');
|
549 |
+
const scanAnimation = document.getElementById('scan-animation');
|
550 |
+
|
551 |
+
startCameraButton.addEventListener('click', () => {
|
552 |
+
// Simulate camera starting
|
553 |
+
cameraView.innerHTML = `
|
554 |
+
<div class="w-full h-full bg-black flex items-center justify-center relative">
|
555 |
+
<div class="scan-animation"></div>
|
556 |
+
<div class="absolute inset-0 flex items-center justify-center">
|
557 |
+
<div class="w-64 h-40 bg-white bg-opacity-20 border-2 border-dashed border-white rounded-lg flex items-center justify-center">
|
558 |
+
<p class="text-white text-center">Positionnez le ticket<br>dans ce cadre</p>
|
559 |
+
</div>
|
560 |
+
</div>
|
561 |
+
</div>
|
562 |
+
`;
|
563 |
+
startCameraButton.classList.add('hidden');
|
564 |
+
captureReceiptButton.classList.remove('hidden');
|
565 |
+
});
|
566 |
+
|
567 |
+
captureReceiptButton.addEventListener('click', () => {
|
568 |
+
// Simulate capturing receipt
|
569 |
+
cameraView.innerHTML = `
|
570 |
+
<div class="w-full h-full bg-gray-100 flex items-center justify-center">
|
571 |
+
<div class="text-center">
|
572 |
+
<i class="fas fa-check-circle text-green-500 text-5xl mb-2"></i>
|
573 |
+
<p class="text-gray-700">Ticket capturé avec succès!</p>
|
574 |
+
</div>
|
575 |
+
</div>
|
576 |
+
`;
|
577 |
+
captureReceiptButton.classList.add('hidden');
|
578 |
+
|
579 |
+
// Fill form with sample data
|
580 |
+
const form = document.getElementById('receipt-form');
|
581 |
+
form.querySelector('input[type="number"]').value = '45.20';
|
582 |
+
form.querySelector('input[type="date"]').value = '2023-06-15';
|
583 |
+
form.querySelector('select').value = 'supplies';
|
584 |
+
form.querySelector('textarea').value = 'Achat de fournitures de bureau pour l\'équipe';
|
585 |
+
});
|
586 |
+
|
587 |
+
// Modal functionality
|
588 |
+
const viewButtons = document.querySelectorAll('.fa-eye');
|
589 |
+
const receiptModal = document.getElementById('receipt-modal');
|
590 |
+
const closeModalButton = document.getElementById('close-modal');
|
591 |
+
|
592 |
+
viewButtons.forEach(button => {
|
593 |
+
button.addEventListener('click', () => {
|
594 |
+
const row = button.closest('tr');
|
595 |
+
const date = row.querySelector('td:nth-child(1)').textContent;
|
596 |
+
const description = row.querySelector('td:nth-child(2) .text-gray-900').textContent;
|
597 |
+
const category = row.querySelector('td:nth-child(3) span').textContent;
|
598 |
+
const amount = row.querySelector('td:nth-child(4)').textContent;
|
599 |
+
|
600 |
+
document.getElementById('modal-date').textContent = date;
|
601 |
+
document.getElementById('modal-amount').textContent = amount;
|
602 |
+
document.getElementById('modal-category').textContent = category;
|
603 |
+
document.getElementById('modal-description').textContent = description;
|
604 |
+
|
605 |
+
// Set a sample image (in a real app, this would be the actual receipt image)
|
606 |
+
document.getElementById('receipt-image').src = 'https://www.veryicon.com/download/png/business/receipt-icon?fd=1';
|
607 |
+
|
608 |
+
receiptModal.classList.remove('hidden');
|
609 |
+
});
|
610 |
+
});
|
611 |
+
|
612 |
+
closeModalButton.addEventListener('click', () => {
|
613 |
+
receiptModal.classList.add('hidden');
|
614 |
+
});
|
615 |
+
|
616 |
+
// Form submission
|
617 |
+
const receiptForm = document.getElementById('receipt-form');
|
618 |
+
receiptForm.addEventListener('submit', (e) => {
|
619 |
+
e.preventDefault();
|
620 |
+
alert('Ticket enregistré avec succès!');
|
621 |
+
receiptForm.reset();
|
622 |
+
|
623 |
+
// Reset camera view
|
624 |
+
cameraView.innerHTML = `
|
625 |
+
<div class="text-center">
|
626 |
+
<i class="fas fa-camera text-4xl text-gray-400 mb-2"></i>
|
627 |
+
<p class="text-gray-500">Appuyez sur le bouton pour démarrer la caméra</p>
|
628 |
+
</div>
|
629 |
+
`;
|
630 |
+
startCameraButton.classList.remove('hidden');
|
631 |
+
captureReceiptButton.classList.add('hidden');
|
632 |
+
});
|
633 |
+
</script>
|
634 |
+
<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=Adamchab/comptabilit" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
635 |
+
</html>
|
prompts.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Site pour Gérer ma comptabilité de la société avec possibilité de prendre en photo les tickets de caisse et indiquer le montant
|