fix landing page after deploy to prod (#5586)

This commit is contained in:
Piotr Monwid-Olechnowicz 2024-09-06 19:28:26 +03:00 committed by GitHub
parent 3ae7e7a1f1
commit 28d9ded82a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 12 additions and 3 deletions

View file

@ -47,4 +47,7 @@
.node {
flex-direction: column;
}
.smHidden {
display: none;
}
}

View file

@ -164,7 +164,11 @@ function Illustration(props: { className?: string }) {
</Edge>
<div>
<Node
title="Hive Gateway"
title={
<>
<span className={styles.smHidden}>Hive</span> Gateway
</>
}
description="Gateway"
edges={[1, 4, 5]}
highlightedEdge={highlightedEdge}
@ -330,8 +334,8 @@ function EdgeLabel(props: EdgeLabelProps) {
);
}
interface NodeProps extends React.HTMLAttributes<HTMLElement> {
title: string;
interface NodeProps extends Omit<React.HTMLAttributes<HTMLElement>, 'title'> {
title: ReactNode;
description?: ReactNode;
edges: number[];
highlightedEdge: number | null;

View file

@ -9,6 +9,8 @@ export function Page(props: { children: ReactNode; className?: string }) {
<>
<div className={cn('flex h-full flex-col', props.className)}>{props.children}</div>
{mounted && <CookiesConsent />}
{/* position Crisp button below the cookies banner */}
<style jsx>{' .crisp-client { z-index: 40 !important; '}</style>
</>
);
}