mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 13:10:21 +08:00
110 lines
2.2 KiB
HTML
110 lines
2.2 KiB
HTML
<form class="form">
|
|
<input class="input" type="text" placeholder="Name">
|
|
<input class="input" type="text" placeholder="E-Mail I.D.">
|
|
<textarea class="textarea" placeholder="Enter message"></textarea>
|
|
<center><button class="button">Submit</button></center>
|
|
</form>
|
|
<style>
|
|
/* From Uiverse.io by aadium - Tags: form, chat */
|
|
.form {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
background-image: linear-gradient(45deg, #330808,
|
|
#3a2c09);
|
|
border-radius: 2.5em;
|
|
padding: 30px;
|
|
width: 300px;
|
|
height: 350px;
|
|
}
|
|
|
|
.form::before {
|
|
content: '';
|
|
background-image: linear-gradient(45deg, #ff0000,
|
|
#ffb700);
|
|
height: 358px;
|
|
width: 309px;
|
|
position: absolute;
|
|
margin-top: -34px;
|
|
margin-left: px;
|
|
z-index: -1;
|
|
border-radius: 2.7em;
|
|
}
|
|
|
|
.button {
|
|
margin-top: 10px;
|
|
font-family: Arial, Helvetica, sans-serif;
|
|
font-size: 17px;
|
|
background: #ff5900;
|
|
color: black;
|
|
padding: 0.7em 5.5em;
|
|
display: flex;
|
|
align-items: center;
|
|
border: 2px solid #66da4300;
|
|
border-radius: 5em;
|
|
overflow: hidden;
|
|
transition: all 0.2s;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.button:hover {
|
|
border: 2px solid #ff5900;
|
|
background: #00000000;
|
|
color: #ff5900;
|
|
}
|
|
|
|
.button:active {
|
|
border: 2px solid #66da4300;
|
|
background: #ff5900;
|
|
color: black;
|
|
}
|
|
|
|
.input {
|
|
width: calc(100% - 10px);
|
|
padding: 8px;
|
|
margin-bottom: 20px;
|
|
border: 1px solid #66da4300;
|
|
border-bottom: 1px solid #ff5900;
|
|
outline: none;
|
|
background-color: transparent;
|
|
color: #ff5900;
|
|
font-family: Arial, Helvetica, sans-serif;
|
|
transition: 0.2s;
|
|
}
|
|
|
|
.input:focus {
|
|
border: 1px solid #66da4300;
|
|
border-bottom: 1px solid #ff5900;
|
|
background-color: transparent;
|
|
color: white;
|
|
}
|
|
|
|
.input::placeholder {
|
|
color: #9b725b;
|
|
}
|
|
|
|
.textarea {
|
|
font-family: Arial, Helvetica, sans-serif;
|
|
width: calc(100% - 10px);
|
|
padding: 8px;
|
|
height: 100px;
|
|
margin-bottom: 20px;
|
|
border: 1px solid #66da4300;
|
|
border-bottom: 1px solid #ff5900;
|
|
outline: none;
|
|
background-color: transparent;
|
|
color: #ff5900;
|
|
}
|
|
|
|
.textarea::placeholder {
|
|
color: #9b725b;
|
|
}
|
|
|
|
.textarea:focus {
|
|
border: 1px solid #66da4300;
|
|
border-bottom: 1px solid #ff5900;
|
|
background-color: transparent;
|
|
color: white;
|
|
}
|
|
</style>
|