Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 18 additions & 13 deletions src/components/PreheaderCon.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
import React from 'react';
import Logo from '@con/images/logo.svg';
import Web from '@con/components/common/Web';
import { useLocation } from '@reach/router';
import Button from './common/Button';

const PreheaderCon: React.ComponentType = () => (
<a target="_blank" href={`${process.env.GATSBY_ROOT_URL}/con/2023?y=2023`} rel="noreferrer">
<div className="preheader preheader-con" role="button">
<Web className="preheader-con__web con__web" isVisible />
<img src={Logo} alt="Api Platform Conference" height="40" />
<div className="preheader-con__text">
<p>The conference dedicated to API Platform and its ecosystem</p>
<div>
<strong>Sep 21, 22 2023</strong> | Lille & online
const PreheaderCon: React.ComponentType = () => {
const { origin } = useLocation();

return (
<a target="_blank" href={`${origin}/con/2023`} rel="noreferrer">
<div className="preheader preheader-con" role="button">
<Web className="preheader-con__web con__web" isVisible />
<img src={Logo} alt="Api Platform Conference" height="40" />
<div className="preheader-con__text">
<p>The conference dedicated to API Platform and its ecosystem</p>
<div>
<strong>Sep 21, 22 2023</strong> | Lille & online
</div>
</div>
<Button text="Register now" className="preheader-con__button small empty white" />
</div>
<Button text="Register now" className="preheader-con__button small empty white" />
</div>
</a>
);
</a>
);
};

export default PreheaderCon;
3 changes: 3 additions & 0 deletions src/pages/con/2023/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ const Conf2023: React.ComponentType = () => {
<title>{`${TITLE}: meet the best API experts!`}</title>
<meta property="og:title" content={`${TITLE}: meet the best API experts!`} />
<meta name="twitter:title" content={`${TITLE}: meet the best API experts!`} />
<meta httpEquiv="Cache-Control" content="no-store, must-revalidate" />,
<meta httpEquiv="Pragma" content="no-cache" />,
<meta httpEquiv="Expires" content="0" />
</Helmet>
<Cover
date="September 21 - 22, 2023 | Lille & online"
Expand Down