Skip to content

Commit

Permalink
Migrates the about page into the new design system
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Stephanus <taoist.futility@pm.me>
  • Loading branch information
Aaron Stephanus committed Oct 19, 2023
1 parent 86448e1 commit 74f9d4a
Show file tree
Hide file tree
Showing 8 changed files with 343 additions and 28 deletions.
7 changes: 7 additions & 0 deletions _includes/icons.html
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,13 @@
<path d="M34.8802 49.5801L27.5103 45.6201L27.5502 45.5801L35.3403 49.7601C35.4103 49.7901 35.4702 49.8301 35.5402 49.8601C35.3102 49.8001 35.0802 49.7001 34.8802 49.5801Z" fill="#8AC2E9"/>
<path d="M36.6201 50.0901C36.2601 50.0901 35.89 50.0101 35.55 49.8601C35.89 49.9801 36.2501 50.0301 36.6201 50.0301C36.9701 50.0301 37.32 49.9801 37.66 49.8701C37.34 50.0201 36.9901 50.0901 36.6201 50.0901Z" fill="#8AC2E9"/>
</svg>
{% when 'migration+upgrade' %}
<svg width="80" height="80" viewBox="0 0 80 80" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M39.99 0.870117V70.6301C38.8 70.6301 37.62 70.5601 36.46 70.4201L27.05 79.1201C23.92 78.0501 20.95 76.6101 18.22 74.8501L19.15 62.1201C17.44 60.4601 15.94 58.5901 14.68 56.5601L2.16 54.6401C1.06 51.5901 0.33 48.3601 0 45.0001L10.32 37.9401C10.56 35.4401 11.11 33.0201 11.93 30.7401L5.76 20.0101C7.52 17.1601 9.61 14.5501 12 12.2301L23.72 15.8201C25.82 14.4501 28.11 13.3301 30.53 12.5201L35 1.19012C36.64 0.980117 38.3 0.870117 39.99 0.870117Z" fill="#012B45"/>
<path d="M80 45.0101C79.67 48.3701 78.94 51.6001 77.84 54.6501L65.33 56.5701C64.06 58.6001 62.56 60.4701 60.85 62.1301L61.78 74.8601C59.04 76.6201 56.08 78.0701 52.95 79.1301L43.53 70.4301C42.37 70.5701 41.2 70.6401 40 70.6401V0.870117C41.7 0.870117 43.36 0.970117 44.99 1.18012L49.48 12.5301C51.91 13.3401 54.19 14.4601 56.29 15.8301L68 12.2401C70.39 14.5601 72.49 17.1601 74.24 20.0101L68.07 30.7401C68.89 33.0201 69.44 35.4401 69.68 37.9401L80 45.0101Z" fill="#05182E"/>
<path d="M62.39 36.79H52.77C52.25 36.79 51.82 37.21 51.82 37.73V64.32C51.82 64.84 51.39 65.27 50.87 65.27H40V12.51C40.24 12.51 40.49 12.6 40.67 12.78L63.06 35.18C63.65 35.78 63.24 36.79 62.39 36.79Z" fill="#E3A324"/>
<path d="M40 12.51V65.26H29.13C28.61 65.26 28.18 64.83 28.18 64.31V37.73C28.18 37.21 27.75 36.79 27.23 36.79H17.61C16.77 36.79 16.35 35.77 16.94 35.18L39.34 12.78C39.51 12.6 39.75 12.51 40 12.51Z" fill="#FCB51D"/>
</svg>
{% when 'minus' %}
<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect y="13.5" width="30" height="3" fill="#0085B8"/>
Expand Down
16 changes: 16 additions & 0 deletions _includes/reposition-content.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{% comment %}
A note to maintainers who might wonder why such a thing as this would exist.
Ease of content authoring using only Markdown and Front Matter as a goal
is at times at odds with sophisticated designs. So, here's a kludge
to allow that to happen where necessary.
{% endcomment %}
{%- if include.source_selector and include.insert_before_selector -%}
<script type="module">
const sourceSelector = "{{ include.source_selector }}";
const insertBeforeSelector = "{{ include.insert_before_selector }}";
const sourceNode = document.querySelector(sourceSelector);
const targetNode = document.querySelector(insertBeforeSelector);
const targetParent = targetNode?.parentNode;
targetParent?.insertBefore?.(sourceNode, targetNode);
</script>
{%- endif -%}
67 changes: 67 additions & 0 deletions _layouts/fullwidth-with-breadcrumbs.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
---
layout: default
---
{% if page.has_hero %}
{% assign page_type_class = "page-with-hero" %}
{% else %}
{% assign page_type_class = "page-without-hero" %}
{% endif %}
<main class="container">
<div class="{{ page_type_class }}">
<div class="full-width-layout--header">
{% if page.breadcrumbs %}
<div class="full-width-layout--header--category-area">
{% assign icon_type = page.breadcrumbs.icon %}
{% assign breadcrumb_items = page.breadcrumbs.items %}
{% if icon_type %}
<div class="full-width-layout--header--icon">
{% include icons.html type=icon_type %}
</div>
{% if breadcrumb_items %}
{% for item in breadcrumb_items %}
<div class="full-width-layout--header--breadcrumbs--item">
{% if item.url -%}
<a href="{{ item.url }}">{{ item.title }}</a>
{%- else -%}
{{- item.title -}}
{%- endif %}
</div>
{% unless forloop.last %}
<div class="full-width-layout--header--breadcrumbs--item-separator">&gt;</div>
{% endunless %}
{% endfor %}
{% endif %}
{% endif %}
</div>
{% endif %}
<div class="full-width-layout--header--title">
<h1>{{ page.primary_title }}</h1>
</div>
</div>
<div class="full-width-layout--content">
<div class="full-width-layout--content--body">
{{ content }}
</div>
{% if page.resources %}
<div class="solutions-card-grid">
{% if page.resources.heading -%}
<h2>{{ page.resources.heading }}</h2>
{%- endif %}
<div class="tall-card__no-image--grid solutions-card-grid--card-wrapper">
{% for item in page.resources.items %}
{% include tall-card-no-image.html
title=item.title
url=item.url
category=item.category
icon=item.icon
date=item.date
%}
{% endfor %}
</div>
</div>
{% endif %}
</div>
</div>
</main>
{% include reposition-content.html source_selector=".solutions-card-grid" insert_before_selector=".full-width-layout--content__about-page > h2:last-of-type" %}
{% include card-clickability.html card_container_selector=".solutions-card-grid > .solutions-card-grid--card-wrapper" card_classname="solutions-card-grid--card-wrapper--card" %}
149 changes: 149 additions & 0 deletions _sass/_fullwidth-with-breadcrumbs.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
.full-width-layout--header {
@include page-element-padding;
background-color: white;
> .full-width-layout--header--category-area {
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: center;
flex-wrap: wrap;
> .full-width-layout--header--icon {
flex-basis: 40px;
flex-grow: 0;
flex-shrink: 0;
width: 40px;
height: 40px;
> svg,
> img {
width: 40px;
height: 40px;
}
}
> .full-width-layout--header--breadcrumbs--item,
> .full-width-layout--header--breadcrumbs--item-separator {
min-width: fit-content;
@include header-level4($secondary-sanfrancisco-fog-s4);
margin-left: 1em;
> a {
@include header-level4($secondary-sanfrancisco-fog-s4);
&:hover {
text-decoration: underline;
text-decoration-color: $primary-pacific-blue;
text-decoration-thickness: 2px;
}
text-decoration: none;
}
&:last-of-type {
> a {
text-decoration: underline;
text-decoration-color: $primary-pacific-blue;
text-decoration-thickness: 2px;
}
}
}
}
> .full-width-layout--header--title {
padding-left: 0;
> h1 {
margin-top: 21px;
}
@media screen and (max-width: 460px) {
padding-left: 0;
> h1 {
@include header-level1-mobile;
margin-top: 10px;
}
}
}
}

