Skip to content
Snippets Groups Projects
Commit 5b7aa2ad authored by Hugo BAYOUD's avatar Hugo BAYOUD
Browse files

make Card UI

parent 30639b50
No related branches found
No related tags found
1 merge request!1Resolve "[FRONT] Créer la page : choix des bars"
This commit is part of merge request !1. Comments created here will be created in the context of that merge request.
.logo-img {
height: 60px;
width: 60px;
}
.row-container {
display: flex;
flex-flow: row nowrap;
padding: 2px;
}
.center {
justify-content: center;
align-items: center;
}
.card {
background-color: #DCDCDC;
border-radius: 5px;
border: 1px #222222 solid;
margin: 5px 15px;
}
.card-header, .card-actions {
background-color: inherit;
border: 0;
flex-grow: 0;
margin: 0;
padding: 0;
}
.card-actions {
flex-grow: 1;
}
.card-content {
flex-grow: 100;
text-align: start;
}
.card-content > p {
font-size: 0.9em;
font-weight: bold;
color: #6E2424;
}
.card-content > div {
font-size: 0.8em;
}
.card-action {
flex-grow: 1;
}
\ No newline at end of file
<p>bars works!</p>
<p>
<button mat-raised-button routerLink="/profile" color="primary">profile</button>
<button mat-raised-button routerLink="/photos" color="accent">photos</button>
</p>
<ul>
<li *ngFor="let bar of (bars$ | async)">{{ bar.shortname }} - {{ bar.longname }}</li>
</ul>
\ No newline at end of file
<mat-icon>store_mall_directory</mat-icon>
<p>Choisis ton lieu de beuverie.
Tu pourras ensuite accéder à la carte des boissons.</p>
<section>
<div *ngFor="let bar of (bars$ | async)" class=" card row-container center">
<div class="card-header">
<img class="logo-img" src="https://fakeimg.pl/300/" alt="fake-img">
</div>
<div class="card-content">
<p>{{ bar.longname }}</p>
<div>{{ bar.address }}</div>
</div>
<div class="card-action">
<button mat-raised-button color='accent'>choisir</button>
</div>
</div>
</section>
......@@ -2,7 +2,7 @@
@import '~@angular/material/prebuilt-themes/deeppurple-amber.css';
html, body { height: 100%; }
body { margin: 0; font-family: Roboto, "Helvetica Neue", sans-serif; background-color: #f1f1f1; text-align: center;}
body { margin: 0; font-family: Roboto, "Helvetica Neue", sans-serif; background-color: #f1f1f1; text-align: center; color: #222222}
.link {
outline: 0;
......@@ -20,11 +20,17 @@ body { margin: 0; font-family: Roboto, "Helvetica Neue", sans-serif; background-
.column-container {
flex-direction: column;
flex-flow: column nowrap;
padding: 5px;
}
.row-container {
display: flex;
flex-flow: row nowrap;
padding: 5px;
}
.column-container > * {
.column-container > *, .row-container > * {
margin: 5px;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment