Skip to content

Instantly share code, notes, and snippets.

View smokeyfro's full-sized avatar

Chris Rault smokeyfro

View GitHub Profile
<blockquote>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
</blockquote>
<blockquote class="quote">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor.</p>
</blockquote>
<template>
<Layout>
<main class="p-10 relative z-10 bg-white mx-10 shadow-2xl">
<article>
<h1>{{ $page.place.title }}</h1>
<ol class="list w-2/3 mx-auto list-view">
<li v-for="item in $page.place.belongsTo.edges" :key="item.id">
{{ item.title }}
</li>
</ol>
@smokeyfro
smokeyfro / .env
Created September 20, 2019 12:28
Airtable source setup for Gridsome
AIRTABLE_API_KEY=
AIRTABLE_BASE_ID=
AIRTABLE_TABLE_NAME=
<template>
<div class="autosuggest-container relative z-50 ">
<vue-autosuggest
ref="autosuggest"
@click="clickHandler"
@keydown.tab.prevent="tabHandler"
@selected="selectHandler"
:suggestions="filteredSuggestions"
:inputProps="inputProps"
:getSuggestionValue="getSuggestionValue"
<template>
<div class="relative">
<Dropdown
:options="$page.places.edges.map(e => e.node)"
v-on:selected="submit"
:disabled="false"
name="dropdown"
:maxItem="600"
class="text-left"
placeholder="Please select an option">
<template>
<header class="header w-full flex items-center pt-10 px-20">
<a href="/" class="logo block z-50 flex items-center">
<span v-html="selectedImage" class="text-black inline-block items-flex-start" />
</a>
<PriorityPlus :list="menuItems">
<div slot-scope='{ mainItems, moreItems }'>
<g-link v-for='(item, index) in mainItems'
:key='index'
:href='item.link'
<script context="module">
import blocksToHtml from '@sanity/block-content-to-html'
import client from '../../sanityClient'
import serializers from '../../components/serializers'
export function preload({ params, query }) {
const projection = `{
...,
excerpt[]{
...
}
@smokeyfro
smokeyfro / gridsome.server.js
Created March 19, 2020 11:21
Create a collection of books based on a list of isbns
const axios = require('axios')
allBooks = [
{
isbn: "9781491997246",
status: "read",
review: "Will be applying this one to my Mzango build soon."
},
{
isbn: "9781484238042",