mirror of
https://gitea.smigz.com/smiggiddy/odin-codeprojects.git
synced 2024-12-26 06:20:42 -05:00
feat: add more styling
This commit is contained in:
parent
261c0c7815
commit
0cea846e12
2 changed files with 44 additions and 28 deletions
|
@ -1,10 +1,14 @@
|
|||
.container {
|
||||
justify-content: center;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
align-content: center;
|
||||
}
|
||||
|
||||
.form {
|
||||
width: 50vw;
|
||||
}
|
||||
|
||||
.form-input {
|
||||
margin-bottom: 40px;
|
||||
display: flex;
|
||||
|
@ -13,7 +17,9 @@
|
|||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.form-row input[type='text'] {
|
||||
.form-input input[type='text'],
|
||||
.form-input input[type='password'],
|
||||
.form-input input[type='email'] {
|
||||
background-color: #FFFFFF;
|
||||
border: 1px solid #D6D9DC;
|
||||
border-radius: 3px;
|
||||
|
@ -22,26 +28,35 @@
|
|||
font-size: 14px;
|
||||
}
|
||||
|
||||
.form-row label {
|
||||
.form-input label {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
|
||||
@media only screen and (min-width: 700px) {
|
||||
|
||||
.container {
|
||||
height: 95vh;
|
||||
}
|
||||
.sidebar {
|
||||
width: 50vw;
|
||||
}
|
||||
.form {
|
||||
width: 600px;
|
||||
width: 50vw;
|
||||
}
|
||||
|
||||
.form-row {
|
||||
.form-input {
|
||||
flex-direction: row;
|
||||
align-items: flex-start; /* To avoid stretching */
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.form-row input[type='text'] {
|
||||
.form-input input[type='text'],
|
||||
.form-input input[type='password'],
|
||||
.form-input input[type='email'] {
|
||||
width: 250px;
|
||||
height: initial;
|
||||
}
|
||||
.form-row label {
|
||||
.form-input label {
|
||||
text-align: right;
|
||||
width: 120px;
|
||||
margin-top: 7px;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<title>Join our Awesome Mailing list!</title>
|
||||
<title>Join Our Awesome Mailing list!</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href="css/style.css" rel="stylesheet">
|
||||
|
@ -16,27 +16,28 @@
|
|||
</div>
|
||||
<div class="form">
|
||||
<h1 class="call-to-action">Join our mailing list!</h1>
|
||||
<form action="" method="post">
|
||||
<div class="form-input">
|
||||
<label for="name">Name</label>
|
||||
<input type="text" name="" id="name" placeholder="Enter your name.">
|
||||
</div>
|
||||
<div class="form-input">
|
||||
<label for="email">Email</label>
|
||||
<input type="email" name="email" id="email" placeholder="you@example.com">
|
||||
</div>
|
||||
<div class="form-input">
|
||||
<label for="password">Password</label>
|
||||
<input type="password" name="" id="password">
|
||||
</div>
|
||||
<div class="form-input">
|
||||
<label for="password_confirmation">Confirm Password</label>
|
||||
<input type="password" name="" id="password_confirmation">
|
||||
</div>
|
||||
<button type="submit">Sign Up</button>
|
||||
</form>
|
||||
<form action="" method="post">
|
||||
<div class="form-input">
|
||||
<label for="name">Name</label>
|
||||
<input type="text" name="" id="name" placeholder="Enter your name.">
|
||||
</div>
|
||||
<div class="form-input">
|
||||
<label for="email">Email</label>
|
||||
<input type="email" name="email" id="email" placeholder="you@example.com">
|
||||
</div>
|
||||
<div class="form-input">
|
||||
<label for="password">Password</label>
|
||||
<input type="password" name="" id="password">
|
||||
</div>
|
||||
<div class="form-input">
|
||||
<label for="password_confirmation">Confirm Password</label>
|
||||
<input type="password" name="" id="password_confirmation">
|
||||
</div>
|
||||
<button type="submit">Sign Up</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<script src="js/script.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
Loading…
Reference in a new issue