From b9a5fc8a7d13191c8cbf531ca020fbda2abc33d1 Mon Sep 17 00:00:00 2001
From: Jerel Miller
Date: Wed, 29 Jul 2020 19:10:28 -0700
Subject: [PATCH] feat: use PageLayout for index page
---
src/pages/index.js | 344 ++++++++++++++++++++++-----------------------
1 file changed, 170 insertions(+), 174 deletions(-)
diff --git a/src/pages/index.js b/src/pages/index.js
index 2c8cbf32a..2dd3f824c 100644
--- a/src/pages/index.js
+++ b/src/pages/index.js
@@ -1,13 +1,14 @@
import React, { useState } from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
+import { css } from '@emotion/core';
import { graphql, Link } from 'gatsby';
import SEO from '../components/Seo';
import { Button } from '@newrelic/gatsby-theme-newrelic';
import GuideListing from '../components/GuideListing/GuideListing';
import GuideTile from '../components/GuideTile/GuideTile';
-import PageTitle from '../components/PageTitle';
+import PageLayout from '../components/PageLayout';
import Video from '../components/Video';
import FeatherIcon from '../components/FeatherIcon';
import ExternalLink from '../components/ExternalLink';
@@ -42,28 +43,6 @@ const getStartedGuides = [
},
];
-// TODO: Remove the following after the guides have been created
-// const guides = [
-// {
-// minutes: 25,
-// title: 'Provision with Terraform',
-// description: 'Provision an alert policy with notifications using Terraform',
-// path: '/',
-// },
-// {
-// minutes: 15,
-// title: ' Set up dev tools',
-// description: 'Get an API key, download the CLI, and start building apps',
-// path: '/build-apps/set-up-dev-env',
-// },
-// {
-// minutes: 30,
-// title: 'Add a table to your app',
-// description: 'Use New Relic One components to add a table to your app',
-// path: '/build-apps/howto-use-nrone-table-components',
-// },
-// ];
-
const IndexPage = ({ data, pageContext }) => {
const {
allMdx: { nodes },
@@ -74,169 +53,186 @@ const IndexPage = ({ data, pageContext }) => {
return (
- <>
-
- Observability for every developer
+
+
+
-
-
-
- Whether you're new to New Relic or already a data nerd, you can
- start building right now. For free.
-
-
- With our platform as your foundation, create custom observability
- apps fast. Answer your unique questions, improve your software,
- and deliver new value to your business.
-
-
We're glad you are here. Let's start building.
-
-
-
+
+
+
+
+ Whether you're new to New Relic or already a data nerd, you can
+ start building right now. For free.
+
+
+ With our platform as your foundation, create custom
+ observability apps fast. Answer your unique questions, improve
+ your software, and deliver new value to your business.
+
- Looking for more inspiration? Check out the{' '}
-
- open source projects
-
- {' '}
- built by the New Relic community.
-
-
-
+
+
)}
- >
-
-
New Relic developer champions
-
- New Relic Champions are solving big problems using New Relic as
- their linchpin and are recognized as experts and leaders in the
- New Relic technical community.
-
-
-
-
-
-
+ {' '}
+ built by the New Relic community.
+
-
-
-
New Relic Podcasts
-
- We like to talk, especially to developers about developer things.
- Join us for conversations on open source, observability, software
- design and industry news.
-
-
-
-
-
- >
+
+
+
New Relic developer champions
+
+ New Relic Champions are solving big problems using New Relic as
+ their linchpin and are recognized as experts and leaders in the
+ New Relic technical community.
+
+
+
+
+
+
+
+
+
+
New Relic Podcasts
+
+ We like to talk, especially to developers about developer
+ things. Join us for conversations on open source, observability,
+ software design and industry news.
+