import { graphql, PageProps, useStaticQuery } from 'gatsby'; import { rem } from 'polished'; import React from 'react'; import styled from 'styled-components'; import { Container } from '../components/Container'; import { GlobalStyles } from '../ui/GlobalStyles'; import { font, media, size } from '../ui/theme'; import LabaLogo from '../assets/logo.svg'; import { Helmet } from 'react-helmet'; interface DataProps { strapiHasiera: { data: { attributes: { deskribapena: string; izenburua: string; }; }; }; } const IndexPage: React.VFC = () => { const { strapiHasiera } = useStaticQuery(graphql` { strapiHasiera { data { attributes { deskribapena izenburua } } } } `); return ( <>

Gazteluko plaza 2

Iruñea

{strapiHasiera.data.attributes.deskribapena} {strapiHasiera.data.attributes.izenburua}
); }; const LogoWrapper = styled.div` width: ${rem(size.large)}; ${media.tablet` width: ${rem(size.huge)}; `} `; const Logo = styled(LabaLogo)` path { fill: white; } `; const Helbidea = styled.address` align-self: start; border-right: 3px solid white; padding-right: ${rem(size.small)}; ${font.tiny()}; `; const Gainburua = styled.header` padding: ${rem(size.tiny)}; display: flex; justify-content: space-between; margin-bottom: ${rem(size.base)}; ${media.tablet` padding: ${rem(size.large)}; `}; `; const Deskribapena = styled.p` margin-bottom: ${rem(size.xlarge)}; text-align: justify; ${font.base()}; ${media.tablet` ${font.large()}; `}; `; const IzenburuWrapper = styled.div` display: flex; justify-content: flex-end; `; const Marra = styled.hr` flex-grow: 1; border: none; box-shadow: inset 0px -3px 0px 0px white; margin-right: ${rem(size.tiny)}; `; const Izenburua = styled.h1` text-align: right; vertical-align: bottom; &:after { content: '.'; } ${font.gargantuan()}; `; export default IndexPage;