import { graphql, PageProps } from 'gatsby'
import React, { ReactElement } from 'react'
import { Post } from '../@types/Post'
import SEO from '../components/atoms/SEO'
import PostTeaser from '../components/molecules/PostTeaser'
import { PhotoThumb } from '../components/templates/Photos'
import PostMore from '../components/templates/Post/More'
import { section, articles, articlesLast, photos } from './index.module.css'
export default function Home({ data }: PageProps): ReactElement {
return (
<>
{(data as any).latestArticles.edges
.slice(0, 2)
.map(({ node }: { node: Post }) => (
))}
{(data as any).latestArticles.edges
.slice(2, 8)
.map(({ node }: { node: Post }) => (
))}
All Articles
{(data as any).latestPhotos.edges.map(({ node }: { node: Post }) => (
))}