OG Image jartzen du (#7)

* feat: og image sartzen du sanferminetan

* feat: SEO konponentea sortzen du

* refactor: orri guztietan SEO konponentea erabiltzen du

* feat: focus hobetzen du

* feat: favicon aldatzen du

* feat: koloreak aldatzen ditu
This commit is contained in:
Aitor Urrutia
2023-07-03 19:13:17 +02:00
committed by GitHub
parent 89436522b2
commit de10cfc551
16 changed files with 119 additions and 64 deletions

View File

@@ -2,7 +2,6 @@ import { graphql, navigate, PageProps, useStaticQuery } from 'gatsby';
import React from 'react';
import { GlobalStyles } from '../ui/GlobalStyles';
import { Helmet } from 'react-helmet';
import { Gainburua } from '../components/Gainburua';
import styled from 'styled-components';
import { colors, font, fontWeight, size } from '../ui/theme';
@@ -11,6 +10,7 @@ import { rem } from 'polished';
import Gezia from '../assets/gezia.svg';
import ReactMarkdown from 'react-markdown';
import { Oina } from '../components/Oina';
import { SEO } from '../components/SEO';
interface DataProps {
strapiHasiera: {
@@ -20,7 +20,7 @@ interface DataProps {
};
}
const IndexPage: React.VFC<PageProps> = () => {
const IndexPage: React.VFC<PageProps> = ({ location }) => {
const { strapiHasiera } = useStaticQuery<DataProps>(graphql`
{
strapiHasiera {
@@ -33,12 +33,11 @@ const IndexPage: React.VFC<PageProps> = () => {
return (
<>
<Helmet
title={`${strapiHasiera.izenburua} | Laba`}
htmlAttributes={{ lang: 'eu' }}
>
<meta name="description" content={strapiHasiera.deskribapena} />
</Helmet>
<SEO
title={strapiHasiera.izenburua}
description={strapiHasiera.deskribapena}
location={location}
/>
<GlobalStyles />
@@ -96,6 +95,11 @@ const Botoia = styled.a`
&:hover {
color: ${colors.morea};
}
&:focus {
border: 2px solid ${colors.zuria};
outline: 3px solid ${colors.morea};
}
`;
const GeziaLogo = styled(Gezia)`