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
export async function getStaticProps({ | |
preview, | |
params, | |
locale, | |
defaultLocale, | |
locales, | |
}) { | |
const globalComponents = { | |
header: SiteHeader, | |
}; |
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" | |
const ServiceForm = ({ form, handleClose }) => { | |
return ( | |
<form | |
name={form.customFields.name} | |
method="POST" | |
data-netlify="true" | |
action="/thank-you" | |
className="max-w-full md:max-w-lg mx-auto" |
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
{ | |
"items": [ | |
{ | |
"contentID": 15, | |
"properties": { | |
"state": 2, | |
"modified": "2019-07-18T13:16:41.033", | |
"versionID": 105, | |
"referenceName": "posts", | |
"definitionName": "Post", |
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
curl https://api.aglty.io/4582b5fa-u/fetch/en-us/list/posts | |
--header "APIKey: defaultlive.2b7f3a91559d794bedb688358be5e13af2b1e3ae8cd39e8ed2433bbef5d8d6ac" |
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 PreviewBar from "./PreviewBar"; | |
import GlobalHeader from "./GlobalHeader"; | |
import GlobalFooter from "./GlobalFooter"; | |
import { useRouter } from "next/router"; | |
import Head from "next/head"; | |
import dynamic from "next/dynamic"; | |
import tw from "twin.macro"; | |
const MainElem = tw.main`p-8`; |
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 agility from "@agility/content-fetch"; | |
// setup content fetch | |
const api = agility.getApi({ | |
guid: process.env.AGILITY_GUID, | |
apiKey: process.env.AGILITY_API_FETCH_KEY, | |
}); | |
// get products | |
const getProducts = async () => { |
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 tw from "twin.macro"; | |
const Container = tw.div`container mx-auto grid gap-5 grid-cols-1 sm:grid-cols-3 mb-8`; | |
const Card = tw.div`my-8`; | |
const Title = tw.h1`mt-2 text-xl font-bold`; | |
const Price = tw.p`text-sm mb-2 text-primary-600 font-bold`; | |
const Button = tw.button`bg-primary-600 text-white w-full p-2 font-bold mt-2`; | |
const ProductListing = ({ customData, fields, page }) => { |