Skip to content

Commit 52b8995

Browse files
committed
Correções no _LoginPartial
1 parent 771bf86 commit 52b8995

File tree

3 files changed

+21
-71
lines changed

3 files changed

+21
-71
lines changed
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
@model int
22

3-
<div style="padding-right: 15px">
4-
<a asp-controller="Carrinho" asp-action="Index" class="widget-header">
5-
<div class="icon icon-sm rounded-circle border"><i class="fa fa-shopping-cart"></i></div>
6-
<span class="badge badge-pill badge-danger notify">@Model</span>
7-
</a>
8-
</div>
3+
<a class="btn btn-icon btn-lg fs-xl btn-outline-secondary position-relative border-0 rounded-circle animate-scale" data-bs-toggle="offcanvas" data-bs-target="#shoppingCart" aria-controls="shoppingCart" aria-label="Shopping cart" data-bs-placement="bottom" data-bs-title="Carrinho">
4+
<span class="position-absolute top-0 start-100 badge fs-xs text-bg-primary rounded-pill mt-1 ms-n4 z-2" style="--cz-badge-padding-y: .25em; --cz-badge-padding-x: .42em">@Model</span>
5+
<i class="ci-shopping-bag animate-target me-1"></i>
6+
</a>

src/web/JSE.WebApp.MVC/Views/Shared/_Layout.cshtml

Lines changed: 16 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -3,67 +3,53 @@
33
<head>
44
<meta charset="utf-8">
55

6-
<!-- Viewport -->
7-
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, viewport-fit=cover">
8-
9-
<!-- SEO Meta Tags -->
6+
7+
8+
109
<title>@ViewData["Title"] - Jeff Store</title>
10+
11+
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, viewport-fit=cover">
1112
<meta name="description" content="">
1213
<meta name="keywords" content="">
13-
<meta name="author" content="Jeferson Almeida">
14-
15-
<!-- Webmanifest + Favicon / App icons -->
14+
<meta name="author" content="Jeferson Almeida">
1615
<meta name="mobile-web-app-capable" content="yes">
1716
<meta name="apple-mobile-web-app-status-bar-style" content="black">
17+
1818
<link rel="manifest" href="~/manifest.json">
1919
<link rel="icon" type="image/png" href="~/assets/app-icons/icon-32x32.png" sizes="32x32">
2020
<link rel="apple-touch-icon" href="~/assets/app-icons/icon-180x180.png">
21-
22-
23-
24-
<!-- Preloaded local web font (Inter) -->
2521
<link rel="preload" href="~/assets/fonts/inter-variable-latin.woff2" as="font" type="font/woff2" crossorigin>
26-
27-
<!-- Font icons -->
2822
<link rel="preload" href="~/assets/icons/cartzilla-icons.woff2" as="font" type="font/woff2" crossorigin>
2923
<link rel="stylesheet" href="~/assets/icons/cartzilla-icons.min.css">
30-
31-
<!-- Vendor styles -->
3224
<link rel="stylesheet" href="~/assets/vendor/swiper/swiper-bundle.min.css">
3325
<link rel="stylesheet" href="~/assets/vendor/choices.js/public/assets/styles/choices.min.css">
34-
35-
<!-- Bootstrap + Theme styles -->
3626
<link rel="preload" href="~/assets/css/theme.min.css" as="style">
3727
<link rel="stylesheet" href="~/assets/css/theme.min.css" id="theme-styles">
3828
</head>
3929
<body>
40-
<!-- Navigation bar (Page header) -->
30+
4131
<header class="navbar navbar-expand-lg bg-body navbar-sticky sticky-top z-fixed px-0" data-sticky-element>
4232
<div class="container flex-nowrap">
4333

44-
<!-- Mobile offcanvas menu toggler (Hamburger) -->
34+
4535
<button type="button" class="navbar-toggler me-4 me-lg-0" data-bs-toggle="offcanvas" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-label="Toggle navigation">
4636
<span class="navbar-toggler-icon"></span>
4737
</button>
4838

