71 lines
2.8 KiB
TypeScript
71 lines
2.8 KiB
TypeScript
import React from "react";
|
|
import { Container } from "../../util/container";
|
|
import { ObjectField } from "@tinacms/schema-tools/dist/types";
|
|
import facebookImage from "../../../assets/img/facebook.svg";
|
|
import instagramImage from "../../../assets/img/instagram.svg";
|
|
|
|
export const Footer = ({ data, rawData }) => {
|
|
return (
|
|
<footer>
|
|
<Container className="relative" size="small">
|
|
<div className={ "flex flex-row justify-between" }>
|
|
<div>
|
|
<p>Contact :<br/>
|
|
<a href="mailto:psychartherapie@gmail.com" onClick={ () => { /* window.dataLayer.push({ event: "mail-click" });*/ } }>
|
|
psychartherapie@gmail.com
|
|
</a>
|
|
<br/>
|
|
<b>06 49 23 02 90</b>
|
|
</p>
|
|
<p>SIRET 911 883 338 00012<br/><a href="legals.html">Mentions légales</a></p>
|
|
<div id="socials" className="flex flex-row">
|
|
<a href="https://www.facebook.com/psychartherapie.gard" onClick={ () => { /* window.dataLayer.push({ socials: "fb-click" });*/ } } className="py-2 me-2">
|
|
<img src={ facebookImage.src } alt="Facebook"/>
|
|
</a>
|
|
<a href="https://www.instagram.com/psychartherapie" onClick={ () => { /* window.dataLayer.push({ socials: "insta-click" });*/ } } className="py-2">
|
|
<img src={ instagramImage.src } alt="Instagram"/>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<p>© 2023 – Fait avec amour par <a className="mx-1" href="https://www.linkedin.com/in/nolwenn-meyer/">Nolwenn Meyer</a></p>
|
|
</div>
|
|
</div>
|
|
</Container>
|
|
</footer>
|
|
);
|
|
};
|
|
|
|
export const footerSchema: ObjectField = {
|
|
type: "object",
|
|
label: "Footer",
|
|
name: "footer",
|
|
fields: [
|
|
{
|
|
type: "object",
|
|
label: "Social Links",
|
|
name: "social",
|
|
fields: [
|
|
{
|
|
type: "string",
|
|
label: "Facebook",
|
|
name: "facebook"
|
|
},
|
|
{
|
|
type: "string",
|
|
label: "Twitter",
|
|
name: "twitter"
|
|
},
|
|
{
|
|
type: "string",
|
|
label: "Instagram",
|
|
name: "instagram"
|
|
},
|
|
{
|
|
type: "string",
|
|
label: "Github",
|
|
name: "github"
|
|
}
|
|
]
|
|
}]
|
|
}; |