Install on Mac with:
brew install elixir
Start an interactive shell (sort of like Rail's rails console
):
import React from "react" | |
import AniLink from "gatsby-plugin-transition-link/AniLink"; | |
export default () => ( | |
<div> | |
This is an example page! Click on this link to test an animation: | |
<AniLink fade to="/transition-paint-drip"> | |
Fade to another page | |
</AniLink> | |
</div> |
import React from "react" | |
import AniLink from "gatsby-plugin-transition-link/AniLink"; | |
export default () => ( | |
<div> | |
This is an example page! Click on this link to test an animation: | |
<AniLink paintDrip to="/transition-fade"> | |
Paint drip to another page | |
</AniLink> | |
</div> |
“Progressive web app” (PWA) is a term for a new philosophy of building websites.
They help provide native-like features to web apps across platforms and require 3 things:
All the pieces of authentication are possible in Gatsby. Thanks to Auth0, setting it up doesn't have to be so cumbersome!
This setup comes straight from Auth0's official quick start for React.
The first step is installing the official Auth0 SDK for JavaScript from npm.
{ | |
"workbench.editor.enablePreviewFromQuickOpen": false, | |
"workbench.colorTheme": "Hyper Term Black", | |
"workbench.iconTheme": "vscode-icons", | |
"workbench.sideBar.location": "right", | |
"workbench.colorCustomizations": { | |
"editor.selectionHighlightBackground": "#24386e", | |
"editor.findMatchBackground": "#2d364e", | |
"editor.findMatchHighlightBackground": "#38415c" | |
} |
#!/usr/bin/env python3 | |
# NOTE: this is a really naive solution that just checks for alt="" in the returned html from the page, | |
# it would probably give a lot of erroneous results on other projects but got the job done for me. | |
import urllib.request as urllib2 | |
base_path = "https://gatsbyjs.com" | |
blog_paths = 'blog_paths.txt' |
add_action('graphql_register_types', function() { | |
register_graphql_mutation('submitShowcaseSiteFromPublicUser', [ | |
'description' => __('Allow unauthenticated users to submit sites to the showcase, with limited fields.'), | |
'inputFields' => [ | |
'title' => [ | |
'type' => ['non_null' => 'String'], | |
], | |
'mainUrl' => [ | |
'type' => ['non_null' => 'String'], | |
], |
import * as React from 'react' | |
import { Skeleton } from '@chakra-ui/react' | |
export default function SkeletonLoader({ skeletonProps, status, children }) { | |
if (status === 'loading') | |
return <Skeleton height="100%" width="100%" {...skeletonProps} /> | |
if (status === 'error') return null | |
return children | |
} |