Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
whats-open-web
Commits
f2efc23d
Commit
f2efc23d
authored
Dec 20, 2016
by
mdsecurity
Browse files
got circle picture
parent
f745b1d0
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/app/location-view/location-view.component.html
View file @
f2efc23d
...
...
@@ -7,8 +7,10 @@
hi
<!--<button (click)="showSidebar = !showSidebar;">Toggle style</button>-->
<div
*ngFor=
"let location of locations"
class=
"location card col-xs"
>
<img
class=
"location-picture"
src=
"{{location.picture}}"
alt=
"Card image"
>
<div
*ngFor=
"let location of locations"
class=
"location-card card col-xs"
>
<img
class=
"location-background-picture"
src=
"{{location.picture}}"
alt=
"Card image"
>
<img
class=
"location-circle-picture"
src=
"{{location.picture}}"
alt=
"Card image"
>
<div
class=
"card-block"
>
<h4
class=
"card-title mb-0"
>
{{location._name}}
</h4>
<p
class=
"card-text"
>
Opening Time: {{location.openTimes[dayOfTheWeek] | date:'shortTime'}}
</p>
...
...
src/app/location-view/location-view.component.scss
View file @
f2efc23d
//card
$card-spacing
:
.5rem
;
$card-width
:
20rem
;
$sidebar-width
:
17rem
;
$card-height
:
25rem
;
$card-border-radius
:
0
.25rem
;
$card-border
:
1px
solid
rgba
(
0
,
0
,
0
,
0
.125
);
//picture height
$card-background-height
:
11rem
;
//card circle pictuer
$card-circle-picture-diameter
:
10rem
;
@import
'../../styles.scss'
;
.app-container
{
@extend
.container
;
...
...
@@ -15,26 +24,37 @@ $sidebar-width:17rem;
display
:
flex
;
}
.location
{
max-width
:
$card-width
;
min-width
:
$card-width
;
margin-top
:
$card-spacing
;
margin-left
:
$card-spacing
;
margin-right
:
$card-spacing
;
margin-bottom
:
$card-spacing
;
.location-card
{
width
:
$card-width
;
height
:
$card-height
;
margin
:
$card-spacing
;
padding
:
0px
;
border-radius
:
$card-border-radius
;
border
:
0
;
overflow
:
hidden
;
box-shadow
:
0
1px
3px
rgba
(
0
,
0
,
0
,
0
.12
)
,
0
1px
2px
rgba
(
0
,
0
,
0
,
0
.24
);
transition
:
all
0
.3s
cubic-bezier
(
.25
,
.8
,
.25
,
1
);
}
.location
:hover
{
.location
-card
:hover
{
box-shadow
:
0
14px
28px
rgba
(
0
,
0
,
0
,
0
.25
)
,
0
10px
10px
rgba
(
0
,
0
,
0
,
0
.22
);
}
.location-picture
{
margin-top
:
2
*
$card-spacing
;
height
:
11rem
;
width
:
18rem
;
display
:
block
;
.location-background-picture
{
height
:
$card-background-height
;
width
:
100%
;
margin-bottom
:
$card-circle-picture-diameter
/
2
;
}
.location-circle-picture
{
position
:
absolute
;
right
:(
$card-width
/
2
)
-
(
$card-circle-picture-diameter
/
2
);
top
:
$card-background-height
-
(
$card-circle-picture-diameter
/
2
);
border-radius
:
50%
;
border
:
3px
solid
rgba
(
255
,
255
,
255
,
1
);
box-shadow
:
0
0
1px
white
;
height
:
$card-circle-picture-diameter
;
width
:
$card-circle-picture-diameter
;
}
.sidebar
{
...
...
src/assets/JC.jpg
0 → 100644
View file @
f2efc23d
150 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment