Improved the interface of the Import and PoiList components: updated titles and added classes for dark mode.

master
Alix JEUDI--LEMOINE 2 days ago
parent 036c345ac6
commit 9a0e36fa7c

@ -1,13 +1,14 @@
<div class="p-6 max-w-7xl mx-auto"> <div class="container mx-auto px-4 py-8">
<div class="bg-white rounded-lg shadow-lg p-6"> <h2 class="text-3xl mb-8 font-bold text-gray-900 dark:text-white">Import de données</h2>
<div class="bg-white rounded-lg shadow-lg p-6 dark:bg-gray-800">
<div class="mb-6"> <div class="mb-6">
<h2 class="text-2xl font-bold text-gray-900">Import de données</h2> <p class="text-gray-600 dark:text-white">Importez des données depuis une API Geoapify</p>
<p class="text-gray-600">Importez des données depuis une API Geoapify</p>
</div> </div>
<form [formGroup]="importForm" (ngSubmit)="onSubmit()" class="space-y-4"> <form [formGroup]="importForm" (ngSubmit)="onSubmit()" class="space-y-4">
<div class="space-y-2"> <div class="space-y-2">
<label for="apiUrl" class="block text-sm font-medium text-gray-700">URL de l'API</label> <label for="apiUrl" class="block text-sm font-medium text-gray-700 dark:text-white">URL de l'API</label>
<input <input
type="text" type="text"
id="apiUrl" id="apiUrl"
@ -16,11 +17,11 @@
placeholder="https://api.geoapify.com/..." placeholder="https://api.geoapify.com/..."
> >
<div *ngIf="importForm.get('apiUrl')?.hasError('required') && importForm.get('apiUrl')?.touched" <div *ngIf="importForm.get('apiUrl')?.hasError('required') && importForm.get('apiUrl')?.touched"
class="text-red-500 text-sm"> class="text-red-500 text-sm">
L'URL est requise L'URL est requise
</div> </div>
<div *ngIf="importForm.get('apiUrl')?.hasError('pattern') && importForm.get('apiUrl')?.touched" <div *ngIf="importForm.get('apiUrl')?.hasError('pattern') && importForm.get('apiUrl')?.touched"
class="text-red-500 text-sm"> class="text-red-500 text-sm">
L'URL doit commencer par http:// ou https:// L'URL doit commencer par http:// ou https://
</div> </div>
</div> </div>
@ -80,5 +81,5 @@
</button> </button>
</div> </div>
</div> </div>
</div> </div>
</div> </div>

@ -1,6 +1,6 @@
<div class="container mx-auto px-4 py-8"> <div class="container mx-auto px-4 py-8">
<div class="flex justify-between items-center mb-6"> <div class="flex justify-between items-center mb-6">
<h2 class="text-2xl font-bold">Liste des Points d'Intérêt</h2> <h2 class="text-3xl font-bold mb-8 dark:text-white">Liste des Points d'Intérêt</h2>
<button (click)="addPoi()" class="bg-green-500 hover:bg-green-600 text-white px-4 py-2 rounded-md"> <button (click)="addPoi()" class="bg-green-500 hover:bg-green-600 text-white px-4 py-2 rounded-md">
Ajouter un POI Ajouter un POI
</button> </button>

Loading…
Cancel
Save