add form-showcase

This commit is contained in:
2024-05-04 14:37:44 +02:00
parent 20a55fffee
commit 4f96c7fef1
2 changed files with 64 additions and 0 deletions

27
form-showcase/index.html Normal file
View File

@@ -0,0 +1,27 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<main>
<form>
<label for="name">Name</label>
<input type="text" id="name" name="name">
<label for="email">Email</label>
<input type="email" id="email" name="email">
<label for="password">Password</label>
<input type="password" id="password" name="password">
<button type="submit">Submit</button>
</form>
</main>
</body>
</html>

37
form-showcase/styles.css Normal file
View File

@@ -0,0 +1,37 @@
:root {
font-family: sans-serif;
color-scheme: dark light;
}
main {
max-width: 500px;
margin: 0 auto;
padding: 16px;
}
form {
display: flex;
flex-direction: column;
gap: 8px;
padding: 16px;
border-radius: 8px;
}
input {
padding: 8px;
border: 1px solid #ccc;
border-radius: 4px;
}
button {
margin-top: 1rem;
padding: 8px;
font: inherit;
background-color: dodgerblue;
border: none;
border-radius: 4px;
}