-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restyled the portfolio and blog post section on homepage
- Loading branch information
Showing
15 changed files
with
337 additions
and
188 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,8 +1,4 @@ | ||
import "typeface-archivo" | ||
import "typeface-archivo-narrow" | ||
import "fontsource-raleway" | ||
import "./src/styles/_global.scss" | ||
export const onInitialClientRender = () => { | ||
setTimeout(function() { | ||
document.getElementById("__loader").style.display = "none" | ||
}, 900) | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,83 @@ | ||
import React from "react" | ||
import { StaticQuery, graphql } from "gatsby" | ||
import { Link } from "gatsby" | ||
import styles from "./article.module.scss" | ||
|
||
export default () => ( | ||
<StaticQuery | ||
query={graphql` | ||
query { | ||
allMdx( | ||
filter: { fileAbsolutePath: { regex: "/(insight)/.*.md$/" } } | ||
limit: 1 | ||
sort: { fields: frontmatter___date, order: DESC } | ||
) { | ||
totalCount | ||
edges { | ||
node { | ||
fields { | ||
slug | ||
} | ||
id | ||
frontmatter { | ||
title | ||
description | ||
date(formatString: "MMMM YYYY") | ||
category | ||
} | ||
} | ||
} | ||
} | ||
} | ||
`} | ||
render={data => ( | ||
<ul className={`list-style-none p0 ${styles.grid__simple}`}> | ||
{data.allMdx.edges.map(({ node }) => { | ||
const { category, title, description } = node.frontmatter | ||
return ( | ||
<li className={styles.post__wrapper}> | ||
<Link | ||
to={`journal${node.fields.slug}`} | ||
className={styles.post__link} | ||
> | ||
<article className={`sans-serif pb3 lg-flex ${styles.post}`}> | ||
<div | ||
className={`${styles.post__info} lg-col-4 lg-mr1 line-height-3`} | ||
> | ||
<div> | ||
<span | ||
className={`normal monospace ${styles.post__category}`} | ||
> | ||
{category} | ||
</span> | ||
<span className="medium">{title}</span> | ||
</div> | ||
</div> | ||
<div className={`lg-col-8 ${styles.post__preview}`}> | ||
<p>{description}</p> | ||
</div> | ||
{/* <h6 | ||
className={`uppercase sans-serif small mb1 bold ${styles.post__cat}`} | ||
> | ||
{node.frontmatter.category} | ||
</h6> | ||
<h4 | ||
className={`big display medium mbn1 line-height-3 ${styles.post__title}`} | ||
> | ||
{node.frontmatter.title} | ||
</h4> | ||
<p className={`normal ${styles.post__date}`}> | ||
{node.frontmatter.date} | ||
</p> */} | ||
</article> | ||
</Link> | ||
</li> | ||
) | ||
})} | ||
</ul> | ||
)} | ||
/> | ||
) |
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,39 @@ | ||
.post__wrapper { | ||
position: relative; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
width: 100%; | ||
} | ||
.post__link { | ||
} | ||
.post { | ||
flex-direction: row; | ||
justify-content: center; | ||
align-items: flex-start; | ||
width: 100%; | ||
&__preview { | ||
font-size: 1.25rem; | ||
line-height: 1.3333rem; | ||
max-width: 16em; | ||
p { | ||
margin: 0; | ||
} | ||
@include var.media("screen", ">xlWidth") { | ||
font-size: 1.875rem; | ||
line-height: 2.1111rem; | ||
} | ||
} | ||
&__info { | ||
font-size: 1.5rem; | ||
} | ||
&__info span { | ||
display: inline-block; | ||
margin-right: 0.6rem; | ||
} | ||
&__category { | ||
font-size: 0.875rem; | ||
letter-spacing: -0.02em; | ||
} | ||
} |
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 @@ | ||
export { default } from "./FeaturedArticles" |
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 |
---|---|---|
|
@@ -84,7 +84,7 @@ | |
.link { | ||
margin-right: 40px; | ||
@include var.media(">medWidth") { | ||
font-size: 1.3333rem; | ||
font-size: 1.1111rem; | ||
} | ||
} | ||
} |
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
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 was deleted.
Oops, something went wrong.
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
Oops, something went wrong.