docs: improve styling for form submission example (#2899)
  ## Changes - Added border and padding to the search input field for better visibility - Added light gray background and border to the search button for better clickability ## Why - The original styling makes it difficult to recognize the search input field and button, as they appear as plain text elements without any visual distinction.
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
"jsr:@std/async@1": "1.0.12",
|
||||
"jsr:@std/bytes@^1.0.2": "1.0.5",
|
||||
"jsr:@std/bytes@^1.0.5": "1.0.5",
|
||||
"jsr:@std/cli@1": "1.0.17",
|
||||
"jsr:@std/cli@^1.0.17": "1.0.17",
|
||||
"jsr:@std/collections@^1.0.11": "1.0.11",
|
||||
"jsr:@std/crypto@1": "1.0.4",
|
||||
@@ -215,7 +216,7 @@
|
||||
"@std/http@1.0.15": {
|
||||
"integrity": "435a4934b4e196e82a8233f724da525f7b7112f3566502f28815e94764c19159",
|
||||
"dependencies": [
|
||||
"jsr:@std/cli",
|
||||
"jsr:@std/cli@^1.0.17",
|
||||
"jsr:@std/encoding@^1.0.10",
|
||||
"jsr:@std/fmt@^1.0.7",
|
||||
"jsr:@std/html@^1.0.3",
|
||||
|
||||
@@ -53,8 +53,10 @@ export default function Page({ data }: PageProps<Data>) {
|
||||
return (
|
||||
<div>
|
||||
<form>
|
||||
<input type="text" name="q" value={query} />
|
||||
<button type="submit">Search</button>
|
||||
<input type="text" name="q" value={query} class="border p-1" />
|
||||
<button type="submit" class="ml-1 px-2 py-1 bg-gray-100 border">
|
||||
Search
|
||||
</button>
|
||||
</form>
|
||||
<ul>
|
||||
{results.map((name) => <li key={name}>{name}</li>)}
|
||||
|
||||
Reference in New Issue
Block a user