Skip to content

Instantly share code, notes, and snippets.

@dwaard
Last active October 19, 2021 08:11
Show Gist options
  • Save dwaard/106daaac82bfb35ef572afbe0ff013ac to your computer and use it in GitHub Desktop.
Save dwaard/106daaac82bfb35ef572afbe0ff013ac to your computer and use it in GitHub Desktop.
An html document used for some assignments based on a Bootstrap example
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
<meta name="generator" content="Hugo 0.88.1">
<title>Pricing example · Bootstrap v5.1</title>
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<meta name="theme-color" content="#7952b3">
<style>
.bd-placeholder-img {
font-size: 1.125rem;
text-anchor: middle;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
@media (min-width: 768px) {
.bd-placeholder-img-lg {
font-size: 3.5rem;
}
}
body {
background-image: linear-gradient(180deg, #eee, #fff 100px, #fff);
}
.container {
max-width: 960px;
}
.pricing-header {
max-width: 700px;
}
</style>
</head>
<body>
<!-- Definition of the checkmark symbol in the table -->
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
<symbol id="check" viewBox="0 0 16 16">
<title>Check</title>
<path
d="M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z" />
</symbol>
</svg>
<div class="container py-3">
<header>
<div class="d-flex flex-column flex-md-row align-items-center pb-3 mb-4 border-bottom">
<a href="/" class="d-flex align-items-center text-dark text-decoration-none">
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" class="me-2" viewBox="0 0 118 94"
role="img">
<title>Bootstrap</title>
<path fill-rule="evenodd" clip-rule="evenodd"
d="M24.509 0c-6.733 0-11.715 5.893-11.492 12.284.214 6.14-.064 14.092-2.066 20.577C8.943 39.365 5.547 43.485 0 44.014v5.972c5.547.529 8.943 4.649 10.951 11.153 2.002 6.485 2.28 14.437 2.066 20.577C12.794 88.106 17.776 94 24.51 94H93.5c6.733 0 11.714-5.893 11.491-12.284-.214-6.14.064-14.092 2.066-20.577 2.009-6.504 5.396-10.624 10.943-11.153v-5.972c-5.547-.529-8.934-4.649-10.943-11.153-2.002-6.484-2.28-14.437-2.066-20.577C105.214 5.894 100.233 0 93.5 0H24.508zM80 57.863C80 66.663 73.436 72 62.543 72H44a2 2 0 01-2-2V24a2 2 0 012-2h18.437c9.083 0 15.044 4.92 15.044 12.474 0 5.302-4.01 10.049-9.119 10.88v.277C75.317 46.394 80 51.21 80 57.863zM60.521 28.34H49.948v14.934h8.905c6.884 0 10.68-2.772 10.68-7.727 0-4.643-3.264-7.207-9.012-7.207zM49.948 49.2v16.458H60.91c7.167 0 10.964-2.876 10.964-8.281 0-5.406-3.903-8.178-11.425-8.178H49.948z"
fill="currentColor"></path>
</svg>
<span class="fs-4">Pricing example</span>
</a>
<nav class="d-inline-flex mt-2 mt-md-0 ms-md-auto">
<a role="navigation" class="me-3 py-2 text-dark text-decoration-none" href="#">Features</a>
<a role="navigation" class="me-3 py-2 text-dark text-decoration-none" href="#">Enterprise</a>
<a role="navigation" class="me-3 py-2 text-dark text-decoration-none" href="#">Support</a>
<a role="navigation" class="py-2 text-dark text-decoration-none" href="#">Pricing</a>
</nav>
</div>
<div id="pricing-box" class="pricing-header p-3 pb-md-4 mx-auto text-center">
<h1 class="display-4 fw-normal">Pricing</h1>
<p class="fs-5">Quickly build an effective pricing table for your potential customers with
this Bootstrap example. It’s built with default Bootstrap components and utilities with little
customization.</p>
</header>
<main>
<div class="row row-cols-1 row-cols-md-3 mb-3 text-center">
<div class="col">
<section id="section-1" class="card mb-4 rounded-3 shadow-sm">
<div class="card-header py-3">
<h4 class="my-0 fw-normal">Free</h4>
</div>
<div class="card-body">
<h1 class="card-title pricing-card-title">$0<small class="text-muted fw-light">/mo</small>
</h1>
<ul class="list-unstyled mt-3 mb-4">
<li data-description="amount-of-users">10 users included</li>
<li data-description="storage">2 GB of storage</li>
<li data-description="support">Email support</li>
<li data-description="help-center-access">Help center access</li>
</ul>
<button type="button" class="w-100 btn btn-lg btn-outline-primary">Sign up for free</button>
</div>
</section>
</div>
<div class="col">
<section id="section-2" class="card mb-4 rounded-3 shadow-sm">
<div class="card-header py-3">
<h4 class="my-0 fw-normal">Pro</h4>
</div>
<div class="card-body">
<h1 class="card-title pricing-card-title">$15<small class="text-muted fw-light">/mo</small>
</h1>
<ul class="list-unstyled mt-3 mb-4">
<li data-description="amount-of-users">20 users included</li>
<li data-description="storage">10 GB of storage</li>
<li data-description="support">Priority email support</li>
<li data-description="help-center-access">Help center access</li>
</ul>
<button type="button" class="w-100 btn btn-lg btn-primary">Get started</button>
</div>
</section>
</div>
<div class="col">
<section id="section-3" class="card mb-4 rounded-3 shadow-sm border-primary">
<div class="card-header py-3 text-white bg-primary border-primary">
<h4 class="my-0 fw-normal">Enterprise</h4>
</div>
<div class="card-body">
<h1 class="card-title pricing-card-title">$29<small class="text-muted fw-light">/mo</small>
</h1>
<ul class="list-unstyled mt-3 mb-4">
<li data-description="amount-of-users">30 users included</li>
<li data-description="storage">15 GB of storage</li>
<li data-description="support">Phone and email support</li>
<li data-description="help-center-access">Help center access</li>
</ul>
<button type="button" class="w-100 btn btn-lg btn-primary">Contact us</button>
</div>
</section>
</div>
</div>
<h2 class="display-6 text-center mb-4">Compare plans</h2>
<div class="table-responsive">
<table id="compare-table" class="table text-center">
<thead>
<tr>
<th style="width: 34%;"></th>
<th style="width: 22%;">Free</th>
<th style="width: 22%;">Pro</th>
<th style="width: 22%;">Enterprise</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row" class="text-start">Public</th>
<td><svg class="bi" width="24" height="24">
<use xlink:href="#check" />
</svg></td>
<td><svg class="bi" width="24" height="24">
<use xlink:href="#check" />
</svg></td>
<td><svg class="bi" width="24" height="24">
<use xlink:href="#check" />
</svg></td>
</tr>
<tr>
<th scope="row" class="text-start">Private</th>
<td></td>
<td><svg class="bi" width="24" height="24">
<use xlink:href="#check" />
</svg></td>
<td><svg class="bi" width="24" height="24">
<use xlink:href="#check" />
</svg></td>
</tr>
</tbody>
<tbody>
<tr>
<th scope="row" class="text-start">Permissions</th>
<td><svg class="bi" width="24" height="24">
<use xlink:href="#check" />
</svg></td>
<td><svg class="bi" width="24" height="24">
<use xlink:href="#check" />
</svg></td>
<td><svg class="bi" width="24" height="24">
<use xlink:href="#check" />
</svg></td>
</tr>
<tr>
<th scope="row" class="text-start">Sharing</th>
<td></td>
<td><svg class="bi" width="24" height="24">
<use xlink:href="#check" />
</svg></td>
<td><svg class="bi" width="24" height="24">
<use xlink:href="#check" />
</svg></td>
</tr>
<tr>
<th scope="row" class="text-start">Unlimited members</th>
<td></td>
<td><svg class="bi" width="24" height="24">
<use xlink:href="#check" />
</svg></td>
<td><svg class="bi" width="24" height="24">
<use xlink:href="#check" />
</svg></td>
</tr>
<tr>
<th scope="row" class="text-start">Extra security</th>
<td></td>
<td></td>
<td><svg class="bi" width="24" height="24">
<use xlink:href="#check" />
</svg></td>
</tr>
</tbody>
</table>
</div>
</main>
<footer class="pt-4 my-md-5 pt-md-5 border-top">
<div class="row">
<div class="col-12 col-md">
Bootstrap
<small class="d-block mb-3 text-muted">&copy; 2017–2021</small>
</div>
<div class="col-6 col-md">
<h5>Features</h5>
<ul class="list-unstyled text-small">
<li class="mb-1"><a class="link-secondary text-decoration-none" href="#">Cool stuff</a></li>
<li class="mb-1"><a class="link-secondary text-decoration-none" href="#">Random feature</a></li>
<li class="mb-1"><a class="link-secondary text-decoration-none" href="#">Team feature</a></li>
<li class="mb-1"><a class="link-secondary text-decoration-none" href="#">Stuff for
developers</a></li>
<li class="mb-1"><a class="link-secondary text-decoration-none" href="#">Another one</a></li>
<li class="mb-1"><a class="link-secondary text-decoration-none" href="#">Last time</a></li>
</ul>
</div>
<div class="col-6 col-md">
<h5>Resources</h5>
<ul class="list-unstyled text-small">
<li class="mb-1"><a class="link-secondary text-decoration-none" href="#">Resource</a></li>
<li class="mb-1"><a class="link-secondary text-decoration-none" href="#">Resource name</a></li>
<li class="mb-1"><a class="link-secondary text-decoration-none" href="#">Another resource</a>
</li>
<li class="mb-1"><a class="link-secondary text-decoration-none" href="#">Final resource</a></li>
</ul>
</div>
<div class="col-6 col-md">
<h5>About</h5>
<ul class="list-unstyled text-small">
<li class="mb-1"><a class="link-secondary text-decoration-none" href="#">Team</a></li>
<li class="mb-1"><a class="link-secondary text-decoration-none" href="#">Locations</a></li>
<li class="mb-1"><a class="link-secondary text-decoration-none" href="#">Privacy</a></li>
<li class="mb-1"><a class="link-secondary text-decoration-none" href="#">Terms</a></li>
</ul>
</div>
</div>
</footer>
</div>
<!-- Convenient link to the app.je script that should be in your project -->
<script src="./assets/js/app.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment