diff --git a/docs/Gemfile b/docs/Gemfile index 2c4076d..105649b 100644 --- a/docs/Gemfile +++ b/docs/Gemfile @@ -13,4 +13,5 @@ group :jekyll_plugins do gem "jekyll-feed" gem "jemoji" gem "jekyll-algolia" + gem "jekyll-include-cache" end diff --git a/docs/_config.yml b/docs/_config.yml index 807b0de..b45bdfe 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -7,6 +7,7 @@ remote_theme : "mmistakes/minimal-mistakes" + minimal_mistakes_skin : "von" # "default", "air", "aqua", "contrast", "dark", "dirt", "neon", "mint", "plum", "sunrise" # Site Settings @@ -263,6 +264,7 @@ plugins: - jekyll-gist - jekyll-feed - jemoji + - jekyll-include-cache # mimic GitHub Pages with --safe whitelist: diff --git a/docs/_data/hero.yml b/docs/_data/hero.yml new file mode 100644 index 0000000..809c761 --- /dev/null +++ b/docs/_data/hero.yml @@ -0,0 +1,11 @@ +images: + - url: "/assets/images/svgs/issuer-sitting-3-noshadow-forwhtbk.svg" + class: "issuer-1" + - url: "/assets/images/svgs/licenses-1.svg" + class: "licenses-1" + - url: "/assets/images/svgs/mary-service-card-2-midbk.svg" + class: "mary" + - url: "/assets/images/svgs/licenses-1.svg" + class: "licenses-2" + - url: "/assets/images/svgs/verifier-sitting-1.svg" + class: "issuer-2" \ No newline at end of file diff --git a/docs/_includes/footer/custom.html b/docs/_includes/footer/custom.html new file mode 100644 index 0000000..768c522 --- /dev/null +++ b/docs/_includes/footer/custom.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/_includes/page__hero.html b/docs/_includes/page__hero.html index c096ccc..aa6efc9 100644 --- a/docs/_includes/page__hero.html +++ b/docs/_includes/page__hero.html @@ -1,9 +1,3 @@ -{% if page.header.image contains "://" %} - {% capture img_path %}{{ page.header.image }}{% endcapture %} -{% else %} - {% capture img_path %}{{ page.header.image | relative_url }}{% endcapture %} -{% endif %} - {% if page.header.primary_cta_url contains "://" %} {% capture primary_cta_path %}{{ page.header.primary_cta_url }}{% endcapture %} {% else %} @@ -64,8 +58,15 @@

{% endif %}

{% endif %} - {% if page.header.image %} - {{ image_description }} + {% if site.data.hero.images %} + {% for hero in site.data.hero.images %} + {% if hero.url contains "://" %} + {% capture img_path %}{{ hero.url }}{% endcapture %} + {% else %} + {% capture img_path %}{{ hero.url | relative_url }}{% endcapture %} + {% endif %} + + {% endfor %} {% endif %} {% if page.header.caption %} {{ page.header.caption | markdownify | remove: "

" | remove: "

" }}
diff --git a/docs/_pages/v2.md b/docs/_pages/home.md similarity index 95% rename from docs/_pages/v2.md rename to docs/_pages/home.md index 8f14af6..7d5d35f 100644 --- a/docs/_pages/v2.md +++ b/docs/_pages/home.md @@ -1,14 +1,12 @@ --- layout: splash -permalink: /v2/ +permalink: / header: overlay_color: "#6c98a7" primary_cta_label: " Learn More About VON" primary_cta_url: "/about/" secondary_cta_label: " Get Involved" secondary_cta_url: "/getting_started/quick-start-guide/" - image: "/assets/images/svgs/licenses-1.svg" - image_class: "licenses-1" caption: headline: 'One day, all government-issued documents will be fully digital. We’re here to make that happen.' excerpt: '' diff --git a/docs/_pages/v1.md b/docs/_pages/v1.md deleted file mode 100644 index 478d877..0000000 --- a/docs/_pages/v1.md +++ /dev/null @@ -1,36 +0,0 @@ ---- -layout: splash -permalink: / -header: - overlay_color: "#6c98a7" - primary_cta_label: " Learn More About VON" - primary_cta_url: "/about/" - secondary_cta_label: " Get Involved" - secondary_cta_url: "/getting_started/quick-start-guide/" - image: "/assets/images/svgs/issuer-sitting-3-noshadow-forwhtbk.svg" - image_class: "issuer" - caption: -headline: 'One day, all government-issued documents will be fully digital. We’re here to make that happen.' -excerpt: '' -partners: - - image_path: "/assets/images/logos/bcid_h_gry.png" - name: "Province of British Columbia" - url: "https://www2.gov.bc.ca/" - - image_path: "/assets/images/logos/pspc.png" - name: "Public Services and Procurement Canada" - url: "https://www.canada.ca/en/public-services-procurement.html" - - image_path: "/assets/images/logos/ontario.png" - name: "Government of Ontario" - url: "https://www.ontario.ca/page/government-ontario" ---- - -

Helping Canadians go paperless.

-

The Verifiable Organizations Network is a government-backed initiative to make government-issued documents—like IDs, permits, and licenses—fully digital. By using modern, blockchain-based technologies, a paperless system would help make: -

    -
  1. applying for documents faster and less error prone
  2. -
  3. issuing (and reissuing) documents simpler and more secure, and
  4. -
  5. verifying documents more standard, trustworthy, and transparent across our nation.
  6. -
-

-

Our initial proof-of-concept, TheOrgBook, is publically accessible, open-sourced, and shows what future business permits and licenses could look like.

-

Interested to learn more? Read more about VON and see how you can help.

\ No newline at end of file diff --git a/docs/_pages/v3.md b/docs/_pages/v3.md deleted file mode 100644 index af983e2..0000000 --- a/docs/_pages/v3.md +++ /dev/null @@ -1,36 +0,0 @@ ---- -layout: splash -permalink: /v3/ -header: - overlay_color: "#6c98a7" - primary_cta_label: " Learn More About VON" - primary_cta_url: "/about/" - secondary_cta_label: " Get Involved" - secondary_cta_url: "/getting_started/quick-start-guide/" - image: "/assets/images/svgs/mary-service-card-2-midbk.svg" - image_class: "mary" - caption: -headline: 'One day, all government-issued documents will be fully digital. We’re here to make that happen.' -excerpt: '' -partners: - - image_path: "/assets/images/logos/bcid_h_gry.png" - name: "Province of British Columbia" - url: "https://www2.gov.bc.ca/" - - image_path: "/assets/images/logos/pspc.png" - name: "Public Services and Procurement Canada" - url: "https://www.canada.ca/en/public-services-procurement.html" - - image_path: "/assets/images/logos/ontario.png" - name: "Government of Ontario" - url: "https://www.ontario.ca/page/government-ontario" ---- - -

Helping Canadians go paperless.

-

The Verifiable Organizations Network is a government-backed initiative to make government-issued documents—like IDs, permits, and licenses—fully digital. By using modern, blockchain-based technologies, a paperless system would help make: -

    -
  1. applying for documents faster and less error prone
  2. -
  3. issuing (and reissuing) documents simpler and more secure, and
  4. -
  5. verifying documents more standard, trustworthy, and transparent across our nation.
  6. -
-

-

Our initial proof-of-concept, TheOrgBook, is publically accessible, open-sourced, and shows what future business permits and licenses could look like.

-

Interested to learn more? Read more about VON and see how you can help.

\ No newline at end of file diff --git a/docs/_pages/v4.md b/docs/_pages/v4.md deleted file mode 100644 index f549780..0000000 --- a/docs/_pages/v4.md +++ /dev/null @@ -1,36 +0,0 @@ ---- -layout: splash -permalink: /v4/ -header: - overlay_color: "#6c98a7" - primary_cta_label: " Learn More About VON" - primary_cta_url: "/about/" - secondary_cta_label: " Get Involved" - secondary_cta_url: "/getting_started/quick-start-guide/" - image: "/assets/images/svgs/licenses-1.svg" - image_class: "licenses-2" - caption: -headline: 'One day, all government-issued documents will be fully digital. We’re here to make that happen.' -excerpt: '' -partners: - - image_path: "/assets/images/logos/bcid_h_gry.png" - name: "Province of British Columbia" - url: "https://www2.gov.bc.ca/" - - image_path: "/assets/images/logos/pspc.png" - name: "Public Services and Procurement Canada" - url: "https://www.canada.ca/en/public-services-procurement.html" - - image_path: "/assets/images/logos/ontario.png" - name: "Government of Ontario" - url: "https://www.ontario.ca/page/government-ontario" ---- - -

Helping Canadians go paperless.

-

The Verifiable Organizations Network is a government-backed initiative to make government-issued documents—like IDs, permits, and licenses—fully digital. By using modern, blockchain-based technologies, a paperless system would help make: -

    -
  1. applying for documents faster and less error prone
  2. -
  3. issuing (and reissuing) documents simpler and more secure, and
  4. -
  5. verifying documents more standard, trustworthy, and transparent across our nation.
  6. -
-

-

Our initial proof-of-concept, TheOrgBook, is publically accessible, open-sourced, and shows what future business permits and licenses could look like.

-

Interested to learn more? Read more about VON and see how you can help.

\ No newline at end of file diff --git a/docs/_pages/v5.md b/docs/_pages/v5.md deleted file mode 100644 index b842103..0000000 --- a/docs/_pages/v5.md +++ /dev/null @@ -1,36 +0,0 @@ ---- -layout: splash -permalink: /v5/ -header: - overlay_color: "#6c98a7" - primary_cta_label: " Learn More About VON" - primary_cta_url: "/about/" - secondary_cta_label: " Get Involved" - secondary_cta_url: "/getting_started/quick-start-guide/" - image: "/assets/images/svgs/verifier-sitting-1.svg" - image_class: "issuer" - caption: -headline: 'One day, all government-issued documents will be fully digital. We’re here to make that happen.' -excerpt: '' -partners: - - image_path: "/assets/images/logos/bcid_h_gry.png" - name: "Province of British Columbia" - url: "https://www2.gov.bc.ca/" - - image_path: "/assets/images/logos/pspc.png" - name: "Public Services and Procurement Canada" - url: "https://www.canada.ca/en/public-services-procurement.html" - - image_path: "/assets/images/logos/ontario.png" - name: "Government of Ontario" - url: "https://www.ontario.ca/page/government-ontario" ---- - -

Helping Canadians go paperless.

-

The Verifiable Organizations Network is a government-backed initiative to make government-issued documents—like IDs, permits, and licenses—fully digital. By using modern, blockchain-based technologies, a paperless system would help make: -

    -
  1. applying for documents faster and less error prone
  2. -
  3. issuing (and reissuing) documents simpler and more secure, and
  4. -
  5. verifying documents more standard, trustworthy, and transparent across our nation.
  6. -
-

-

Our initial proof-of-concept, TheOrgBook, is publically accessible, open-sourced, and shows what future business permits and licenses could look like.

-

Interested to learn more? Read more about VON and see how you can help.

\ No newline at end of file diff --git a/docs/_sass/minimal-mistakes/_page.scss b/docs/_sass/minimal-mistakes/_page.scss index f48aa40..6c4116d 100644 --- a/docs/_sass/minimal-mistakes/_page.scss +++ b/docs/_sass/minimal-mistakes/_page.scss @@ -268,17 +268,22 @@ -ms-interpolation-mode: bicubic; position: absolute; z-index: -1; + display: none; - &.issuer { - max-width: 480px; - right: -100px; - bottom: 0px; - max-height: 600px; + &.active { display: none; @include breakpoint($medium-wide) { display: block; } + } + + &.issuer-1, + &.issuer-2 { + max-width: 480px; + right: -100px; + bottom: 0px; + max-height: 600px; @include breakpoint($large) { right: -40px; diff --git a/docs/assets/js/random-hero-splash.js b/docs/assets/js/random-hero-splash.js new file mode 100644 index 0000000..3b83c9b --- /dev/null +++ b/docs/assets/js/random-hero-splash.js @@ -0,0 +1,24 @@ +--- +--- + +{% assign numberOfHeroOptions = site.data.hero.images | size %} + +(function() { + var body = document.body; + var options = []; + + {% for hero in site.data.hero.images %} + options.push("{{ hero.class }}"); + {% endfor %} + + var randomNumber = Math.floor((Math.random() * {{ numberOfHeroOptions }} )); + + function hasClass(element, cls) { + return (' ' + element.className + ' ').indexOf(' ' + cls + ' ') > -1; + } + + if(hasClass(body, "layout--splash")) { + var randomlySelectedHero = document.getElementsByClassName("page__hero-image " + options[randomNumber])[0]; + randomlySelectedHero.className += " active"; + } +})(); \ No newline at end of file