Skip to content

Commit cb2d088

Browse files
committed
Ajustes de layout do carrinho
1 parent 12fd28b commit cb2d088

File tree

4 files changed

+17
-33
lines changed

4 files changed

+17
-33
lines changed

src/web/JSE.WebApp.MVC/Models/UsuarioRegistroViewModel.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class UsuarioRegistroViewModel
1212

1313
[Required(ErrorMessage = "O campo {0} é obrigatório")]
1414
[DisplayName("CPF")]
15-
[Cpf]
15+
// [Cpf] TODO
1616
public string Cpf { get; set; }
1717

1818
[Required(ErrorMessage = "O campo {0} é obrigatório")]
@@ -24,6 +24,7 @@ public class UsuarioRegistroViewModel
2424
[StringLength(100, ErrorMessage = "O campo {0} precisa ter entre {2} e {1} caracteres", MinimumLength = 6)]
2525
public string Senha { get; set; }
2626

27+
[Required(ErrorMessage = "O campo {0} é obrigatório")]
2728
[DisplayName("Confirme sua senha")]
2829
[Compare("Senha", ErrorMessage = "As senhas não conferem.")]
2930
public string SenhaConfirmacao { get; set; }

src/web/JSE.WebApp.MVC/Views/Carrinho/Index.cshtml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,16 @@
3434
{
3535
<tr>
3636
<td>
37-
<figure class="itemside">
38-
<div class="aside">
39-
<img src="~/images/produtos/@item.Imagem" alt="@item.Nome" class="img-sm">
40-
</div>
41-
<figcaption class="info">
42-
<a asp-controller="Catalogo" asp-action="ProdutoDetalhe" asp-route-id="@item.ProdutoId"><h6 style="padding-top: 10px" class="title text-dark">@item.Nome</h6></a>
43-
<p class="text-muted small">@this.UnidadesPorProduto(item.Quantidade)</p>
44-
</figcaption>
45-
</figure>
37+
38+
<div class="ratio bg-body-secondary rounded overflow-hidden flex-shrink-sm-0" style="--cz-aspect-ratio: calc(110 / 142 * 100%); max-width: 142px">
39+
<img src="~/images/produtos/@item.Imagem" class="hover-effect-target" alt="@item.Nome">
40+
</div>
41+
<div class="ps-2 ps-sm-3 ms-1">
42+
<h6 class="product mb-2">
43+
<a class="fs-sm fw-medium hover-effect-underline stretched-link" asp-controller="Catalogo" asp-action="ProdutoDetalhe" asp-route-id="@item.ProdutoId">@item.Nome</a>
44+
</h6>
45+
<p class="text-muted small">@this.UnidadesPorProduto(item.Quantidade)</p>
46+
</div>
4647
</td>
4748
<td>
4849
<div class="price-wrap">
@@ -52,11 +53,10 @@
5253
</td>
5354
<form method="post" asp-controller="Carrinho" asp-action="AtualizarItemCarrinho">
5455
<td>
55-
5656
<input type="hidden" id="ProdutoId" name="ProdutoId" value="@item.ProdutoId" />
5757

5858
<div class="text-left">
59-
<select id="Quantidade" name="Quantidade" style="width: 80px" class="form-control">
59+
<select id="Quantidade" name="Quantidade" class="form-control">
6060
@{
6161
@Html.Raw(this.SelectOptionsPorQuantidade(5, item.Quantidade))
6262
}
@@ -68,7 +68,7 @@
6868
<td>
6969
<div class="text-right">
7070
<button type="submit" class="btn btn-success">
71-
<i class="fas fa-sync"></i>
71+
<i class="ci-rotate-cw"></i>
7272
</button>
7373
</div>
7474
</td>
@@ -80,7 +80,7 @@
8080
<input type="hidden" id="ProdutoId" name="ProdutoId" value="@item.ProdutoId" />
8181

8282
<button type="submit" class="btn btn-danger">
83-
<i class="fas fa-trash-alt"></i>
83+
<i class="ci-trash"></i>
8484
</button>
8585

8686
</div>

src/web/JSE.WebApp.MVC/Views/Catalogo/ProdutoDetalhe.cshtml

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</article>
1515
</aside>
1616
<main class="col-md-6 border-left">
17-
<article class="content-body">
17+
<article class="content-body mt-5">
1818
<form asp-controller="Carrinho" asp-action="AdicionarItemCarrinho" method="post">
1919

2020
<input type="hidden" id="ProdutoId" name="ProdutoId" value="@Model.Id" />
@@ -23,23 +23,6 @@
2323

2424
<h2 class="title">@Model.Nome</h2>
2525

26-
<div class="rating-wrap my-3">
27-
<ul class="rating-stars">
28-
<li style="width: 80%" class="stars-active">
29-
<i class="fa fa-star"></i> <i class="fa fa-star"></i>
30-
<i class="fa fa-star"></i> <i class="fa fa-star"></i>
31-
<i class="fa fa-star"></i>
32-
</li>
33-
<li>
34-
<i class="fa fa-star"></i> <i class="fa fa-star"></i>
35-
<i class="fa fa-star"></i> <i class="fa fa-star"></i>
36-
<i class="fa fa-star"></i>
37-
</li>
38-
</ul>
39-
<small class="label-rating text-muted">132 avaliações</small>
40-
<small class="label-rating text-success"> <i class="fa fa-clipboard-check"></i> 154 peças vendidas</small>
41-
</div>
42-
4326
<div class="mb-3">
4427
<var class="price h4">@this.FormatoMoeda(Model.Valor)</var>
4528
</div>
@@ -68,7 +51,7 @@
6851

6952
</div>
7053
<br />
71-
<button type="submit" class="btn btn-outline-primary">
54+
<button type="submit" class="btn btn-primary">
7255
<span class="text">Adicionar ao carrinho</span> <i class="fas fa-shopping-cart"> &nbsp;</i>
7356
</button>
7457

11.1 KB
Loading

0 commit comments

Comments
 (0)