-
Notifications
You must be signed in to change notification settings - Fork 417
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates design of index pages (#540)
* updates design of index pages * reverts unintentional package.json changes * Update content/github-staff/index.md Co-authored-by: Josep Martins <[email protected]> * Update src/components/child-pages.tsx * Update src/components/child-pages.tsx * Update src/layouts/index-layout.tsx --------- Co-authored-by: Emily Brick <[email protected]> Co-authored-by: Josep Martins <[email protected]>
- Loading branch information
1 parent
54c2967
commit 3d6dc79
Showing
14 changed files
with
64 additions
and
4 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,5 +1,9 @@ | ||
--- | ||
title: Components | ||
description: Design and usage guidelines for individual Primer components. | ||
--- | ||
|
||
import IndexLayout from '~/src/layouts/index-layout' | ||
export default IndexLayout | ||
|
||
<ChildPages of="Components" /> |
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,11 +1,10 @@ | ||
--- | ||
title: Octicons | ||
description: A scalable set of icons handcrafted by GitHub. | ||
source: https://github.com/primer/octicons | ||
--- | ||
|
||
import Icons from '../../../src/components/icons' | ||
import {HeartFillIcon} from '@primer/octicons-react' | ||
|
||
A scalable set of icons handcrafted with <HeartFillIcon /> by GitHub | ||
|
||
<Icons /> |
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,9 @@ | ||
--- | ||
title: Foundations | ||
description: The fundamental parts of the design system that underpin all GitHub interfaces, such as color and typography. | ||
--- | ||
|
||
import IndexLayout from '~/src/layouts/index-layout' | ||
export default IndexLayout | ||
|
||
<ChildPages of="Foundations" /> |
File renamed without changes.
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,6 @@ | ||
--- | ||
title: GitHub staff | ||
description: Internal documentation for GitHub staff. | ||
--- | ||
|
||
<ChildPages of="GitHub staff" /> |
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,9 @@ | ||
--- | ||
title: Guides | ||
description: Standards, guidelines, and tools to getting started with Primer. | ||
--- | ||
|
||
import IndexLayout from '~/src/layouts/index-layout' | ||
export default IndexLayout | ||
|
||
<ChildPages of="Guides" /> |
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,9 @@ | ||
--- | ||
title: Native | ||
description: Principles, foundations and usage guidelines for designing for GitHub's native products. | ||
--- | ||
|
||
import IndexLayout from '~/src/layouts/index-layout' | ||
export default IndexLayout | ||
|
||
<ChildPages of="Native" /> |
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,9 @@ | ||
--- | ||
title: UI patterns | ||
description: Design guidelines covering common user workflows. | ||
--- | ||
|
||
import IndexLayout from '~/src/layouts/index-layout' | ||
export default IndexLayout | ||
|
||
<ChildPages of="UI patterns" /> |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import React from 'react' | ||
import {Box, Heading, Text} from '@primer/react' | ||
import PageFooter from '@primer/gatsby-theme-doctocat/src/components/page-footer' | ||
import {BaseLayout} from '../components/base-layout' | ||
|
||
// TODO: render the background graphic at the top of the page once we have the assets | ||
|
||
export default function IndexLayout(props) { | ||
const {pageContext, children} = props | ||
const {title, description} = pageContext.frontmatter | ||
|
||
return ( | ||
<BaseLayout title={title} description={description}> | ||
<Box sx={{maxWidth: 1200, width: '100%', p: [4, 5, 6, 7], mx: 'auto'}}> | ||
<Box sx={{display: "flex", flexDirection: 'column', gap: 2, mb: 7}}> | ||
{/* TODO: update `fontSize` to `8` once we can upgrade to the latest version of PRC, which supports that fontSize value */} | ||
<Heading as="h1" sx={{fontSize: 48}}>{title}</Heading> | ||
{description ? ( | ||
<Text as="p" sx={{fontSize: 4, m: 0, mb: 3, maxWidth: '60ch'}}> | ||
{description} | ||
</Text> | ||
) : null} | ||
</Box> | ||
{children} | ||
<PageFooter editUrl={pageContext.editUrl} contributors={pageContext.contributors} /> | ||
</Box> | ||
</BaseLayout> | ||
) | ||
} |