-
Notifications
You must be signed in to change notification settings - Fork 34
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
ecb76b8
commit 4a337ec
Showing
59 changed files
with
5,927 additions
and
4,282 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
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,44 @@ | ||
import React, { useState } from 'react'; | ||
import styled from '@emotion/styled' | ||
|
||
const Wrapper = styled.button` | ||
height: 150px; | ||
width: 100%; | ||
max-width: 300px; | ||
background: ${props => props.theme.colors.highlight}; | ||
margin: 0 0 1rem 0; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
padding: 1em; | ||
border-radius: 2px; | ||
cursor: pointer; | ||
` | ||
|
||
const Text = styled.p` | ||
color: white; | ||
line-height: 1.5; | ||
` | ||
|
||
const Number = styled.p` | ||
color: white; | ||
font-weight: ${props => props.theme.fonts.boldWeight}; | ||
font-size: 2em; | ||
margin: 0 0 1rem 0; | ||
` | ||
|
||
const Box = props => { | ||
const [count, setCount] = useState(0); | ||
return ( | ||
<Wrapper onClick={() => setCount(count + 1)}> | ||
<div> | ||
<Number> | ||
{count} | ||
</Number> | ||
<Text>{props.children}</Text> | ||
</div> | ||
</Wrapper> | ||
) | ||
} | ||
|
||
export default Box |
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,58 @@ | ||
--- | ||
title: About | ||
description: Learn about Gatsby Theme Amsterdam | ||
--- | ||
|
||
<p> | ||
<img | ||
src="https://upload.wikimedia.org/wikipedia/commons/2/20/Flag_of_the_Netherlands.svg" | ||
alt="Flag of the Netherlands" | ||
/> | ||
<span style="display: inline-block; color:#686461; padding:.5rem 0 0 0;"> | ||
Official flag of the Netherlands (source: | ||
<a | ||
href="https://en.wikipedia.org/wiki/Netherlands" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
Wikipedia | ||
</a> | ||
) | ||
</span> | ||
</p> | ||
|
||
**Gatsby Theme Amsterdam** was designed to be a minimal | ||
and clean theme geared towards photographers, artists and other | ||
creative folks. Inspired by the capital city of the Netherlands known | ||
for its artistic heritage, impressive architecture and canals that | ||
criss-cross the city. Truthfully I have never visited before but it | ||
sounds like a pretty cool place so I decided to use the name. | ||
|
||
<p> | ||
<iframe | ||
title="github" | ||
src="https://ghbtns.com/github-btn.html?user=ryanwiemer&repo=gatsby-theme-amsterdam&type=star&count=true&size=large" | ||
frameBorder="0" | ||
scrolling="0" | ||
width="160px" | ||
height="30px" | ||
></iframe> | ||
</p> | ||
Created by **[Ryan Wiemer](https://twitter.com/ryanwiemer)** | ||
|
||
## Features | ||
|
||
- Minimal responsive design | ||
- Optional page transitions | ||
- Multiple grid options to display posts | ||
- Customizable theme colors and typography with Theme UI | ||
- MDX support | ||
- SEO friendly component | ||
- Mobile menu | ||
- Optional scroll progress indicator | ||
- Optional toggle to switch color modes | ||
- Emotion using styled-components syntax | ||
- Tags | ||
- Pagination | ||
- Offline support |
Oops, something went wrong.