49-
<!-- Navbar brand (Logo) -->
5039
<a class="navbar-brand py-1 py-md-2 py-xl-1" asp-action="Index" asp-controller="Catalogo">
5140
<span class="d-none d-sm-flex flex-shrink-0 text-primary me-2">
5241
<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36"><path d="M36 18.01c0 8.097-5.355 14.949-12.705 17.2a18.12 18.12 0 0 1-5.315.79C9.622 36 2.608 30.313.573 22.611.257 21.407.059 20.162 0 18.879v-1.758c.02-.395.059-.79.099-1.185.099-.908.277-1.817.514-2.686C2.687 5.628 9.682 0 18 0c5.572 0 10.551 2.528 13.871 6.517 1.502 1.797 2.648 3.91 3.359 6.201.494 1.659.771 3.436.771 5.292z" fill="currentColor" /><g fill="#fff"><path d="M17.466 21.624c-.514 0-.988-.316-1.146-.829-.198-.632.138-1.303.771-1.501l7.666-2.469-1.205-8.254-13.317 4.621a1.19 1.19 0 0 1-1.521-.75 1.19 1.19 0 0 1 .751-1.521l13.89-4.818c.553-.197 1.166-.138 1.64.158a1.82 1.82 0 0 1 .85 1.284l1.344 9.183c.138.987-.494 1.994-1.482 2.33l-7.864 2.528-.375.04zm7.31.138c-.178-.632-.85-1.007-1.482-.81l-5.177 1.58c-2.331.79-3.28.02-3.418-.099l-6.56-8.412a4.25 4.25 0 0 0-4.406-1.758l-3.122.987c-.237.889-.415 1.777-.514 2.686l4.228-1.363a1.84 1.84 0 0 1 1.857.81l6.659 8.551c.751.948 2.015 1.323 3.359 1.323.909 0 1.857-.178 2.687-.474l5.078-1.54c.632-.178 1.008-.829.81-1.481z" /><use href="#czlogo" /><use href="#czlogo" x="8.516" y="-2.172" /></g><defs><path id="czlogo" d="M18.689 28.654a1.94 1.94 0 0 1-1.936 1.935 1.94 1.94 0 0 1-1.936-1.935 1.94 1.94 0 0 1 1.936-1.935 1.94 1.94 0 0 1 1.936 1.935z" /></defs></svg>
5342
</span>
5443
Jeff Store
5544
</a>
5645

57-
<!-- Main navigation that turns into offcanvas on screens < 992px wide (lg breakpoint) -->
5846
<nav class="offcanvas offcanvas-start" id="navbarNav" tabindex="-1" aria-labelledby="navbarNavLabel">
5947

6048
<div class="offcanvas-header py-3">
6149
<h5 class="offcanvas-title" id="navbarNavLabel">Browse JeffStore</h5>
6250
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
6351
</div>
6452

65-
66-
<!-- Account button visible on screens < 768px wide (md breakpoint) -->
6753
<div class="offcanvas-header nav border-top px-0 py-3 mt-3 d-md-none">
6854
<a class="nav-link justify-content-center w-100" href="">
6955
<i class="ci-user fs-lg opacity-60 ms-n2 me-2"></i>
@@ -72,7 +58,6 @@
7258
</div>
7359
</nav>
7460

75-
<!-- Button group -->
7661
<partial name="_LoginPartial" />
7762

7863
</div>
@@ -83,11 +68,10 @@
8368
@RenderBody()
8469

8570

86-
<!-- Page footer -->
87-
<footer class="footer bg-dark pb-4" data-bs-theme="dark">
71+
<footer class="footer bg-dark pb-4" data-bs-theme="dark">
8872
<div class="container pb-md-3">
8973

90-
<!-- Features -->
74+
9175
<div class="border-bottom py-5">
9276
<div class="row row-cols-2 row-cols-md-4 g-4 gx-sm-5 py-sm-1 py-md-2 py-lg-3 mb-n2 mb-md-0">
9377
<div class="col mb-2 mb-md-0">
@@ -113,11 +97,11 @@
11397
</div>
11498
</div>
11599

116-
<!-- Subscription + Links -->
100+
117101
<div class="py-5">
118102
<div class="row py-sm-1 py-md-2 py-lg-3">
119103

120-
<!-- Subscription + Social buttons -->
104+
121105
<div class="col-lg-5 mb-4 mb-sm-5 mb-lg-0">
122106
<h6 class="mb-4">Join our newsletter, get discounts 🔥</h6>
123107
<form class="needs-validation d-flex gap-2 pb-sm-2 pb-lg-0 mb-4 mb-lg-5" novalidate>
@@ -140,7 +124,7 @@
140124
</div>
141125
</div>
142126

