Add bundle cards
This commit is contained in:
parent
2a238d65e4
commit
910bb1d727
@ -1,12 +1,19 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using MyDarling.Models;
|
||||||
|
|
||||||
namespace MyDarling.Controllers
|
namespace MyDarling.Controllers
|
||||||
{
|
{
|
||||||
public class HomeController : Controller
|
public class HomeController : Controller
|
||||||
{
|
{
|
||||||
|
private DataContext context;
|
||||||
|
public HomeController(DataContext context)
|
||||||
|
{
|
||||||
|
this.context = context;
|
||||||
|
}
|
||||||
public IActionResult Index()
|
public IActionResult Index()
|
||||||
{
|
{
|
||||||
return View();
|
return View(context.UnderwearBundles.Include(bundle => bundle.Figures).Where(x => x.Price != 0));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,197 +1,192 @@
|
|||||||
|
@model IQueryable<MyDarling.Models.UnderwearBundle>;
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="ru-RU">
|
<html lang="ru-RU">
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
<head>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
|
<meta charset="utf-8" />
|
||||||
<meta name="description" content="" />
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
|
||||||
<meta name="author" content="" />
|
<meta name="description" content="" />
|
||||||
<title>Grayscale - Start Bootstrap Theme</title>
|
<meta name="author" content="" />
|
||||||
<link rel="icon" type="image/x-icon" href="assets/favicon.ico" />
|
<title>Grayscale - Start Bootstrap Theme</title>
|
||||||
<script src="https://use.fontawesome.com/releases/v6.1.0/js/all.js" crossorigin="anonymous"></script>
|
<link rel="icon" type="image/x-icon" href="assets/favicon.ico" />
|
||||||
<link href="/css/styles.css" rel="stylesheet" />
|
<script src="https://use.fontawesome.com/releases/v6.1.0/js/all.js" crossorigin="anonymous"></script>
|
||||||
</head>
|
<link href="/css/styles.css" rel="stylesheet" />
|
||||||
<body id="page-top">
|
</head>
|
||||||
<!-- Navigation-->
|
|
||||||
<nav class="navbar navbar-expand-lg navbar-dark fixed-top" id="mainNav">
|
<body id="page-top">
|
||||||
<div class="container px-4 px-lg-5">
|
<!-- Navigation-->
|
||||||
<a class="navbar-brand" href="#page-top"><img height="40" src="assets/img/logo.svg"></a>
|
<nav class="navbar navbar-expand-lg navbar-dark fixed-top" id="mainNav">
|
||||||
<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">
|
<div class="container px-4 px-lg-5">
|
||||||
Menu
|
<a class="navbar-brand" href="#page-top"><img height="40" src="assets/img/logo.svg"></a>
|
||||||
<i class="fas fa-bars"></i>
|
<button class="navbar-toggler navbar-toggler-right" type="button" data-bs-toggle="collapse"
|
||||||
</button>
|
data-bs-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false"
|
||||||
<div class="collapse navbar-collapse" id="navbarResponsive">
|
aria-label="Toggle navigation">
|
||||||
<ul class="navbar-nav ms-auto">
|
Menu
|
||||||
<li class="nav-item"><a class="nav-link" href="#about">About</a></li>
|
<i class="fas fa-bars"></i>
|
||||||
<li class="nav-item"><a class="nav-link" href="#projects">Projects</a></li>
|
</button>
|
||||||
<li class="nav-item"><a class="nav-link" href="#signup">Contact</a></li>
|
<div class="collapse navbar-collapse" id="navbarResponsive">
|
||||||
</ul>
|
<ul class="navbar-nav ms-auto">
|
||||||
|
<li class="nav-item"><a class="nav-link" href="#about">About</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link" href="#projects">Projects</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link" href="#signup">Contact</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
<!-- Masthead-->
|
||||||
|
<header class="masthead">
|
||||||
|
<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">
|
||||||
|
<h1 class="mx-auto my-0 text-uppercase">Grayscale</h1>
|
||||||
|
<h2 class="text-white-50 mx-auto mt-2 mb-5">A free, responsive, one page Bootstrap theme created by
|
||||||
|
Start Bootstrap.</h2>
|
||||||
|
<a class="btn btn-primary" href="#about">Get Started</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</div>
|
||||||
<!-- Masthead-->
|
</header>
|
||||||
<header class="masthead">
|
<!-- About-->
|
||||||
<div class="container px-4 px-lg-5 d-flex h-100 align-items-center justify-content-center">
|
<section class="about-section text-center" id="about">
|
||||||
<div class="d-flex justify-content-center">
|
<div class="container px-4 px-lg-5">
|
||||||
<div class="text-center">
|
<div class="row gx-4 gx-lg-5 justify-content-center">
|
||||||
<h1 class="mx-auto my-0 text-uppercase">Grayscale</h1>
|
<div class="col-lg-8">
|
||||||
<h2 class="text-white-50 mx-auto mt-2 mb-5">A free, responsive, one page Bootstrap theme created by Start Bootstrap.</h2>
|
<h2 class="text-white mb-4">Built with Bootstrap 5</h2>
|
||||||
<a class="btn btn-primary" href="#about">Get Started</a>
|
<p class="text-white-50">
|
||||||
</div>
|
Grayscale is a free Bootstrap theme created by Start Bootstrap. It can be yours right now,
|
||||||
|
simply download the template on
|
||||||
|
<a href="https://startbootstrap.com/theme/grayscale/">the preview page.</a>
|
||||||
|
The theme is open source, and you can use it for any purpose, personal or commercial.
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
<img class="img-fluid" src="assets/img/ipad.png" alt="..." />
|
||||||
<!-- About-->
|
</div>
|
||||||
<section class="about-section text-center" id="about">
|
</section>
|
||||||
<div class="container px-4 px-lg-5">
|
<!-- Projects-->
|
||||||
<div class="row gx-4 gx-lg-5 justify-content-center">
|
<section class="projects-section bg-light" id="projects">
|
||||||
<div class="col-lg-8">
|
<div class="container px-3 px-lg-4 mt-4">
|
||||||
<h2 class="text-white mb-4">Built with Bootstrap 5</h2>
|
<div class="row gx-4 gx-lg-5 row-cols-2 row-cols-md-3 row-cols-xl-4 justify-content-center">
|
||||||
<p class="text-white-50">
|
@foreach (var bundle in @Model)
|
||||||
Grayscale is a free Bootstrap theme created by Start Bootstrap. It can be yours right now, simply download the template on
|
{
|
||||||
<a href="https://startbootstrap.com/theme/grayscale/">the preview page.</a>
|
<div class="col mb-5">
|
||||||
The theme is open source, and you can use it for any purpose, personal or commercial.
|
<div class="card h-100">
|
||||||
</p>
|
<img class="card-img-top" src="@bundle.Figures.FirstOrDefault().FilePath" alt="..." />
|
||||||
</div>
|
<div class="card-body p-4">
|
||||||
</div>
|
<div class="text-center">
|
||||||
<img class="img-fluid" src="assets/img/ipad.png" alt="..." />
|
<h5 class="fw-bolder">@bundle.Name</h5>
|
||||||
</div>
|
@bundle.Price.ToString("c0")
|
||||||
</section>
|
|
||||||
<!-- Projects-->
|
|
||||||
<section class="projects-section bg-light" id="projects">
|
|
||||||
<div class="container px-4 px-lg-5">
|
|
||||||
<!-- Featured Project Row-->
|
|
||||||
<div class="row gx-0 mb-4 mb-lg-5 align-items-center">
|
|
||||||
<div class="col-xl-8 col-lg-7"><img class="img-fluid mb-3 mb-lg-0" src="assets/img/bg-masthead.jpg" alt="..." /></div>
|
|
||||||
<div class="col-xl-4 col-lg-5">
|
|
||||||
<div class="featured-text text-center text-lg-left">
|
|
||||||
<h4>Shoreline</h4>
|
|
||||||
<p class="text-black-50 mb-0">Grayscale is open source and MIT licensed. This means you can use it for any project - even commercial projects! Download it, customize it, and publish your website!</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- Project One Row-->
|
|
||||||
<div class="row gx-0 mb-5 mb-lg-0 justify-content-center">
|
|
||||||
<div class="col-lg-6"><img class="img-fluid" src="assets/img/demo-image-01.jpg" alt="..." /></div>
|
|
||||||
<div class="col-lg-6">
|
|
||||||
<div class="bg-black text-center h-100 project">
|
|
||||||
<div class="d-flex h-100">
|
|
||||||
<div class="project-text w-100 my-auto text-center text-lg-left">
|
|
||||||
<h4 class="text-white">Misty</h4>
|
|
||||||
<p class="mb-0 text-white-50">An example of where you can put an image of a project, or anything else, along with a description.</p>
|
|
||||||
<hr class="d-none d-lg-block mb-0 ms-0" />
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
}
|
||||||
<!-- Project Two Row-->
|
</div>
|
||||||
<div class="row gx-0 justify-content-center">
|
</div>
|
||||||
<div class="col-lg-6"><img class="img-fluid" src="assets/img/demo-image-02.jpg" alt="..." /></div>
|
</section>
|
||||||
<div class="col-lg-6 order-lg-first">
|
<!-- Signup-->
|
||||||
<div class="bg-black text-center h-100 project">
|
<section class="signup-section" id="signup">
|
||||||
<div class="d-flex h-100">
|
<div class="container px-4 px-lg-5">
|
||||||
<div class="project-text w-100 my-auto text-center text-lg-right">
|
<div class="row gx-4 gx-lg-5">
|
||||||
<h4 class="text-white">Mountains</h4>
|
<div class="col-md-10 col-lg-8 mx-auto text-center">
|
||||||
<p class="mb-0 text-white-50">Another example of a project with its respective description. These sections work well responsively as well, try this theme on a small screen!</p>
|
<i class="far fa-paper-plane fa-2x mb-2 text-white"></i>
|
||||||
<hr class="d-none d-lg-block mb-0 me-0" />
|
<h2 class="text-white mb-5">Subscribe to receive updates!</h2>
|
||||||
</div>
|
<!-- * * * * * * * * * * * * * * *-->
|
||||||
|
<!-- * * SB Forms Contact Form * *-->
|
||||||
|
<!-- * * * * * * * * * * * * * * *-->
|
||||||
|
<!-- This form is pre-integrated with SB Forms.-->
|
||||||
|
<!-- To make this form functional, sign up at-->
|
||||||
|
<!-- https://startbootstrap.com/solution/contact-forms-->
|
||||||
|
<!-- to get an API token!-->
|
||||||
|
<form class="form-signup" id="contactForm" data-sb-form-api-token="API_TOKEN">
|
||||||
|
<!-- Email address input-->
|
||||||
|
<div class="row input-group-newsletter">
|
||||||
|
<div class="col"><input class="form-control" id="emailAddress" type="email"
|
||||||
|
placeholder="Enter email address..." aria-label="Enter email address..."
|
||||||
|
data-sb-validations="required,email" /></div>
|
||||||
|
<div class="col-auto"><button class="btn btn-primary disabled" id="submitButton"
|
||||||
|
type="submit">Notify Me!</button></div>
|
||||||
|
</div>
|
||||||
|
<div class="invalid-feedback mt-2" data-sb-feedback="emailAddress:required">An email is
|
||||||
|
required.</div>
|
||||||
|
<div class="invalid-feedback mt-2" data-sb-feedback="emailAddress:email">Email is not valid.
|
||||||
|
</div>
|
||||||
|
<!-- Submit success message-->
|
||||||
|
<!---->
|
||||||
|
<!-- This is what your users will see when the form-->
|
||||||
|
<!-- has successfully submitted-->
|
||||||
|
<div class="d-none" id="submitSuccessMessage">
|
||||||
|
<div class="text-center mb-3 mt-2 text-white">
|
||||||
|
<div class="fw-bolder">Form submission successful!</div>
|
||||||
|
To activate this form, sign up at
|
||||||
|
<br />
|
||||||
|
<a
|
||||||
|
href="https://startbootstrap.com/solution/contact-forms">https://startbootstrap.com/solution/contact-forms</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- Submit error message-->
|
||||||
|
<!---->
|
||||||
|
<!-- This is what your users will see when there is-->
|
||||||
|
<!-- an error submitting the form-->
|
||||||
|
<div class="d-none" id="submitErrorMessage">
|
||||||
|
<div class="text-center text-danger mb-3 mt-2">Error sending message!</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<!-- Contact-->
|
||||||
|
<section class="contact-section bg-black">
|
||||||
|
<div class="container px-4 px-lg-5">
|
||||||
|
<div class="row gx-4 gx-lg-5">
|
||||||
|
<div class="col-md-4 mb-3 mb-md-0">
|
||||||
|
<div class="card py-4 h-100">
|
||||||
|
<div class="card-body text-center">
|
||||||
|
<i class="fas fa-map-marked-alt text-primary mb-2"></i>
|
||||||
|
<h4 class="text-uppercase m-0">Address</h4>
|
||||||
|
<hr class="my-4 mx-auto" />
|
||||||
|
<div class="small text-black-50">4923 Market Street, Orlando FL</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 mb-3 mb-md-0">
|
||||||
|
<div class="card py-4 h-100">
|
||||||
|
<div class="card-body text-center">
|
||||||
|
<i class="fas fa-envelope text-primary mb-2"></i>
|
||||||
|
<h4 class="text-uppercase m-0">Email</h4>
|
||||||
|
<hr class="my-4 mx-auto" />
|
||||||
|
<div class="small text-black-50"><a href="#!">hello@yourdomain.com</a></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 mb-3 mb-md-0">
|
||||||
|
<div class="card py-4 h-100">
|
||||||
|
<div class="card-body text-center">
|
||||||
|
<i class="fas fa-mobile-alt text-primary mb-2"></i>
|
||||||
|
<h4 class="text-uppercase m-0">Phone</h4>
|
||||||
|
<hr class="my-4 mx-auto" />
|
||||||
|
<div class="small text-black-50">+1 (555) 902-8832</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
<div class="social d-flex justify-content-center">
|
||||||
<!-- Signup-->
|
<a class="mx-2" href="#!"><i class="fab fa-twitter"></i></a>
|
||||||
<section class="signup-section" id="signup">
|
<a class="mx-2" href="#!"><i class="fab fa-facebook-f"></i></a>
|
||||||
<div class="container px-4 px-lg-5">
|
<a class="mx-2" href="#!"><i class="fab fa-github"></i></a>
|
||||||
<div class="row gx-4 gx-lg-5">
|
|
||||||
<div class="col-md-10 col-lg-8 mx-auto text-center">
|
|
||||||
<i class="far fa-paper-plane fa-2x mb-2 text-white"></i>
|
|
||||||
<h2 class="text-white mb-5">Subscribe to receive updates!</h2>
|
|
||||||
<!-- * * * * * * * * * * * * * * *-->
|
|
||||||
<!-- * * SB Forms Contact Form * *-->
|
|
||||||
<!-- * * * * * * * * * * * * * * *-->
|
|
||||||
<!-- This form is pre-integrated with SB Forms.-->
|
|
||||||
<!-- To make this form functional, sign up at-->
|
|
||||||
<!-- https://startbootstrap.com/solution/contact-forms-->
|
|
||||||
<!-- to get an API token!-->
|
|
||||||
<form class="form-signup" id="contactForm" data-sb-form-api-token="API_TOKEN">
|
|
||||||
<!-- Email address input-->
|
|
||||||
<div class="row input-group-newsletter">
|
|
||||||
<div class="col"><input class="form-control" id="emailAddress" type="email" placeholder="Enter email address..." aria-label="Enter email address..." data-sb-validations="required,email" /></div>
|
|
||||||
<div class="col-auto"><button class="btn btn-primary disabled" id="submitButton" type="submit">Notify Me!</button></div>
|
|
||||||
</div>
|
|
||||||
<div class="invalid-feedback mt-2" data-sb-feedback="emailAddress:required">An email is required.</div>
|
|
||||||
<div class="invalid-feedback mt-2" data-sb-feedback="emailAddress:email">Email is not valid.</div>
|
|
||||||
<!-- Submit success message-->
|
|
||||||
<!---->
|
|
||||||
<!-- This is what your users will see when the form-->
|
|
||||||
<!-- has successfully submitted-->
|
|
||||||
<div class="d-none" id="submitSuccessMessage">
|
|
||||||
<div class="text-center mb-3 mt-2 text-white">
|
|
||||||
<div class="fw-bolder">Form submission successful!</div>
|
|
||||||
To activate this form, sign up at
|
|
||||||
<br />
|
|
||||||
<a href="https://startbootstrap.com/solution/contact-forms">https://startbootstrap.com/solution/contact-forms</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- Submit error message-->
|
|
||||||
<!---->
|
|
||||||
<!-- This is what your users will see when there is-->
|
|
||||||
<!-- an error submitting the form-->
|
|
||||||
<div class="d-none" id="submitErrorMessage"><div class="text-center text-danger mb-3 mt-2">Error sending message!</div></div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</div>
|
||||||
<!-- Contact-->
|
</section>
|
||||||
<section class="contact-section bg-black">
|
<!-- Footer-->
|
||||||
<div class="container px-4 px-lg-5">
|
<footer class="footer bg-black small text-center text-white-50">
|
||||||
<div class="row gx-4 gx-lg-5">
|
<div class="container px-4 px-lg-5">Copyright © Your Website 2022</div>
|
||||||
<div class="col-md-4 mb-3 mb-md-0">
|
</footer>
|
||||||
<div class="card py-4 h-100">
|
<!-- Bootstrap core JS-->
|
||||||
<div class="card-body text-center">
|
<script src="/lib/bootstrap/js/bootstrap.bundle.min.js"></script>
|
||||||
<i class="fas fa-map-marked-alt text-primary mb-2"></i>
|
<!-- Core theme JS-->
|
||||||
<h4 class="text-uppercase m-0">Address</h4>
|
<script src="/js/scripts.js"></script>
|
||||||
<hr class="my-4 mx-auto" />
|
</body>
|
||||||
<div class="small text-black-50">4923 Market Street, Orlando FL</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-4 mb-3 mb-md-0">
|
|
||||||
<div class="card py-4 h-100">
|
|
||||||
<div class="card-body text-center">
|
|
||||||
<i class="fas fa-envelope text-primary mb-2"></i>
|
|
||||||
<h4 class="text-uppercase m-0">Email</h4>
|
|
||||||
<hr class="my-4 mx-auto" />
|
|
||||||
<div class="small text-black-50"><a href="#!">hello@yourdomain.com</a></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-4 mb-3 mb-md-0">
|
|
||||||
<div class="card py-4 h-100">
|
|
||||||
<div class="card-body text-center">
|
|
||||||
<i class="fas fa-mobile-alt text-primary mb-2"></i>
|
|
||||||
<h4 class="text-uppercase m-0">Phone</h4>
|
|
||||||
<hr class="my-4 mx-auto" />
|
|
||||||
<div class="small text-black-50">+1 (555) 902-8832</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="social d-flex justify-content-center">
|
|
||||||
<a class="mx-2" href="#!"><i class="fab fa-twitter"></i></a>
|
|
||||||
<a class="mx-2" href="#!"><i class="fab fa-facebook-f"></i></a>
|
|
||||||
<a class="mx-2" href="#!"><i class="fab fa-github"></i></a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
<!-- Footer-->
|
|
||||||
<footer class="footer bg-black small text-center text-white-50"><div class="container px-4 px-lg-5">Copyright © Your Website 2022</div></footer>
|
|
||||||
<!-- Bootstrap core JS-->
|
|
||||||
<script src="/lib/bootstrap/js/bootstrap.bundle.min.js"></script>
|
|
||||||
<!-- Core theme JS-->
|
|
||||||
<script src="/js/scripts.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
</html>
|
Loading…
Reference in New Issue
Block a user