list element

add list element
This commit is contained in:
Manuel Prodinger
2022-04-08 13:06:18 +02:00
parent 00268ebbd2
commit 4bf29dba71
21 changed files with 2790 additions and 2 deletions
+3
View File
@@ -1,11 +1,14 @@
import Eingabefeld from "./Components/eingabefeld";
import "../node_modules/font-awesome/css/font-awesome.min.css";
import Liste from "./Components/liste";
function App() {
return (
<div className="App">
<Eingabefeld label="Name" isPassword={false} placeholder="&#xf007;" />
<p className="from-green-50">tets</p>
<br></br>
<Liste gericht="Pizza" price="€20.00" />
</div>
);
}
+9 -2
View File
@@ -1,9 +1,16 @@
import React, { useState } from "react";
function Liste(props) {
var gericht = props.gericht;
var price = props.price;
return (
<div>
<Label></Label>
<div class="grid grid-cols-3 gap-0">
<div>{gericht}</div>
<div class="place-content-end">{price}</div>
<div>
<button>enter</button>
</div>
</div>
);
}