feat: added login page, added LoginComponent and RegisterComponent

This commit is contained in:
moonleay 2024-01-26 22:48:57 +01:00
parent 2d3a0f1b1b
commit 6ea6dbd4ad
Signed by: moonleay
GPG key ID: 82667543CCD715FB
7 changed files with 129 additions and 0 deletions

View file

@ -0,0 +1,21 @@
<section class="LoginSection">
<h3>Login</h3>
<div class="login">
<div class="field">
<p>username / email</p>
<input type="text" spellcheck="false" autocapitalize="none"/>
</div>
<div class="field">
<p>password</p>
<input type="password"/>
</div>
<div>
<button class="btn" type="button">login</button>
<a class="forgot" href="/forgot">Forgot password?</a>
</div>
</div>
</section>
@code {
}

View file

@ -0,0 +1,14 @@
.LoginSection {
margin: 0 auto;
}
.field {
margin-top: 12px;
margin-bottom: 12px;
}
.btn {
margin-right: auto;
margin-left: 0;
text-align: right;
}

View file

@ -0,0 +1,28 @@
<section class="RegisterSection">
<h3>Register</h3>
<div class="register">
<div class="field">
<p>username</p>
<input type="text" spellcheck="false" autocapitalize="none"/>
</div>
<div class="field">
<p>email (optional)</p>
<input type="text" spellcheck="false" autocapitalize="none"/>
</div>
<div class="field">
<p>password</p>
<input type="password"/>
</div>
<div>
@* <div> *@
@* <input type="checkbox" id="agree2rules" name="agree2rules"/> *@
@* <label for="agree2rules">I've read the <a>rules</a>, <a>legal</a> and <a>privacy policy</a> and I agree to them.</label> *@
@* </div> *@
<button class="btn" type="button">register</button>
</div>
</div>
</section>
@code {
}

View file

@ -0,0 +1,14 @@
.RegisterSection {
margin: 0 auto;
}
.field {
margin-top: 12px;
margin-bottom: 12px;
}
.btn {
margin-right: auto;
margin-left: 0;
text-align: right;
}

View file

@ -0,0 +1,14 @@
@page "/login"
<PageTitle>Login | Fedi News</PageTitle>
<div class="accountManagement">
<LoginComponent/>
<div class="seperatorVert"></div>
<div class="seperatorHoriz"></div>
<RegisterComponent/>
</div>
@code {
}

View file

@ -0,0 +1,37 @@
.accountManagement {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
margin-top: 7.2px;
}
@media (max-width: 600px) {
.accountManagement {
flex-direction: column;
}
.seperatorVert {
display: none !important;
}
.seperatorHoriz {
display: flex !important;
}
}
.seperatorVert {
display: flex;
height: 100px;
background-color: grey;
margin: 0 2rem;
width: 2px;
}
.seperatorHoriz {
display: none;
width: 100px;
height: 2px;
background-color: grey;
margin: 2rem 0;
}

View file

@ -9,3 +9,4 @@
@using FediNews @using FediNews
@using FediNews.Components @using FediNews.Components
@using FediNews.Components.Items @using FediNews.Components.Items
@using FediNews.Components.Accounts;