.full-width-layout--content {
@include thick-edge-top;
> .full-width-layout--content--body {
@extend .platform-page--content;
> p {
@include page-paragraph-padding;
margin: 0;
&:first-of-type {
padding-top: 2em;
}
&:last-of-type {
padding-bottom: 2em;
}
}
> h2 {
@include header-level2($primary-open-sky-s3);
@include page-paragraph-padding;
margin: 0;
&:first-of-type {
margin-top: 1em;
}
}
> .principles-for-development {
@include page-element-padding;
> div {
@include thick-edge-bottom;
@include card-shadow;
background-color: white;
@include inner-element-padding;
> h2 {
@include header-level2($primary-open-sky-s2);
&:first-of-type {
margin-top: 0;
}
margin-top: 2em;
margin-bottom: 0;
}
> p {
margin-top: 0;
}
}
}
> .solutions-card-grid {
@include page-element-padding;
> .solutions-card-grid--card-wrapper {
@media screen and (min-width: 1460px) {
padding: 0;
}
}
}
> table {
@include page-element-margins;
@extend .platform-page--solutions--use-cases--table;
&:nth-of-type(3) {
width: 50%;
}
> thead {
> tr {
> th,
th:nth-of-type(1) {
white-space: normal;
overflow-x: auto;
}
}
}
> tbody {
> tr {
> td {
@include header-level5($secondary-sanfrancisco-fog-s5);
// Implementation note: These are overrides to the base use-cases--table styles.
&:nth-of-type(1) {
@include header-level5($secondary-sanfrancisco-fog-s5);
}
&:nth-of-type(2) {
@include header-level5($secondary-sanfrancisco-fog-s5);
}
@media screen and (min-width: 601px) {
&:nth-of-type(1) {
width: auto;
}
}
}
}
}
}
}
> .full-width-layout--content__release-page {

}
}
63 changes: 63 additions & 0 deletions _sass/_redesign-layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,66 @@
box-sizing: border-box;
width: 100%;
}

