پیشنمایش زنده
کد HTML
<div class="form-container">
<p class="title">Login</p>
<form class="form">
<div class="input-group">
<label for="name">Name</label>
<input placeholder="" id="username" name="username" type="text" />
</div>
<div class="input-group">
<label for="phone">Phone</label>
<input placeholder="" id="phone" name="phone" type="phone" />
<label for="email">Email</label>
<input placeholder="" id="email" name="email" type="email" />
<label for="location">Location</label>
<input placeholder="" type="email" />
</div>
<button style="margin-top:6%;" class="sign">Submit</button>
</form>
<div class="social-message">
<div class="line"></div>
<p class="message">Entre Details to view Virtual Tour</p>
<div class="line"></div>
</div>
</div>
کد CSS
.form-container {
width: 320px;
border-radius: 0.75rem;
background-color: rgba(17, 24, 39, 1);
padding: 2rem;
color: rgba(243, 244, 246, 1);
}
.title {
text-align: center;
font-size: 1.5rem;
line-height: 2rem;
font-weight: 700;
}
.form {
margin-top: 1.5rem;
}
.input-group {
margin-top: 0.25rem;
font-size: 0.875rem;
line-height: 1.25rem;
}
.input-group label {
display: block;
color: rgba(156, 163, 175, 1);
margin-bottom: 4px;
}
.input-group input {
width: 100%;
border-radius: 0.375rem;
border: 1px solid rgba(55, 65, 81, 1);
outline: 0;
background-color: rgba(17, 24, 39, 1);
padding: 0.75rem 1rem;
color: rgba(243, 244, 246, 1);
}
.input-group input:focus {
border-color: rgba(167, 139, 250);
}
.forgot {
display: flex;
justify-content: flex-end;
font-size: 0.75rem;
line-height: 1rem;
color: rgba(156, 163, 175, 1);
margin: 8px 0 14px 0;
}
.forgot a,
.signup a {
color: rgba(243, 244, 246, 1);
text-decoration: none;
font-size: 14px;
}
.forgot a:hover,
.signup a:hover {
text-decoration: underline rgba(167, 139, 250, 1);
}
.sign {
display: block;
width: 100%;
background-color: rgba(167, 139, 250, 1);
padding: 0.75rem;
text-align: center;
color: rgba(17, 24, 39, 1);
border: none;
border-radius: 0.375rem;
font-weight: 600;
}
.social-message {
display: flex;
align-items: center;
padding-top: 1rem;
}
.line {
height: 1px;
flex: 1 1 0%;
background-color: rgba(55, 65, 81, 1);
}
.social-message .message {
padding-left: 0.75rem;
padding-right: 0.75rem;
font-size: 0.875rem;
line-height: 1.25rem;
color: rgba(156, 163, 175, 1);
}
.social-icons {
display: flex;
justify-content: center;
}
.social-icons .icon {
border-radius: 0.125rem;
padding: 0.75rem;
border: none;
background-color: transparent;
margin-left: 8px;
}
.social-icons .icon svg {
height: 1.25rem;
width: 1.25rem;
fill: #fff;
}
.signup {
text-align: center;
font-size: 0.75rem;
line-height: 1rem;
color: rgba(156, 163, 175, 1);
}