mirror of
https://github.com/zadam/trilium.git
synced 2025-11-09 06:45:49 +01:00
chore(website): remove old website
This commit is contained in:
21
apps/website/src/components/Card.tsx
Normal file
21
apps/website/src/components/Card.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import { ComponentChildren } from "preact";
|
||||
|
||||
interface CardProps {
|
||||
title: string;
|
||||
imageUrl?: string;
|
||||
className?: string;
|
||||
children: ComponentChildren;
|
||||
}
|
||||
|
||||
export default function Card({ title, children, imageUrl, className }: CardProps) {
|
||||
return (
|
||||
<div className={`card ${className}`}>
|
||||
{imageUrl && <img class="image" src={imageUrl} />}
|
||||
|
||||
<div className="card-content">
|
||||
<h3>{title}</h3>
|
||||
{children}
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user