-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(PPDSC-2259): skeleton of homepage (#318)
* docs(PPDSC-2259): skeleton of homepage * fix(PPDSC-2259): update footer links
- Loading branch information
Showing
4 changed files
with
141 additions
and
29 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 |
---|---|---|
@@ -0,0 +1,85 @@ | ||
import * as React from 'react'; | ||
import {GridLayout, GridLayoutItem, styled, TextBlock, Visible} from 'newskit'; | ||
import Layout, {LayoutProps} from '../components/layout'; | ||
import {GridLayoutItemProps} from '../../src/grid-layout/types'; | ||
|
||
const Placeholder: React.FC = ({children}) => ( | ||
<TextBlock | ||
as="span" | ||
stylePreset="inkContrast" | ||
typographyPreset="editorialLabel010" | ||
> | ||
{children} | ||
</TextBlock> | ||
); | ||
|
||
// Placeholder box | ||
const GridBox = styled.div` | ||
padding: 10px; | ||
border: 1px solid orange; | ||
`; | ||
|
||
const fullGridColumns: GridLayoutItemProps = { | ||
column: {xs: `2 / span 10`}, | ||
}; | ||
|
||
const Index = (layoutProps: LayoutProps) => ( | ||
<Layout {...layoutProps} newPage hideSidebar path="/index-new"> | ||
<GridLayout | ||
columns={{xs: 'repeat(12, minmax(0,1fr))'}} | ||
rowGap={{xs: 'space070', md: 'space100'}} | ||
overrides={{marginBlockEnd: 'space080'}} | ||
> | ||
<GridLayoutItem {...fullGridColumns}> | ||
<GridLayout | ||
overrides={{marginBlockStart: {xs: 'space070', xl: 'space000'}}} | ||
> | ||
<GridLayoutItem column={{xs: `auto / span 10`, xl: `auto / span 4`}}> | ||
<GridBox> | ||
<Placeholder>Hero Text</Placeholder> | ||
</GridBox> | ||
</GridLayoutItem> | ||
<GridLayoutItem column={{xl: `span 6 / 11`}}> | ||
<Visible xl> | ||
<GridBox> | ||
<Placeholder>Hero Image</Placeholder> | ||
</GridBox> | ||
</Visible> | ||
</GridLayoutItem> | ||
</GridLayout> | ||
</GridLayoutItem> | ||
<GridLayoutItem {...fullGridColumns}> | ||
<GridBox> | ||
<Placeholder>Banner</Placeholder> | ||
</GridBox> | ||
</GridLayoutItem> | ||
<GridLayoutItem {...fullGridColumns}> | ||
<GridBox> | ||
<Placeholder>Explore</Placeholder> | ||
</GridBox> | ||
</GridLayoutItem> | ||
<GridLayoutItem {...fullGridColumns}> | ||
<GridBox> | ||
<Placeholder>Whats New</Placeholder> | ||
</GridBox> | ||
</GridLayoutItem> | ||
<GridLayoutItem {...fullGridColumns}> | ||
<GridBox> | ||
<Placeholder>Contribute</Placeholder> | ||
</GridBox> | ||
</GridLayoutItem> | ||
<GridLayoutItem {...fullGridColumns}> | ||
<GridBox> | ||
<Placeholder>Keep in touch</Placeholder> | ||
</GridBox> | ||
</GridLayoutItem> | ||
<GridLayoutItem {...fullGridColumns}> | ||
<GridBox> | ||
<Placeholder>Supported brands</Placeholder> | ||
</GridBox> | ||
</GridLayoutItem> | ||
</GridLayout> | ||
</Layout> | ||
); | ||
|
||
export default Index; |
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