-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
270 lines (257 loc) · 9.82 KB
/
Copy pathindex.html
File metadata and controls
270 lines (257 loc) · 9.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Suppression de Fond | Remove.bg</title>
<meta
name="description"
content="Supprimez le fond de plusieurs images en même temps avec l'API Remove.bg"
/>
<!-- Bootstrap 5 CSS -->
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css"
rel="stylesheet"
/>
<!-- Bootstrap Icons -->
<link
href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css"
rel="stylesheet"
/>
<!-- Google Fonts -->
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap"
rel="stylesheet"
/>
<!-- Custom CSS -->
<link href="style.css" rel="stylesheet" />
</head>
<body>
<!-- Mobile Sidebar Overlay -->
<div id="sidebarOverlay" class="sidebar-overlay"></div>
<!-- Mobile Sidebar -->
<aside id="mobileSidebar" class="mobile-sidebar" aria-hidden="true">
<div class="mobile-sidebar-header">
<div class="d-flex align-items-center gap-2">
<div class="logo-icon" style="width:32px;height:32px;font-size:1rem;">
<i class="bi bi-image-fill"></i>
</div>
<span class="fw-bold">BatchRemove</span>
</div>
<button id="closeSidebar" class="close-sidebar-btn" title="Fermer">
<i class="bi bi-x-lg"></i>
</button>
</div>
<nav class="mobile-sidebar-nav">
<a href="index.html" class="sidebar-link active">
<i class="bi bi-scissors"></i>
Suppression de fond
</a>
<a href="editor.html" class="sidebar-link">
<i class="bi bi-pencil-square"></i>
Éditeur d'images
</a>
</nav>
<div class="mobile-sidebar-footer">
<p class="text-muted" style="font-size:0.75rem;">Propulsé par Remove.bg API</p>
</div>
</aside>
<!-- Main Container -->
<div class="container-fluid min-vh-100 d-flex flex-column">
<!-- Header -->
<header class="app-header border-bottom sticky-top">
<div class="container">
<div class="d-flex align-items-center justify-content-between h-100">
<!-- Logo -->
<div class="logo d-flex align-items-center gap-2">
<div class="logo-icon">
<i class="bi bi-image-fill"></i>
</div>
<div>
<h1 class="h5 mb-0 fw-bold">BatchRemove</h1>
<small class="text-muted d-none d-sm-inline">By Remove.bg</small>
</div>
</div>
<!-- Desktop Navigation -->
<nav class="d-none d-md-flex align-items-center gap-2">
<a href="index.html" class="nav-link active">
<i class="bi bi-scissors me-1"></i>Suppression
</a>
<a href="editor.html" class="nav-link">
<i class="bi bi-pencil-square me-1"></i>Éditeur
</a>
<div class="vr mx-1" style="height:20px;"></div>
<button id="themeToggle" class="theme-toggle" title="Changer de thème">
<i class="bi bi-sun"></i>
<i class="bi bi-moon"></i>
</button>
</nav>
<!-- Mobile Controls -->
<div class="d-flex d-md-none align-items-center gap-2">
<button id="themeToggle" class="theme-toggle" title="Changer de thème">
<i class="bi bi-sun"></i>
<i class="bi bi-moon"></i>
</button>
<button id="mobileMenuBtn" class="mobile-menu-btn" title="Menu" aria-label="Ouvrir le menu">
<i class="bi bi-list"></i>
</button>
</div>
</div>
</div>
</header>
<!-- Main Content -->
<main class="flex-grow-1 py-4">
<div class="container">
<!-- Upload Section -->
<div class="row justify-content-center mb-4">
<div class="col-lg-10">
<div class="upload-zone glass-card" id="dropZone">
<div class="upload-content text-center py-5">
<div class="upload-icon mb-4">
<i class="bi bi-cloud-arrow-up-fill"></i>
</div>
<h2 class="h5 mb-2">Déposez vos images ici</h2>
<p class="text-muted mb-4">
ou cliquez pour parcourir. Formats : JPG, PNG, WebP
</p>
<input
type="file"
id="fileInput"
multiple
accept="image/jpeg,image/png,image/webp"
class="d-none"
/>
<button
class="btn btn-primary btn-lg px-5"
onclick="document.getElementById('fileInput').click()"
>
<i class="bi bi-folder2-open me-2"></i>Choisir des fichiers
</button>
<div class="mt-3">
<small class="text-muted">
<i class="bi bi-info-circle me-1"></i>
Taille max : 25 Mo par image
</small>
</div>
</div>
</div>
</div>
</div>
<!-- Progress Bar (Hidden by default) -->
<div
class="row justify-content-center mb-4"
id="progressSection"
style="display: none"
>
<div class="col-lg-10">
<div class="glass-card p-4">
<div
class="d-flex justify-content-between align-items-center mb-3"
>
<span class="fw-medium">
<i class="bi bi-gear-fill me-2 spin"></i>
Traitement en cours...
</span>
<span class="text-muted" id="progressText">0 / 0</span>
</div>
<div class="progress" style="height: 8px">
<div
class="progress-bar progress-bar-striped progress-bar-animated"
id="progressBar"
role="progressbar"
style="width: 0%"
></div>
</div>
</div>
</div>
</div>
<!-- Controls Section -->
<div
class="row justify-content-center mb-4"
id="controlsSection"
style="display: none"
>
<div class="col-lg-10">
<div class="glass-card p-4">
<div class="row align-items-center">
<div class="col-md-6 mb-3 mb-md-0">
<div class="d-flex align-items-center gap-3">
<span
class="badge bg-primary px-3 py-2"
id="imageCount"
>0 images</span
>
<span class="text-muted small" id="totalSize"
>Total : 0 Mo</span
>
</div>
</div>
<div class="col-md-6 text-md-end">
<button class="btn btn-outline-light me-2 border" id="clearBtn">
<i class="bi bi-trash3 me-1"></i>Tout effacer
</button>
<button class="btn btn-primary" id="processBtn">
<i class="bi bi-magic me-1"></i>Supprimer le fond
</button>
</div>
</div>
</div>
</div>
</div>
<!-- Images Grid -->
<div class="row justify-content-center">
<div class="col-lg-12">
<div class="row g-3 g-md-4" id="imagesGrid">
<!-- Image cards will be inserted here -->
</div>
</div>
</div>
<!-- Download All Button (Hidden by default) -->
<div
class="row justify-content-center mt-4"
id="downloadSection"
style="display: none"
>
<div class="col-lg-10 text-center">
<button class="btn btn-lg btn-accent px-5" id="downloadAllBtn">
<i class="bi bi-download me-2"></i>Télécharger toutes les images
</button>
</div>
</div>
</div>
</main>
<!-- Footer -->
<footer class="py-4 text-center border-top bg-muted/30">
<div class="container">
<p class="text-muted small mb-0">
<i class="bi bi-shield-check me-1"></i>
Vos images sont traitées de manière sécurisée via l'API Remove.bg
</p>
</div>
</footer>
</div>
<!-- Toast Container -->
<div class="toast-container position-fixed bottom-0 end-0 p-3">
<div id="toast" class="toast" role="alert">
<div class="toast-header">
<i class="bi bi-bell-fill text-primary me-2"></i>
<strong class="me-auto" id="toastTitle">Notification</strong>
<button
type="button"
class="btn-close"
data-bs-dismiss="toast"
></button>
</div>
<div class="toast-body" id="toastBody"></div>
</div>
</div>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
<!-- JSZip for downloading multiple files -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.10.1/jszip.min.js"></script>
<!-- FileSaver.js for saving files -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/2.0.5/FileSaver.min.js"></script>
<!-- Custom JS -->
<script src="script.js"></script>
</body>
</html>