This file contains hidden or 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
const addToContract = async (templateIndex, templateUri) => { | |
/* global Word */ | |
Word.run(async function (context) { | |
// load the template | |
const hashIndex = templateUri.indexOf('#'); | |
const templateId = templateUri.substring(5, hashIndex); | |
const templateDetails = templateIndex[templateId]; | |
const url = templateDetails.url; |
This file contains hidden or 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 Image from "../components/Image" | |
const Gallery = () => ( | |
<div> | |
<Image alt="image_1" filename="image_1.jpg" /> | |
<Image alt="image_2" filename="image_2.jpg" /> | |
<Image alt="image_3" filename="image_3.jpg" /> | |
<Image alt="image_4" filename="image_4.jpg" /> | |
</div> |
This file contains hidden or 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 { StaticQuery, graphql } from "gatsby" | |
import Img from "gatsby-image" | |
const Image = props => ( | |
<StaticQuery | |
query={graphql` | |
query { | |
images: allFile { | |
edges { |