-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a2c07be
Showing
2 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Search Card</title> | ||
<script src="https://unpkg.com/[email protected]"></script> | ||
<style> | ||
body { | ||
font-family: Arial, sans-serif; | ||
margin: 20px; | ||
} | ||
.container { | ||
max-width: 600px; | ||
margin: 0 auto; | ||
} | ||
form { | ||
margin-bottom: 20px; | ||
} | ||
label { | ||
display: block; | ||
margin-bottom: 8px; | ||
} | ||
input[type="text"] { | ||
width: 100%; | ||
padding: 8px; | ||
margin-bottom: 10px; | ||
border: 1px solid #ccc; | ||
border-radius: 4px; | ||
} | ||
button { | ||
padding: 10px 15px; | ||
background-color: #007bff; | ||
color: white; | ||
border: none; | ||
border-radius: 4px; | ||
cursor: pointer; | ||
} | ||
button:hover { | ||
background-color: #0056b3; | ||
} | ||
#result { | ||
padding: 20px; | ||
border: 1px solid #ccc; | ||
border-radius: 4px; | ||
background-color: #f9f9f9; | ||
} | ||
.card-name { | ||
font-size: 1.5em; | ||
margin-bottom: 10px; | ||
font-weight: bold; | ||
} | ||
.card-types { | ||
font-style: italic; | ||
margin-bottom: 10px; | ||
} | ||
.card-desc { | ||
font-size: 1em; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<h1>Search Card</h1> | ||
<form hx-get="/card" hx-target="#result" hx-swap="innerHTML"> | ||
<label for="id">Card ID:</label> | ||
<input type="text" id="id" name="id" required> | ||
<button type="submit">Search</button> | ||
</form> | ||
<div id="result"></div> | ||
</div> | ||
</body> | ||
</html> |