form creation and css styling path 1.

This commit is contained in:
sweatshirt0 2023-02-18 13:26:58 -05:00
parent bd9ce7d31c
commit 2a10f639a9
2 changed files with 112 additions and 0 deletions

View File

@ -18,6 +18,14 @@
<div class="subtitle-wrapper">
<p class="subtitle">Your favorite content creator's paradise</p>
</div>
<div class="login-form-wrapper">
<form class="login-form" action="/members" method="POST">
<input type="text" class="username" name="username" placeholder="Username" /><br/><br/>
<input type="password" class="password" name="password" placeholder="Password" /><br/><br/>
<input type="submit" class="submit" name="submit" value="Login" /><br/><br/>
<button class="registration-button"><a class="sign-up-link" href="/register">Sign Up</a></button>
</form>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,104 @@
body {
font-family: monospace;
}
.nav-wrapper {
background-color: blue;
padding: 15px;
}
.nav-wrapper a {
color: #fff;
margin-left: 15px;
margin-right: 15px;
text-decoration: none;
font-size: 1rem;
}
.nav-wrapper a:hover {
text-decoration: underline;
}
.title-wrapper {
position: relative;
top: 150px;
left: 40px;
font-size: 1rem;
}
.subtitle-wrapper {
position: relative;
top: 155px;
left: 40px;
font-size: 0.95rem;
}
.login-form-wrapper {
position: relative;
left: 50%;
width: 420px;
border: 1px solid lightgrey;
border-radius: 5px;
padding-top: 15px;
padding-bottom: 15px;
padding-left: 5px;
padding-right: 5px;
box-shadow: 8px 8px 8px lightgrey;
}
.username {
/*position: relative;*/
width: 85%;
display: flex;
margin-left: auto;
margin-right: auto;
padding: 12px;
border: 1px solid lightgrey;
border-radius: 5px;
font-size: 1.1rem;
}
.password {
width: 85%;
display: flex;
margin-left: auto;
margin-right: auto;
padding: 12px;
border: 1px solid lightgrey;
border-radius: 5px;
font-size: 1.1rem;
}
.submit {
width: 85%;
display: flex;
margin-left: auto;
margin-right: auto;
padding: 15px;
border: 1px solid lightgrey;
border-radius: 5px;
font-size: 1.1rem;
font-weight: bold;
background-color: blue;
color: #fff;
}
.registration-button {
width: 85%;
display: flex;
margin-left: auto;
margin-right: auto;
padding: 15px;
border: 1px solid lightgrey;
border-radius: 5px;
background-color: #4af626;
}
.sign-up-link {
color: black;
text-decoration: none;
font-size: 1.1rem;
font-weight: bold;
margin-left: auto;
margin-right: auto;
}