mirror of
https://github.com/GithubOrgProjectPiza/frontend.git
synced 2026-09-04 00:26:05 +02:00
Fix formatting
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
import React from "react";
|
||||
|
||||
function ButtonPrimary(props) {
|
||||
return <button class="bg-primary hover:bg-primaryHover rounded-full h-9 w-32 text-white m-3"> {props.name || "Button"} </button>;
|
||||
return (
|
||||
<button class="bg-primary hover:bg-primaryHover rounded-full h-9 w-32 text-white m-3">
|
||||
{" "}
|
||||
{props.name || "Button"}{" "}
|
||||
</button>
|
||||
);
|
||||
}
|
||||
|
||||
export default ButtonPrimary;
|
||||
export default ButtonPrimary;
|
||||
|
||||
@@ -1,7 +1,12 @@
|
||||
import React from "react";
|
||||
|
||||
function ButtonSecondary(props) {
|
||||
return <button class="bg-secondary hover:bg-secondaryHover rounded-full h-9 w-32 text-white m-3"> {props.name || "Button"} </button>;
|
||||
return (
|
||||
<button class="bg-secondary hover:bg-secondaryHover rounded-full h-9 w-32 text-white m-3">
|
||||
{" "}
|
||||
{props.name || "Button"}{" "}
|
||||
</button>
|
||||
);
|
||||
}
|
||||
|
||||
export default ButtonSecondary;
|
||||
export default ButtonSecondary;
|
||||
|
||||
@@ -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;
|
||||
|
||||
+13
-11
@@ -1,17 +1,19 @@
|
||||
import React from "react";
|
||||
import p_logo_dark from '../pizza_logo_dark.png'
|
||||
import p_logo_light from '../pizza_logo_light.png'
|
||||
import p_logo_dark from "../pizza_logo_dark.png";
|
||||
import p_logo_light from "../pizza_logo_light.png";
|
||||
import ButtonSecondary from "./buttonSecondary";
|
||||
import ShoppingCart from '../shopping_cart.svg';
|
||||
import ShoppingCart from "../shopping_cart.svg";
|
||||
|
||||
function Header1() {
|
||||
return <div class="bg-primary h-14 w-full p-2 flex justify-between items-center">
|
||||
<img src={p_logo_light} alt="Logo" class="h-10"></img>
|
||||
<div class="flex justify-center">
|
||||
<ButtonSecondary name="Abmelden" />
|
||||
<img src={ShoppingCart}></img>
|
||||
</div>
|
||||
</div>
|
||||
return (
|
||||
<div class="bg-primary h-14 w-full p-2 flex justify-between items-center">
|
||||
<img src={p_logo_light} alt="Logo" class="h-10"></img>
|
||||
<div class="flex justify-center">
|
||||
<ButtonSecondary name="Abmelden" />
|
||||
<img src={ShoppingCart}></img>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default Header1;
|
||||
export default Header1;
|
||||
|
||||
Reference in New Issue
Block a user