Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
detb-client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hugo BAYOUD
detb-client
Commits
5b7aa2ad
Commit
5b7aa2ad
authored
3 years ago
by
Hugo BAYOUD
Browse files
Options
Downloads
Patches
Plain Diff
make Card UI
parent
30639b50
No related branches found
Branches containing commit
No related tags found
1 merge request
!1
Resolve "[FRONT] Créer la page : choix des bars"
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/app/components/bars/bars.component.css
+54
-0
54 additions, 0 deletions
src/app/components/bars/bars.component.css
src/app/components/bars/bars.component.html
+17
-5
17 additions, 5 deletions
src/app/components/bars/bars.component.html
src/styles.css
+9
-3
9 additions, 3 deletions
src/styles.css
with
80 additions
and
8 deletions
src/app/components/bars/bars.component.css
+
54
−
0
View file @
5b7aa2ad
.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
This diff is collapsed.
Click to expand it.
src/app/components/bars/bars.component.html
+
17
−
5
View file @
5b7aa2ad
<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>
This diff is collapsed.
Click to expand it.
src/styles.css
+
9
−
3
View file @
5b7aa2ad
...
...
@@ -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
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment