This commit is contained in:
2023-02-20 15:51:10 +01:00
parent 0957e5ef32
commit 254a9e4085
4 changed files with 85 additions and 19 deletions

55
.vscode/settings.json vendored
View File

@ -1,3 +1,56 @@
{ {
"liveServer.settings.port": 3001 "liveServer.settings.port": 3001,
"deploy":
{
"packages":
[
{
"name": "local Server Version website",
"description": "local Server website files",
"files":
[
"build/**"
],
"exclude":
[
"./build/favicon___.ico"
],
"button":
{
"text": "local website",
"targets": ["localhost website files"]
}
},
{
"name": "local Server Version php",
"description": "local Server php files",
"files":
[
"/php/php-dog/**",
],
"button":
{
"text": "local php",
"targets": ["localhost php files"]
}
}
],
"targets":
[
{
"type": "local",
"name": "localhost website files",
"description": "localhost apache website files",
"dir": "/opt/lampp/htdocs/dog/www",
},
{
"type": "local",
"name": "localhost php files",
"description": "localhost apache php files",
"dir": "/opt/lampp/htdocs/dog/php-dog/",
}
]
}
} }

View File

@ -135,7 +135,7 @@ try {
} }
$targetFilePath = $targetDir . '/' . $newFilename; $targetFilePath = $targetDir . '/' . $newFilename;
echo "targetFilePath ". $targetFilePath."\n"; //echo "targetFilePath ". $targetFilePath."\n";
if (isset($_POST["submit"]) && !empty($_FILES["file"]["name"])) if (isset($_POST["submit"]) && !empty($_FILES["file"]["name"]))
{ {

View File

@ -21,6 +21,7 @@ input[type=email], select, textarea
cursor: pointer; cursor: pointer;
width: auto; width: auto;
height: 25px; height: 25px;
align-self: end;
} }
div.flexCenter div.flexCenter
@ -87,9 +88,17 @@ div.flexCenter
.rowForm .rowForm
{ {
display: flex; display: flex;
flex-direction: row; flex-direction: column;
justify-content: space-between; justify-content: space-between;
width: 100%; width: 100%;
margin-top: 10px;
margin-bottom: 10px;
}
.label
{
font-size: 14px;
font-weight: 500;
} }
.row .row

View File

@ -1,6 +1,7 @@
import { useState } from "react"; import { useState } from "react";
import { notificationError, notificationSuccess } from "../services/Notifications"; import { notificationError, notificationSuccess } from "../services/Notifications";
import { foundMsg, logFormData } from "../services/PhpApi"; import { foundMsg, logFormData } from "../services/PhpApi";
import { Textarea, TextInput } from '@mantine/core';
import './ContactForm.css'; import './ContactForm.css';
export default function DogContactForm( export default function DogContactForm(
@ -85,28 +86,31 @@ export default function DogContactForm(
<div>Bitte schreib eine Email:</div><div></div> <div>Bitte schreib eine Email:</div><div></div>
</div> </div>
<div className="rowForm"> <div className="rowForm">
<div className="col-30"> <TextInput
<label htmlFor="email">Email</label> label = 'Email:'
</div> type="email"
<div className="col-70"> name="fromEmail"
<input type="email" id="fromEmail" name="fromEmail" placeholder="Deine Email.." onChange={onChangeInput} required /> onChange={onChangeInput}
</div> placeholder="Deine Email"
id="email"
required />
</div> </div>
<div className="rowForm"> <div className="rowForm">
<div className="col-30"> <div className='label'>
<label>An</label> <label>An:</label>
</div> </div>
<div className="col-70"> <div>
<label>{toEmail}</label> <label>{toEmail}</label>
</div> </div>
</div> </div>
<div className="rowForm"> <div className="rowForm">
<div className="col-30"> <Textarea
<label htmlFor="msg">Nachricht</label> label = 'Nachricht:'
</div> name="msg"
<div className="col-70"> onChange={onChangeInputTextArea}
<textarea className="textArea" id="msg" name="msg" placeholder={`Ich habe ${name} gefunden! Bitte rufen Sie mich an, Telefon:(bitte angeben...)`} onChange={onChangeInputTextArea} required/> placeholder={`Ich habe ${name} gefunden! Bitte rufen Sie mich an, Telefon:(bitte angeben...)`}
</div> id="msg"
required />
</div> </div>
<div className="rowForm"> <div className="rowForm">
<div></div><input type="submit" value="Nachricht senden!"/> <div></div><input type="submit" value="Nachricht senden!"/>