mirror of
https://github.com/zadam/trilium.git
synced 2025-12-23 16:49:58 +01:00
feat(website): add help pages to all note types / collections
This commit is contained in:
@@ -1,20 +1,31 @@
|
||||
import { ComponentChildren } from "preact";
|
||||
import Button from "./Button";
|
||||
|
||||
interface CardProps {
|
||||
title: string;
|
||||
imageUrl?: string;
|
||||
className?: string;
|
||||
moreInfoUrl?: string;
|
||||
children: ComponentChildren;
|
||||
}
|
||||
|
||||
export default function Card({ title, children, imageUrl, className }: CardProps) {
|
||||
export default function Card({ title, children, imageUrl, className, moreInfoUrl }: CardProps) {
|
||||
return (
|
||||
<div className={`card ${className}`}>
|
||||
{imageUrl && <img class="image" src={imageUrl} />}
|
||||
|
||||
<div className="card-content">
|
||||
<h3>{title}</h3>
|
||||
{children}
|
||||
|
||||
<div className="card-content-inner">
|
||||
{children}
|
||||
</div>
|
||||
|
||||
{moreInfoUrl && (
|
||||
<div className="more-info-container">
|
||||
<Button href={moreInfoUrl} className="more-info" text="More info" outline openExternally />
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user