Open in app

Sign In

Write

Sign In

Garrett Weems
Garrett Weems

21 Followers

Home

About

Jul 5, 2020

Better Gatsby + Typescript Setup

A guide to writing your gatsby config files in typescript and auto-generate interfaces from your graphql queries If you’re anything like me you probably love using Gatsby.js for React front end web development and love using Typescript for all of it’s type safe goodness. Here’s a few tips I recently…

Gatsby

3 min read

Better Gatsby + Typescript Setup
Better Gatsby + Typescript Setup
Gatsby

3 min read


Jul 18, 2019

Upgrading your development environment

My favorite extensions, themes, tips for a beautifully productive development environment Programs Programs I use on a daily basis Visual Studio Code Alfred 4 Insomnia TablePlus GraphQL IDE CleanMyMac VS Code Setup

Development

2 min read

Upgrading your development environment
Upgrading your development environment
Development

2 min read


May 18, 2019

Gatsby Darkmode

Create a dynamic dark-mode theme in gatsby using redux, and styled components — Getting Starting In your Gatsby project run npm install --save react-redux redux styled-components Or yarn add redux react-redux styled-components Step 1. Create a new folder in your src/ directory called state Within this folder create the following files src/ └── state/ ├── reducers.js ├── actions.js └── ReduxWrapper.js

Gatsbyjs

3 min read

Gatsby Darkmode
Gatsby Darkmode
Gatsbyjs

3 min read


Mar 28, 2019

Responsive Container Component with React and Styled-Components.

Setup First things first you’re going to need to install the styled-components node package. npm install — save styled-components The way I like to structure my files for something like this is to create a Theme.js file in my sr/ directory. Now we are able to start creating our Theme object. This will act like sass / scss / less variables and we will be able use them across all of our components. Usage

React

1 min read

Responsive Container Component with React and Styled-Components.
Responsive Container Component with React and Styled-Components.
React

1 min read


Mar 19, 2019

Simple Navbar Component using React, TypeScript, and styled-components.

Simple Navbar Component using React, TypeScript, and styled-components. In this project we will create a simple little Navbar component that has a logo or brand name and features horizontal scrolling.

Java Script

6 min read

Simple Navbar Component using React, TypeScript, and styled-components.
Simple Navbar Component using React, TypeScript, and styled-components.
Java Script

6 min read


Mar 16, 2019

React auto-hide on scroll navbar with styled-components.

This will create a react-component Navbar that will be hidden when the user scrolls down and visible when the user scrolls up. Dependencies styled-components npm install styled-components --save In your App.js create the following constants; // App.js import Navbar from './Navbar'; const navlinks = [ { name: "Home", to: "/" }…

React

3 min read

React auto-hide on scroll navbar.
React auto-hide on scroll navbar.
React

3 min read

Garrett Weems

Garrett Weems

21 Followers

Building something

Following
  • Sebastian

    Sebastian

  • Nikhil Vemu

    Nikhil Vemu

  • Tate Galbraith

    Tate Galbraith

  • Manato Kuroda

    Manato Kuroda

  • Jeroen Ouwehand

    Jeroen Ouwehand

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech