Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Website v2 #3

Merged
merged 48 commits into from
May 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
43df6ce
Remove unused things
patrick91 Oct 29, 2019
a375d0b
Add theme ui
patrick91 Oct 29, 2019
866fbef
Add eslint
patrick91 Oct 29, 2019
9772bed
Fetch library info from github
patrick91 Oct 29, 2019
84eb1d3
Fetch documentation from github repo
patrick91 Oct 30, 2019
7d2ed2e
Use theme ui prism
patrick91 Oct 30, 2019
8a05558
Add a sidebar
patrick91 Oct 30, 2019
3f2976d
Fetch navigation
patrick91 Oct 30, 2019
e0e8c0e
Auto generate types
patrick91 Oct 30, 2019
6a9dc99
Update header
patrick91 Oct 31, 2019
74b3c2f
Initial stab at the home
patrick91 Oct 31, 2019
91f2647
Add now configuration
patrick91 Nov 1, 2019
2f485d8
Update newsletter
patrick91 Nov 1, 2019
09d763d
Use gatsby links
patrick91 Nov 1, 2019
d1e30b6
Update docs
patrick91 Nov 1, 2019
78539f0
Add styleguide
patrick91 Nov 1, 2019
f611ec1
Add spacing to headings
patrick91 Nov 1, 2019
a4868bf
Add spacing to paragraphs
patrick91 Nov 1, 2019
32a2012
Add title
patrick91 Nov 1, 2019
746d0f0
Use Karla as font
patrick91 Nov 1, 2019
75694e4
Fix mobile for additional info
patrick91 Nov 1, 2019
61e0518
Fix header on mobile
patrick91 Nov 2, 2019
aadd62a
Fix hero on mobile
patrick91 Nov 2, 2019
1b8fae6
More mobile fixes
patrick91 Nov 2, 2019
b1bc2a3
Fix footer mobile
patrick91 Nov 2, 2019
69b4966
Update assets
patrick91 Nov 2, 2019
109d118
Fix code box on mobile
patrick91 Nov 2, 2019
3c74eb6
Fix gatsby config
patrick91 Nov 2, 2019
af4b498
One last fix for the code box
patrick91 Nov 2, 2019
68ac48c
Fix codebox on safari
patrick91 Nov 3, 2019
67d2a44
Make docs mobile friendly
patrick91 Nov 3, 2019
f5b2e8a
Add acknowledgements page
patrick91 Nov 3, 2019
5755ecc
Fix build
patrick91 Nov 3, 2019
13802a7
Fix hook on build
patrick91 Nov 3, 2019
962e7f6
Hide bot
patrick91 Nov 3, 2019
ebb79d0
Fix link hovers
patrick91 Nov 4, 2019
04bd1b3
Fix link
patrick91 Nov 4, 2019
b4376fd
Add dark mode (disabled for now)
patrick91 Nov 4, 2019
3d93c38
Fix footer mobile
patrick91 Nov 4, 2019
1d1a4b1
More fixes
patrick91 Nov 4, 2019
4238d22
Use package for github contributors
patrick91 Nov 5, 2019
ac82511
Update copy
patrick91 Nov 5, 2019
bb3880d
Fix link in footer
patrick91 Nov 5, 2019
16d5f6d
Add dark mode prism
patrick91 Nov 5, 2019
a7f9f0b
Update docs
patrick91 Nov 6, 2019
18d25e1
Update docs
patrick91 Nov 6, 2019
75c7f5b
Merge branch 'feature/v2' of github.com:strawberry-graphql/strawberry…
patrick91 May 23, 2020
a376b1e
Fix
patrick91 May 23, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
root = true

[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = false
26 changes: 26 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
module.exports = {
parser: "@typescript-eslint/parser",
extends: [
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"plugin:react/recommended",
"plugin:prettier/recommended",
],
parserOptions: {
ecmaVersion: 2018,
sourceType: "module",
ecmaFeatures: {
jsx: true,
},
},
rules: {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/camelcase": "off",
"react/prop-types": "off",
},
settings: {
react: {
version: "detect",
},
},
};
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*

schema.json

# Runtime data
pids
*.pid
Expand Down Expand Up @@ -67,3 +69,5 @@ yarn-error.log
.pnp.js
# Yarn Integrity file
.yarn-integrity

__generated__/
12 changes: 12 additions & 0 deletions apollo.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
client: {
addTypename: false,
excludes: [],
includes: ["./src/**/*.tsx","./src/**/*.ts","./plugins/**/*.js","./node_modules/gatsby-source-contentful/src/*.js","./node_modules/gatsby-source-datocms/fragments/*.js","./node_modules/gatsby-transformer-sharp/src/*.js","./node_modules/gatsby-image/src/*.js"],
service: {
name: "gatsbySchema",
localSchemaFile: "./schema.json"
},
tagName: "graphql"
}
}
15 changes: 15 additions & 0 deletions content/acknowledgements/content.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## In addition we'd like to thank also the following people:

- [Orlando Festa](https://twitter.com/druguinni) for the fantastic work on the Strawberry logo.
- [Lotte Bijlsma](https://twitter.com/BijlsmaLotte) for the amazing design of this website.

## Icons

We are using icons from [The Noun Project](https://thenounproject.com). Here's the list of icons we used on this website:

- Async by [Timofey Rostilov](https://thenounproject.com/t.rostilov/)
- Server by [Clea Doltz](https://thenounproject.com/clea.doltz)
- Python by [Zaenal Abidin](https://thenounproject.com/priyokumoro5/)
- Boxes by [Icons Bazaar](https://thenounproject.com/iconsbazaar89/)
- Navigation by [Flatart](https://thenounproject.com/Flatart/)
- Close by [Landan Lloyd](https://thenounproject.com/landan/)
Binary file removed content/assets/gatsby-icon.png
Binary file not shown.
20 changes: 0 additions & 20 deletions content/blog/hello-world/index.md

This file was deleted.

Binary file removed content/blog/hello-world/salty_egg.jpg
Binary file not shown.
107 changes: 0 additions & 107 deletions content/blog/hi-folks/index.md

This file was deleted.

13 changes: 0 additions & 13 deletions content/blog/my-second-post/index.md

This file was deleted.

56 changes: 0 additions & 56 deletions content/docs/hello-world.md

This file was deleted.

16 changes: 16 additions & 0 deletions content/home/hello-world.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
```python
import strawberry

@strawberry.type
class User:
name: str
age: int

@strawberry.type
class Query:
@strawberry.field
def user(self) -> User:
return User(name="Patrick", age=100)

schema = strawberry.Schema(query=Query)
```
8 changes: 1 addition & 7 deletions gatsby-browser.js
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
/**
* Implement Gatsby's Browser APIs in this file.
*
* See: https://www.gatsbyjs.org/docs/browser-apis/
*/

// You can delete this file if you're not using it
export { wrapPageElement } from "./src/helpers/wrap-page-element";
Loading