diff --git a/frontend/index.html b/frontend/index.html index 072a57e..9b6bc52 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -4,7 +4,7 @@ - frontend + Lose verkaufen
diff --git a/frontend/src/pages/MainForm.tsx b/frontend/src/pages/MainForm.tsx index 0514abd..3db5cb8 100644 --- a/frontend/src/pages/MainForm.tsx +++ b/frontend/src/pages/MainForm.tsx @@ -9,11 +9,13 @@ import { Chip, Box, Paper, + Typography, } from "@mui/material"; import { useTranslation } from "react-i18next"; import { useState, useEffect } from "react"; import { submitFormData } from "../utils/sender"; import Cookies from "js-cookie"; +import * as React from "react"; interface Message { type: "error" | "info" | "success" | "warning"; @@ -113,11 +115,33 @@ export const MainForm = () => { }; return ( - +
{ @@ -149,10 +173,14 @@ export const MainForm = () => { color="primary" sx={{ alignSelf: "flex-start", - fontWeight: "bold", - fontSize: "1rem", - py: 2, - px: 1, + fontWeight: 500, + fontSize: "0.9rem", + mt: 0.5, + mb: 0.5, + py: 0.5, + px: 1.25, + borderRadius: "999px", + background: "linear-gradient(135deg, #1976d2 0%, #1565c0 100%)", }} /> @@ -234,7 +262,14 @@ export const MainForm = () => { {/* Invoice Fields */} {invoice && ( - + { /> )} - {/* Payment Methods */} - - } label={t("cash")} /> - } label={t("paypal")} /> - } label={t("transfer")} /> + + + {t("select-payment-method")} * + + + + + + + {!formData.paymentMethod && ( + {}} + /> + )} {/* Submit Button */} + + {/* Additional Info */} { + console.log(data); try { const response = await fetch(`/backend/default/new-entry?username=${username}`, { method: "POST",