Built With:
-
Start it up
git clone git@github.com:MetaMask/website.git yarn yarn develop
-
View site
MetaMask is now running at
http://localhost:8000
!There is also a GraphQL API at
http://localhost:8000/___graphql
. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby tutorial.
Gatsby file structure documentation
.
βββ public/
βββ src/
βββ components/
βββ fonts/
βββ fragments/
βββGraphQL_Documentation.md
βββ images/
βββ icons/
βββ social-icons/
βββ metamask-logo.svg
βββ ...
βββ lib/
βββ theme.js
βββ pages/
βββ index.js
βββ about.js
βββ ...
βββ html.js
βββ gatsby-config.js
βββ .env
βββ GraphQL_Query_Documentation.md
βββ package.json
βββ README.md
gatsby-config.js
The main configuration file for a Gatsby site. This is where you can specify information about your site (metadata), site title ,and description, which Gatsby plugins we are using, etc. (Check out the config docs for more detail).
src/fragments/
GraphQL query fragments that create standard data requests across components
src/lib/theme.js
Contains styling constants for font sizes and weights, device sizes for media queries, shadows, and colors.
public/
Automatically generated output of gatsby build
process for production.
src/pages
Files within this directory are turned into routes with the name of the file (e.g. about.js
becomes /about
).
Only files within /pages are allowed to make dynamic GraphQL queries which cascade data down to components.
src/html.js
Entry file used by Gatsby for all rendered pages html template