diff --git a/app/blueprints/blog_routes.py b/app/blueprints/blog_routes.py index f177468..0c12723 100644 --- a/app/blueprints/blog_routes.py +++ b/app/blueprints/blog_routes.py @@ -1,7 +1,10 @@ from flask import Blueprint, render_template, abort -from main import cache, entries +from main import cache +from utilities import prepare_blogs import urllib.parse +# get blogs +entries = prepare_blogs("https://medium.com/feed/@transinformed") blog_bp = Blueprint('blog', __name__) @@ -17,11 +20,11 @@ def blog(title): for rss_blog in entries: if rss_blog.url_title == urllib.parse.quote_plus(title): blog_number = entries.index(rss_blog) - # return 404 if failed to match blog + # return 404 if failed to match blog try: blog = entries[blog_number] except NameError: abort(404) - return render_template("blog.html", blog=blog) + return render_template(f"blogs/{blog.title}.html", blog=blog) diff --git a/app/compilescss.bash b/app/compilescss.bash new file mode 100644 index 0000000..4797164 --- /dev/null +++ b/app/compilescss.bash @@ -0,0 +1,8 @@ +#!/bin/bash +sass ./static/scss/base.scss:./static/css/base.css --style compressed +sass ./static/scss/blog.scss:./static/css/blog.css --style compressed +sass ./static/scss/blogs.scss:./static/css/blogs.css --style compressed +sass ./static/scss/sources.scss:./static/css/sources.css --style compressed +sass ./static/scss/resources.scss:./static/css/resources.css --style compressed +sass ./static/scss/about.scss:./static/css/about.css --style compressed +sass ./static/scss/index.scss:./static/css/index.css --style compressed \ No newline at end of file diff --git a/app/forms/GICs.json b/app/forms/GICs.json index 8cfd72e..15e872a 100644 --- a/app/forms/GICs.json +++ b/app/forms/GICs.json @@ -1 +1 @@ -{"GICs": [["Y-England", "National Referral Support Service - Wait time: 5 years"], ["Y-Wales", "National Referral Support Service - Wait time: 5 years"], ["Wales", "Welsh Gender Service - Cardiff - Wait time (months): 15"], ["Scotland", "Edinburgh Chalmers Centre - Wait time (months): 23"], ["England", "Nottingham Centre for Transgender Health - Wait time (months): 23"], ["Y-Northern Ireland", "Belfast KOI - Wait time (months): 24"], ["Scotland", "Grampian - Wait time (months): 24"], ["Scotland", "Inverness Highland Sexual Health - Wait time (months): 29"], ["Y-Scotland", "Glasgow Youth Sandyford - Wait time (months): 42"], ["England", "Northants Northamptonshire Healthcare Trust - Wait time (months): 53"], ["Scotland", "Glasgow Sandyford - Wait time (months): 55"], ["England", "Leeds and York Partnership Trust - Wait time (months): 57"], ["Northern Ireland", "Belfast Brackenburn Clinic - Wait time (months): 59"], ["England", "London Tavistock and Portman Trust - Wait time (months): 60"], ["England", "Sheffield Porterbrook Clinic - Wait time (months): 62"], ["England", "Exeter Devon Partnership Trust - Wait time (months): 87"]]} +{"GICs": [["Y-England", "National Referral Support Service - Wait time: 5 years"], ["Y-Wales", "National Referral Support Service - Wait time: 5 years"], ["Wales", "Welsh Gender Service - Cardiff - Wait time (months): 15"], ["Scotland", "Edinburgh Chalmers Centre - Wait time (months): 23"], ["Y-Northern Ireland", "Belfast KOI - Wait time (months): 24"], ["Scotland", "Grampian - Wait time (months): 24"], ["England", "Nottingham Centre for Transgender Health - Wait time (months): 27"], ["Scotland", "Inverness Highland Sexual Health - Wait time (months): 29"], ["England", "Northants Northamptonshire Healthcare Trust - Wait time (months): 53"], ["Y-Scotland", "Glasgow Youth Sandyford - Wait time (months): 58"], ["England", "Leeds and York Partnership Trust - Wait time (months): 58"], ["England", "London Tavistock and Portman Trust - Wait time (months): 61"], ["Scotland", "Glasgow Sandyford - Wait time (months): 65"], ["England", "Sheffield Porterbrook Clinic - Wait time (months): 65"], ["Northern Ireland", "Belfast Brackenburn Clinic - Wait time (months): 75"], ["England", "Exeter Devon Partnership Trust - Wait time (months): 88"]]} \ No newline at end of file diff --git a/app/main.py b/app/main.py index f2281f3..8ef1e1d 100644 --- a/app/main.py +++ b/app/main.py @@ -65,11 +65,6 @@ def handle_error(error): return make_response(render_template("error.html", name=error.name ,code=error.code, description=error.description), error.code) # add header rows on blog posts before each heading and style images -@app.template_filter('stylish') -def stylish(text): - text = text.replace("

", "\n
\n

") - text = text.replace("", "

", 1) + blog_content = blog_content.replace("

", "

") + blog_content = blog_content.replace("", "
") + blog_content = blog_content.replace("

", "

") + blog_content = blog_content.replace("", "") + blog_content = blog_content.replace("

", "
") + blog_content = blog_content.replace("

", "

