Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
crotonrz authored Oct 31, 2024
1 parent 96dea65 commit ec6d7d2
Showing 1 changed file with 73 additions and 14 deletions.
87 changes: 73 additions & 14 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,90 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Form Example</title>
<title>Character Details</title>
<style>
.narrow-input {
width: 450px; /* Width of input boxes */
body {
font-family: Arial, sans-serif;
max-width: 600px;
margin: auto;
background-image: url('ez_background.png');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
padding: 20px;
}
.container {
background-color: rgba(255, 255, 255, 0.9);
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.logo {
display: block;
margin: 0 auto 20px;
width: 150px;
}
.form-group {
margin-bottom: 15px;
}
label {
display: block; /* Ensure each label is on a new line */
margin-top: 10px; /* Spacing above labels */
display: block;
font-weight: bold;
}
input[type="text"], textarea {
width: 100%;
padding: 8px;
box-sizing: border-box;
border: 1px solid #ccc;
border-radius: 4px;
}
input[type="submit"] {
margin-top: 20px; /* Spacing above the submit button */
button {
padding: 10px 15px;
background-color: #28a745;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}
button:hover {
background-color: #218838;
}
#comments-section {
max-width: 600px;
margin-top: 20px;
}
</style>
</head>
<body>

<form>
<label for="name">Name:</label>
<input type="text" id="name" name="name" class="narrow-input"><br>
<div class="container">
<img src="ez_logo.png" alt="Logo" class="logo">

<h1>Character Details Form</h1>

<label for="email">Your Email Address:</label>
<input type="email" id="email" name="email" class="narrow-input"><br>
<form>
<div class="form-group">
<label for="characterName">Character Name</label>
<input type="text" id="characterName" name="characterName" placeholder="Enter character's name">
</div>
<div class="form-group">
<label for="characterDetails">Character Details</label>
<textarea id="characterDetails" name="characterDetails" rows="4" placeholder="Enter character details"></textarea>
</div>
<button type="submit">Submit</button>
</form>

<input type="submit" value="Submit">
</form>
<div id="comments-section">
<h2>Comments</h2>
<form>
<div class="form-group">
<label for="comment">Add a Comment</label>
<textarea id="comment" name="comment" rows="4" placeholder="Write your comment here"></textarea>
</div>
<button type="submit">Post Comment</button>
</form>
</div>
</div>

</body>
</html>

0 comments on commit ec6d7d2

Please sign in to comment.