mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 13:10:21 +08:00
79 lines
1.5 KiB
HTML
79 lines
1.5 KiB
HTML
<div class="contact-form">
|
|
<span class="heading">Contact Us</span>
|
|
<form>
|
|
<label for="name">Name:</label>
|
|
<input type="text" required="">
|
|
<label for="email">Email:</label>
|
|
<input type="email" id="email" name="email" required="">
|
|
<label for="message">Message:</label>
|
|
<textarea id="message" name="message" required=""></textarea>
|
|
<button type="submit">Submit</button>
|
|
</form>
|
|
</div>
|
|
|
|
<style>
|
|
/* From Uiverse.io by ClawHack1 - Tags: form */
|
|
.contact-form {
|
|
background-color: #f2f2f2;
|
|
padding: 20px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.contact-form label {
|
|
color: black;
|
|
}
|
|
|
|
.contact-form .heading {
|
|
font-size: 24px;
|
|
color: black;
|
|
;
|
|
margin-bottom: 12px;
|
|
font-weight: bold;
|
|
display: block;
|
|
}
|
|
|
|
.contact-form form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.contact-form label {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
textarea {
|
|
resize: none;
|
|
height: 80px;
|
|
width: 200px;
|
|
}
|
|
|
|
.contact-form input, .contact-form textarea {
|
|
padding: 10px;
|
|
border: none;
|
|
border-radius: 5px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.contact-form input:focus, .contact-form textarea:focus {
|
|
outline: none;
|
|
box-shadow: 0 0 5px #ff6384;
|
|
transform: scale(1.05);
|
|
transition: transform 0.3s ease-in-out;
|
|
}
|
|
|
|
.contact-form button[type="submit"] {
|
|
background-color: #ff6384;
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 5px;
|
|
padding: 10px 20px;
|
|
font-size: 16px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.contact-form button[type="submit"]:hover {
|
|
transform: scale(1.1);
|
|
transition: transform 0.3s ease-in-out;
|
|
}
|
|
|
|
</style>
|