mirror of
https://github.com/ershisan99/flashcards-example-project.git
synced 2025-12-16 20:59:27 +00:00
add form-showcase
This commit is contained in:
27
form-showcase/index.html
Normal file
27
form-showcase/index.html
Normal 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
37
form-showcase/styles.css
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user