feature+ui(members): issue #90 HTML - Use pagination
Add paginate into sib-display. Add styles to buttons and span inside the new <nav> generated.
This commit is contained in:
parent
38fd951ac1
commit
6d9c958f34
@ -7,6 +7,7 @@ div.grid-layer
|
|||||||
data-src=`${sdn}/members/`,
|
data-src=`${sdn}/members/`,
|
||||||
counter-template='${counter} members',
|
counter-template='${counter} members',
|
||||||
data-fields='header, infos',
|
data-fields='header, infos',
|
||||||
|
paginate-by='3',
|
||||||
|
|
||||||
set-header='user.account.picture, user, pseudonym, bio, send',
|
set-header='user.account.picture, user, pseudonym, bio, send',
|
||||||
widget-user.account.picture='sib-display-img',
|
widget-user.account.picture='sib-display-img',
|
||||||
@ -30,7 +31,7 @@ div.grid-layer
|
|||||||
search-label-skills='Search by skills',
|
search-label-skills='Search by skills',
|
||||||
search-widget-skills='sib-form-placeholder-text',
|
search-widget-skills='sib-form-placeholder-text',
|
||||||
next='member')
|
next='member')
|
||||||
//-div.grid-layer-links.containerV
|
div.grid-layer-links.containerV
|
||||||
div.containerH.containerCenter.how-link
|
div.containerH.containerCenter.how-link
|
||||||
div.containerV.fix.icon-idea
|
div.containerV.fix.icon-idea
|
||||||
div.containerV.grow
|
div.containerV.grow
|
||||||
|
@ -5,6 +5,10 @@ document.addEventListener('DOMContentLoaded', function (event) {
|
|||||||
const btnRightMenu = document.querySelector('#jsOffsiteToggle');
|
const btnRightMenu = document.querySelector('#jsOffsiteToggle');
|
||||||
const rightMenu = document.querySelector('#jsRightMenu');
|
const rightMenu = document.querySelector('#jsRightMenu');
|
||||||
|
|
||||||
|
const display = document.querySelector('sib-display#profiles-list');
|
||||||
|
const nav = display.querySelector("nav");
|
||||||
|
console.log(nav);
|
||||||
|
|
||||||
if (!navBar || !btnToggle) return;
|
if (!navBar || !btnToggle) return;
|
||||||
|
|
||||||
btnToggle.addEventListener('click', e => {
|
btnToggle.addEventListener('click', e => {
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
.frame-form {
|
.frame-form {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: space-between;
|
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
min-height: 100%;
|
min-height: 100vh;
|
||||||
padding: 4em 5em 6em;
|
padding: 4em 5em 6em;
|
||||||
@extend %frame;
|
@extend %frame;
|
||||||
|
|
||||||
|
@ -70,6 +70,16 @@ h5 {
|
|||||||
outline: 2px dotted red;
|
outline: 2px dotted red;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
background: none;
|
||||||
|
border: none;
|
||||||
|
cursor: pointer;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
text-decoration: none;
|
||||||
|
-webkit-appearance: none;
|
||||||
|
}
|
||||||
|
|
||||||
#job-offers,
|
#job-offers,
|
||||||
#members {
|
#members {
|
||||||
@extend %content-padding;
|
@extend %content-padding;
|
||||||
|
@ -1,6 +1,35 @@
|
|||||||
#profiles-list {
|
#profiles-list {
|
||||||
@extend .grid-layer;
|
@extend .grid-layer;
|
||||||
|
|
||||||
|
nav {
|
||||||
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
|
font-size: 24px;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
|
button {
|
||||||
|
color: $color-anti-flash-white;
|
||||||
|
|
||||||
|
&:before {
|
||||||
|
color: $color-dark-lava;
|
||||||
|
@include icon('arrow-left-circle');
|
||||||
|
}
|
||||||
|
|
||||||
|
&:disabled::before {
|
||||||
|
color: $color-manatee;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
button:nth-of-type(2) {
|
||||||
|
order: 1;
|
||||||
|
transform: rotate(180deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
span {
|
||||||
|
font-size: 26px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
& > sib-form {
|
& > sib-form {
|
||||||
grid-column-start: start;
|
grid-column-start: start;
|
||||||
grid-column-end: middle;
|
grid-column-end: middle;
|
||||||
@ -8,13 +37,17 @@
|
|||||||
grid-row-end: middle;
|
grid-row-end: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
& > div {
|
& > div,
|
||||||
|
& > nav {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
grid-column-start: start;
|
grid-column-start: start;
|
||||||
grid-column-end: end;
|
grid-column-end: end;
|
||||||
justify-content: space-between;
|
|
||||||
margin-bottom: 1em;
|
margin-bottom: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
& > div {
|
||||||
|
justify-content: space-between;
|
||||||
|
|
||||||
&:first-of-type {
|
&:first-of-type {
|
||||||
color: $color-quartz;
|
color: $color-quartz;
|
||||||
|
@ -15,6 +15,7 @@ $color-text-base: hsl(213, 4%, 50%);
|
|||||||
$color-gainsboro: hsl(213, 13%, 86%);
|
$color-gainsboro: hsl(213, 13%, 86%);
|
||||||
$color-gainsboro-a02: hsla(213, 13%, 86%, 0.2);
|
$color-gainsboro-a02: hsla(213, 13%, 86%, 0.2);
|
||||||
$color-bombay: hsl(215, 9%, 73%);
|
$color-bombay: hsl(215, 9%, 73%);
|
||||||
|
$color-manatee: hsl(215, 6%, 63%);
|
||||||
$color-dark-lava: hsl(216, 4%, 22%);
|
$color-dark-lava: hsl(216, 4%, 22%);
|
||||||
$color-link-water: hsl(221, 51%, 90%);
|
$color-link-water: hsl(221, 51%, 90%);
|
||||||
$color-glitter: hsl(222, 57%, 95%);
|
$color-glitter: hsl(222, 57%, 95%);
|
||||||
|
Loading…
Reference in New Issue
Block a user