diff options
-rw-r--r-- | Views/Bundle/Show.cshtml | 99 | ||||
-rw-r--r-- | Views/Home/Index.cshtml | 4 | ||||
-rw-r--r-- | Views/Shared/_Layout.cshtml | 5 | ||||
-rw-r--r-- | wwwroot/css/styles.css | 2 |
4 files changed, 47 insertions, 63 deletions
diff --git a/Views/Bundle/Show.cshtml b/Views/Bundle/Show.cshtml index fe6ce88..2186a3f 100644 --- a/Views/Bundle/Show.cshtml +++ b/Views/Bundle/Show.cshtml @@ -1,62 +1,47 @@ @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> +<!DOCTYPE html> +<html lang="ru-RU"> + +<head> + <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css"> +</head> + +<body> + <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> - <div class="col-md"> - <h1 class="mb-4">@Model?.Name</h1> - <p class="projects-section">@Model?.Description</p> + <div class="carousel-caption d-none d-md-block"> + <h5>@Model?.Name</h5> + <p>@Model?.Description</p> </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> -</section>
\ No newline at end of file + <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script> + <script src="https://cdn.jsdelivr.net/npm/popper.js@1.12.9/dist/umd/popper.min.js"></script> + <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/js/bootstrap.min.js"></script> +</body> + +</html>
\ No newline at end of file diff --git a/Views/Home/Index.cshtml b/Views/Home/Index.cshtml index 95a5262..1d96040 100644 --- a/Views/Home/Index.cshtml +++ b/Views/Home/Index.cshtml @@ -27,8 +27,8 @@ <div class="container px-4 px-lg-5 d-flex h-100 align-items-center justify-content-center"> <div class="d-flex justify-content-center"> <div class="text-center"> - <img class="mx-auto my-0" height="140" src="assets/img/logo.svg"/> - <h2 class="text-white-50 mx-auto mt-2 mb-5">>Нижнее бельё ручной работы по индивидуальным меркам</h2> + <img class="mx-auto my-0" height="140" src="/assets/img/logo.svg"/> + <h2 class="text-white-50 mx-auto mt-2 mb-5">Нижнее бельё ручной работы по индивидуальным меркам</h2> <a class="btn btn-primary" href="#about">Узнать больше</a> </div> </div> diff --git a/Views/Shared/_Layout.cshtml b/Views/Shared/_Layout.cshtml index e685f8d..356a192 100644 --- a/Views/Shared/_Layout.cshtml +++ b/Views/Shared/_Layout.cshtml @@ -17,10 +17,9 @@ <footer class="footer bg-black small text-center text-white-50"> <div class="container px-4 px-lg-5">© My Darling underwear 2023</div> </footer> + <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script> + <script src="https://cdn.jsdelivr.net/npm/bs5-lightbox@1.8.3/dist/index.bundle.min.js"></script> <script src="/js/scripts.js"></script> - <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script> - <script src="https://cdn.jsdelivr.net/npm/popper.js@1.14.7/dist/umd/popper.min.js"></script> - <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/js/bootstrap.min.js"></script> </body> </html>
\ No newline at end of file diff --git a/wwwroot/css/styles.css b/wwwroot/css/styles.css index 860f557..7ecddc2 100644 --- a/wwwroot/css/styles.css +++ b/wwwroot/css/styles.css @@ -600,7 +600,7 @@ progress { color: #6c757d; } .blockquote-footer::before { - content: "— "; + content: "— "; } .img-fluid { |