@mixin page-paragraph-padding() {
@media screen and (min-width: 1200px) {
padding: 1em 80px 0;
}
@media screen and (min-width:960px) and (max-width: 1199px) {
padding: 1em 40px 0;
}
@media screen and (min-width: 739px) and (max-width: 959px) {
padding: 1em 20px 0;
}
@media screen and (min-width: 431px) and (max-width: 739px) {
padding: 1em 10px 0;
}
@media screen and (max-width: 430px) {
padding: 1em 5px 0;
}
box-sizing: border-box;
width: 100%;
}

@mixin inner-element-padding() {
@media screen and (min-width: 1200px) {
padding: 40px 40px;
}
@media screen and (min-width: 960px) and (max-width: 1199px) {
padding: 30px 20px;
}
@media screen and (min-width: 739px) and (max-width: 959px) {
padding: 30px 15px;
}
@media screen and (min-width: 431px) and (max-width: 739px) {
padding: 30px 10px;
}
@media screen and (max-width: 430px) {
padding: 30px 5px;
}
box-sizing: border-box;
width: 100%;
}

@mixin page-element-margins() {
@media screen and (min-width: 1200px) {
margin: 40px 80px;
width: calc(100% - 160px);
}
@media screen and (min-width:960px) and (max-width: 1199px) {
margin: 30px 40px;
width: calc(100% - 80px);
}
@media screen and (min-width: 739px) and (max-width: 959px) {
margin: 30px 20px;
width: calc(100% - 40px);
}
@media screen and (min-width: 431px) and (max-width: 739px) {
margin: 30px 10px;
width: calc(100% - 20px);
}
@media screen and (max-width: 430px) {
margin: 30px 5px;
width: calc(100% - 10px);
}
}
2 changes: 1 addition & 1 deletion _sass/_redesign.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1240,7 +1240,7 @@ $header-banner-mobile-breakpoint: 1018px;
padding-left: 40px;
padding-right: 40px;
}
> h2.solutions-card-grid--header {
> h2 {
@include header-level2($primary-open-sky-s3);
margin-top: 13px;
}
Expand Down
Loading

0 comments on commit 74f9d4a

Please sign in to comment.