From 63d33b40d0b5362411fb07219cdeaca1c99d9bf1 Mon Sep 17 00:00:00 2001
From: TomNUSDS <74203452+TomNUSDS@users.noreply.github.com>
Date: Fri, 4 Jun 2021 07:36:16 -0700
Subject: [PATCH] More layout fixes (#94)
* More layout fixes
* Get aside flush with top/bottom
* Media change iconlist to one column on mobile
* Misc other fixes
* convert className to use React syntax consistently.
* Update J40Footer.spec.tsx.snap
TODO: body font need to be addressed at the theme level?
---
client/src/components/J40Footer.tsx | 3 +-
.../__snapshots__/J40Footer.spec.tsx.snap | 2 +-
client/src/pages/index.tsx | 61 ++++++++++---------
client/src/styles/global.scss | 20 +++++-
4 files changed, 51 insertions(+), 35 deletions(-)
diff --git a/client/src/components/J40Footer.tsx b/client/src/components/J40Footer.tsx
index 0c404520..c6b0a46c 100644
--- a/client/src/components/J40Footer.tsx
+++ b/client/src/components/J40Footer.tsx
@@ -67,8 +67,7 @@ const J40Footer = () => {
alt={'Whitehouse logo'}/>
}
heading={
+ className={' j40-footer-logo-heading'}>
Council on Environmental Quality
}
/>
>,
diff --git a/client/src/components/__snapshots__/J40Footer.spec.tsx.snap b/client/src/components/__snapshots__/J40Footer.spec.tsx.snap
index 4cbeb812..1ced4458 100644
--- a/client/src/components/__snapshots__/J40Footer.spec.tsx.snap
+++ b/client/src/components/__snapshots__/J40Footer.spec.tsx.snap
@@ -180,7 +180,7 @@ exports[`J40Footer renders correctly 1`] = `
class="grid-col-auto"
>
diff --git a/client/src/pages/index.tsx b/client/src/pages/index.tsx
index 0f39c06d..2d2e7258 100644
--- a/client/src/pages/index.tsx
+++ b/client/src/pages/index.tsx
@@ -38,13 +38,13 @@ const IndexPage = () => {
return (
-
-
+
+
+
-
-
+
+ className={'usa-prose text-asset-container'}>
About Justice40
In an effort to address historical environmental injustices,
@@ -83,22 +83,22 @@ const IndexPage = () => {
-
+
Areas of Focus
-
+
{readMoreList.map((item, index) => {
return (
-
-
+ className={'usa-icon-list__item'}>
+
{item[1]}
+ className={'usa-icon-list__content'}> {item[1]}
);
})
@@ -106,11 +106,9 @@ const IndexPage = () => {
-
-
+
+ className={'usa-prose text-asset-container'}>
A Transparent, Community-First Approach
@@ -153,32 +151,35 @@ const IndexPage = () => {
+
- {/* aside*/}
-
-
+
+
+
-
);
diff --git a/client/src/styles/global.scss b/client/src/styles/global.scss
index f3e751de..15f2fa23 100644
--- a/client/src/styles/global.scss
+++ b/client/src/styles/global.scss
@@ -3,9 +3,16 @@
.j40-two-column {
overflow: hidden;
- column-count: 2;
- column-gap: 1em;
padding: 0;
+
+ @media (min-width: 768px) {
+ column-count: 2;
+ column-gap: 1em;
+ }
+ @media (max-width: 768px) {
+ column-count: 1;
+ column-gap: 0;
+ }
}
.j40-two-column > * {
@@ -21,6 +28,10 @@
max-width: revert;
}
+.j40-two-column-confine {
+ max-width: fit-content;
+}
+
.j40-header {
background-color: #112f4e; /* todo: move color to theme */
color: white;
@@ -28,12 +39,17 @@
.j40-title {
font-size: xx-large;
+ font-family: "Merriweather Web";
}
.j40-aside {
background-color: #eff6fb;
}
+.j40-aside-title {
+ padding-bottom: 1em;
+}
+
.j40-footer-logo {
display: inline-block;
text-align: center;