143-
<!-- Columns with links that are turned into accordion on screens < 500px wide (sm breakpoint) -->
127+
144128
<div class="col-lg-7">
145129
<div class="accordion ps-lg-4" id="footerLinks">
146130
<div class="row">
@@ -222,17 +206,16 @@
222206
</div>
223207
</div>
224208

225-
<!-- Copyright -->
209+
226210
<p class="fs-xs text-body text-center text-lg-start mb-0">
227211
&copy; All rights reserved. Made with <i class="ci-heart-filled align-middle"></i> by <span class="animate-underline"><a class="animate-target text-white text-decoration-none" href="/" target="_blank" rel="noreferrer">Jeferson Almeida</a></span>
228212
</p>
229213
</div>
230214

231-
<!-- Additional spacing to accommodate the sticky bottom bar -->
215+
232216
<div class="d-lg-none" style="height: 5rem"></div>
233217
</footer>
234218

235-
<!-- Back to top button -->
236219
<div class="floating-buttons position-fixed top-50 end-0 z-sticky me-3 me-xl-4 pb-4">
237220
<a class="btn-scroll-top btn btn-sm bg-body border-0 rounded-pill shadow animate-slide-end" href="#top">
238221
Top
@@ -245,12 +228,8 @@
245228
</div>
246229

247230

248-
<!-- Vendor scripts -->
249231
<script src="~/assets/vendor/swiper/swiper-bundle.min.js"></script>
250232
<script src="~/assets/vendor/choices.js/public/assets/scripts/choices.min.js"></script>
251-
252-
253-
<!-- Bootstrap + Theme scripts -->
254233
<script src="~/assets/js/theme.min.js"></script>
255234

256235
@RenderSection("Scripts", required: false)

src/web/JSE.WebApp.MVC/Views/Shared/_LoginPartial.cshtml

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
@if (AppUser.EstaAutenticado())
1414
{
15-
<!-- Account button visible on screens > 768px wide (md breakpoint) -->
1615
<a class="btn btn-icon btn-lg fs-lg btn-outline-secondary border-0 rounded-circle animate-shake d-none d-md-inline-flex" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-title="Olá @AppUser.ObterUserEmail()">
1716
<i class="ci-user-check animate-target"></i>
1817
<span class="visually-hidden">Olá @AppUser.ObterUserEmail()</span>
@@ -23,11 +22,7 @@
2322
<span class="visually-hidden">Sair</span>
2423
</a>
2524

26-
<!-- Cart button -->
27-
<button type="button" class="btn btn-icon btn-lg fs-xl btn-outline-secondary position-relative border-0 rounded-circle animate-scale" data-bs-toggle="offcanvas" data-bs-target="#shoppingCart" aria-controls="shoppingCart" aria-label="Shopping cart" data-bs-placement="bottom" data-bs-title="Carrinho">
28-
<span class="position-absolute top-0 start-100 badge fs-xs text-bg-primary rounded-pill mt-1 ms-n4 z-2" style="--cz-badge-padding-y: .25em; --cz-badge-padding-x: .42em">3</span>
29-
<i class="ci-shopping-bag animate-target me-1"></i>
30-
</button>
25+
<vc:carrinho />
3126
}
3227
else
3328
{
@@ -42,25 +37,3 @@
4237
</a>
4338
}
4439
</div>
45-
46-
47-
@* <ul class="navbar-nav">
48-
@if (AppUser.EstaAutenticado())
49-
{
50-
<li class="nav-item">
51-
<a class="nav-link text-dark" title="Manage">Olá @AppUser.ObterUserEmail()</a>
52-
</li>
53-
<li class="nav-item">
54-
<a class="nav-link text-dark" asp-controller="Identidade" asp-action="Logout">Sair</a>
55-
</li>
56-
}
57-
else
58-
{
59-
<li class="nav-item">
60-
<a class="nav-link text-dark" asp-controller="Identidade" asp-action="Registro">Crie sua conta</a>
61-
</li>
62-
<li class="nav-item">
63-
<a class="nav-link text-dark" asp-controller="Identidade" asp-action="Login">Entrar</a>
64-
</li>
65-
}
66-
</ul> *@

0 commit comments

Comments
 (0)