text: import { withPrefix } from "gatsby";
  import * as React from "react";
  import Market from "../cardano/util";
  //import * as secrets from "../../secrets";
  
  // styles
  const pageStyles = {
    color: "#232129",
    padding: 96,
    fontFamily: "-apple-system, Roboto, sans-serif, serif",
  }
  const headingStyles = {
    marginTop: 0,
    marginBottom: 64,
    maxWidth: 320,
  }
  const headingAccentStyles = {
    color: "#663399",
  }
  const paragraphStyles = {
    marginBottom: 48,
  }
  const codeStyles = {
    color: "#8A6534",
    padding: 4,
    backgroundColor: "#FFF4DB",
    fontSize: "1.25rem",
    borderRadius: 4,
  }
  const listStyles = {
    marginBottom: 96,
    paddingLeft: 0,
  }
  const listItemStyles = {
    fontWeight: 300,
    fontSize: 24,
    maxWidth: 560,
    marginBottom: 30,
  }
  
  const linkStyle = {
    color: "#8954A8",
    fontWeight: "bold",
    fontSize: 16,
    verticalAlign: "5%",
  }
  
  const docLinkStyle = {
    ...linkStyle,
    listStyleType: "none",
    marginBottom: 24,
  }
  
  const descriptionStyle = {
    color: "#232129",
    fontSize: 14,
    marginTop: 10,
    marginBottom: 0,
    lineHeight: 1.25,
  }
  
  const badgeStyle = {
    color: "#fff",
    backgroundColor: "#088413",
    border: "1px solid #088413",
    fontSize: 11,
    fontWeight: "bold",
    letterSpacing: 1,
    borderRadius: 4,
    padding: "4px 6px",
    display: "inline-block",
    position: "relative",
    top: -2,
    marginLeft: 10,
    lineHeight: 1,
  }
  
  // data
  const links = [
    {
      text: "Tutorial",
      url: "",
      description:
        "This will give you the basics to get through using our Escrow Service. (Coming Soon).",
      color: "#E95800",
    },
    {
      text: "Nami - Required",
      url: "",
      description:
        "How to get started with Nami wallet.",
      color: "#1099A8",
    },
    {
      text: "ADAO - Powering this Escrow",
      url: "https://theadadao.com/",
      description:
        "We are pretty awesome.",
      color: "#BC027F",
    },
    {
      text: "Berry Pool",
      url: "https://berrypool.io/",
      description:
        "Alessandro of Berry Pool was kind enough to open source his code for the SpaceBudz Marketplace which allowed us to get where we are with this project.",
      color: "#0D96F2",
    },
  ]
  
  // markup
  const IndexPage = () => {
    return (
      <main style={pageStyles}>
        <title>Home Page</title>
        <h1 style={headingStyles}>
          Welcome to NFT HAWKR
          <br />
          <span style={headingAccentStyles}>— the last escrow tool you'll need. </span>
          <span role="img" aria-label="Party popper emojis">
            🎉🎉🎉
          </span>
        </h1>
        <p style={paragraphStyles}>
          Just click the rocket to the top right to get started or look for "How it Works" to get a video tutorial.
          I may upgrade this page to include a better homepage soon.
        </p>
        <ul style={listStyles}>
          {links.map(link => (
            <li key={link.url} style={{ ...listItemStyles, color: link.color }}>
              <span>
                <a
                  style={linkStyle}
                  href={`${link.url}?utm_source=starter&utm_medium=start-page&utm_campaign=minimal-starter`}
                >
                  {link.text}
                </a>
                {link.badge && (
                  <span style={badgeStyle} aria-label="New Badge">
                    NEW!
                  </span>
                )}
                <p style={descriptionStyle}>{link.description}</p>
              </span>
            </li>
          ))}
        </ul>
      </main>
    )
  }
  
  export default IndexPage
  