Skip to content

Commit

Permalink
Swap articles and projects on home page
Browse files Browse the repository at this point in the history
  • Loading branch information
sean0x42 committed Nov 25, 2020
1 parent 3793a9d commit ae9302b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
3 changes: 1 addition & 2 deletions src/components/ArticleCards.treat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@ export const date = style((theme) => ({
color: theme.typeColourLight,
}))

export const snippet = style({
})
export const snippet = style({})
20 changes: 10 additions & 10 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,25 +36,25 @@ function IndexPage(props: PageProps<Data>) {

<Wrapper>
<div className={styles.headingWrapper}>
<h2 className={styles.heading}>Recent Projects</h2>
<ButtonLink to="/projects">View all projects</ButtonLink>
<h2 className={styles.heading}>Recent Articles</h2>
<ButtonLink to="/articles">View all articles</ButtonLink>
</div>

<ProjectCards projects={projects} />
<ButtonLink to="/projects" className={styles.mobileButton}>
View all projects
<ArticleCards articles={articles} />
<ButtonLink to="/articles" className={styles.mobileButton}>
View all articles
</ButtonLink>
</Wrapper>

<Wrapper>
<div className={styles.headingWrapper}>
<h2 className={styles.heading}>Recent Articles</h2>
<ButtonLink to="/articles">View all articles</ButtonLink>
<h2 className={styles.heading}>Recent Projects</h2>
<ButtonLink to="/projects">View all projects</ButtonLink>
</div>

<ArticleCards articles={articles} />
<ButtonLink to="/articles" className={styles.mobileButton}>
View all articles
<ProjectCards projects={projects} />
<ButtonLink to="/projects" className={styles.mobileButton}>
View all projects
</ButtonLink>
</Wrapper>
</Layout>
Expand Down

0 comments on commit ae9302b

Please sign in to comment.