-
Global Styles for Styled Components - https://stackoverflow.com/questions/46760861/styled-components-how-to-set-styles-on-html-or-body-tag
-
Fixed Navbar - https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_fixed_menu
-
Flexbox Nabar - https://freshman.tech/flexbox-navbar/
-
Google Fonts Plugin (Prefetched to avoid Flash of Unstyled Text) - https://www.gatsbyjs.org/packages/gatsby-plugin-prefetch-google-fonts/?=fonts
-
Bottom Box Shadow - https://stackoverflow.com/questions/12798902/box-shadow-for-bottom-side-only
-
Set Interval Custom Hook - https://overreacted.io/making-setinterval-declarative-with-react-hooks/
-
Using props with Styled Components - https://styled-components.com/docs/basics#adapting-based-on-props and https://www.gatsbyjs.org/docs/styled-components/
-
Add Event Listener Scroll Navbar - https://stackoverflow.com/questions/48458832/reactjs-change-color-of-element-on-scroll-and-when-certain-position-is-reached and https://stackoverflow.com/questions/44612364/toggle-class-based-on-scroll-react-js
-
React Transition Group with Styled Components - https://reactcommunity.org/react-transition-group/transition and https://dev.to/terrierscript/styled-component--react-transition-group--very-simple-transition-jja
-
How to write Multiple Transitions - https://teamtreehouse.com/library/transitioning-multiple-properties
-
Css Transition Samples - https://thoughtbot.com/blog/transitions-and-transforms
-
Navbar Animations - https://www.newmediacampaigns.com/blog/nicer-navigation-with-css-transitions-part-2
-
Global Styled Components with CSS Vairables - https://medium.com/@jidefr/using-css-variables-with-styled-components-3886f8ee35a0
-
Use of "Appear" prop when using React Transition Group with loading state - http://reactcommunity.org/react-transition-group/transition
-
Animations - https://www.html.am/html-codes/marquees/css-slide-in-text.cfm and https://styled-components.com/docs/basics#animations
-
Media Queries with Styled Components - https://jsramblings.com/how-to-use-media-queries-with-styled-components/
-
Smoothscroll Navbar Linking - https://github.com/freddydumont/gatsby-plugin-smoothscroll
-
Gatsby Scroll Reveal Plugin - https://www.gatsbyjs.org/packages/gatsby-plugin-scroll-reveal/
-
React Particles overlay - https://stackoverflow.com/questions/53604102/how-can-i-set-react-particles-js-as-the-background-while-using-react
-
React Particles Params - https://rpj.bembi.org/#bubbles
-
All file and Edges in Graphql to get an array instead an object of pictures - gatsbyjs/gatsby#11449
-
JavaScript Sorting based on another array - https://stackoverflow.com/questions/16959774/javascript-sorting-array-based-on-another-array
-
JavaScript sort on an array of objects - https://www.sitepoint.com/sort-an-array-of-objects-in-javascript/
-
useRef to handle which picture for modal - https://reactjs.org/docs/hooks-reference.html#useimperativehandle
-
useRef to handle click outside of Modal - https://stackoverflow.com/questions/54391682/detect-click-outside-component-react-hooks
-
React FAQ Component - https://github.com/binodswain/react-faq-component
-
Wavy Footer - https://codepen.io/wizumz/pen/REqrEo
-
Multiple Options for gatsby-source-filesystem - gatsbyjs/gatsby#13674
-
Reading JSON from a file using GraphQL - https://itnext.io/reading-data-from-a-json-file-with-gatsby-graphql-572b18ab98a and https://stackoverflow.com/questions/49252456/how-can-i-get-data-from-a-json-file-via-graphql
-
Destructure within a function argument - https://davidwalsh.name/destructuring-function-arguments
-
Nested destructuring - https://medium.com/@pyrolistical/destructuring-nested-objects-9dabdd01a3b8
-
Skew Only on one side of the element - https://codepen.io/iDiver76/pen/YWzKZz and https://stackoverflow.com/questions/3032856/is-it-possible-to-set-the-stacking-order-of-pseudo-elements-below-their-parent-e
-
Add Zola Registry as iframe - https://github.com/svenanders/react-iframe and https://github.com/iammatthias/Cali-Meets-Delhi/blob/master/src/components/Registry.js (Inspect element)
-
Font Awesome Icons for React - https://github.com/FortAwesome/react-fontawesome and https://fontawesome.com/icons?d=gallery&m=free
-
Bounce Animation - https://codepen.io/bisaillonyannick/pen/pvZeGg
-
Center for absolute position item - https://stackoverflow.com/questions/8508275/how-to-center-a-position-absolute-element
-404 - https://www.gatsbyjs.org/docs/add-404-page/
-
Link between pages - https://www.gatsbyjs.org/docs/linking-between-pages/
-
Favicon Plugin - https://github.com/Creatiwity/gatsby-plugin-favicon
-
React Helmet - https://www.youtube.com/watch?v=8t0vNu2fCCM&t=1619s
-
Gatsby Forms using Netlify Forms - https://codebushi.com/form-handling-gatsby-netlify/
-
React Forms using Netlify (not Gatsby.js) - https://www.youtube.com/watch?v=2gDRR86ZycQ
-
Gatsby with Netlify Forms with Success Page navigation - https://community.netlify.com/t/support-guide-netlify-forms-with-custom-success-pages-for-gatsby-and-nuxt/11578
-
.env files with Gatsby and netlify - https://www.freecodecamp.org/news/what-are-environment-variables-and-how-can-i-use-them-with-gatsby-and-netlify/
-
Button smooth wobble - https://codepen.io/DeclanMorris/details/MLVwZa
-
Background Fixed Mobile Issues - https://stackoverflow.com/questions/26372127/background-fixed-no-repeat-not-working-on-mobile
-
Fixed Issue to Background Fixed on mobile for React Background Image found here using ::before and ::after - https://www.gatsbyjs.org/packages/gatsby-background-image/
-
Get the Interval Duration using Date FNS (Separate for days since I didn't want to include months) - https://date-fns.org/v2.14.0/docs/intervalToDuration and https://date-fns.org/v2.14.0/docs/differenceInDays
Kick off your project with this hello-world boilerplate. This starter ships with the main Gatsby configuration files you might need to get up and running blazing fast with the blazing fast app generator for React.
Have another more specific idea? You may want to check out our vibrant collection of official and community-created starters.
-
Create a Gatsby site.
Use the Gatsby CLI to create a new site, specifying the hello-world starter.
# create a new Gatsby site using the hello-world starter gatsby new my-hello-world-starter https://github.com/gatsbyjs/gatsby-starter-hello-world -
Start developing.
Navigate into your new siteβs directory and start it up.
cd my-hello-world-starter/ gatsby develop -
Open the source code and start editing!
Your site is now running at
http://localhost:8000!Note: You'll also see a second link:
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.Open the
my-hello-world-starterdirectory in your code editor of choice and editsrc/pages/index.js. Save your changes and the browser will update in real time!
A quick look at the top-level files and directories you'll see in a Gatsby project.
.
βββ node_modules
βββ src
βββ .gitignore
βββ .prettierrc
βββ gatsby-browser.js
βββ gatsby-config.js
βββ gatsby-node.js
βββ gatsby-ssr.js
βββ LICENSE
βββ package-lock.json
βββ package.json
βββ README.md
-
/node_modules: This directory contains all of the modules of code that your project depends on (npm packages) are automatically installed. -
/src: This directory will contain all of the code related to what you will see on the front-end of your site (what you see in the browser) such as your site header or a page template.srcis a convention for βsource codeβ. -
.gitignore: This file tells git which files it should not track / not maintain a version history for. -
.prettierrc: This is a configuration file for Prettier. Prettier is a tool to help keep the formatting of your code consistent. -
gatsby-browser.js: This file is where Gatsby expects to find any usage of the Gatsby browser APIs (if any). These allow customization/extension of default Gatsby settings affecting the browser. -
gatsby-config.js: This is the main configuration file for a Gatsby site. This is where you can specify information about your site (metadata) like the site title and description, which Gatsby plugins youβd like to include, etc. (Check out the config docs for more detail). -
gatsby-node.js: This file is where Gatsby expects to find any usage of the Gatsby Node APIs (if any). These allow customization/extension of default Gatsby settings affecting pieces of the site build process. -
gatsby-ssr.js: This file is where Gatsby expects to find any usage of the Gatsby server-side rendering APIs (if any). These allow customization of default Gatsby settings affecting server-side rendering. -
LICENSE: Gatsby is licensed under the MIT license. -
package-lock.json(Seepackage.jsonbelow, first). This is an automatically generated file based on the exact versions of your npm dependencies that were installed for your project. (You wonβt change this file directly). -
package.json: A manifest file for Node.js projects, which includes things like metadata (the projectβs name, author, etc). This manifest is how npm knows which packages to install for your project. -
README.md: A text file containing useful reference information about your project.
Looking for more guidance? Full documentation for Gatsby lives on the website. Here are some places to start:
-
For most developers, we recommend starting with our in-depth tutorial for creating a site with Gatsby. It starts with zero assumptions about your level of ability and walks through every step of the process.
-
To dive straight into code samples, head to our documentation. In particular, check out the Guides, API Reference, and Advanced Tutorials sections in the sidebar.