diff --git a/site/layouts/partials/about.html b/site/layouts/partials/about.html index b712c87..d9f2011 100644 --- a/site/layouts/partials/about.html +++ b/site/layouts/partials/about.html @@ -2,8 +2,8 @@
-
-
+
+

About Heading One

Lorem fuga cupiditate quidem quia earum, hic. Iusto id beatae sit similique sequi! Earum veritatis mollitia iste ipsam totam deleniti Nam cupiditate recusandae tempore ab magnam! Officiis maxime incidunt asperiores?

@@ -11,18 +11,23 @@

Amet dolore atque iure inventore vitae Dolores fuga porro quo odit et autem. Sint est nesciunt unde non aliquid officiis fugit Repellat cum sequi cum fugiat fugit Voluptatem quaerat quibusdam.

- CARD IMAGE -

Card Heading

-

- Amet recusandae optio quia velit quisquam. Dolorem ipsam non modi est quisquam? Quia inventore neque amet laudantium impedit a, dignissimos. Repellendus vero animi saepe tempora quibusdam! Repudiandae esse ex adipisci -

+
+
+
+
+

Card Heading

+

+ Amet recusandae optio quia velit quisquam. Dolorem ipsam non modi est quisquam? Quia inventore neque amet laudantium impedit a, dignissimos. Repellendus vero animi saepe tempora quibusdam! Repudiandae esse ex adipisci +

+
+
-
+

About Heading Two

@@ -31,12 +36,14 @@

Amet dolore atque iure inventore vitae Dolores fuga porro quo odit et autem. Sint est nesciunt unde non aliquid officiis fugit Repellat cum sequi cum fugiat fugit Voluptatem quaerat quibusdam.

- CARD IMAGE -

Another Card Heading

-

- Amet recusandae optio quia velit quisquam. Dolorem ipsam non modi est quisquam? Quia inventore neque amet laudantium impedit a, dignissimos. Repellendus vero animi saepe tempora quibusdam! Repudiandae esse ex adipisci -

+
+ CARD IMAGE +

Another Card Heading

+

+ Amet recusandae optio quia velit quisquam. Dolorem ipsam non modi est quisquam? Quia inventore neque amet laudantium impedit a, dignissimos. Repellendus vero animi saepe tempora quibusdam! Repudiandae esse ex adipisci +

+
diff --git a/src/css/imports/components/base.scss b/src/css/imports/components/base.scss new file mode 100644 index 0000000..0ad3db1 --- /dev/null +++ b/src/css/imports/components/base.scss @@ -0,0 +1,75 @@ +// a card +.c-img-card { + $bp-collapse: $bp-s; + + z-index: 1; + position: relative; + border-radius: 8px; + overflow: hidden; + + &__body { + padding: 32px 48px; + } + + &__body-bg { + z-index: -1; + position: absolute; + width: 100%; + height: 100%; + top: 0; + left: 0; + } + + @media (max-width: $bp-collapse) { + &__header, + &__body, + &__body-bg { + position: absolute; + width: 100%; + height: 100%; + top: 0; + left: 0; + } + + &__header { + z-index: -1; + } + + &__body { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + text-align: center; + } + + &__body-bg { + opacity: 0.6; + } + } + + @media (min-width: $bp-collapse) { + display: flex; + flex-direction: column; + + &__header, + &__body { + display: flex; + flex-direction: column; + justify-content: center; + } + + &__header { + flex: 0 1 50%; + } + + &__body { + position: relative; + flex: 1 0 50%; + } + + &__body-bg { + opacity: 1; + } + } +} diff --git a/src/css/imports/layout.scss b/src/css/imports/layout.scss index e75c0fd..03c9a9b 100644 --- a/src/css/imports/layout.scss +++ b/src/css/imports/layout.scss @@ -1,6 +1,6 @@ .l-wrapper { width: 100%; - max-width: 70rem; + max-width: 90rem; margin-left: auto; margin-right: auto; @@ -121,6 +121,22 @@ flex-wrap: wrap; } +.l-flex-2-col-m { + display: flex; + flex-direction: row; + justify-content: space-between; + align-items: stretch; + flex-wrap: wrap; + + > * { + flex: 0 0 100%; + + @media (min-width: $bp-m) { + flex: 0 0 50%; + } + } +} + .l-flex-list-col { display: flex; flex-direction: column; diff --git a/src/css/main.css b/src/css/main.css index dc43209..43e8bb0 100644 --- a/src/css/main.css +++ b/src/css/main.css @@ -11,6 +11,8 @@ @import "imports/utility.scss"; @import "imports/blocks.scss"; +@import "imports/components/base.scss"; + @import "mapbox-gl/dist/mapbox-gl.css"; // swup transition classes @@ -179,6 +181,58 @@ html.is-animating .transition-fade { background-color: var(--primary-500); } +// about + +.about-bg { + background-color: var(--page-bg); + + &--secondary { + background-color: var(--neutral-200); + } +} + +.about-section { + align-items: flex-end; +} + +.about-info { + padding: 0; + + @media (min-width: $bp-m) { + padding-right: 64px; + } +} + +.about-card { + height: 30em; + width: 100%; + max-width: 30em; + + margin-left: auto; + margin-right: auto; + font-size: 0.9em; + + @media (min-width: $bp-m) { + width: 100%; + max-width: 26em; + height: 40em; + margin-left: auto; + } +} + +.about-card-bg-img { + background-size: cover; + background-position: center center; +} + +.about-card-bg-1 { + background-color: pink; +} + +.about-card-bg-img-1 { + background-image: url(https://via.placeholder.com/300x400); +} + // services .services-bg {