Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
Search input
Browse files Browse the repository at this point in the history
  • Loading branch information
eoussama committed Jan 12, 2024
1 parent c5fbfee commit a6e1f66
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 6 deletions.
4 changes: 4 additions & 0 deletions src/images/icons/search.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 26 additions & 3 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
href="styles/particles.css"
>

<title>Web Service Projet 1 - Covid-19</title>
<title>Web Service Projet 1 - Covid-19 Stats</title>
</head>

<body>
Expand Down Expand Up @@ -252,12 +252,35 @@ <h5 class="card-title">Vaccinations Annuelles par Pays</h5>
<div
data-aos="fade-up"
data-aos-delay="600"
class="card card-cust card-cust--chart shadow border border-0"
class="card card-cust card-cust--table shadow border border-0"
>
<div class="card-head row p-4">
<div class="col">
<div class="col col-md-8">
<h5 class="card-title">Classement des Pays et des Provinces en Fonction du Nombre Total de Cas</h5>
</div>

<div class="col col-md-4">
<div class="input-group input-group--search">
<span
class="input-group-text"
id="basic-addon1"
>
<img
alt="Search Icon"
src="images/icons/search.svg"
>
</span>

<input
type="search"
class="form-control"
id="table-search-input"
placeholder="Recherche de pays..."
aria-label="Search"
aria-describedby="basic-addon1"
>
</div>
</div>
</div>

<div class="card-body">
Expand Down
6 changes: 3 additions & 3 deletions src/styles/modal.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@
align-items: center;
flex-direction: column;
justify-content: center;

margin: 20px 0;
color: #53567e;
}

.modal .modal-body > * {
.modal .modal-body>* {
margin-top: -10px;
}

.modal .loader {
height: 60px;

margin-bottom: 15px;
transform: scale(0.5);

aspect-ratio: 1;
Expand Down
36 changes: 36 additions & 0 deletions src/styles/table.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,40 @@
.table td:is(.cases, .deaths),
.table th:is(.cases, .deaths) {
text-align: right;
}

.input-group.input-group--search {
max-width: 300px;

margin-bottom: 0;
margin-left: auto;
}

.input-group.input-group--search .input-group-text {
padding: 8px;
background-color: #ced0ff;
}

.input-group.input-group--search img {
width: 20px;
opacity: 0.7;
}

.input-group.input-group--search input {
color: #53567e;
background-color: #ced0ff;
}

.input-group.input-group--search input::placeholder {
color: #53567e;
font-weight: 100;
}

.card.card-cust.card-cust--table .card-head>div {
display: flex;
align-items: center;
}

.card.card-cust.card-cust--table .card-head .card-title {
margin-bottom: 0;
}

0 comments on commit a6e1f66

Please sign in to comment.