269 lines
7.6 KiB
HTML
269 lines
7.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Meine Vokabeln</title>
|
|
<style>
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
text-align: center;
|
|
background-color: #f0f0f0;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
h1 {
|
|
color: #333;
|
|
margin-top: 50px;
|
|
}
|
|
.container {
|
|
margin: 0 auto;
|
|
max-width: 1200px;
|
|
padding: 20px;
|
|
}
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin: 10px 0;
|
|
border-radius: 15px;
|
|
overflow: hidden;
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
border: 1px solid #cccccc;
|
|
}
|
|
th, td {
|
|
padding: 10px;
|
|
border-bottom: 1px solid #cccccc;
|
|
text-align: left;
|
|
}
|
|
th {
|
|
background-color: white; /* Weiß für Tabelleninhalt */
|
|
}
|
|
.table-header {
|
|
text-align: center;
|
|
color: white;
|
|
font-weight: bold;
|
|
}
|
|
.red .table-header, .red th { background-color: #d9534f; color: white; }
|
|
.orange .table-header, .orange th { background-color: #f0ad4e; color: white; }
|
|
.yellow .table-header, .yellow th { background-color: #ffd500; color: white; }
|
|
.green .table-header, .green th { background-color: #4dd64d; color: white; }
|
|
.darkgreen .table-header, .darkgreen th { background-color: #2f742f; color: white; }
|
|
.actions button {
|
|
border: none;
|
|
border-radius: 5px;
|
|
padding: 5px 10px;
|
|
margin-right: 5px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
}
|
|
/* Allgemeine Button-Stile */
|
|
button {
|
|
border: none;
|
|
border-radius: 5px;
|
|
padding: 5px 10px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
color: white;
|
|
margin-right: 5px;
|
|
}
|
|
/* Spezielle Button-Stile */
|
|
.edit-btn, .delete-btn, .save-btn, .cancel-btn, #moveUp, #moveDown, #moveFinish {
|
|
border-radius: 5px; /* Gleiche abgerundete Ecken für alle Buttons */
|
|
padding: 5px 10px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
color: white;
|
|
}
|
|
.edit-btn {
|
|
background-color: #007bff; /* Blau */
|
|
}
|
|
.delete-btn {
|
|
background-color: #dc3545; /* Rot */
|
|
}
|
|
.save-btn {
|
|
background-color: #28a745; /* Grün */
|
|
}
|
|
.cancel-btn {
|
|
background-color: #dc3545; /* Rot */
|
|
}
|
|
/* Level-Input-Feld */
|
|
.level-input-container {
|
|
display: inline-block;
|
|
margin-right: 10px;
|
|
}
|
|
.level-input {
|
|
width: 60px;
|
|
text-align: center;
|
|
}
|
|
/* Bearbeitungsmodus-Stil */
|
|
.editing {
|
|
background-color: #e7f0ff; /* Hellblau als Hinweis für Bearbeitungsmodus */
|
|
border: 1px solid #007bff;
|
|
padding: 5px;
|
|
}
|
|
#backToHome {
|
|
border: none;
|
|
border-radius: 5px;
|
|
padding: 5px 10px;
|
|
cursor: pointer;
|
|
background-color: #007bff; /* Blau */
|
|
color: white;
|
|
margin: 20px;
|
|
position: absolute;
|
|
top: 10px;
|
|
left: 10px;
|
|
}
|
|
|
|
/* Stile für den Container */
|
|
#vocab-add-container {
|
|
margin-bottom: 20px; /* Abstand nach unten für die Tabelle */
|
|
}
|
|
|
|
/* Stile für das Formular */
|
|
#add-vocab-form {
|
|
margin-bottom: 10px; /* Abstand nach unten für den Button */
|
|
}
|
|
|
|
/* Stile für den "Hinzufügen"-Button */
|
|
#addVocab {
|
|
background-color: #007bff; /* Hintergrundfarbe des Buttons */
|
|
color: #fff; /* Schriftfarbe */
|
|
border: none; /* Kein Rand */
|
|
border-radius: 5px; /* Abgerundete Ecken */
|
|
padding: 10px 20px; /* Innenabstand (Padding) */
|
|
font-size: 16px; /* Schriftgröße */
|
|
cursor: pointer; /* Zeiger-Cursor beim Hover */
|
|
transition: background-color 0.3s ease; /* Übergangseffekt für Hover */
|
|
}
|
|
|
|
/* Hover-Effekt für den Button */
|
|
#addVocab:hover {
|
|
background-color: #0056b3; /* Dunklere Hintergrundfarbe beim Hover */
|
|
}
|
|
|
|
/* Stile für die Tabelle */
|
|
#vocab-list {
|
|
width: 100%; /* Tabellenbreite auf 100% setzen */
|
|
border-collapse: collapse; /* Ränder zusammenführen */
|
|
}
|
|
|
|
/* Stile für die Tabellenüberschriften */
|
|
#vocab-list th {
|
|
background-color: #f2f2f2; /* Hintergrundfarbe der Überschriften */
|
|
padding: 10px; /* Innenabstand der Überschriften */
|
|
text-align: left; /* Textausrichtung */
|
|
border-bottom: 2px solid #ddd; /* Untere Grenze der Überschriften */
|
|
}
|
|
|
|
/* Stile für die Tabellenzellen */
|
|
#vocab-list td {
|
|
padding: 10px; /* Innenabstand der Zellen */
|
|
border-bottom: 1px solid #ddd; /* Untere Grenze der Zellen */
|
|
}
|
|
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<button id="backToHome">Zurück zur Startseite</button>
|
|
<h1>Meine Vokabeln</h1>
|
|
<div class="container">
|
|
<!-- Input-Bereich für Vokabeln -->
|
|
<div id="vocab-input">
|
|
<input type="text" id="englishInput" placeholder="Englisch">
|
|
<input type="text" id="germanInput" placeholder="Deutsch">
|
|
<!-- Das Level-Feld wird entfernt -->
|
|
<button id="addVocab">Hinzufügen</button>
|
|
</div>
|
|
|
|
<!-- Tabellen für Vokabeln -->
|
|
<table id="vocab-list-1" class="red">
|
|
<thead>
|
|
<tr class="table-header">
|
|
<td colspan="4">Neue Vokabeln</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Englisch</th>
|
|
<th>Deutsch</th>
|
|
<th>Aktionen</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody></tbody>
|
|
</table>
|
|
|
|
<table id="vocab-list-2" class="orange">
|
|
<thead>
|
|
<tr class="table-header">
|
|
<td colspan="4">Vokabeln, die noch nicht sitzen</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Englisch</th>
|
|
<th>Deutsch</th>
|
|
<th>Aktionen</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody></tbody>
|
|
</table>
|
|
|
|
<table id="vocab-list-3" class="yellow">
|
|
<thead>
|
|
<tr class="table-header">
|
|
<td colspan="4">Vokabeln, die fast sitzen</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Englisch</th>
|
|
<th>Deutsch</th>
|
|
<th>Aktionen</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody></tbody>
|
|
</table>
|
|
|
|
<table id="vocab-list-4" class="green">
|
|
<thead>
|
|
<tr class="table-header">
|
|
<td colspan="4">Vokabeln, die gut sitzen</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Englisch</th>
|
|
<th>Deutsch</th>
|
|
<th>Aktionen</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody></tbody>
|
|
</table>
|
|
|
|
<table id="vocab-list-5" class="darkgreen">
|
|
<thead>
|
|
<tr class="table-header">
|
|
<td colspan="4">Perfekte Vokabeln</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Englisch</th>
|
|
<th>Deutsch</th>
|
|
<th>Aktionen</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody></tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<script src="static/vocab.js"></script>
|
|
</body>
|
|
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|