-
Notifications
You must be signed in to change notification settings - Fork 17
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
1 parent
d7055f6
commit 68bcc49
Showing
33 changed files
with
1,395 additions
and
515 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
|
||
# [ryanwiemer.com](https://www.ryanwiemer.com) | ||
Digital portfolio for Ryan Wiemer. | ||
|
||
![screenshot](screenshot.jpg "screenshot") | ||
- Copyright (c) 2019 Ryan Wiemer | ||
- All Rights Reserved | ||
|
||
![screenshot](screenshot.jpg 'screenshot') | ||
|
||
## Be Cool and Don't Steal ✌️ | ||
|
||
**I'm leaving this repo public for others to see how it is built. This is NOT an invitation to rip it off but rather to learn from it.** | ||
|
||
If you are interested in a starter template for Gatsby, Contentful and Netlify check out my **MIT LICENSED** repo: https://github.com/ryanwiemer/gatsby-starter-gcn. | ||
|
||
**NOTE:** This repo is mostly just for me. If you are interested in a starter template for Gatsby, Contentful and Netlify checkout: https://github.com/ryanwiemer/gatsby-starter-gcn. | ||
If you still have any questions feel free to email me: | ||
|
||
## Tools & Frameworks Used | ||
* [Gatsby](https://www.gatsbyjs.org/) | ||
* [Contentful](https://www.contentful.com/) | ||
* [Netlify](https://www.netlify.com/) | ||
* [React](https://reactjs.org/) | ||
👉 **ryan@ryanwiemer.com** |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,33 @@ | ||
import React from 'react' | ||
import styled from 'styled-components' | ||
|
||
const Wrapper = styled.div` | ||
width: 66%; | ||
display: flex; | ||
flex-flow: row wrap; | ||
justify-content: space-between; | ||
margin: 0 0 1rem 0; | ||
` | ||
|
||
const Title = styled.h2` | ||
font-size: 1em; | ||
line-height: 1.3; | ||
margin: 0 0 0.5rem 0; | ||
@media screen and (min-width: ${props => props.theme.responsive.small}) { | ||
font-size: 1.1em; | ||
} | ||
` | ||
|
||
const BlogList = props => { | ||
return ( | ||
<Wrapper> | ||
<Title> | ||
Duis pretium pharetra lacinia. Cras et ultrices felis. In lobortis | ||
dapibus ligula, eget faucibus tellus congue vel. Suspendisse potenti. | ||
Duis tempus elementum mi sit amet efficitur. | ||
</Title> | ||
</Wrapper> | ||
) | ||
} | ||
|
||
export default BlogList |
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,47 @@ | ||
import React from 'react' | ||
import styled from 'styled-components' | ||
import posed from 'react-pose' | ||
import Promotion from './Promotion' | ||
import TagCloud from './TagCloud' | ||
import { staggerChildren, appear } from '../styles/poses' | ||
|
||
const Wrapper = styled(posed.div(staggerChildren))` | ||
width: 100%; | ||
display: flex; | ||
flex-flow: row wrap; | ||
justify-content: space-between; | ||
align-items: flex-start; | ||
` | ||
|
||
const List = styled.ul` | ||
display: inline-flex; | ||
flex-flow: row wrap; | ||
justify-content: space-between; | ||
width: 100%; | ||
@media screen and (min-width: ${props => props.theme.responsive.medium}) { | ||
flex: 0 0 66%; | ||
} | ||
` | ||
|
||
const SideBar = styled(posed.div(appear))` | ||
width: 100%; | ||
@media screen and (min-width: ${props => props.theme.responsive.medium}) { | ||
flex: 0 0 32%; | ||
position: sticky; | ||
top: 1rem; | ||
} | ||
` | ||
|
||
const BlogList = props => { | ||
return ( | ||
<Wrapper> | ||
<List>{props.children}</List> | ||
<SideBar> | ||
<Promotion /> | ||
<TagCloud tags={props.tags} /> | ||
</SideBar> | ||
</Wrapper> | ||
) | ||
} | ||
|
||
export default BlogList |
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,76 @@ | ||
import React from 'react' | ||
import Link from 'gatsby-link' | ||
import styled from 'styled-components' | ||
import Img from 'gatsby-image' | ||
import posed from 'react-pose' | ||
import { appear } from '../styles/poses' | ||
|
||
const Wrapper = styled(posed.li(appear))` | ||
width: 100%; | ||
position: relative; | ||
background: ${props => props.theme.colors.tertiary}; | ||
border-radius: 2px; | ||
margin: 0 0 1rem 0; | ||
&:hover { | ||
h2 { | ||
text-decoration: underline; | ||
} | ||
} | ||
` | ||
|
||
const StyledLink = styled(Link)` | ||
display: flex; | ||
flex-direction: row-reverse; | ||
` | ||
|
||
const Cover = styled(Img)` | ||
width: 32%; | ||
height: 100%; | ||
position: absolute !important; | ||
border-top-left-radius: 2px !important; | ||
border-bottom-left-radius: 2px !important; | ||
top: 0; | ||
bottom: 0; | ||
left: 0; | ||
& > img { | ||
object-fit: cover !important; | ||
object-position: 50% 50% !important; | ||
} | ||
` | ||
|
||
const Details = styled.div` | ||
flex: 0 0 65%; | ||
padding: 2rem 1rem; | ||
` | ||
|
||
const Title = styled.h2` | ||
font-size: 1.25em; | ||
font-weight: bold; | ||
margin: 0 0 0.5rem 0; | ||
@media screen and (min-width: ${props => props.theme.responsive.medium}) { | ||
font-size: 1.5em; | ||
} | ||
` | ||
|
||
const Date = styled.span` | ||
color: gray; | ||
` | ||
const BlogTile = ({ slug, cover, title, date, ...props }) => { | ||
return ( | ||
<Wrapper> | ||
<StyledLink to={`/${slug}/`}> | ||
<Cover | ||
fluid={cover.fluid} | ||
alt={cover.title} | ||
backgroundColor={'#212121'} | ||
/> | ||
<Details> | ||
<Title>{title}</Title> | ||
<Date>{date}</Date> | ||
</Details> | ||
</StyledLink> | ||
</Wrapper> | ||
) | ||
} | ||
|
||
export default BlogTile |
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,20 +1,24 @@ | ||
import React from 'react' | ||
import styled from 'styled-components' | ||
import styled, { css } from 'styled-components' | ||
|
||
const Wrapper = styled.section` | ||
position: relative; | ||
max-width: ${props => props.theme.sizes.maxWidth}; | ||
margin: 0 auto; | ||
padding: 0 1.5rem; | ||
height: 100%; | ||
min-height: calc(100vh - 8rem); | ||
${props => | ||
props.minHeight && | ||
css` | ||
min-height: calc(100vh - 128px); | ||
`}; | ||
@media screen and (min-width: ${props => props.theme.responsive.small}) { | ||
padding: 0 3rem; | ||
} | ||
` | ||
|
||
const Container = props => { | ||
return <Wrapper>{props.children}</Wrapper> | ||
return <Wrapper {...props}>{props.children}</Wrapper> | ||
} | ||
|
||
export default Container |
Oops, something went wrong.