Skip to content

Commit

Permalink
Merge pull request #36 from NASA-IMPACT/more-grid
Browse files Browse the repository at this point in the history
Style polish
  • Loading branch information
hanbyul-here authored Nov 17, 2023
2 parents 5a8d5c9 + 28f2def commit 9662e7b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 22 deletions.
3 changes: 2 additions & 1 deletion overrides/components/page-footer/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,14 @@ const FooterMenuLink = styled(NavLink)`
const FooterContacts = styled.div`
display: flex;
justify-content: space-between;
align-items: center;
padding: ${variableGlsp(1)};
gap: ${glsp()};
flex-flow: column;
${media.mediumUp`
flex-flow: row nowrap;
align-items: center;
`}
`;

Expand Down
40 changes: 19 additions & 21 deletions overrides/home/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,34 +72,17 @@ const GradientWrapper = styled.div`
);
`;

const BottomContent = styled(Hug)`
display: flex;
flex-flow: column;
width: 80%;
margin: auto;
gap: ${glsp()};
p {
width: 60%;
}
${media.largeDown`
width: 100%;
margin: 0;
p {
width: 100%;
}
`}
`;
const BottomContent = styled(Hug)``;

const InfoImageContent = styled.div`
display: flex;
flex-flow: row;
background-color: #02225b; // @TODO: But where can I get this color?
color: #ffffff;
width: 100%;
height: 350px;
height: 300px;
background-image: url(${RedEarthImg});
background-position: right;
background-position: right bottom -50px;
background-repeat: no-repeat;
div {
display: flex;
Expand All @@ -112,6 +95,11 @@ const InfoImageContent = styled.div`
a {
width: 18.5rem;
}
grid-column: full-start / full-end;
${media.largeUp`
grid-column: content-2 / content-12;
height: 350px;
`}
`;

const CollaboratorsContent = styled.div`
Expand All @@ -132,6 +120,14 @@ const CollaboratorsContent = styled.div`
text-align: center;
}
`;
const HugP = styled(Hug)`
> p {
grid-column: full-start / full-end;
${media.largeUp`
grid-column: content-2 / content-12;
`}
}
`;

export default function HomeComponent() {
const description =
Expand Down Expand Up @@ -178,7 +174,7 @@ export default function HomeComponent() {
<GradientWrapper>
<Fold>
<FoldBody>
<BottomContent>
<HugP>
<p>
Earth.gov is also the gateway to other interagency cooperative
efforts for our planet, like the{" "}
Expand All @@ -187,6 +183,8 @@ export default function HomeComponent() {
U.S. Greenhouse Gas Center
</ExpandLink>
</p>
</HugP>
<BottomContent>
<InfoImageContent>
<div>
<StyledVarHeading size="small" as="h2">
Expand Down

0 comments on commit 9662e7b

Please sign in to comment.