2019-09-28 15:20:56 +00:00
|
|
|
<html lang="en">
|
2019-10-19 06:45:14 +00:00
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
|
<title>Form Hero</title>
|
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
padding: 1em;
|
|
|
|
margin: 0;
|
2023-01-31 00:26:27 +00:00
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
2019-10-19 06:45:14 +00:00
|
|
|
}
|
2019-09-28 15:20:56 +00:00
|
|
|
|
2023-02-05 12:43:37 +00:00
|
|
|
h1 {
|
|
|
|
margin: 0;
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
|
|
|
|
2019-10-19 06:45:14 +00:00
|
|
|
section {
|
|
|
|
text-align: center;
|
|
|
|
max-width: 25em;
|
2023-02-05 12:43:37 +00:00
|
|
|
margin: 2em auto;
|
2019-10-19 06:45:14 +00:00
|
|
|
padding: 1em;
|
|
|
|
background-color: #f3f3f3;
|
2023-02-05 12:43:37 +00:00
|
|
|
border-radius: 2rem;
|
2019-10-19 06:45:14 +00:00
|
|
|
box-shadow: 0 8px 16px -16px rgba(0, 0, 0, 0.5);
|
2023-02-05 12:43:37 +00:00
|
|
|
border: 0.2rem solid #bae8ee;
|
2019-10-19 06:45:14 +00:00
|
|
|
}
|
2019-09-28 15:20:56 +00:00
|
|
|
|
2023-02-05 12:43:37 +00:00
|
|
|
input,
|
|
|
|
select {
|
2019-10-19 06:45:14 +00:00
|
|
|
font-size: 1.25em;
|
|
|
|
display: block;
|
|
|
|
padding: 0.5em 1em;
|
|
|
|
margin-top: 0.5em;
|
|
|
|
border-radius: 1em;
|
|
|
|
width: 100%;
|
|
|
|
outline: none;
|
2023-02-05 12:43:37 +00:00
|
|
|
border: 0.2rem solid #bae8ee;
|
2019-10-19 06:45:14 +00:00
|
|
|
}
|
2019-09-28 15:20:56 +00:00
|
|
|
|
2019-10-19 06:45:14 +00:00
|
|
|
input:focus,
|
|
|
|
input:hover {
|
|
|
|
border-color: #31def5;
|
|
|
|
}
|
2019-09-28 15:20:56 +00:00
|
|
|
|
2019-10-19 06:45:14 +00:00
|
|
|
input[type='submit'] {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2019-09-28 15:20:56 +00:00
|
|
|
|
2019-10-19 06:45:14 +00:00
|
|
|
input[type='checkbox'] {
|
|
|
|
display: inline;
|
|
|
|
width: initial;
|
|
|
|
}
|
2023-02-05 12:43:37 +00:00
|
|
|
|
|
|
|
form {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
2019-10-19 06:45:14 +00:00
|
|
|
</style>
|
|
|
|
</head>
|
2019-09-28 15:20:56 +00:00
|
|
|
|
2019-10-19 06:45:14 +00:00
|
|
|
<body>
|
|
|
|
<section>
|
2023-02-05 12:43:37 +00:00
|
|
|
<i>Open the console to see the submitted data</i>
|
2019-10-19 06:45:14 +00:00
|
|
|
</section>
|
2019-09-28 15:20:56 +00:00
|
|
|
|
2023-01-31 00:26:27 +00:00
|
|
|
<script type="module" src="./simple.tsx"></script>
|
|
|
|
<script type="module" src="./errorsAndValidation.tsx"></script>
|
|
|
|
<script type="module" src="./select.tsx"></script>
|
|
|
|
<script type="module" src="./custom.tsx"></script>
|
2019-10-19 06:45:14 +00:00
|
|
|
</body>
|
|
|
|
</html>
|