feat: initial frontend commit
This commit is contained in:
parent
6612ed6df6
commit
e1cdb7af79
18 changed files with 4146 additions and 0 deletions
18
modules/frontend/src/components/ItemTemplate.tsx
Normal file
18
modules/frontend/src/components/ItemTemplate.tsx
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import React from "react";
|
||||
import type { Item } from "../services/api";
|
||||
|
||||
interface ItemTemplateProps {
|
||||
item: Item;
|
||||
}
|
||||
|
||||
const ItemTemplate: React.FC<ItemTemplateProps> = ({ item }) => {
|
||||
return (
|
||||
<div className="item-card" style={{ border: "1px solid #ccc", padding: "1rem", marginBottom: "1rem" }}>
|
||||
<h2>{item.title}</h2>
|
||||
<p>{item.description}</p>
|
||||
<small>ID: {item.id}</small>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default ItemTemplate;
|
||||
Loading…
Add table
Add a link
Reference in a new issue