-
Notifications
You must be signed in to change notification settings - Fork 447
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
252 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = {} | ||
const nextConfig = {}; | ||
|
||
module.exports = nextConfig | ||
module.exports = nextConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ | |
@mixin landing-page-background() { | ||
background-color: $layer-01; | ||
position: relative; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,4 @@ | |
.cds--subgrid--wide { | ||
//fix needed to keep the subgrid from scrolling horizontally | ||
margin-right: 1rem; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import LandingPage from './home/page'; | ||
|
||
export default function Page() { | ||
return <LandingPage />; | ||
} | ||
return <LandingPage />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
.repo-page__r1 { | ||
padding-top: $spacing-05; | ||
padding-bottom: $spacing-05; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { Grid, Column } from '@carbon/react'; | ||
|
||
// Take in a phrase and separate the third word in an array | ||
function createArrayFromPhrase(phrase) { | ||
const splitPhrase = phrase.split(' '); | ||
const thirdWord = splitPhrase.pop(); | ||
return [splitPhrase.join(' '), thirdWord]; | ||
} | ||
|
||
const InfoSection = (props) => ( | ||
<Grid className={`${props.className} info-section`}> | ||
<Column md={8} lg={16} xlg={3}> | ||
<h3 className="info-section__heading">{props.heading}</h3> | ||
</Column> | ||
{props.children} | ||
</Grid> | ||
); | ||
|
||
const InfoCard = (props) => { | ||
const splitHeading = createArrayFromPhrase(props.heading); | ||
|
||
return ( | ||
<Column sm={4} md={8} lg={4} className="info-card"> | ||
<h4 className="info-card__heading"> | ||
{`${splitHeading[0]} `} | ||
<strong>{splitHeading[1]}</strong> | ||
</h4> | ||
<p className="info-card__body">{props.body}</p> | ||
{props.icon()} | ||
</Column> | ||
); | ||
}; | ||
|
||
export { InfoSection, InfoCard }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
@use '@carbon/react/scss/type' as *; | ||
@use '@carbon/react/scss/spacing' as *; | ||
@use '@carbon/react/scss/breakpoint' as *; | ||
@use '@carbon/react/scss/theme' as *; | ||
|
||
.info-section__heading { | ||
@include type-style('heading-01'); | ||
padding-bottom: #254578; | ||
} | ||
|
||
.info-card__heading { | ||
@include type-style('productive-heading-03'); | ||
} | ||
|
||
.info-card__body { | ||
margin-top: $spacing-06; | ||
flex-grow: 1; // fill space so pictograms are bottom aligned | ||
@include type-style('body-long-01'); | ||
|
||
// prevent large line lengths between small and medium viewports | ||
@include breakpoint-between(321px, md) { | ||
max-width: 75%; | ||
} | ||
} | ||
|
||
.info-card { | ||
margin-top: $spacing-09; | ||
display: flex; | ||
flex-direction: column; | ||
padding-left: 1rem; | ||
|
||
svg { | ||
margin-top: $spacing-09; | ||
} | ||
|
||
@include breakpoint(sm) { | ||
padding-left: 0; | ||
} | ||
|
||
div { | ||
flex-grow: 1; // fill space so icons are bottom aligned | ||
} | ||
|
||
// top border in only small breakpoints to prevent overrides | ||
@include breakpoint-down(lg) { | ||
padding-left: 0; | ||
margin-top: 0; | ||
flex-direction: row-reverse; | ||
|
||
&:not(:nth-child(2)) { | ||
padding-top: $spacing-10; | ||
} | ||
|
||
svg { | ||
margin-top: -0.25rem; | ||
margin-right: 2rem; | ||
min-width: 48px; | ||
min-height: 48px; | ||
} | ||
} | ||
|
||
@include breakpoint(lg) { | ||
margin-top: 0; | ||
padding-left: 0; | ||
|
||
&:not(:nth-child(2)) { | ||
border-left: 1px solid $border-subtle-01; | ||
padding-left: 1rem; | ||
} | ||
|
||
svg { | ||
margin-top: $spacing-12; | ||
} | ||
} | ||
|
||
// left border in all items | ||
@include breakpoint(xlg) { | ||
margin-top: 0; | ||
border-left: 1px solid $border-subtle-01; | ||
padding-left: 1rem; | ||
|
||
svg { | ||
margin-top: $spacing-12; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,4 @@ | |
.action-icons { | ||
display: none; | ||
} | ||
} | ||
} |
Oops, something went wrong.