JSFiddle - React, Tailwind, and code Playground
by dshilkret
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Task Form</title>
<style>
body {
font-family: Arial, sans-serif;
}
.container {
width: 50%;
margin: auto;
padding: 20px;
border: 1px solid #ccc;
border-radius: 5px;
}
h2 {
text-align: center;
}
form {
margin-top: 20px;
}
.form-group {
margin-bottom: 10px;
}
label {
display: block;
margin-bottom: 5px;
}
input[type="text"], input[type="email"], select {
width: 100%;
padding: 10px;
border: 1px solid #ddd;
border-radius: 4px;
}
button {
padding: 10px 20px;
background-color: #5cb85c;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}
button:hover {
background-color: #4cae4c;
}
</style>
</head>
<body>
<div class="container">
<h2>General Information</h2>
<form>
<div class="form-group">
<label for="taskName">Task Name</label>
<input type="text" id="taskName" placeholder="ThisIsMyTaskName">
</div>
<div class="form-group">
<label for="suspenseDate">Suspense Date</label>
<input type="text" id="suspenseDate" placeholder="mm/dd/yyyy">
</div>
<!-- Add additional form fields as needed -->
<button type="submit">Submit</button>
</form>
</div>
</body>
</html>