24
loading...
This website collects cookies to deliver better user experience
<StaticImage
src="../images/Background-pic.jpg"
className="hero-style"
alt="omega homepage background picture"
layout="fullWidth"
placeholder="tracedSVG"
/>
export const query = graphql`
query getSingleDestino($titulo: String) {
strapiDestinos(titulo: { eq: $titulo }) {
descripcion
imagen {
localFile {
childImageSharp {
gatsbyImageData(placeholder: TRACED_SVG, layout: FULL_WIDTH)
}
}
}
}
}
`;
const DestinosTemplate = ({ pageContext: { titulo }, data }) => {
return (
<>
<GatsbySeo
title={`Destino ${titulo}`}
description={`Destino de Viaje ${titulo} con los mejores precios`}
canonical={`https://omega-agencia.netlify.app/destinos/${titulo}`}
<section>
<div>
<div className="destinos-single-page-title">
<Title title={titulo} />
</div>
<div className="destinos-single-page-align">
<div className="destinos-single-page-description">
<div
className="destinos-description"
dangerouslySetInnerHTML={{
__html: data.strapiDestinos.descripcion,
}}
></div>
</div>
<div className="destinos-single-page-image">
<GatsbyImage
image={getImage(data?.strapiDestinos.imagen.localFile)}
alt={titulo}
className="destinos-single-page-image-description"
formats={["AUTO", "WEBP", "AVIF"]}
fadeIn="false"
/>
</div>
</div>
<CTAComponent />
<ContactForm />
</div>
</section>
</>
);
};
npm install --save gatsby-plugin-preact preact preact-render-to-string