import React from 'react'; import { graphql } from 'gatsby'; import styled from '@emotion/styled'; import { css } from '@emotion/core'; import Layout from '../components/layout'; import Markdownify from '../components/markdownify'; import PageHero from '../components/page-hero'; import HeroTitle from '../components/hero-title'; import VideoEmbed from '../components/video-embed'; import WhatsNew from '../components/whats-new'; import Lead from '../components/lead'; import Features from '../components/features'; import HomeSection from '../components/home-section'; import Grid from '../components/grid'; import theme from '../theme'; import { mq } from '../utils'; const MarkdownButton = styled.span` a { white-space: nowrap; display: inline-block; color: white; text-transform: uppercase; font-weight: 700; font-size: ${theme.fontsize[3]}; letter-spacing: 0.5px; line-height: ${theme.lineHeight[1]}; background-color: ${theme.colors.blue}; background-image: linear-gradient(-180deg, #4a7fdd 0%, #3a69c7 100%); box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.3), 0 1px 3px 0 rgba(0, 0, 0, 0.6); border-radius: ${theme.radii[1]}; padding: ${theme.space[2]} ${theme.space[3]}; transition: 0.2s; text-decoration: none; &:hover { transform: scale(1.05); box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.5), 0 1px 3px 0 rgba(0, 0, 0, 1); } &:active { transform: scale(0.95); box-shadow: none; } } `; const ContribList = styled.div` display: flex; flex-wrap: wrap; img { height: 32px; width: 32px; border-radius: 10rem; margin-right: ${theme.space[1]}; margin-bottom: ${theme.space[1]}; transition: 0.1s; &:hover { transform: scale(1.3); box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.25), 0 4px 12px 0 rgba(0, 0, 0, 0.25); } } `; const HomePage = ({ data }) => { const landing = data.landing.childDataYaml; const updates = data.updates.childDataYaml; const contribs = data.contribs.childDataJson; return (
{' '}
} text={} > } >

{landing.community.contributors}

{contribs.contributors.map(user => ( {user.login} ))}
); }; export const pageQuery = graphql` query homeQuery { updates: file(relativePath: { regex: "/updates/" }) { childDataYaml { updates { date description version url } } } landing: file(relativePath: { regex: "/landing/" }) { childDataYaml { hero { headline subhead devfeatures { feature description } } cta { primary primaryhook button } editors { hook intro features { feature imgpath description } } community { hook features { feature description } contributors } } } contribs: file(relativePath: { regex: "/contributors/" }) { childDataJson { contributors { name profile avatar_url login } } } } `; export default HomePage;