") + + + blog_file_path = output / f"{blog.title}.html" + if not blog_file_path.is_file(): + with open(blog_file_path, 'w+') as f: + # output to html file with inheritance of blog.html - allows for modifying HTML directly for formatting + # when articles are updated, they will need to be manually deleted and re-created + f.write("{% extends 'blog.html' %}\n{{ super() }}\n{% block blog_body %}\n" + blog_content + "\n{% endblock %}\n{% block ad %}\n{{ super() }}\n{% endblock %}") + + print(f"{blog.title} added!") diff --git a/app/static/css/about.css b/app/static/css/about.css new file mode 100644 index 0000000..341df3d --- /dev/null +++ b/app/static/css/about.css @@ -0,0 +1 @@ +@media(min-width: 778px){.main-content{display:flex;padding:10px 12.15%;flex-direction:column;align-items:center;gap:10px;flex:1 0 0;align-self:stretch}h1{color:#000;font-family:Montserrat;font-size:42px;font-style:normal;font-weight:700;line-height:121.833%}h2{color:#000;font-family:Montserrat;font-size:38px;font-style:normal;font-weight:500;line-height:121.833%;margin-bottom:0px;margin-top:0px}p{color:#000;font-family:Montserrat;font-size:24px;font-style:normal;font-weight:400;line-height:121.833%;margin:0px}}@media(max-width: 777px){.main-content{display:flex;padding:10px 32px;flex-direction:column;align-items:center;gap:10px;flex:1 0 0;align-self:stretch}h1{color:#000;font-family:Montserrat;font-size:32px;font-style:normal;font-weight:700;line-height:121.833%}h2{color:#000;font-family:Montserrat;font-size:28px;font-style:normal;font-weight:600;line-height:121.833%;margin-bottom:0px;margin-top:0px}p{color:#000;font-family:Montserrat;font-size:20px;font-style:normal;font-weight:400;line-height:121.833%;margin:0}}.section-break{background:url("/static/images/linebreak.svg");width:95px;height:32px;margin-top:10px;margin-bottom:10px}/*# sourceMappingURL=about.css.map */ diff --git a/app/static/css/about.css.map b/app/static/css/about.css.map new file mode 100644 index 0000000..6769d69 --- /dev/null +++ b/app/static/css/about.css.map @@ -0,0 +1 @@ +{"version":3,"sourceRoot":"","sources":["../scss/components/about/_about-large.scss","../scss/base/_mixins.scss","../scss/variables/_global-vars.scss","../scss/components/about/_about-small.scss","../scss/about.scss"],"names":[],"mappings":"AAKA,yBACI,cACI,aACA,oBACA,sBACA,mBACA,SACA,WACA,mBAGJ,GCTA,MAD2B,KAE3B,YCDG,WDEH,UDQgD,KCPhD,WAJgE,OAKhE,YDMoE,ICLpE,qBDSA,GCdA,MAD2B,KAE3B,YCDG,WDEH,UDagD,KCZhD,WAJgE,OAKhE,YDWoE,ICVpE,qBDWI,kBACA,eAGJ,ECpBA,MAD2B,KAE3B,YCDG,WDEH,UDmBgD,KClBhD,WAJgE,OAKhE,YALsF,IAMtF,qBDiBI,YGzBR,yBACI,cACI,aACA,kBACA,sBACA,mBACA,SACA,WACA,mBAGJ,GFRA,MAD2B,KAE3B,YCDG,WDEH,UEOgD,KFNhD,WAJgE,OAKhE,YEKoE,IFJpE,qBEOA,GFZA,MAD2B,KAE3B,YCDG,WDEH,UEWgD,KFVhD,WAJgE,OAKhE,YESoE,IFRpE,qBESI,kBACA,eAGJ,EFlBA,MAD2B,KAE3B,YCDG,WDEH,UAH6C,KAI7C,WAJgE,OAKhE,YALsF,IAMtF,qBEeI,UCtBR,eACI,+CACA,WACA,YACA,gBACA","file":"about.css"} \ No newline at end of file diff --git a/app/static/css/base.css b/app/static/css/base.css new file mode 100644 index 0000000..94515e9 --- /dev/null +++ b/app/static/css/base.css @@ -0,0 +1 @@ +@media(max-width: 777px){.header{align-self:stretch;height:120px;background:#0d2846;flex-direction:row;justify-content:start;align-items:center;display:flex;column-gap:60%}.nav-bar-mobile{display:none;position:relative;flex-direction:column;align-items:center;justify-content:center;background:#0d2846;gap:24px;padding-bottom:10px;left:100%;width:0;height:30%;transition:all 300ms linear;transition-behavior:allow-discrete}.nav-bar-mobile-expanding{display:flex;position:relative;flex-direction:column;align-items:center;justify-content:center;background:#0d2846;gap:24px;padding-bottom:10px;left:100%;width:0;height:30%;transition:all 300ms linear;transition-behavior:allow-discrete}.nav-bar-mobile[aria-expanded=true]{display:flex;position:relative;flex-direction:column;align-items:center;justify-content:center;background:#0d2846;width:100%;height:30%;gap:24px;padding-bottom:10px;opacity:1;scale:1;left:0;animation:slideIn 300ms;transition-behavior:allow-discrete}.header-link-container{display:none}.header-link{display:none}.mobile-link{text-align:center;color:#fff;font-family:Montserrat;font-size:30px;font-style:normal;font-weight:300;line-height:121.833%}.header-logo-container{width:112px;height:112px;justify-content:flex-start;align-items:center;display:inline-flex;padding:16px}.hamburger-btn{position:absolute;right:16px;background:rgba(0,0,0,0);border:none}.hamburger-btn .line{transition:transform 200ms ease-in 200ms,rotate 200ms ease-in,opacity 0ms 200ms;transform-origin:center}.hamburger-btn[aria-expanded=true] .line{transition:transform 200ms ease-in,rotate 200ms ease-in 200ms,opacity 0ms 200ms}.hamburger-btn[aria-expanded=true] .bottom{opacity:0;transform:translateY(-20px)}.hamburger-btn[aria-expanded=true] .top{rotate:45deg;transform:translateY(20px)}.hamburger-btn[aria-expanded=true] .middle{rotate:-45deg}.bc-logo{display:none}.ti-logo{width:112px;height:112px}}@media(min-width: 778px){.nav-bar-mobile{display:none}.hamburger-btn{display:none}#hamburger{display:none}.mobile-link-container{display:none}.mobile-link{display:none}.header{align-self:stretch;height:256px;background:#0d2846;flex-direction:column;justify-content:center;align-items:center;gap:10px;display:flex}.header-link-container{justify-content:center;align-items:center;gap:10px;display:flex;padding-bottom:10px}.header-link{text-align:center;color:#fff;font-size:30px;font-family:Montserrat;font-weight:300;line-height:36.55px;word-wrap:break-word}.header-logo-container{width:498px;height:142.98px;justify-content:center;align-items:center;gap:8px;display:inline-flex}.nav-bar{padding-left:10px;padding-right:10px;justify-content:center;align-items:center;gap:30px;display:inline-flex}.bc-logo{width:362px;height:122px}.ti-logo{width:128px;height:128px}}@keyframes slideIn{from{width:0}to{width:100%}}body{min-height:100vh;width:100%;margin:0;flex:1 1 0;align-self:stretch;background:#f9f8f6;flex-direction:column;justify-content:flex-start;align-items:flex-start;display:inline-flex}.footer{flex-shrink:0;width:100%;background:#0d2846;color:#fff;align-content:space-between;font-size:14px;font-family:Montserrat;line-height:24.37px}.copyright{display:flex;justify-content:center;padding:8px}.footer-links{padding:8px;gap:16px;display:flex;justify-content:center}.nav-link{color:#fff;text-decoration:none;text-underline-offset:8px;text-decoration:underline rgba(255,255,255,0);transition:text-decoration-color 150ms,text-underline-offset 150ms}.nav-link:hover{text-decoration:underline;text-underline-offset:8px;text-decoration-color:#fff;transition:text-decoration-color 250ms,text-underline-offset 250ms}.nav-link-active{color:#fff;font-weight:bold;text-underline-offset:8px}.back-to-top-btn{display:none;position:fixed;bottom:150px;right:8px;background:rgba(0,0,0,0);border:none;z-index:9999;opacity:.8}.skip-to-main{position:absolute;left:-9999px;z-index:999;padding:1em;background-color:#fff;color:#000;opacity:0}.skip-to-main:focus{left:50%;transform:translateX(-50%);opacity:1}/*# sourceMappingURL=base.css.map */ diff --git a/app/static/css/base.css.map b/app/static/css/base.css.map new file mode 100644 index 0000000..57bec1a --- /dev/null +++ b/app/static/css/base.css.map @@ -0,0 +1 @@ +{"version":3,"sourceRoot":"","sources":["../scss/base/_base-small.scss","../scss/variables/_global-vars.scss","../scss/base/_mixins.scss","../scss/base/_base-large.scss","../scss/base.scss"],"names":[],"mappings":"AAIA,yBAEI,QACI,mBACA,aACA,WCNE,QDOF,mBACA,sBACA,mBACA,aACA,eAIJ,gBACI,aACA,kBACA,sBACA,mBACA,uBACA,WCrBE,QDsBF,SACA,oBACA,UACA,QACA,WACA,4BACA,mCAIJ,0BACI,aACA,kBACA,sBACA,mBACA,uBACA,WCtCE,QDuCF,SACA,oBACA,UACA,QACA,WACA,4BACA,mCAIJ,oCACI,aACA,kBACA,sBACA,mBACA,uBACA,WCvDE,QDwDF,WACA,WACA,SACA,oBACA,UACA,QACA,OACA,wBACA,mCAGJ,uBACI,aAGJ,aACI,aAKJ,aACI,kBE1EJ,MDHmB,KCInB,YDDG,WCEH,UFyEgD,KExEhD,WAJgE,OAKhE,YFuEoE,IEtEpE,qBF4EA,uBACI,YACA,aACA,2BACA,mBACA,oBACA,aAGJ,eACI,kBACA,WACA,yBACA,YAEA,qBACI,gFACA,wBAOJ,yCACI,gFAGJ,2CACI,UACA,4BAGJ,wCACI,aACA,2BAGJ,2CACI,cAMR,SACI,aAGJ,SACI,YACA,cGxIR,yBACI,gBACI,aAGJ,eACI,aAGJ,WACI,aAGJ,uBACI,aAGJ,aACI,aAIJ,QACI,mBACA,aACA,mBACA,sBACA,uBACA,mBACA,SACA,aAGJ,uBACI,uBACA,mBACA,SACA,aACA,oBAGJ,aACI,kBACA,WACA,eACA,YFzCD,WE0CC,gBACA,oBACA,qBAGJ,uBACI,YACA,gBACA,uBACA,mBACA,QACA,oBAGJ,SACI,kBACA,mBACA,uBACA,mBACA,SACA,oBAGJ,SACI,YACA,aAGJ,SACI,YACA,cCzER,mBACI,KACI,QAGJ,GACI,YAKR,KACI,iBACA,WACA,SACA,WACA,mBACA,WHrBS,QGsBT,sBACA,2BACA,uBACA,oBAGJ,QACI,cACA,WACA,WH9BM,QG+BN,WACA,4BACA,eACA,YH9BG,WG+BH,oBAIJ,WACI,aACA,uBACA,YAGJ,cACI,YACA,SACA,aACA,uBAGJ,UACI,MHpDmB,KGqDnB,qBACA,0BACA,8CACA,mEAGJ,gBACI,0BACA,0BACA,2BACA,mEAIJ,iBACI,MHpEmB,KGqEnB,iBACA,0BAGJ,iBACI,aACA,eACA,aACA,UACA,yBACA,YACA,aACA,WAGJ,cACI,kBACA,aACA,YACA,YACA,sBACA,WACA,UAGJ,oBACI,SACA,2BACA","file":"base.css"} \ No newline at end of file diff --git a/app/static/css/blog.css b/app/static/css/blog.css new file mode 100644 index 0000000..5e4dcc8 --- /dev/null +++ b/app/static/css/blog.css @@ -0,0 +1 @@ +@media(min-width: 778px){.blog-main-content{display:flex;padding:10px 12.15%;flex-direction:column;align-items:center;gap:10px;flex:1 0 0;align-self:stretch}.blog-title{display:flex;justify-content:flex-start;gap:8px;align-self:stretch;margin-bottom:10px}h1{color:#000;font-family:Montserrat;font-size:42px;font-style:normal;font-weight:700;line-height:121.833%}.description-text{color:#4d4d4d;font-family:Montserrat;font-size:22px;font-style:normal;font-weight:500;line-height:121.833%}.blog-description{display:flex;justify-content:flex-start;gap:8px;align-self:stretch;margin-top:0;margin-bottom:10px}.blog-image-container{display:flex;width:472px;height:335px;justify-content:center;align-items:center}.blog-image{width:472px;height:335px;flex-shrink:0}.blog-header{display:flex;padding:24px 0px 8px 0px;justify-content:flex-start;gap:8px;align-self:stretch}h3{color:#000;font-family:Montserrat;font-size:24px;font-style:normal;font-weight:700;line-height:121.833%}.blog-image-caption{display:flex;justify-content:center;align-items:center;gap:6px;margin:10px}figcaption{color:#000;font-family:Montserrat;font-size:14px;font-style:normal;font-weight:400;line-height:121.833%}figure{margin:0}.blog-paragraph{margin:0;margin-bottom:10px;display:inline-flexbox;justify-content:center;align-items:center;gap:8px;align-self:stretch}p{color:#000;font-family:Montserrat;font-size:20px;font-style:normal;font-weight:400;line-height:121.833%}em{color:#000;font-family:Montserrat;font-size:20px;font-style:italic;font-weight:300;line-height:121.833%}.blog-disclaimer{margin:0;display:inline-flexbox;justify-content:center;align-items:center;gap:8px;align-self:stretch}li{margin-bottom:10px;color:#000;font-family:Montserrat;font-size:20px;font-style:normal;font-weight:400;line-height:121.833%}.blog-quote{display:inline-flexbox;padding-left:24px;justify-content:center;align-items:center;gap:8px;align-self:stretch}blockquote{border-left:3px solid #000;color:#000;font-family:Montserrat;font-size:20px;font-style:italic;font-weight:300;line-height:121.833%}.blog-subheading{color:#000;font-family:Montserrat;font-size:22px;font-style:normal;font-weight:600;line-height:121.833%}.blog-subheading-layout{display:flex;justify-content:flex-start;gap:8px;align-self:stretch}}@media(max-width: 777px){.blog-main-content{display:flex;padding:10px 32px;flex-direction:column;align-items:center;gap:10px;flex:1 0 0;align-self:stretch}.blog-title{display:flex;justify-content:flex-start;gap:8px;align-self:stretch;margin-bottom:4px}h1{color:#000;font-family:Montserrat;font-size:32px;font-style:normal;font-weight:700;line-height:121.833%}.description-text{color:#4d4d4d;font-family:Montserrat;font-size:18px;font-style:normal;font-weight:500;line-height:121.833%}.blog-description{display:flex;justify-content:flex-start;gap:8px;align-self:stretch;margin-top:0;margin-bottom:10px}.blog-image-container{width:248px;height:176px}.blog-image{width:248px;height:176px;padding-left:14px}.blog-header{display:flex;padding:24px 0px 4px 0px;justify-content:flex-start;gap:8px;align-self:stretch}h3{color:#000;font-family:Montserrat;font-size:20px;font-style:normal;font-weight:700;line-height:121.833%}.blog-image-caption{justify-content:center;align-items:center}figcaption{color:#000;font-family:Montserrat;font-size:14px;font-style:normal;font-weight:400;line-height:121.833%;align-items:center}figure{margin:0;padding:10px;align-self:center}.blog-paragraph{margin:0;margin-bottom:10px;display:inline-flexbox;justify-content:center;align-items:center;gap:8px;align-self:stretch}p{color:#000;font-family:Montserrat;font-size:20px;font-style:normal;font-weight:400;line-height:121.833%}em{color:#000;font-family:Montserrat;font-size:20px;font-style:italic;font-weight:300;line-height:121.833%}.blog-disclaimer{margin:0;display:inline-flexbox;justify-content:center;align-items:center;gap:8px;align-self:stretch}li{margin-bottom:10px;color:#000;font-family:Montserrat;font-size:20px;font-style:normal;font-weight:400;line-height:121.833%}.blog-quote{display:inline-flexbox;padding-left:16px;justify-content:center;align-items:center;gap:8px;align-self:stretch}blockquote{border-left:3px solid #000;color:#000;font-family:Montserrat;font-size:18px;font-style:italic;font-weight:300;line-height:121.833%}.blog-subheading{color:#000;font-family:Montserrat;font-size:22px;font-style:normal;font-weight:600;line-height:121.833%}.blog-subheading-layout{display:flex;justify-content:flex-start;gap:8px;align-self:stretch}}.blog-section-break{background:url("/static/images/linebreak.svg");width:95px;height:32px;margin-top:10px;margin-bottom:10px}/*# sourceMappingURL=blog.css.map */ diff --git a/app/static/css/blog.css.map b/app/static/css/blog.css.map new file mode 100644 index 0000000..459deb8 --- /dev/null +++ b/app/static/css/blog.css.map @@ -0,0 +1 @@ +{"version":3,"sourceRoot":"","sources":["../scss/components/blog/_blog-large.scss","../scss/base/_mixins.scss","../scss/variables/_global-vars.scss","../scss/components/blog/_blog-small.scss","../scss/blog.scss"],"names":[],"mappings":"AAKA,yBACI,mBACI,aACA,oBACA,sBACA,mBACA,SACA,WACA,mBAGJ,yBCCA,2BACA,QACA,mBDDI,mBAGJ,GCdA,MAD2B,KAE3B,YCDG,WDEH,UDagD,KCZhD,WAJgE,OAKhE,YDWoE,ICVpE,qBDaA,kBClBA,MDmBiF,QClBjF,YCDG,WDEH,UDiBgD,KChBhD,WAJgE,OAKhE,YDeoE,ICdpE,qBDiBA,kBCbA,aACA,2BACA,QACA,mBDYI,aACA,mBAGJ,sBACI,aACA,YACA,aACA,uBACA,mBAGJ,YACI,YACA,aACA,cAGJ,aACI,aACA,yBACA,2BACA,QACA,mBAGJ,GClDA,MAD2B,KAE3B,YCDG,WDEH,UDiDgD,KChDhD,WAJgE,OAKhE,YD+CoE,IC9CpE,qBDiDA,oBACI,aACA,uBACA,mBACA,QACA,YAGJ,WC9DA,MAD2B,KAE3B,YCDG,WDEH,UD6DgD,KC5DhD,WAJgE,OAKhE,YALsF,IAMtF,qBD6DA,OACI,SAGJ,gBACI,SACA,mBACA,uBACA,uBACA,mBACA,QACA,mBAIJ,ECjFA,MAD2B,KAE3B,YCDG,WDEH,UAH6C,KAI7C,WAJgE,OAKhE,YALsF,IAMtF,qBDiFA,GCtFA,MAD2B,KAE3B,YCDG,WDEH,UAH6C,KAI7C,WDoFqE,OCnFrE,YDmFmD,IClFnD,qBDqFA,iBACI,SACA,uBACA,uBACA,mBACA,QACA,mBAGJ,GACI,mBCpGJ,MAD2B,KAE3B,YCDG,WDEH,UAH6C,KAI7C,WAJgE,OAKhE,YALsF,IAMtF,qBDoGA,YACI,uBACA,kBACA,uBACA,mBACA,QACA,mBAKJ,WACI,2BCrHJ,MAD2B,KAE3B,YCDG,WDEH,UAH6C,KAI7C,WDmHiD,OClHjD,YDkHuE,ICjHvE,qBDoHA,iBCzHA,MAD2B,KAE3B,YCDG,WDEH,UDwHg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gD,KFpHhD,WAJgE,OAKhE,YEmHoE,IFlHpE,qBEsHA,wBFlHA,aACA,2BACA,QACA,oBGdJ,oBACI,+CACA,WACA,YACA,gBACA","file":"blog.css"} \ No newline at end of file diff --git a/app/static/css/blogs.css b/app/static/css/blogs.css new file mode 100644 index 0000000..39aa163 --- /dev/null +++ b/app/static/css/blogs.css @@ -0,0 +1 @@ +@media(min-width: 778px){.main-content{align-self:stretch;flex:1 1 0;padding-left:64px;padding-right:64px;padding-top:10px;padding-bottom:10px;background:#f9f8f6;justify-content:flex-start;align-items:center;gap:10px;display:inline-flex}}@media(max-width: 777px){.main-content{align-self:stretch;flex:1 1 0;padding-left:16px;padding-right:16px;padding-top:10px;padding-bottom:10px;background:#f9f8f6;justify-content:flex-start;align-items:center;gap:10px;display:inline-flex}}.layout-card-container{flex:1 1 0;height:100%;justify-content:center;align-items:flex-start;display:flex;flex-wrap:wrap}.card-container{width:320px;height:343px;flex-direction:column;justify-content:flex-start;align-items:flex-start;display:inline-flex;margin-right:10px;margin-bottom:10px;transition:all;transition-duration:180ms}.card-container:hover{padding-right:8px;padding-bottom:8px;margin-right:2px;margin-bottom:2px;background:#eb3b5b}.card-image-container{align-self:stretch;height:205px;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:10px;display:flex}.card-image{align-self:stretch;flex:1 1 0}.card-text-container{align-self:stretch;flex:1 1 0;padding-top:12px;padding-bottom:12px;background:#fff;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:14px;display:flex}.card-heading-container{align-self:stretch;height:44px;padding-left:12px;padding-right:12px;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:10px;display:flex}.card-heading{align-self:stretch;color:#000;font-size:20px;font-family:Montserrat;font-weight:600;line-height:24.37px;word-wrap:break-word}.card-description-container{align-self:stretch;height:40px;padding-left:12px;padding-right:12px;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:10px;display:flex}.card-description{align-self:stretch;flex:1 1 0;color:#000;font-size:16px;font-family:Montserrat;font-weight:400;line-height:19.49px;word-wrap:break-word}/*# sourceMappingURL=blogs.css.map */ diff --git a/app/static/css/blogs.css.map b/app/static/css/blogs.css.map new file mode 100644 index 0000000..4f1096b --- /dev/null +++ b/app/static/css/blogs.css.map @@ -0,0 +1 @@ +{"version":3,"sourceRoot":"","sources":["../scss/components/blogs/_blogs-large.scss","../scss/variables/_global-vars.scss","../scss/components/blogs/_blogs-small.scss","../scss/blogs.scss"],"names":[],"mappings":"AAGA,yBAEI,cACI,mBACA,WACA,kBACA,mBACA,iBACA,oBACA,WCVK,QDWL,2BACA,mBACA,SACA,qBEbR,yBACI,cACI,mBACA,WACA,kBACA,mBACA,iBACA,oBACA,WDTK,QCUL,2BACA,mBACA,SACA,qBCNR,uBACI,WACA,YACA,uBACA,uBACA,aACA,eAGJ,gBACI,YACA,aACA,sBACA,2BACA,uBACA,oBACA,kBACA,mBACA,eACA,oBAtBoB,MAyBxB,sBACI,kBACA,mBACA,iBACA,kBACA,WF3BQ,QE+BZ,sBACI,mBACA,aACA,sBACA,2BACA,uBACA,SACA,aAGJ,YACI,mBACA,WAGJ,qBACI,mBACA,WACA,iBACA,oBACA,WArDmB,KAsDnB,sBACA,2BACA,uBACA,SACA,aAGJ,wBACI,mBACA,YACA,kBACA,mBACA,sBACA,2BACA,uBACA,SACA,aAGJ,cACI,mBACA,WACA,eACA,YF7EG,WE8EH,gBACA,oBACA,qBAGJ,4BACI,mBACA,YACA,kBACA,mBACA,sBACA,2BACA,uBACA,SACA,aAGJ,kBACI,mBACA,WACA,WACA,eACA,YFpGG,WEqGH,gBACA,oBACA","file":"blogs.css"} \ No newline at end of file diff --git a/app/static/css/index.css b/app/static/css/index.css new file mode 100644 index 0000000..9ef35ae --- /dev/null +++ b/app/static/css/index.css @@ -0,0 +1 @@ +@media(min-width: 778px){.main-content{display:flex;padding:10px 175px;flex-direction:column;align-items:center;gap:10px;flex:1 0 0;align-self:stretch}h1{color:#000;font-family:Montserrat;font-size:42px;font-style:normal;font-weight:700;line-height:121.833%;margin-bottom:0;text-align:center}h2{color:#000;font-family:Montserrat;font-size:36px;font-style:normal;font-weight:600;line-height:121.833%;margin-bottom:0;text-align:center}h3{color:#000;font-family:Montserrat;font-size:30px;font-style:normal;font-weight:600;line-height:121.833%;margin-bottom:0;text-align:center}h4{margin:0;text-align:center}p{color:#000;font-family:Montserrat;font-size:18px;font-style:normal;font-weight:400;line-height:121.833%;text-align:center}.title-desc{color:#000;font-family:Montserrat;font-size:28px;font-style:normal;font-weight:300;line-height:121.833%;margin-top:4px}.descriptive{color:#000;font-family:Montserrat;font-size:24px;font-style:normal;font-weight:300;line-height:121.833%;margin-top:4px}.check-container{display:flex;align-items:center;justify-content:flex-start;width:100%;gap:8px}.check-box{width:70px;height:70px;accent-color:#eb3b5b;flex-shrink:0}.check-label{color:#000;font-family:Montserrat;font-size:24px;font-style:normal;font-weight:400;line-height:121.833%}.btn-docx{display:inline-flex;width:380px;height:70px;padding:24px;margin-right:0;padding-right:-4px;justify-content:center;align-items:center;flex-shrink:0;border-radius:6px 0px 0px 6px;border:1px solid #000;color:#000;font-family:Montserrat;font-size:42px;font-style:normal;font-weight:700;line-height:121.833%;background:#fff;z-index:2}.btn-docx:hover:enabled{background:#eb3b5b}.btn-pdf{display:inline-flex;color:#000;font-family:Montserrat;font-size:42px;font-style:normal;font-weight:700;line-height:121.833%;width:380px;height:70px;padding:24px;margin-left:-4px;padding-left:-4px;justify-content:center;align-items:center;flex-shrink:0;border-radius:0px 6px 6px 0px;border-top:1px solid #000;border-right:1px solid #000;border-bottom:1px solid #000;border-left:none;background:#fff}.btn-pdf:hover:enabled{background:#eb3b5b}button:disabled{opacity:.5}.text-input{display:flex;width:416px;height:64px;padding:0px 12px;justify-content:center;align-items:center;gap:8px;border-radius:6px;border:2px solid #000;color:#595959;font-family:Montserrat;font-size:20px;font-style:normal;font-weight:400;line-height:121.833%;margin-top:10px;margin-bottom:10px}.text-input-label{color:#000;font-family:Montserrat;font-size:20px;font-style:normal;font-weight:400;line-height:121.833%}.info-btn{background:rgba(0,0,0,0);border:none;padding:0}.info-label[aria-expanded=true]{margin-left:86px;margin-bottom:8px;color:#595959;font-family:Montserrat;font-size:20px;font-style:normal;font-weight:400;line-height:121.833%}.info-label[aria-expanded=false]{display:none;margin-bottom:8px}.valid-feedback{margin-top:-12px;color:#2c5e2c;font-family:Montserrat;font-size:20px;font-style:normal;font-weight:400;line-height:121.833%;width:460px}.invalid-feedback{margin-top:-12px;color:#a7112c;font-family:Montserrat;font-size:20px;font-style:normal;font-weight:400;line-height:121.833%;width:460px}.captcha-error{color:#a7112c;font-family:Montserrat;font-size:20px;font-style:normal;font-weight:400;line-height:121.833%}.alert-success{border:2px #142b14;padding-top:.25rem;padding-bottom:.25rem;padding-left:.5rem;padding-right:.5rem;display:flex;align-items:center;background-color:#4faa4f;color:#000;font-family:Montserrat;font-size:20px;font-style:normal;font-weight:400;line-height:121.833%}.alert-success a{color:#000;font-family:Montserrat;font-size:20px;font-style:normal;font-weight:600;line-height:121.833%}.btn-close{box-sizing:content-box;width:4em;height:4em;padding:1em;color:#000;background:rgba(0,0,0,0) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1.5em auto no-repeat;border:0;border-radius:.375rem;transition:all 200ms}.btn-close:hover{background:rgba(0,0,0,0) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234A4A4A'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1.5em auto no-repeat}.dropdown-container{width:230px}.is-invalid{border-color:#a7112c;background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAxMiAxMicgd2lkdGg9JzEyJyBoZWlnaHQ9JzEyJyBmaWxsPSdub25lJyBzdHJva2U9JyNkYzM1NDUnPjxjaXJjbGUgY3g9JzYnIGN5PSc2JyByPSc0LjUnLz48cGF0aCBzdHJva2UtbGluZWpvaW49J3JvdW5kJyBkPSdNNS44IDMuNmguNEw2IDYuNXonLz48Y2lyY2xlIGN4PSc2JyBjeT0nOC4yJyByPScuNicgZmlsbD0nI2RjMzU0NScgc3Ryb2tlPSdub25lJy8+PC9zdmc+);background-position:right .75rem center,center right 2.25rem;background-size:32px 24px,calc(.75em + .375rem) calc(.75em + .375rem);padding-right:4.125rem;background-repeat:no-repeat}.is-valid{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA4IDgnPjxwYXRoIGZpbGw9JyMxOTg3NTQnIGQ9J00yLjMgNi43My42IDQuNTNjLS40LTEuMDQuNDYtMS40IDEuMS0uOGwxLjEgMS40IDMuNC0zLjhjLjYtLjYzIDEuNi0uMjcgMS4yLjdsLTQgNC42Yy0uNDMuNS0uOC40LTEuMS4xeicvPjwvc3ZnPg==);border-color:#2c5e2c;background-position:right .75rem center,center right 2.25rem;background-size:32px 24px,calc(.75em + .375rem) calc(.75em + .375rem);padding-right:4.125rem;background-repeat:no-repeat}.inline-dropdown{width:460px !important;padding:8px 16px;border-radius:6px;border:2px solid #000;margin-left:0;background:#fff}.inline-container{width:460px !important;margin-left:0 !important;justify-content:center !important;align-content:center !important}.dropdown-text{color:#667085;font-family:Montserrat;font-size:20px;font-style:normal;font-weight:400;line-height:121.833%;margin-top:4px;margin-bottom:16px;display:flex;width:230px;padding:8px 16px;justify-content:center;align-items:center;border-radius:6px;border:2px solid #000;background:#fff}}@media(max-width: 777px){.main-content{display:flex;padding:10px 32px;flex-direction:column;align-items:center;gap:10px;flex:1 0 0;align-self:stretch}h1{color:#000;font-family:Montserrat;font-size:32px;font-style:normal;font-weight:700;line-height:121.833%;margin-bottom:0;text-align:center}h2{color:#000;font-family:Montserrat;font-size:24px;font-style:normal;font-weight:600;line-height:121.833%;margin-bottom:0;text-align:center}h3{color:#000;font-family:Montserrat;font-size:22px;font-style:normal;font-weight:600;line-height:121.833%;margin-bottom:0;text-align:center}h4{margin:0;text-align:center}p{color:#000;font-family:Montserrat;font-size:16px;font-style:normal;font-weight:400;line-height:121.833%;text-align:center}.title-desc{color:#000;font-family:Montserrat;font-size:18px;font-style:normal;font-weight:300;line-height:121.833%;margin-top:4px}.descriptive{color:#000;font-family:Montserrat;font-size:16px;font-style:normal;font-weight:300;line-height:121.833%;margin-top:4px}.check-container{display:flex;align-items:center;justify-content:flex-start;width:340px;gap:8px}.check-box{width:44px;height:44px;accent-color:#eb3b5b;flex-shrink:0}.check-label{color:#000;font-family:Montserrat;font-size:16px;font-style:normal;font-weight:400;line-height:121.833%}.btn-docx{display:inline-flex;width:180px;height:70px;padding:24px;margin-right:0;padding-right:-4px;justify-content:center;align-items:center;flex-shrink:0;border-radius:6px 0px 0px 6px;border:1px solid #000;color:#000;font-family:Montserrat;font-size:24px;font-style:normal;font-weight:700;line-height:121.833%;background:#fff;z-index:2}.btn-docx:hover:enabled{background:#eb3b5b}.btn-pdf{display:inline-flex;color:#000;font-family:Montserrat;font-size:24px;font-style:normal;font-weight:700;line-height:121.833%;width:180px;height:70px;padding:24px;margin-left:-4px;padding-left:-4px;justify-content:center;align-items:center;flex-shrink:0;border-radius:0px 6px 6px 0px;border-top:1px solid #000;border-right:1px solid #000;border-bottom:1px solid #000;border-left:none;background:#fff}.btn-pdf:hover:enabled{background:#eb3b5b}button:disabled{opacity:.5}.text-input{display:flex;width:260px;height:64px;padding:0px 8px;justify-content:center;align-items:center;gap:8px;border-radius:6px;border:2px solid #000;color:#595959;font-family:Montserrat;font-size:16px;font-style:normal;font-weight:400;line-height:121.833%;margin-top:4px;margin-bottom:4px}.text-input-label{color:#000;font-family:Montserrat;font-size:16px;font-style:normal;font-weight:400;line-height:121.833%}.info-btn{background:rgba(0,0,0,0);border:none;padding:0}.info-label[aria-expanded=true]{margin-left:40px;width:320px;margin-bottom:8px;color:#595959;font-family:Montserrat;font-size:16px;font-style:normal;font-weight:400;line-height:121.833%}.info-label[aria-expanded=false]{display:none;margin-bottom:8px}.valid-feedback{margin-top:-12px;color:#2c5e2c;font-family:Montserrat;font-size:16px;font-style:normal;font-weight:400;line-height:121.833%;width:230px}.invalid-feedback{margin-top:-12px;color:#a7112c;font-family:Montserrat;font-size:16px;font-style:normal;font-weight:400;line-height:121.833%;width:230px}.captcha-error{color:#a7112c;font-family:Montserrat;font-size:16px;font-style:normal;font-weight:400;line-height:121.833%}.alert-success{border:2px #142b14;padding-top:.25rem;padding-bottom:.25rem;padding-left:.5rem;padding-right:.5rem;display:flex;align-items:center;background-color:#4faa4f;color:#000;font-family:Montserrat;font-size:16px;font-style:normal;font-weight:400;line-height:121.833%}.alert-success a{color:#000;font-family:Montserrat;font-size:16px;font-style:normal;font-weight:600;line-height:121.833%}.btn-close{box-sizing:content-box;width:4em;height:4em;padding:1em;color:#000;background:rgba(0,0,0,0) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1.5em auto no-repeat;border:0;border-radius:.375rem;transition:all 200ms}.btn-close:hover{background:rgba(0,0,0,0) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234A4A4A'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1.5em auto no-repeat}.dropdown-container{width:180px}.is-invalid{border-color:#a7112c;background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAxMiAxMicgd2lkdGg9JzEyJyBoZWlnaHQ9JzEyJyBmaWxsPSdub25lJyBzdHJva2U9JyNkYzM1NDUnPjxjaXJjbGUgY3g9JzYnIGN5PSc2JyByPSc0LjUnLz48cGF0aCBzdHJva2UtbGluZWpvaW49J3JvdW5kJyBkPSdNNS44IDMuNmguNEw2IDYuNXonLz48Y2lyY2xlIGN4PSc2JyBjeT0nOC4yJyByPScuNicgZmlsbD0nI2RjMzU0NScgc3Ryb2tlPSdub25lJy8+PC9zdmc+);background-position:right .75rem center,center right 2.25rem;background-size:32px 24px,calc(.75em + .375rem) calc(.75em + .375rem);padding-right:4.125rem;background-repeat:no-repeat}.is-valid{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA4IDgnPjxwYXRoIGZpbGw9JyMxOTg3NTQnIGQ9J00yLjMgNi43My42IDQuNTNjLS40LTEuMDQuNDYtMS40IDEuMS0uOGwxLjEgMS40IDMuNC0zLjhjLjYtLjYzIDEuNi0uMjcgMS4yLjdsLTQgNC42Yy0uNDMuNS0uOC40LTEuMS4xeicvPjwvc3ZnPg==);border-color:#2c5e2c;background-position:right .75rem center,center right 2.25rem;background-size:32px 24px,calc(.75em + .375rem) calc(.75em + .375rem);padding-right:4.125rem;background-repeat:no-repeat}.inline-dropdown{width:230px;padding:8px 16px;border-radius:6px;border:2px solid #000;margin-left:0;background:#fff}.inline-container{width:180px !important;margin-left:0 !important;justify-content:center !important;align-content:center !important}.dropdown-text{color:#667085;font-family:Montserrat;font-size:16px;font-style:normal;font-weight:400;line-height:121.833%;margin-top:4px;margin-bottom:16px;display:flex;width:180px;padding:8px 16px;justify-content:center;align-items:center;border-radius:6px;border:2px solid #000;background:#fff}}.index-section-break{background:url("/static/images/linebreak.svg");width:95px;height:32px;margin-top:10px;margin-bottom:10px}.section-container{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;width:50%}.dropdowns{display:inline-flex;gap:10px}.dropdown-arrow{width:20px;height:20px;flex-shrink:0}.dropdown-label{color:#000;font-family:Montserrat;font-size:18px;font-style:normal;font-weight:400;line-height:121.833%}.badge-container{display:inline-flex;padding:4px;justify-content:center;align-items:center;gap:8px;border-radius:32px;background:#a7112c}.badge-text{color:#fff;font-family:Montserrat;font-size:14px;font-style:normal;font-weight:400;line-height:121.833%}.captcha{display:flex;justify-content:center;align-items:center;flex-direction:column}.btn-group{display:flex;justify-content:center;align-items:center;margin-top:10px}.check-box:checked{animation:shrink-bounce 200ms cubic-bezier(0.4, 0, 0.23, 1)}@keyframes shrink-bounce{0%{transform:scale(1)}40%{transform:scale(0.95)}100%{transform:scale(1)}}/*# sourceMappingURL=index.css.map */ diff --git a/app/static/css/index.css.map b/app/static/css/index.css.map new file mode 100644 index 0000000..058a6cf --- /dev/null +++ b/app/static/css/index.css.map @@ -0,0 +1 @@ +{"version":3,"sourceRoot":"","sources":["../scss/components/index/_index-large.scss","../scss/base/_mixins.scss","../scss/variables/_global-vars.scss","../scss/components/index/_index-small.scss","../scss/index.scss"],"names":[],"mappings":"AAEA,yBACI,cACI,aACA,mBACA,sBAC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,kBACA,sBAEA,iBC7PR,qBACI,+CACA,WACA,YACA,gBACA,mBAGJ,mBACI,oBACA,sBACA,mBACA,uBACA,SACA,UAGJ,WACI,oBACA,SAIJ,gBACI,WACA,YACA,cAGJ,gBH5BI,MAD2B,KAE3B,YCDG,WDEH,UG2B4C,KH1B5C,WAJgE,OAKhE,YALsF,IAMtF,qBG2BJ,iBACI,oBACA,YACA,uBACA,mBACA,QACA,mBACA,mBAGJ,YH1CI,MG2C0D,KH1C1D,YCDG,WDEH,UGyC4C,KHxC5C,WAJgE,OAKhE,YALsF,IAMtF,qBGyCJ,SACI,aACA,uBACA,mBACA,sBAGJ,WACI,aACA,uBACA,mBACA,gBAGJ,mBACI,4DAGJ,yBACI,GACI,mBAGJ,IACI,sBAIJ,KACI","file":"index.css"} \ No newline at end of file diff --git a/app/static/css/resources.css b/app/static/css/resources.css new file mode 100644 index 0000000..b6479b4 --- /dev/null +++ b/app/static/css/resources.css @@ -0,0 +1 @@ +@media(min-width: 778px){.main-content{display:flex;padding:10px 12.15%;flex-direction:column;align-items:center;gap:10px;flex:1 0 0;align-self:stretch}h1{color:#000;font-family:Montserrat;font-size:42px;font-style:normal;font-weight:700;line-height:121.833%}h2{color:#000;font-family:Montserrat;font-size:38px;font-style:normal;font-weight:500;line-height:121.833%;margin-bottom:0px;margin-top:0px}p{color:#000;font-family:Montserrat;font-size:24px;font-style:normal;font-weight:400;line-height:121.833%;margin:0px}}@media(max-width: 777px){.main-content{display:flex;padding:10px 32px;flex-direction:column;align-items:center;gap:10px;flex:1 0 0;align-self:stretch}h1{color:#000;font-family:Montserrat;font-size:32px;font-style:normal;font-weight:700;line-height:121.833%}h2{color:#000;font-family:Montserrat;font-size:28px;font-style:normal;font-weight:600;line-height:121.833%;margin-bottom:0px;margin-top:0px}p{color:#000;font-family:Montserrat;font-size:20px;font-style:normal;font-weight:400;line-height:121.833%;margin:0}}.section-break{background:url("/static/images/linebreak.svg");width:95px;height:32px;margin-top:10px;margin-bottom:10px}/*# sourceMappingURL=resources.css.map */ diff --git a/app/static/css/resources.css.map b/app/static/css/resources.css.map new file mode 100644 index 0000000..4fc3c40 --- /dev/null +++ b/app/static/css/resources.css.map @@ -0,0 +1 @@ +{"version":3,"sourceRoot":"","sources":["../scss/components/resources/_resources-large.scss","../scss/base/_mixins.scss","../scss/variables/_global-vars.scss","../scss/components/resources/_resources-small.scss","../scss/resources.scss"],"names":[],"mappings":"AAKA,yBACI,cACI,aACA,oBACA,sBACA,mBACA,SACA,WACA,mBAGJ,GCTA,MAD2B,KAE3B,YCDG,WDEH,UDQgD,KCPhD,WAJgE,OAKhE,YDMoE,ICLpE,qBDSA,GCdA,MAD2B,KAE3B,YCDG,WDEH,UDagD,KCZhD,WAJgE,OAKhE,YDWoE,ICVpE,qBDWI,kBACA,eAGJ,ECpBA,MAD2B,KAE3B,YCDG,WDEH,UDmBgD,KClBhD,WAJgE,OAKhE,YALsF,IAMtF,qBDiBI,YGzBR,yBACI,cACI,aACA,kBACA,sBACA,mBACA,SACA,WACA,mBAGJ,GFRA,MAD2B,KAE3B,YCDG,WDEH,UEOgD,KFNhD,WAJgE,OAKhE,YEKoE,IFJpE,qBEOA,GFZA,MAD2B,KAE3B,YCDG,WDEH,UEWgD,KFVhD,WAJgE,OAKhE,YESoE,IFRpE,qBESI,kBACA,eAGJ,EFlBA,MAD2B,KAE3B,YCDG,WDEH,UAH6C,KAI7C,WAJgE,OAKhE,YALsF,IAMtF,qBEeI,UCtBR,eACI,+CACA,WACA,YACA,gBACA","file":"resources.css"} \ No newline at end of file diff --git a/app/static/css/sources.css b/app/static/css/sources.css new file mode 100644 index 0000000..6f54dd6 --- /dev/null +++ b/app/static/css/sources.css @@ -0,0 +1 @@ +@media(min-width: 778px){.main-content{display:flex;padding:10px 12.15%;flex-direction:column;align-items:center;gap:10px;flex:1 0 0;align-self:stretch}h1{color:#000;font-family:Montserrat;font-size:42px;font-style:normal;font-weight:700;line-height:121.833%}ul{color:#000;font-family:Montserrat;font-size:24px;font-style:normal;font-weight:400;line-height:121.833%;border:4px}li{margin-bottom:24px;text-align:center;list-style-type:none}}@media(max-width: 777px){.main-content{display:flex;padding:10px 32px;flex-direction:column;align-items:center;gap:10px;flex:1 0 0;align-self:stretch}h1{color:#000;font-family:Montserrat;font-size:32px;font-style:normal;font-weight:700;line-height:121.833%}ul{color:#000;font-family:Montserrat;font-size:20px;font-style:normal;font-weight:400;line-height:121.833%;border:4px}li{margin-bottom:24px;text-align:center;list-style-type:none}}/*# sourceMappingURL=sources.css.map */ diff --git a/app/static/css/sources.css.map b/app/static/css/sources.css.map new file mode 100644 index 0000000..06b7ec1 --- /dev/null +++ b/app/static/css/sources.css.map @@ -0,0 +1 @@ +{"version":3,"sourceRoot":"","sources":["../scss/components/sources/_sources-large.scss","../scss/base/_mixins.scss","../scss/variables/_global-vars.scss","../scss/components/sources/_sources-small.scss"],"names":[],"mappings":"AAKA,yBACI,cACI,aACA,oBACA,sBACA,mBACA,SACA,WACA,mBAGJ,GCTA,MAD2B,KAE3B,YCDG,WDEH,UDQgD,KCPhD,WAJgE,OAKhE,YDMoE,ICLpE,qBDQA,GCbA,MAD2B,KAE3B,YCDG,WDEH,UDagD,KCZhD,WAJgE,OAKhE,YALsF,IAMtF,qBDWI,WAGJ,GACI,mBACA,kBACA,sBGzBR,yBACI,cACI,aACA,kBACA,sBACA,mBACA,SACA,WACA,mBAGJ,GFRA,MAD2B,KAE3B,YCDG,WDEH,UEOgD,KFNhD,WAJgE,OAKhE,YEKoE,IFJpE,qBEOA,GFZA,MAD2B,KAE3B,YCDG,WDEH,UAH6C,KAI7C,WAJgE,OAKhE,YALsF,IAMtF,qBEUI,WAGJ,GACI,mBACA,kBACA","file":"sources.css"} \ No newline at end of file diff --git a/app/static/css/transinformed.css b/app/static/css/transinformed.css deleted file mode 100644 index 03848d7..0000000 --- a/app/static/css/transinformed.css +++ /dev/null @@ -1 +0,0 @@ -details summary>*{display:inline;list-style:none}summary::-webkit-details-marker{display:none}summary::marker{content:none}summary::after{content:'▷More details';font-size:smaller}details[open] summary:after{content:'▽More details';font-size:smaller}.blog-content{margin:auto;width:100%}.blog-content h3{text-align:center}.blog-content figcaption{text-align:center}.blog-content img{max-width:50%;height:auto}.blog-content p{font-size:large} \ No newline at end of file diff --git a/app/static/images/BCLogo.svg b/app/static/images/BCLogo.svg deleted file mode 100644 index f3ebb5f..0000000 --- a/app/static/images/BCLogo.svg +++ /dev/null @@ -1 +0,0 @@ -full hd_svg_logo \ No newline at end of file diff --git a/app/static/images/backtotop.svg b/app/static/images/backtotop.svg new file mode 100644 index 0000000..5e8418b --- /dev/null +++ b/app/static/images/backtotop.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/app/static/images/bclogo.png b/app/static/images/bclogo.png new file mode 100644 index 0000000..f669b67 Binary files /dev/null and b/app/static/images/bclogo.png differ diff --git a/app/static/images/combinedlogo.png b/app/static/images/combinedlogo.png deleted file mode 100644 index 3b674ea..0000000 Binary files a/app/static/images/combinedlogo.png and /dev/null differ diff --git a/app/static/images/github.png b/app/static/images/github.png deleted file mode 100644 index ea6ff54..0000000 Binary files a/app/static/images/github.png and /dev/null differ diff --git a/app/static/images/github.svg b/app/static/images/github.svg new file mode 100644 index 0000000..d5e6491 --- /dev/null +++ b/app/static/images/github.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/app/static/images/linebreak.svg b/app/static/images/linebreak.svg new file mode 100644 index 0000000..de9cef7 --- /dev/null +++ b/app/static/images/linebreak.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/app/static/images/product.png b/app/static/images/product.png deleted file mode 100644 index f958cb7..0000000 Binary files a/app/static/images/product.png and /dev/null differ diff --git a/app/static/images/product1.png b/app/static/images/product1.png new file mode 100644 index 0000000..b3da55d Binary files /dev/null and b/app/static/images/product1.png differ diff --git a/app/static/images/product2.png b/app/static/images/product2.png new file mode 100644 index 0000000..a71917d Binary files /dev/null and b/app/static/images/product2.png differ diff --git a/app/static/images/tilogo.svg b/app/static/images/tilogo.svg new file mode 100644 index 0000000..1188e92 --- /dev/null +++ b/app/static/images/tilogo.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/app/static/js/mobilenav.js b/app/static/js/mobilenav.js new file mode 100644 index 0000000..f6880fe --- /dev/null +++ b/app/static/js/mobilenav.js @@ -0,0 +1,36 @@ +window.onscroll = function() {scrollDetected()}; + +button = document.getElementById("hamburger"); +navMenu = document.getElementById("mobile"); +backToTop = document.getElementById("backToTop"); + +button.addEventListener("click", () => { + const currentState = button.getAttribute("data-state"); + if (!currentState || currentState === "closed") { + navMenu.setAttribute("class", "nav-bar-mobile-expanding"); + setTimeout(() => { + navMenu.setAttribute("aria-expanded", "true"); + navMenu.setAttribute("class", "nav-bar-mobile"); + button.setAttribute("data-state", "opened"); + button.setAttribute("aria-expanded", "true"); + }, 1); // 1ms delay to switch to transition animation + + + } else { + navMenu.setAttribute("aria-expanded", "false"); + button.setAttribute("data-state", "closed"); + button.setAttribute("aria-expanded", "false"); + } +}); + +backToTop.addEventListener("click", () => { + document.documentElement.scrollTo({top: 0, behavior: 'smooth'}); +}); + +function scrollDetected() { + if (document.body.scrollTop > 120 || document.documentElement.scrollTop > 120) { + document.getElementById("backToTop").style.display = "block"; + } else { + document.getElementById("backToTop").style.display = "none"; + } +} diff --git a/app/static/js/mobilenav.min.js b/app/static/js/mobilenav.min.js new file mode 100644 index 0000000..8e68e9a --- /dev/null +++ b/app/static/js/mobilenav.min.js @@ -0,0 +1 @@ +function scrollDetected(){document.body.scrollTop>120||document.documentElement.scrollTop>120?document.getElementById("backToTop").style.display="block":document.getElementById("backToTop").style.display="none"}window.onscroll=function(){scrollDetected()},button=document.getElementById("hamburger"),navMenu=document.getElementById("mobile"),backToTop=document.getElementById("backToTop"),button.addEventListener("click",(()=>{const t=button.getAttribute("data-state");t&&"closed"!==t?(navMenu.setAttribute("aria-expanded","false"),button.setAttribute("data-state","closed"),button.setAttribute("aria-expanded","false")):(navMenu.setAttribute("class","nav-bar-mobile-expanding"),setTimeout((()=>{navMenu.setAttribute("aria-expanded","true"),navMenu.setAttribute("class","nav-bar-mobile"),button.setAttribute("data-state","opened"),button.setAttribute("aria-expanded","true")}),1))})),backToTop.addEventListener("click",(()=>{document.documentElement.scrollTo({top:0,behavior:"smooth"})})); \ No newline at end of file diff --git a/app/static/js/transinformed.js b/app/static/js/transinformed.js index 1ea6dd2..35ec233 100644 --- a/app/static/js/transinformed.js +++ b/app/static/js/transinformed.js @@ -49,29 +49,34 @@ function checkDocStatus() { function checkAgeStatus() { // conditions for age options if (under16Check.checked) { - sharedCareCheck.parentNode.hidden = true; + $('#sharedCareCheckContainer').hide(); sharedCareCheck.checked = false; privateSelector.hidden = true; privateProviderList.value = "I haven't chosen a provider yet"; - bridgingDesired.parentNode.hidden = true; + $('#bridgingDesiredContainer').hide(); bridgingDesired.checked = false; - bloodTests.parentNode.hidden = true; + $('#bloodTestsContainer').hide(); bloodTests.checked = false; - grcCheck.parentNode.hidden = true; + $('#grcCheckContainer').hide(); grcCheck.checked = false; - medStatusSection.hidden = true; + $('#medStatusSection').hide(); // unchecks all medStatusSection checkboxes $('#medStatusSection').find('input:checked[type=checkbox]').prop('checked', false); - services.value = "Youth (≤16)"; + // check conditions again + checkMedStatus(); $("#services option[value='Adult (17+)']").hide(); + if (services.value === "Adult (17+)") { + services.value = "Choose..."; + } serviceFilters(); } else { - sharedCareCheck.parentNode.hidden = false; - bridgingDesired.parentNode.hidden = false; - bloodTests.parentNode.hidden = false; - grcCheck.parentNode.hidden = false; - medStatusSection.hidden = false; + $('#sharedCareCheckContainer').show(); + $('#bridgingDesiredContainer').show(); + $('#bloodTestsContainer').show(); + $('#grcCheckContainer').show(); + $('#medStatusSection').show(); + checkMedStatus(); $("#services option[value='Adult (17+)']").show(); serviceFilters(); @@ -129,27 +134,26 @@ function checkMedStatus() { function serviceFilters() { // selected country dependent on youth services for valid options countryServiceFilters(); - // change youth options to available services if (services.value == "Youth (≤16)") { - grcCheck.parentNode.hidden = true; - bridgingDesired.parentNode.hidden = true; + $('#grcCheckContainer').hide(); + $('#bridgingDesiredContainer').hide(); bridgingDesired.checked = false; grcCheck.checked = false; - bloodTests.parentNode.hidden = true; + $('#bloodTestsContainer').hide(); bloodTests.checked = false; - medStatusSection.hidden = true; + $('#medStatusSection').hide(); // unchecks all medStatusSection checkboxes $('#medStatusSection').find('input:checked[type=checkbox]').prop('checked', false); $("#privateProviderList option[value='GenderGP']").hide(); $("#privateProviderList option[value='Other (Non-UK Based)']").hide(); } - else { - grcCheck.parentNode.hidden = false; - bridgingDesired.parentNode.hidden = false; - medStatusSection.hidden = false; - bloodTests.parentNode.hidden = false; + else if (!under16Check.checked) { + $('#grcCheckContainer').show(); + $('#bridgingDesiredContainer').show(); + $('#medStatusSection').show(); + $('#bloodTestsContainer').show(); $("#privateProviderList option[value='GenderGP']").show(); $("#privateProviderList option[value='Other (Non-UK Based)']").show(); } @@ -230,7 +234,11 @@ function revealContentSharedCare() { } function revealContentImmigration() { - immigrationCheck.checked ? immigrationOption.hidden = false : (immigrationOption.hidden = true, immigrationLetterCheck.checked = false); + immigrationCheck.checked ? $('#immigrationOption').show() : ($('#immigrationOption').hide(), immigrationLetterCheck.checked = false); + if (document.getElementById("immLetterLabelBtn").getAttribute("data-state") === "opened" && !immigrationCheck.checked) { + $('#immLetterLabelBtn').trigger("click"); + } + } function privateProviderConditions() { @@ -240,6 +248,8 @@ function privateProviderConditions() { privateProviderList.classList.remove("is-valid"); privateProviderList.classList.add("is-invalid"); privateProviderWarningMessage.innerText = "This provider is not based in the UK, which deters some GPs from agreeing to shared care."; + privateProviderPreferredMessage.innerText = ""; + } else if (privateProviderList.value.includes("Other") || privateProviderList.value.includes("haven't chosen")) { privateProviderList.classList.remove("is-invalid"); @@ -251,6 +261,7 @@ function privateProviderConditions() { privateProviderList.classList.remove("is-invalid"); privateProviderList.classList.add("is-valid"); privateProviderPreferredMessage.innerText = "This provider offers GMC registered and UK based specialists."; + privateProviderWarningMessage.innerText = ""; } } @@ -295,10 +306,46 @@ function submitActions() { const alertPlaceholder = document.getElementById('alertPlaceholder') const wrapper = document.createElement('div') wrapper.innerHTML = [ - `