- Update HelloBar to announce Fresh 2.3 with feature callouts
(WebSockets, View Transitions, Temporal API)
- Rework hero section: new headline ("The framework so simple, you
already know it"), descriptive subtitle, moved CTA to left
- Remove old Simple section, add "Take a tour of Fresh" heading before
showcase
- Add new showcase sections: View Transitions, API Routes/Handlers,
WebSockets, `<Head>` element, OpenTelemetry
- Fix broken Deco showcase image (missing `/showcase/` directory)
- Fix syntax highlighting in Simple section (was using raw `<pre>`
instead of Prism)
- Update RenderingSection to use Temporal API instead of Date API
- Fix cursor styles on Forms and Partials interactive demos
- Move WebSocket docs from Examples to Advanced in TOC
- Densify all showcase sections: smaller headings, code blocks, icons,
demo boxes, arrows, and tighter spacing
---------
Co-authored-by: Josh Collinsworth <joshuajcollinsworth@gmail.com>
65 lines
1.6 KiB
TypeScript
65 lines
1.6 KiB
TypeScript
export function FormSubmitDemo() {
|
|
return (
|
|
<form action="/" method="POST" class="text-left md:px-8">
|
|
<fieldset class="mb-4">
|
|
<legend class="mb-2 font-bold">What's your favorite treat?</legend>
|
|
|
|
<label
|
|
for="lemon-meringue-pie"
|
|
class="flex gap-2 items-center cursor-pointer"
|
|
>
|
|
<input
|
|
type="radio"
|
|
value="lemon-meringue-pie"
|
|
id="lemon-meringue-pie"
|
|
name="treat"
|
|
checked
|
|
/>
|
|
Lemon meringue pie
|
|
</label>
|
|
<label
|
|
for="lemon-shortbread-cookies"
|
|
class="flex gap-2 items-center cursor-pointer"
|
|
>
|
|
<input
|
|
type="radio"
|
|
value="lemon-shortbread-cookies"
|
|
id="lemon-shortbread-cookies"
|
|
name="treat"
|
|
/>
|
|
Lemon shortbread cookies
|
|
</label>
|
|
<label
|
|
for="lemon-sherbet"
|
|
class="flex gap-2 items-center cursor-pointer"
|
|
>
|
|
<input
|
|
type="radio"
|
|
value="lemon-sherbet"
|
|
id="lemon-sherbet"
|
|
name="treat"
|
|
/>
|
|
Lemon sherbet
|
|
</label>
|
|
<label for="lemon-bars" class="flex gap-2 items-center cursor-pointer">
|
|
<input
|
|
type="radio"
|
|
value="lemon-bars"
|
|
id="lemon-bars"
|
|
name="treat"
|
|
/>
|
|
Lemon bars
|
|
</label>
|
|
</fieldset>
|
|
|
|
<button
|
|
type="submit"
|
|
value="Submit"
|
|
class="pt-2 pb-1 px-3 rounded-sm border-current border-[1.5px] font-semibold cursor-pointer"
|
|
>
|
|
Submit
|
|
</button>
|
|
</form>
|
|
);
|
|
}
|