mirror of
https://github.com/GithubOrgProjectPiza/frontend.git
synced 2026-09-04 23:33:49 +02:00
Fix formatting
This commit is contained in:
@@ -1,15 +1,17 @@
|
||||
import React from "react";
|
||||
import bild from '../paparoy.jpg';
|
||||
import bild from "../paparoy.jpg";
|
||||
import ButtonPrimary from "./buttonPrimary";
|
||||
|
||||
function Card(props) {
|
||||
return (<div class="w-full rounded-xl overflow-hidden shadow-lg bg-gray1 ">
|
||||
<img class="w-full max-h-60 object-fill" src={props.bild || bild } alt="Papa Roy"></img>
|
||||
<div class="px-6 py-4 flex justify-between">
|
||||
<div class="font-bold text-xl flex justify-start m-3">{props.name || "Restaurant"}</div>
|
||||
return (
|
||||
<div class="w-full rounded-xl overflow-hidden shadow-lg bg-gray1 ">
|
||||
<img class="w-full max-h-60 object-fill" src={props.bild || bild} alt="Papa Roy"></img>
|
||||
<div class="px-6 py-4 flex justify-between">
|
||||
<div class="font-bold text-xl flex justify-start m-3">{props.name || "Restaurant"}</div>
|
||||
<ButtonPrimary name="Speisekarte" />
|
||||
</div>
|
||||
</div>
|
||||
</div>);
|
||||
);
|
||||
}
|
||||
|
||||
export default Card;
|
||||
export default Card;
|
||||
|
||||
Reference in New Issue
Block a user