rework list courses page to be flatten

This commit is contained in:
Aleksandr Trushkin
2024-04-19 00:13:03 +03:00
parent 035e9c848f
commit 3a9e01a683
34 changed files with 1803 additions and 474 deletions

View File

@ -1,142 +1,277 @@
<!doctype html>
<html lang="en">
<head>
<title>Test page</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN"
crossorigin="anonymous"
/>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
crossorigin="anonymous"
></script>
<link rel="stylesheet" href="/assets/style.css" />
</head>
<head>
<title>Test page</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous" />
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
crossorigin="anonymous"></script>
<link rel="stylesheet" href="/assets/style.css" />
</head>
<body data-bs-theme="dark" style="margin: 0">
<header>
<nav class="navbar navbar-expand-lg bg-body-tertiary w-auto">
<div class="container-fluid">
<a class="navbar-brand" href="/index.html">Kurious</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="navbar-collapse collapse" id="navbarSupportedContent">
<ul class="navbar-nav mb-lg-0 mb-2 me-auto">
<li class="nav-item">
<a class="nav-link" aria-current="page" href="/index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="/courses.html">Courses</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/core.html">About us</a>
</li>
</ul>
</div>
</div>
</nav>
</header>
<div class="container">
<section class="row header">
<nav class="mt-4" style="--bs-breadcrumb-divider: '/'" aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="#">Main</a></li>
<li class="breadcrumb-item" aria-current="page">
<a href="#">Languages</a>
</li>
<li class="breadcrumb-item active" aria-current="page">Japanese</li>
</ol>
</nav>
</section>
<section class="row filters">
<div class="col-8">
<div class="input-group">
<span class="input-group-text">Filter categories</span>
<select class="form-select" id="inputGroupSelect04" aria-label="Example select with button addon">
<option selected>All</option>
<option value="1">Programming</option>
<option value="2">Design</option>
<option value="3">Business</option>
</select>
<select class="form-select" id="inputGroupSelect04" aria-label="Example select with button addon">
<option selected>All</option>
<option value="1">Web development</option>
<option value="2">Backend</option>
<option value="3">Frontend</option>
</select>
<button class="btn btn-outline-secondary" type="button">
> Go
<body data-bs-theme="dark">
<header>
<nav class="navbar navbar-expand-lg bg-body-tertiary w-auto">
<div class="container-fluid">
<a class="navbar-brand" href="/index.html">Kurious</a>
<button
class="navbar-toggler"
type="button"
data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="navbar-collapse collapse" id="navbarSupportedContent">
<ul class="navbar-nav mb-lg-0 mb-2 me-auto">
<li class="nav-item">
<a class="nav-link" aria-current="page" href="/index.html"
>Home</a
>
</li>
<li class="nav-item">
<a
class="nav-link active"
aria-current="page"
href="/courses.html"
>Courses</a
>
</li>
<li class="nav-item">
<a class="nav-link" href="/core.html">About us</a>
</li>
</ul>
</div>
</div>
</div>
</section>
</nav>
</header>
<section class="row first-class-group">
<h1 class="title">Languages</h1>
<p>A languages category provides all courses to help learn language</p>
<div class="container">
<section class="row header">
<nav
class="mt-4"
style="--bs-breadcrumb-divider: &quot;>&quot;"
aria-label="breadcrumb"
>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="#">Main</a></li>
<li class="breadcrumb-item" aria-current="page">
<a href="#">Languages</a>
</li>
<li class="breadcrumb-item active" aria-current="page">Japanese</li>
</ol>
</nav>
</section>
<section class="row filters">
<div class="col-8">
<div class="input-group">
<span class="input-group-text">Filter categories</span>
<select
class="form-select"
id="inputGroupSelect04"
aria-label="Example select with button addon"
>
<option selected>All</option>
<option value="1">Programming</option>
<option value="2">Design</option>
<option value="3">Business</option>
</select>
<select
class="form-select"
id="inputGroupSelect04"
aria-label="Example select with button addon"
>
<option selected>All</option>
<option value="1">Web development</option>
<option value="2">Backend</option>
<option value="3">Frontend</option>
</select>
<button class="btn btn-outline-secondary" type="button">
> Go
</button>
</div>
</div>
</section>
<div class="filter-content d-flex mb-3">
<div class="p-2">
<select class="form-select" id="inputGroupSelect04" aria-label="Example select with button addon">
<!-- School list -->
<div class="p-2 col-auto">
<select
class="form-select"
id="inputGroupSelect04"
aria-label="Example select with button addon"
>
<option selected>Pick a school</option>
<option value="1">First school in the row</option>
<option value="2">
Second but not the shortest named school
</option>
<option value="2">Second but not the shortest named school</option>
<option value="3">Third small</option>
</select>
</div>
<!-- Sort option -->
<div class="col-auto">
<div class="input-group flex-nowrap p-2">
<select
class="form-select"
id="inputGroupSelect04"
aria-label="Example select with button addon"
>
<option selected>Sort by</option>
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
<option value="4">Threerrrrrrrrrrrrrrrrrr</option>
</select>
<div class="p-2">
<select class="form-select" id="inputGroupSelect04" aria-label="Example select with button addon">
<option selected>Sort by</option>
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
<option value="4">Threerrrrrrrrrrrrrrrrrr</option>
</select>
<input
type="radio"
class="btn-check p-2"
name="options-base"
id="option6"
autocomplete="off"
checked
/>
<label class="btn" for="option6">
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
fill="currentColor"
class="bi bi-sort-down"
viewBox="0 0 16 16"
>
<path
d="M3.5 2.5a.5.5 0 0 0-1 0v8.793l-1.146-1.147a.5.5 0 0 0-.708.708l2 1.999.007.007a.497.497 0 0 0 .7-.006l2-2a.5.5 0 0 0-.707-.708L3.5 11.293zm3.5 1a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5M7.5 6a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1zm0 3a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1zm0 3a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1z"
/>
</svg>
</label>
<input
type="radio"
class="btn-check p-2"
name="options-base"
id="option5"
autocomplete="off"
checked
/>
<label class="btn" for="option5">
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
fill="currentColor"
class="bi bi-sort-up"
viewBox="0 0 16 16"
>
<path
d="M3.5 12.5a.5.5 0 0 1-1 0V3.707L1.354 4.854a.5.5 0 1 1-.708-.708l2-1.999.007-.007a.5.5 0 0 1 .7.006l2 2a.5.5 0 1 1-.707.708L3.5 3.707zm3.5-9a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5M7.5 6a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1zm0 3a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1zm0 3a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1z"
/>
</svg>
</label>
</div>
</div>
<div class="ms-auto p-2">
<!-- Spacer -->
<div class="col-4"></div>
<!-- Promocodes button -->
<div class="col-auto ms-auto p-2">
<div class="btn btn-primary">Promocodes</div>
</div>
</div>
<div class="second-class-group block">
<h2 class="title">Japanese</h2>
<p>Looking for a course to learn japanese language?</p>
<div class="row g-4">
<div class="col-12 col-md-6 col-lg-3">
<div class="card">
<img src="https://placehold.co/128x128" class="card-img-top" alt="..." />
<div class="card-body">
<h5 class="card-title">Card title with a long naming</h5>
<div class="input-group d-flex">
<a href="#" class="btn text btn-outline-primary flex-grow-1">Open ></a>
<span class="input-group-text justify-content-end flex-fill">500$</span>
</div>
<div class="row g-4">
<div class="col-12 col-md-6 col-lg-3">
<div class="card">
<img
src="https://placehold.co/128x128"
class="card-img-top"
alt="..."
/>
<div class="card-body">
<h5 class="card-title">Card title with a long naming</h5>
<div class="input-group d-flex">
<a href="#" class="btn text btn-outline-primary flex-grow-1"
>Open ></a
>
<span class="input-group-text justify-content-end flex-fill"
>500$</span
>
</div>
</div>
</div>
</div>
</div>
</div>
<hr />
</section>
<!-- Maybe add spacing in a better way? -->
<p class="p-2"></p>
<footer class="text-center text-lg-start bg-body-tertiary text-muted">
<section class="p-2">
<div class="container text-center text-md-start mt-4">
<div class="row mt-3">
<div class="col-md-3 col-lg-4 col-xl-3 mx-auto mb-4">
<h6 class="text-uppercase fw-bold mb-4">
<i class="fas fa-gem me-3"></i>Courses
</h6>
<p>
Welcome to Courses, your gateway to learning! Explore a diverse
range of courses and advance your skills with us. Join our
community and transform your life through education.
</p>
</div>
<footer class="row">
<div class="text-end">
<p>(c) All right reserved</p>
<div class="col-md-3 col-lg-2 col-xl-2 mx-auto mb-4">
<h6 class="text-uppercase fw-bold mb-4">Useful links</h6>
<p>
<a href="#!" class="text-reset">Pricing</a>
</p>
<p>
<a href="#!" class="text-reset">Settings</a>
</p>
<p>
<a href="#!" class="text-reset">Orders</a>
</p>
<p>
<a href="#!" class="text-reset">Help</a>
</p>
</div>
<div class="col-md-4 col-lg-3 col-xl-3 mx-auto mb-md-0 mb-4">
<h6 class="text-uppercase fw-bold mb-4">Contact</h6>
<p><i class="fas fa-home me-3"></i> New York, NY 10012, US</p>
<p>
<i class="fas fa-envelope me-3"></i>
info@example.com
</p>
<p><i class="fas fa-phone me-3"></i> + 01 234 567 88</p>
<p><i class="fas fa-print me-3"></i> + 01 234 567 89</p>
</div>
</div>
</div>
</section>
<div
class="text-center p-4"
style="background-color: rgba(0, 0, 0, 0.05)"
>
© 2024 Copyright:
<a class="text-reset fw-bold" href="https://mdbootstrap.com/"
>kursov.net</a
>
</div>
</footer>
</div>
</body>
</body>
</html>