Files
zitadel/docs/src/components/tile.jsx
T
mffapandGitHub 624fee97c0 docs: optimized examples and sdk for search (#8657)
# Which Problems Are Solved

Page title was "introduction" and the headings were missing a h2 level.
This makes it difficult to index for search, both internal and external.

# How the Problems Are Solved

* Change the page title
* Pulled all headings one level up

# Additional Changes

- Show all elements in sdk-example folder automaticalls
2024-09-25 08:14:58 +00:00

36 lines
834 B
React

import React from "react";
import styles from "../css/tile.module.css";
export function Tile({ title, imageSource, imageSourceLight, link, external }) {
return (
<a
href={link}
className={styles.tile}
target={external ? "_blank" : "_self"}
>
<h3>{title}</h3>
<img
className={imageSourceLight ? "hideonlight" : ""}
src={imageSource}
alt={title}
width={70}
height={70}
/>
{imageSourceLight && (
<img
className={imageSourceLight ? "hideondark" : ""}
src={imageSourceLight}
alt={title}
width={70}
height={70}
/>
)}
{external && (
<div className={styles.external}>
<i className="las la-external-link-alt"></i>
</div>
)}
</a>
);
}