Skip to content

Commit d56b7e6

Browse files
committed
feat: define layout adicional para páginas sem barra lateral
1 parent 5381dad commit d56b7e6

File tree

5 files changed

+59
-0
lines changed

5 files changed

+59
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@inherits LayoutComponentBase
2+
3+
<main class="d-flex align-items-center">
4+
@Body
5+
</main>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
html,
2+
body {
3+
height: 100%;
4+
}

src/BlazingShop/Pages/Login.razor

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
@page "/login"
2+
@layout HeadlessLayout
3+
4+
<PageTitle>Login</PageTitle>
5+
6+
<div class="form-signin w-100 m-auto">
7+
8+
<form>
9+
<h1 class="h3 mb-3 fw-normal">Por favor, entre com sua conta</h1>
10+
11+
<div class="form-floating">
12+
<input type="email" class="form-control" id="floatingInput" placeholder="name@example.com">
13+
<label for="floatingInput">E-mail</label>
14+
</div>
15+
<div class="form-floating">
16+
<input type="password" class="form-control" id="floatingPassword" placeholder="Password">
17+
<label for="floatingPassword">Senha</label>
18+
</div>
19+
20+
<div class="form-check text-start my-3">
21+
<input class="form-check-input" type="checkbox" value="remember-me" id="flexCheckDefault">
22+
<label class="form-check-label" for="flexCheckDefault">
23+
Lembrar-me?
24+
</label>
25+
</div>
26+
<button class="btn btn-primary w-100 py-2" type="submit">Entrar</button>
27+
</form>
28+
29+
</div>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
.form-signin {
2+
max-width: 330px;
3+
padding: 1rem;
4+
}
5+
6+
.form-signin .form-floating:focus-within {
7+
z-index: 2;
8+
}
9+
10+
.form-signin input[type="email"] {
11+
margin-bottom: -1px;
12+
border-bottom-right-radius: 0;
13+
border-bottom-left-radius: 0;
14+
}
15+
16+
.form-signin input[type="password"] {
17+
margin-bottom: 10px;
18+
border-top-left-radius: 0;
19+
border-top-right-radius: 0;
20+
}

src/BlazingShop/_Imports.razor

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@
88
@using Microsoft.JSInterop
99
@using BlazingShop
1010
@using BlazingShop.Components
11+
@using BlazingShop.Layouts
1112
@using BlazingShop.Models

0 commit comments

Comments
 (0)