mirror of
https://github.com/GithubOrgProjectPiza/frontend.git
synced 2026-09-04 08:36:08 +02:00
Fix formatting
This commit is contained in:
@@ -1,7 +1,12 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
function ButtonPrimary(props) {
|
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";
|
import React from "react";
|
||||||
|
|
||||||
function ButtonSecondary(props) {
|
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 React from "react";
|
||||||
import bild from '../paparoy.jpg';
|
import bild from "../paparoy.jpg";
|
||||||
import ButtonPrimary from "./buttonPrimary";
|
import ButtonPrimary from "./buttonPrimary";
|
||||||
|
|
||||||
function Card(props) {
|
function Card(props) {
|
||||||
return (<div class="w-full rounded-xl overflow-hidden shadow-lg bg-gray1 ">
|
return (
|
||||||
<img class="w-full max-h-60 object-fill" src={props.bild || bild } alt="Papa Roy"></img>
|
<div class="w-full rounded-xl overflow-hidden shadow-lg bg-gray1 ">
|
||||||
<div class="px-6 py-4 flex justify-between">
|
<img class="w-full max-h-60 object-fill" src={props.bild || bild} alt="Papa Roy"></img>
|
||||||
<div class="font-bold text-xl flex justify-start m-3">{props.name || "Restaurant"}</div>
|
<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" />
|
<ButtonPrimary name="Speisekarte" />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Card;
|
export default Card;
|
||||||
+12
-10
@@ -1,17 +1,19 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import p_logo_dark from '../pizza_logo_dark.png'
|
import p_logo_dark from "../pizza_logo_dark.png";
|
||||||
import p_logo_light from '../pizza_logo_light.png'
|
import p_logo_light from "../pizza_logo_light.png";
|
||||||
import ButtonSecondary from "./buttonSecondary";
|
import ButtonSecondary from "./buttonSecondary";
|
||||||
import ShoppingCart from '../shopping_cart.svg';
|
import ShoppingCart from "../shopping_cart.svg";
|
||||||
|
|
||||||
function Header1() {
|
function Header1() {
|
||||||
return <div class="bg-primary h-14 w-full p-2 flex justify-between items-center">
|
return (
|
||||||
<img src={p_logo_light} alt="Logo" class="h-10"></img>
|
<div class="bg-primary h-14 w-full p-2 flex justify-between items-center">
|
||||||
<div class="flex justify-center">
|
<img src={p_logo_light} alt="Logo" class="h-10"></img>
|
||||||
<ButtonSecondary name="Abmelden" />
|
<div class="flex justify-center">
|
||||||
<img src={ShoppingCart}></img>
|
<ButtonSecondary name="Abmelden" />
|
||||||
</div>
|
<img src={ShoppingCart}></img>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Header1;
|
export default Header1;
|
||||||
Reference in New Issue
Block a user