0
0
MyDarling/Views/Bundle/Show.cshtml
2023-02-07 08:02:07 +03:00

62 lines
3.1 KiB
Plaintext

@model MyDarling.Models.UnderwearBundle;
@{
Layout = "_Layout";
}
<nav class="navbar navbar-expand-lg navbar-dark fixed-top bg-black" id="mainNav">
<div class="container px-4 px-lg-5">
<a class="navbar-brand" href="/"><img height="40" src="/assets/img/logo.svg"></a>
<button class="navbar-toggler navbar-toggler-right" type="button" data-bs-toggle="collapse"
data-bs-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false"
aria-label="Toggle navigation">
Menu
<i class="fas fa-bars"></i>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ms-auto">
<li class="nav-item"><a class="nav-link" href="/Home/Index#about">About</a></li>
<li class="nav-item"><a class="nav-link" href="/Home/Index#projects">Projects</a></li>
<li class="nav-item"><a class="nav-link" href="/Home/Index#signup">Contact</a></li>
</ul>
</div>
</div>
</nav>
<section class="projects-section bg-light">
<div class="container px-3 px-lg-4 mt-4">
<div class="row gx-4 gx-lg-5 justify-content-center ">
<div class="col-md">
<div id="carouselIndicators" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#carouselIndicators" data-slide-to="0" class="active"></li>
@for (int i = 1; i < @Model?.Figures.Count(); i++)
{
<li data-target="#carouselIndicators" data-slide-to="@i"></li>
}
</ol>
<div class="carousel-inner">
<div class="carousel-item active">
<img class="d-block w-100" src="@Model?.Figures[0].FilePath" alt="...">
</div>
@for (int i = 1; i < @Model?.Figures.Count(); i++)
{
<div class="carousel-item">
<img class="d-block w-100" src="@Model?.Figures[i].FilePath" alt="...">
</div>
}
</div>
<a class="carousel-control-prev" href="#carouselIndicators" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselIndicators" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
<div class="col-md">
<h1 class="mb-4">@Model?.Name</h1>
<p class="projects-section">@Model?.Description</p>
</div>
</div>
</div>
</section>