Merge branch 'gm-update' into 'staging'

Gm update

See merge request startinblox/applications/sib-app!36
This commit is contained in:
Jean-Baptiste Pasquier 2019-05-22 12:52:19 +00:00
commit d9e4cd845e
7 changed files with 121 additions and 121 deletions

View File

@ -17,8 +17,8 @@ link(rel='stylesheet', href='https://fonts.googleapis.com/css?family=Open+Sans:3
//- CDN //- CDN
script(type="module" src="https://unpkg.com/@startinblox/core@0.7") script(type="module" src="https://unpkg.com/@startinblox/core@0.7")
script(type="module" src="https://unpkg.com/@startinblox/router@0.7.2") script(type="module" src="https://unpkg.com/@startinblox/router@0.7.2")
script(type="module" src="https://unpkg.com/@startinblox/component-chat@0.1.7") script(type="module" src="https://unpkg.com/@startinblox/component-chat@0.1.10")
script(type="module" src="https://unpkg.com/@startinblox/component-notifications@0.1.12") script(type="module" src="https://unpkg.com/@startinblox/component-notifications@0.1.12")
script(type="module" src="https://unpkg.com/@startinblox/component-conversation@0.2.1") script(type="module" src="https://unpkg.com/@startinblox/component-conversation@0.2.1")
script(type="module" src="https://unpkg.com/@startinblox/component-directory@0.1.16") script(type="module" src="https://unpkg.com/@startinblox/component-directory@0.1.18")

View File

@ -31,5 +31,5 @@ html(lang="en")
#circle(hidden).with-sidebar #circle(hidden).with-sidebar
include page-circle.pug include page-circle.pug
#member-chat(hidden).with-sidebar #messages(hidden).with-sidebar
include page-member-chat.pug include page-messages.pug

View File

@ -46,13 +46,13 @@ nav#main__menu
div.menu-icon.icon-arrow-up div.menu-icon.icon-arrow-up
div.menu-label Chat div.menu-label Chat
div.menu-icon.icon-envelope-letter div.menu-icon.icon-envelope-letter
sib-route(hidden, name='member-chat', id-prefix=`${sdn}/members/`, rdf-type='foaf:user', use-id='') sib-route(hidden, name='messages', id-prefix=`${sdn}/members/`, rdf-type='foaf:user', use-id='')
div.sub-menu div.sub-menu
sib-display( sib-display(
data-src=`${sdn}/members/`, data-src=`${sdn}/members/`,
data-fields='user.username', data-fields='user.username',
widget-user.username='sib-display-div', widget-user.username='sib-display-div',
next='member-chat' next='messages'
) )
div.divider div.divider

View File

@ -7,7 +7,8 @@ div.job-offers__main
sib-widget(name='hd-contact-author') sib-widget(name='hd-contact-author')
template template
sib-link(next='member-chat', data-src="${value.profile['@id']}") Send a message p ${JSON.stringify(value)}
sib-link(next='messages', data-src="${value.profile['@id']}") Send a message
div.job-offers__content div.job-offers__content
h1 New offers h1 New offers

View File

@ -3,12 +3,14 @@
flex-direction: column; flex-direction: column;
flex-grow: 1; flex-grow: 1;
#member-info { .member-info {
background-color: $color-0-0-100; background-color: $color-0-0-100;
box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.14); box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.14);
margin: 2rem 1rem 5rem 2rem; margin: 2rem 1rem 5rem 2rem;
min-height: 100vh; min-height: 100vh;
.member-bio {
div[name='member-profile__bio'] { div[name='member-profile__bio'] {
border-bottom: 1px solid $color-221-51-90; border-bottom: 1px solid $color-221-51-90;
display: grid; display: grid;
@ -32,18 +34,18 @@
} }
div[name='member-profile'] { div[name='member-profile'] {
align-items: flex-start; align-items: baseline;
align-self: end; align-self: end;
display: flex; display: flex;
grid-area: name; grid-area: name;
> sib-display-value[name^='user.'] { >sib-display-value[name^='user.'] {
color: $color-216-4-22; color: $color-216-4-22;
font-weight: bold; font-weight: bold;
@extend h1; @extend h1;
} }
> sib-multiple[name$='groups'] { >sib-multiple[name$='groups'] {
display: flex; display: flex;
padding-left: 1.4rem; padding-left: 1.4rem;
} }
@ -67,7 +69,7 @@
@extend %member-info; @extend %member-info;
} }
member-status[name$='available']{ member-status[name$='available'] {
align-self: flex-end; align-self: flex-end;
color: $color-244-73-62; color: $color-244-73-62;
grid-area: status; grid-area: status;
@ -109,7 +111,7 @@
justify-self: flex-end; justify-self: flex-end;
} }
[next=member-chat] { [next=messages] {
@include icon('speech'); @include icon('speech');
border: 1px solid $color-244-73-62; border: 1px solid $color-244-73-62;
border-radius: 2em; border-radius: 2em;
@ -125,15 +127,12 @@
} }
} }
} }
div[name='member-profile__skills'] {
padding: 4.5rem;
& ~ div[name='member-profile__skills'] {
padding-top: 0;
} }
.member-skills {
label { label {
float: left;
font-weight: bold; font-weight: bold;
display: block; display: block;
padding-bottom: 0.5rem; padding-bottom: 0.5rem;

View File

@ -191,7 +191,7 @@ member-info-groups {
text-align: center; text-align: center;
} }
[next=member-chat] { [next=messages] {
align-self: center; align-self: center;
border: 1px solid $color-244-73-62; border: 1px solid $color-244-73-62;
border-radius: 3.4rem; border-radius: 3.4rem;