hello
- User
hello
- Assistant
Hello! How can I assist you today?
- User
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
hello
Hello! How can I assist you today?
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
<!-- Filtrer par nom -->
<div class="form-check mb-2">
<input
id="filterByName"
class="form-check-input"
type="checkbox"
[(ngModel)]="filterByName"
(change)="applyFilters()"
/>
<label class="form-check-label" for="filterByName">
Nom
</label>
</div>
<div class="input-group mb-4">
<input
type="text"
class="form-control"
placeholder="Entrez un nom…"
[(ngModel)]="nameTerm"
[disabled]="!filterByName"
(ngModelChange)="applyFilters()"
/>
<button class="btn btn-outline-secondary" (click)="applyFilters()">
OK
</button>
</div>
<!-- Filtrer par spécialité -->
<div class="mb-4">
<label class="form-label">Spécialité</label>
<input
type="text"
class="form-control"
placeholder="Entrez une spécialité…"
[(ngModel)]="specialiteTerm"
(ngModelChange)="applyFilters()"
/>
</div>
<!-- Filtrer par ville -->
<div class="mb-4">
<label class="form-label">Ville</label>
<input
type="text"
class="form-control"
placeholder="Entrez une ville…"
[(ngModel)]="villeTerm"
(ngModelChange)="applyFilters()"
/>
</div>
<!-- Filtrer par genre -->
<div class="mb-4">
<label class="form-label d-block">Genre</label>
<div class="form-check form-check-inline">
<input
id="genreAll"
class="form-check-input"
type="radio"
name="genre"
[value]="''"
[(ngModel)]="genreFilter"
(change)="applyFilters()"
checked
/>
<label class="form-check-label" for="genreAll">Tous</label>
</div>
<div class="form-check form-check-inline">
<input
id="genreMale"
class="form-check-input"
type="radio"
name="genre"
value="male"
[(ngModel)]="genreFilter"
(change)="applyFilters()"
/>
<label class="form-check-label" for="genreMale">Homme</label>
</div>
<div class="form-check form-check-inline">
<input
id="genreFemale"
class="form-check-input"
type="radio"
name="genre"
value="female"
[(ngModel)]="genreFilter"
(change)="applyFilters()"
/>
<label class="form-check-label" for="genreFemale">Femme</label>
</div>
</div>
</aside>
<!-- MAIN CONTENT -->
<main class="col-md-9 main-content">
<div *ngIf="!filteredMedecins.length" class="text-center mt-5">
<p>Aucun médecin trouvé avec ces critères.</p>
</div>
<div class="row g-4">
<div
class="col-sm-6 col-lg-4"
*ngFor="let medecin of filteredMedecins"
>
<div class="card h-100 medecin-card shadow-sm">
<img
[src]="'http://localhost:8080/upload/files/' + medecin.image"
class="card-img-top doctor-image"
alt="Dr {{ medecin.fullName }}"
/>
<div class="card-body text-center">
<h5 class="card-title">Dr {{ medecin.fullName }}</h5>
<p class="card-text mb-1">
<strong>Spécialité:</strong> {{ medecin.specialite }}
</p>
<p class="card-text mb-1">
<strong>Ville:</strong> {{ medecin.ville }}
</p>
</div>
<div class="card-footer text-center bg-white">
<a
[routerLink]="['/addrendezvous', medecin.id_user]"
class="btn btn-outline-primary"
>
Prendre Rendez-vous
</a>
</div>
</div>
</div>
</div>
</main>
/* Global Styles */ body { background: linear-gradient(to bottom right, #e0f7fa, #b2ebf2); min-height: 100vh; font-family: 'Roboto', sans-serif; }
/* Container */ .liste-medecin { padding: 20px 0; }
/* Sidebar */ .sidebar { background: #ffffff; border-radius: 15px; box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); padding: 25px; transition: all 0.3s ease; }
.sidebar h5 { color: #007bff; font-size: 1.5rem; font-weight: 700; margin-bottom: 25px; text-transform: uppercase; }
.form-check-input { cursor: pointer; accent-color: #007bff; }
.form-check-label, .form-label { font-weight: 500; color: #333; transition: color 0.2s ease; }
.form-check-label:hover { color: #007bff; }
.input-group input { border-radius: 8px 0 0 8px; border: 1px solid #ced4da; box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05); }
.input-group button { border-radius: 0 8px 8px 0; background: linear-gradient(135deg, #007bff, #0056b3); border: none; color: #fff; font-weight: 500; padding: 10px 20px; }
.input-group button:hover { background: linear-gradient(135deg, #0056b3, #003d82); }
/* Main Content */ .main-content { padding: 20px; }
.medecin-card { border: none; border-radius: 15px; background: #fff; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.medecin-card:hover { transform: translateY(-8px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); }
.doctor-image { height: 220px; object-fit: cover; border-bottom: 4px solid #007bff; transition: opacity 0.3s ease; }
.medecin-card:hover .doctor-image { opacity: 0.9; }
.card-body { padding: 25px; background: linear-gradient(to bottom, #f8f9fa, #ffffff); }
.card-title { font-size: 1.35rem; font-weight: 700; color: #2c3e50; margin-bottom: 15px; }
.card-text { font-size: 0.95rem; color: #555; line-height: 1.6; }
.card-footer { background: #f8f9fa; border-top: none; padding: 15px; }
.btn-outline-primary { border-color: #007bff; color: #007bff; border-radius: 25px; padding: 10px 20px; font-weight: 500; transition: all 0.3s ease; }
.btn-outline-primary:hover { background: linear-gradient(135deg, #007bff, #0056b3); color: #fff; border-color: transparent; box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3); }
/* No Results Message */ .text-center.mt-5 { color: #666; font-size: 1.1rem; padding: 40px; background: rgba(255, 255, 255, 0.8); border-radius: 10px; }
/* Custom Animations */ @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.medecin-card { animation: fadeInUp 0.5s ease-out forwards; }
/* Responsive Adjustments */ @media (max-width: 768px) { .sidebar { margin-bottom: 30px; border-radius: 10px; }
.main-content { padding: 10px; }
.doctor-image { height: 180px; }
.card-title { font-size: 1.2rem; }
.btn-outline-primary { padding: 8px 16px; } }
@media (max-width: 576px) { .col-sm-6 { flex: 0 0 100%; max-width: 100%; }
.sidebar { padding: 20px; } }
improve the css with bootstrap and make it better
Certainly! Your current CSS already uses Bootstrap and custom styles — I will improve it leveraging Bootstrap utility classes more effectively, optimizing custom CSS, avoiding redundancy, and improving responsiveness and visual appeal. I’ll also clean up some custom styles where Bootstrap covers them well.
/* Global Styles */
body {
background: linear-gradient(to bottom right, #e0f7fa, #b2ebf2);
min-height: 100vh;
font-family: 'Roboto', sans-serif;
}
/* Container */
.liste-medecin {
padding-top: 2rem;
padding-bottom: 2rem;
}
/* Sidebar */
.sidebar {
background: #fff;
border-radius: 1rem;
box-shadow: 0 0.375rem 0.75rem rgba(0, 0, 0, 0.1);
padding: 2rem 1.5rem;
transition: all 0.3s ease;
}
.sidebar h5 {
color: #0d6efd; /* Bootstrap primary */
font-size: 1.5rem;
font-weight: 700;
margin-bottom: 1.5rem;
text-transform: uppercase;
}
/* Leverage Bootstrap's form-check for cursor */
.form-check-input {
cursor: pointer;
accent-color: #0d6efd;
/* No need for cursor:pointer override if Bootstrap default */
}
.form-check-label,
.form-label {
font-weight: 500;
color: #212529;
transition: color 0.2s ease;
}
.form-check-label:hover {
color: #0d6efd;
}
/* Input group improvements */
/* Use Bootstrap rounded classes for left & right rounded corners */
.input-group input.form-control {
border-right: 0;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
.input-group .btn {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
background-image: linear-gradient(135deg, #0d6efd, #0a58ca);
border: none;
color: #fff;
font-weight: 500;
padding: 0.5rem 1.25rem;
transition: background-image 0.3s ease;
}
.input-group .btn:hover {
background-image: linear-gradient(135deg, #0a58ca, #084298);
}
/* Main content padding */
.main-content {
padding: 1.5rem 1rem;
}
/* Card Styles */
.medecin-card {
border: none;
border-radius: 1rem;
background: #fff;
overflow: hidden;
transition: transform 0.3s ease, box-shadow 0.3s ease;
animation: fadeInUp 0.5s ease-out forwards;
}
.medecin-card:hover {
transform: translateY(-0.5rem);
box-shadow: 0 0.625rem 1.25rem rgba(0, 0, 0, 0.15);
}
/* Use Bootstrap utility for image to fill card top */
.doctor-image {
height: 220px;
object-fit: cover;
border-bottom: 0.25rem solid #0d6efd;
transition: opacity 0.3s ease;
width: 100%;
}
.medecin-card:hover .doctor-image {
opacity: 0.9;
}
/* Card body */
.card-body {
padding: 1.5rem;
background: linear-gradient(to bottom, #f8f9fa, #ffffff);
}
.card-title {
font-size: 1.35rem;
font-weight: 700;
color: #212529;
margin-bottom: 1rem;
}
.card-text {
font-size: 0.95rem;
color: #555;
line-height: 1.5;
margin-bottom: 0.5rem;
}
.card-footer {
background: #f8f9fa;
border-top: none;
padding: 1rem;
text-align: center;
}
/* Use Bootstrap button outline-primary with modifications */
.btn-outline-primary {
border-radius: 2rem;
font-weight: 600;
padding: 0.5rem 1.5rem;
color: #0d6efd;
border-color: #0d6efd;
transition: all 0.3s ease;
box-shadow: none;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
background-image: linear-gradient(135deg, #0d6efd, #0a58ca);
color: #fff;
border-color: transparent;
box-shadow: 0 0.25rem 0.625rem rgba(13, 110, 253, 0.4);
outline: none;
}
/* No Results Message */
.text-center.mt-5 {
color: #6c757d; /* Bootstrap secondary text */
font-size: 1.1rem;
padding: 2.5rem 2rem;
background: rgba(255, 255, 255, 0.85);
border-radius: 0.625rem;
}
/* Animations */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(1.25rem);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Responsive Improvements */
@media (max-width: 768px) {
.sidebar {
margin-bottom: 2rem;
border-radius: 0.75rem;
padding: 1.5rem 1rem;
}
.main-content {
padding: 1rem 0.5rem;
}
.doctor-image {
height: 180px;
}
.card-title {
font-size: 1.25rem;
}
.btn-outline-primary {
padding: 0.5rem 1.25rem;
}
}
@media (max-width: 576px) {
.col-sm-6 {
flex: 0 0 100%;
max-width: 100%;
}
.sidebar {
padding: 1rem;
}
}
#0d6efd is Bootstrap 5 primary blue) for color consistency.cursor:pointer on .form-check-input)..btn-outline-primary with a custom gradient background on hover — consistent modern look.If you wish, you can also consider using Bootstrap utility classes directly in your HTML to minimize custom CSS even further — e.g., use Bootstrap spacing, text color, and background utilities to reduce custom selectors.
If you want me to help refactor the HTML to use Bootstrap utility classes more intensively or want help with the Angular component typescript logic (applyFilters()), just ask!
Not yet included in a published release.