const sanityClient = require('@sanity/client');
const imageUrlBuilder = require('@sanity/image-url');
// I store my query in another file for reusability with
// the `gatsby-source-plugin`
const modularQueries = require('../../../../sanityQueries/modularQuery.js');
import { removeWhitespace } from '../../../utils/strings';
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
import { STATE_RETURNS, validateState } from "./gameState"; | |
/** | |
* What goes into the game loop: | |
* | |
* 1. Prompt the first player (Cross) for their move | |
* 2. Moves are composed of [rowNumber, columnNumber] | |
* 3. If move is invalid, re-prompt | |
* - Spot already filled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import { useInView } from "react-intersection-observer"; | |
import getImageProps from "./getImageProps"; | |
// Assuming you don't expand the image's asset reference | |
export interface SanityImage { | |
_type?: "image"; | |
alt?: string; | |
caption?: string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
dBBBBb dBBBBP dBBBBP dBP dBP dBBBP dBP .dBBBBP dBP dBBBBP dBBBBb | |
dBP dB'.BP dB'.BP dBP.d8P BP dB'.BP dBP | |
dBBBK' dB'.BP dB'.BP dBBBBP' dBP dBP `BBBBb dBP dB'.BP dBP dBP | |
dB' db dB'.BP dB'.BP dBP BB dBP dBP dBP dBP dB'.BP dBP dBP | |
dBBBBP' dBBBBP dBBBBP dBP dB' dBBBBP dBP dBBBBP' dBP dBBBBP dBP dBP | |
* Bookcision v4.0.5 - Excise your notes/highlights from read.amazon.com | |
* https://bookcision.readwise.io |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Login form | |
idle* | |
submit -> can submit? | |
can submit? | |
yes -> authenticating | |
no -> invalid | |
invalid | |
submit -> can submit? | |
authenticating |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# supermercadosonline.com.br | |
# Pre-render bem otimizadinho | |
Home* | |
# Form com validação | |
buscar cep -> CEP | |
# Um tanto de link de rodapé, essencialmente | |
escolher cidade de lista -> Cidade | |
# Carrega 100% no cliente | |
CEP | |
# Puxa direto da API deles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Static content served by Sanity | |
Homepage* | |
is logged in -> Logged area | |
click log-in -> Auth | |
## Authentication methods provided by firebase | |
Auth | |
login* | |
success -> Logged area | |
dont have account -> signup |