Skip to content
Snippets Groups Projects
Commit 8d9b6f86 authored by Benoit Alessandroni's avatar Benoit Alessandroni
Browse files

Adding proper compiling of css and sib-oidc draft

parent 839f7aa0
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@ clean:
install: node_modules copy_lib copy_samples
build: $(DIST_DIR)/index.html $(DIST_DIR)/styles/index.css $(SCRIPT_DEST)
build: $(DIST_DIR)/index.html $(DIST_DIR)/styles/coopstarter.css $(SCRIPT_DEST)
watch:
@echo 'watching for change'
......@@ -60,7 +60,7 @@ $(DIST_DIR)/index.staging.html: src/index.pug src/config.json $(wildcard src/*.p
node_modules/.bin/pug --pretty $< --out $(dir $@) -E staging.html -O src/config.json || touch $@
# sass
$(DIST_DIR)/styles/index.css: src/styles/index.scss $(wildcard src/*.scss src/*/*.scss)
$(DIST_DIR)/styles/coopstarter.css: src/styles/index.scss $(wildcard src/*.scss src/*/*.scss)
@echo sass: $<$@
@node_modules/.bin/node-sass $< $@ --source-map true --source-map-contents || touch $@
......
......@@ -4,8 +4,7 @@ head
script(src="https://unpkg.com/@webcomponents/webcomponentsjs@1.2.7/webcomponents-loader.js")
script(type="module" src="https://unpkg.com/@startinblox/core@0.6")
script(type="module" src="https://unpkg.com/@startinblox/router@0.6")
script(type="module" src="https://unpkg.com/@startinblox/oidc@0.6")
script(src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous")
script(src="/scripts/bootstrap.min.js")
script(src="/scripts/coopstarter.js")
link(rel="stylesheet" href="/styles/bootstrap.min.css")
link(rel="stylesheet" href="/styles/coopstarter.css")
sib-widget(name='account-user-avatar')
template
img(name="${name}",src="\${value || '/images/alien.jpg'}",style="max-width:100%; max-height: 100%;")
.container
.d-flex.justify-content-between
a(href='/') Mentorship program
include menu.pug
sib-display#user-controls__profile(
data-fields='first_name, account.picture',
widget-account.picture='account-user-avatar',
bind-user
)
button(role='log in' onclick="document.querySelector('sib-auth').login();") Login
sib-auth
sib-auth-provider(
class="sib-auth-provider"
data-authority=`${sdn}/openid/`
data-client_id=`${client_id}`,
data-id="coopstarter"
data-response_type='id_token token',
data-scope='openid profile email',
data-automaticSilentRenew='true',
data-loadUserInfo='true'
)
\ No newline at end of file
@charset "UTF-8";
@import '../../node_modules/include-media/dist/include-media';
@import '../../node_modules/normalize.css/normalize';
@import "variables";
@import "header";
\ No newline at end of file
@import "header";
div#viewport {
display: flex;
flex-grow: 1;
flex-shrink: 1;
overflow-y: auto;
// @import 'components/index';
// @import 'layout/members/index';
// @import 'layout/job-offers/index';
// @import 'layout/project-profile/index';
// @import 'layout/circle-profile/index';
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment