🎨 Affichage d'un sous-titre sur le simulateur auxiliaire

pull/1178/head
Maxime Quandalle 2020-10-26 15:48:28 +01:00
parent dd23d8f73d
commit 028f24bdc2
1 changed files with 15 additions and 1 deletions

View File

@ -10,6 +10,7 @@ export default function SimulateurPage({
meta,
title,
config,
tooltip,
component: Component,
seoExplanations
}: SimulatorData[keyof SimulatorData]) {
@ -26,7 +27,20 @@ export default function SimulateurPage({
return (
<>
{meta && <Meta {...meta} />}
{title && !inIframe && <h1>{title}</h1>}
{title && !inIframe && (
<>
<h1>{title}</h1>
{tooltip && (
<h2
css={`
margin-top: 0;
`}
>
<small>{tooltip}</small>
</h2>
)}
</>
)}
<Component />
{seoExplanations && !inIframe && seoExplanations}
</>