From 0d6a1964a33913686898019314f254f27bc76d21 Mon Sep 17 00:00:00 2001 From: fred <fred> Date: Mon, 9 Sep 2019 10:05:25 +0200 Subject: [PATCH 1/3] Adding style to entrepreneur form --- src/includes/entrepreneur/create.pug | 12 +++++-- src/includes/mentor/create.pug | 1 + src/includes/mentor/profile.pug | 2 ++ src/includes/mentor/resources/list.pug | 5 +++ src/styles/index.scss | 48 +++++++++++++++++++++++--- 5 files changed, 62 insertions(+), 6 deletions(-) diff --git a/src/includes/entrepreneur/create.pug b/src/includes/entrepreneur/create.pug index 2cc9a0be..1a07b382 100644 --- a/src/includes/entrepreneur/create.pug +++ b/src/includes/entrepreneur/create.pug @@ -1,8 +1,16 @@ include ../components/widgets -h2.title_form Complete your entrepreneur account +figure.logo + img(src="../images/logo.png" + alt="Coopstarter") -sib-form( +figure.logo.img_log + img(src="../images/fusee.png" + alt="Create an entrepreneur account") + +h2.title_create Complete your entrepreneur account + +sib-form.block_log.block_creat_count( bind-user fields="last_name, first_name, entrepreneur_profile.organisation, username" diff --git a/src/includes/mentor/create.pug b/src/includes/mentor/create.pug index 35804186..3b6d162d 100644 --- a/src/includes/mentor/create.pug +++ b/src/includes/mentor/create.pug @@ -36,6 +36,7 @@ sib-form.block_log.block_creat_count( label-mentor_profile.fields="Fields" label-account.picture="Photo" label-mentor_profile.headline="Headline or current position" + class-mentor_profile.headline="w_75" label-mentor_profile.city="City" label-mentor_profile.country="Country" label-mentor_profile.biography="Tell us more about your activities" diff --git a/src/includes/mentor/profile.pug b/src/includes/mentor/profile.pug index 60bfd52a..fa3d9272 100644 --- a/src/includes/mentor/profile.pug +++ b/src/includes/mentor/profile.pug @@ -57,7 +57,9 @@ div.block_list.flex bind-user fields='email, mentor_profile.phone, mentor_profile.linkedin, mentor_profile.twitter' label-email='Email:' + classl-email="contact_profil" label-mentor_profile.phone='Phone number:' + class-mentor_profile.phone="contact_profil" widget-email='cs-display-resource-property' widget-mentor_profile.phone='cs-display-resource-property' widget-mentor_profile.linkedin='cs-display-link' diff --git a/src/includes/mentor/resources/list.pug b/src/includes/mentor/resources/list.pug index 103ef4bd..288ea954 100644 --- a/src/includes/mentor/resources/list.pug +++ b/src/includes/mentor/resources/list.pug @@ -56,11 +56,16 @@ div.block_list nested-field='resources' fields='content(name, format, publication_year), actions(review, detail, edit, delete)', widget-review='cs-resource-status', + + class-name="tit_element_list" widget-format='cs-display-multiple-property' label-format='Formats: ' + class-format="contenu_list" each-label-format='' multiple-format + + class-publication_year="contenu_list" widget-publication_year='cs-display-resource-property' label-publication_year='Date of publication:' diff --git a/src/styles/index.scss b/src/styles/index.scss index ccb1604c..2c99a274 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -122,14 +122,14 @@ img{ width: auto; } -.flex, sib-set-default,#resources-history>div div{ +.flex, sib-set-default,#resources-history>div div, #entrepreneur-new-account sib-form form{ display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; } -.flex_espace, sib-set-default,#resources-history>div div{ +.flex_espace, sib-set-default,#resources-history>div div, #entrepreneur-new-account sib-form form{ justify-content: space-between; } sib-set-default[name="actions"]{ @@ -478,6 +478,14 @@ input:focus, textarea:focus{ border-radius: 50%; margin: 0 3rem 0 0; background: url(../images/telecharger.png) no-repeat 52% 67% var(--bg-form); + cursor: pointer; +} + +.input_photo label>input[type="file"]{ + position: absolute; + left: 0; + height: 100px; + opacity: 0; } sib-form-label-text[name="iframe_link"] div{ @@ -648,7 +656,7 @@ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*/ } .button__actions>div { - display: inline-block + display: inline-block; } /* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX @@ -669,6 +677,15 @@ h2.title_create{ } +/* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +XXXXXXXXXXXXXXXXXXXXXXXX PAGE CREATE COMPTE ENTREPRISE XXXXX +XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*/ + +#entrepreneur-new-account sib-form form input[type="submit"]{ //Tempo en fonction champs present + margin-top: 10rem; +} + /* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXX LISTE RESSOURCE XXXXXXXXXXXXXXXXXX @@ -767,6 +784,26 @@ sib-set-default[name="content"]>*{ font-size: 1.4rem; } +div .tit_element_list{ + color: var(--clr-roll-black); + font-size: 1.6rem; +} + +.contenu_list{ + height: 0; +} + +.contenu_list cs-display-multiple-property{ + display: block; +} + +div .contenu_list p, div .contenu_list label{ + color: var(--clr-typo-base); + font-size: 1.4rem; + float: left; + margin-right: 1rem; +} + sib-display-value,sib-multiple label,cs-resource-status div{ font-weight: bold; } @@ -965,7 +1002,10 @@ cs-display-property[name="mentor_profile.country"] p{ clear: both; } - +.contact_profil p{ + color: var(--bg-block); + cursor: pointer; +} /* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXX MEDIA QUERIES XXXXXXXXXXXXXXXXXXXXX -- GitLab From eaf8833b802ecbb628e56d4dd069cce8f1812a98 Mon Sep 17 00:00:00 2001 From: fred <fred> Date: Mon, 9 Sep 2019 10:06:51 +0200 Subject: [PATCH 2/3] Fixing node server --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 7b0f1564..21a3c704 100644 --- a/server.js +++ b/server.js @@ -10,7 +10,7 @@ app .use(express.static(distPath)) // .use('/src', express.static(join(__dirname, 'src'))) .get(/^[^.]*$/, (req, rep) => - rep.sendFile(join(__dirname, distPath, '/index.html')), + rep.sendFile(join(__dirname, distPath, '/index.html')) ) .listen(port); -- GitLab From a4a4f30aef3725a11413ed128636121be3b822a1 Mon Sep 17 00:00:00 2001 From: fred <fred> Date: Mon, 9 Sep 2019 10:14:23 +0200 Subject: [PATCH 3/3] Fixing class --- src/includes/mentor/profile.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/includes/mentor/profile.pug b/src/includes/mentor/profile.pug index fa3d9272..55c9374b 100644 --- a/src/includes/mentor/profile.pug +++ b/src/includes/mentor/profile.pug @@ -57,7 +57,7 @@ div.block_list.flex bind-user fields='email, mentor_profile.phone, mentor_profile.linkedin, mentor_profile.twitter' label-email='Email:' - classl-email="contact_profil" + class-email="contact_profil" label-mentor_profile.phone='Phone number:' class-mentor_profile.phone="contact_profil" widget-email='cs-display-resource-property' -- GitLab