JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html lang="de"> <!-- Default language set to German -->
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>File Upload Form</title>
<link rel="stylesheet" href="styles.css"> <!-- Link to CSS -->
</head>
<body>
<h2>File Upload Form</h2>
<form id="upload-form" action="/upload" method="post" enctype="multipart/form-data">
<input id="file-upload" type="file" name="file" style="display: none;" />
<button type="button" id="upload-button">Durchsuchen</button>
<input type="submit" value="Hochladen" />
</form>
</body>
</html>
CSS
body {
font-family: Arial, sans-serif;
padding: 20px;
background-color: #f4f4f9;
}
form {
background: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
max-width: 400px;
margin: auto;
}
button, input[type="submit"] {
background-color: #007BFF; /* Bootstrap primary color */
color: white;
border: none;
padding: 10px 15px;
border-radius: 4px;
cursor: pointer;
margin-top: 10px;
font-size: 16px;
}
button:hover, input[type="submit"]:hover {
background-color: #0056b3; /* Darker shade on hover */
}
button:focus, input[type="submit"]:focus {
outline: none;
}