malaknihed commited on
Commit
9443baf
·
verified ·
1 Parent(s): b288adf
Files changed (1) hide show
  1. static/index.html +56 -21
static/index.html CHANGED
@@ -9,6 +9,40 @@
9
  input, button, select { margin: 10px; padding: 10px; }
10
  #result { margin-top: 20px; font-weight: bold; white-space: pre-wrap; }
11
  img { max-width: 100%; margin-top: 20px; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  </style>
13
  </head>
14
  <body>
@@ -26,27 +60,28 @@
26
  <p id="imageResult">Aucune interprétation disponible</p>
27
  <img id="uploadedImage" style="display: none;">
28
 
29
- <h3>🌍 Traduction de Texte</h3>
30
- <textarea id="translateText" placeholder="Entrez votre texte ici..." rows="4" cols="50"></textarea>
31
- <br>
32
- <label for="sourceLanguageSelect">Langue source :</label>
33
- <select id="sourceLanguageSelect">
34
- <option value="fr">Français</option>
35
- <option value="en">Anglais</option>
36
- <option value="es">Espagnol</option>
37
- <option value="de">Allemand</option>
38
- </select>
39
-
40
- <label for="targetLanguageSelect">Langue cible :</label>
41
- <select id="targetLanguageSelect">
42
- <option value="fr">Français</option>
43
- <option value="en">Anglais</option>
44
- <option value="es">Espagnol</option>
45
- <option value="de">Allemand</option>
46
- </select>
47
- <br>
48
- <button onclick="uploadTranslation()">Traduire</button>
49
- <p id="translateResult">Aucune traduction disponible</p>
 
50
 
51
 
52
  <script src="app.js"></script>
 
9
  input, button, select { margin: 10px; padding: 10px; }
10
  #result { margin-top: 20px; font-weight: bold; white-space: pre-wrap; }
11
  img { max-width: 100%; margin-top: 20px; }
12
+ #translateContainer {
13
+ border: 2px solid #ddd;
14
+ padding: 20px;
15
+ border-radius: 10px;
16
+ width: 50%;
17
+ margin: auto;
18
+ background-color: #f9f9f9;
19
+ }
20
+ input[type="file"] {
21
+ margin: 10px 0;
22
+ }
23
+ button {
24
+ padding: 10px 15px;
25
+ font-size: 16px;
26
+ cursor: pointer;
27
+ border: none;
28
+ border-radius: 5px;
29
+ background-color: #007bff;
30
+ color: white;
31
+ }
32
+ button:hover {
33
+ background-color: #0056b3;
34
+ }
35
+ #translateResult {
36
+ margin-top: 20px;
37
+ font-weight: bold;
38
+ color: #333;
39
+ }
40
+ #loading {
41
+ display: none;
42
+ font-size: 16px;
43
+ color: #ff6600;
44
+ font-weight: bold;
45
+ }
46
  </style>
47
  </head>
48
  <body>
 
60
  <p id="imageResult">Aucune interprétation disponible</p>
61
  <img id="uploadedImage" style="display: none;">
62
 
63
+ <div id="translateContainer">
64
+ <h3>🌍 Traduction de Documents</h3>
65
+
66
+ <label for="translateFile">Sélectionnez un fichier :</label>
67
+ <input type="file" id="translateFile" accept=".pdf,.docx,.pptx,.xlsx">
68
+
69
+ <br>
70
+ <label for="targetLanguageSelect">Langue cible :</label>
71
+ <select id="targetLanguageSelect">
72
+ <option value="fr">Français</option>
73
+ <option value="en">Anglais</option>
74
+ <option value="es">Espagnol</option>
75
+ <option value="de">Allemand</option>
76
+ </select>
77
+
78
+ <br>
79
+ <button onclick="uploadTranslation()">📤 Traduire</button>
80
+
81
+ <p id="loading">⏳ Traduction en cours...</p>
82
+ <p id="translateResult">Aucune traduction disponible</p>
83
+ </div>
84
+
85
 
86
 
87
  <script src="app.js"></script>