Skip to content

Instantly share code, notes, and snippets.

@loloof64
Created December 11, 2020 16:54
Show Gist options
  • Save loloof64/c0e2c5988fc21b0fd7a657c4a78e8b21 to your computer and use it in GitHub Desktop.
Save loloof64/c0e2c5988fc21b0fd7a657c4a78e8b21 to your computer and use it in GitHub Desktop.
Css course - Udemy - Exercise 3
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>uHost</title>
<link rel="shortcut icon" href="favicon.png">
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet">
<link rel="stylesheet" href="../shared.css">
<link rel="stylesheet" href="packages.css">
</head>
<body>
<div class="background"></div>
<header class="main-header">
<div>
<a href="../index.html" class="main-header__brand">
uHost
</a>
</div>
<nav class="main-nav">
<ul class="main-nav__items">
<li class="main-nav__item">
<a href="index.html">Packages</a>
</li>
<li class="main-nav__item">
<a href="../customers/index.html">Customers</a>
</li>
<li class="main-nav__item main-nav__item--cta">
<a href="../start-hosting/index.html">Start Hosting</a>
</li>
</ul>
</nav>
</header>
<main>
<section class="package" id="plus">
<a href="#">
<h1 class="package__title">Our PLUS Plan</h1>
<h2 class="package__badge">RECOMMENDED</h2>
<h2 class="package__subtitle">The most popular choice of our customers.</h2>
<p class="package__info">Benefit from increased storage and faster support to ensure that your mission-critical data and applications
are always available!</p>
</a>
</section>
<section class="package" id="free">
<a href="#">
<h1 class="package__title">Our FREE Plan</h1>
<h2 class="package__subtitle">An extremely solid start into our hosting world.</h2>
<p class="package__info">Get started immediately at zero cost!</p>
</a>
</section>
<div class="clearfix"></div>
<section class="package" id="premium">
<a href="#">
<h1 class="package__title">Our PREMIUM Plan</h1>
<h2 class="package__subtitle">All your enterprise needs. Instant support, guaranteed uptime. </h2>
<p class="package__info">The best solution for small to large enterprises. Because hosting shouldn't be in the way!</p>
</a>
</section>
</main>
<footer class="main-footer">
<nav>
<ul class="main-footer__links">
<li class="main-footer__link">
<a href="#">Support</a>
</li>
<li class="main-footer__link">
<a href="#">Terms of Use</a>
</li>
</ul>
</nav>
</footer>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>uHost</title>
<link rel="shortcut icon" href="favicon.png">
<link href="https://fonts.googleapis.com/css?family=Anton" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet">
<link rel="stylesheet" href="shared.css">
<link rel="stylesheet" href="main.css">
</head>
<body>
<header class="main-header">
<div>
<a href="index.html" class="main-header__brand">
uHost
</a>
</div>
<nav class="main-nav">
<ul class="main-nav__items">
<li class="main-nav__item">
<a href="packages/index.html">Packages</a>
</li>
<li class="main-nav__item">
<a href="customers/index.html">Customers</a>
</li>
<li class="main-nav__item main-nav__item--cta">
<a href="start-hosting/index.html">Start Hosting</a>
</li>
</ul>
</nav>
</header>
<main>
<section id="product-overview">
<h1>Get the freedom you deserve.</h1>
</section>
<section id="plans">
<h1 class="section-title">Choose Your Plan</h1>
<div class="plan__list">
<article class="plan">
<h1 class="plan__title">FREE</h1>
<h2 class="plan__price">$0/month</h2>
<h3>For hobby projects or small teams.</h3>
<ul class="plan__features">
<li class="plan__feature">1 Workspace</li>
<li class="plan__feature">Unlimited Traffic</li>
<li class="plan__feature">10GB Storage</li>
<li class="plan__feature">Basic Support</li>
</ul>
<div>
<button class="button">CHOOSE PLAN</button>
</div>
</article>
<article class="plan plan--highlighted">
<h1 class="plan__annotation">RECOMMENDED</h1>
<h1 class="plan__title">PLUS</h1>
<h2 class="plan__price">$29/month</h2>
<h3>For ambitious projects.</h3>
<ul class="plan__features">
<li class="plan__feature">5 Workspaces</li>
<li class="plan__feature">Unlimited Traffic</li>
<li class="plan__feature">100GB Storage</li>
<li class="plan__feature">Plus Support</li>
</ul>
<div>
<button class="button">CHOOSE PLAN</button>
</div>
</article>
<article class="plan">
<h1 class="plan__title">PREMIUM</h1>
<h2 class="plan__price">$99/month</h2>
<h3>Your enterprise solution.</h3>
<ul class="plan__features">
<li class="plan__feature">10 Workspaces</li>
<li class="plan__feature">Unlimited Traffic</li>
<li class="plan__feature">Unlimited Storage</li>
<li class="plan__feature">Priority Support</li>
</ul>
<div>
<button class="button">CHOOSE PLAN</button>
</div>
</article>
</div>
</section>
<section id="key-features">
<h1 class="section-title">Many Good Reasons to Stick Around</h1>
<ul class="key-feature__list">
<li class="key-feature">
<div class="key-feature__image">
</div>
<p class="key-feature__description">3,857,000 Trusting Customers</p>
</li>
<li class="key-feature">
<div class="key-feature__image">
</div>
<p class="key-feature__description">99.999% Uptime Guarantee</p>
</li>
<li class="key-feature">
<div class="key-feature__image">
</div>
<p class="key-feature__description">Lightning Fast CDN</p>
</li>
</ul>
</section>
</main>
<footer class="main-footer">
<nav>
<ul class="main-footer__links">
<li class="main-footer__link">
<a href="#">Support</a>
</li>
<li class="main-footer__link">
<a href="#">Terms of Use</a>
</li>
</ul>
</nav>
</footer>
</body>
</html>
#product-overview {
position: relative;
background: url("freedom.jpg");
width: 100%;
height: 528px;
padding: 10px;
margin-top: 30px;
}
#product-overview h1 {
position: absolute;
bottom: 5%;
left: 3%;
}
.section-title {
color: #2ddf5c;
text-align: center;
}
#product-overview h1 {
color: white;
font-family: 'Anton', sans-serif;
}
.plan__list {
width: 80%;
margin: auto;
text-align: center;
}
.plan {
background: #d5ffdc;
text-align: center;
padding: 16px;
margin: 8px;
display: inline-block;
width: 30%;
vertical-align: middle;
}
.plan--highlighted {
background: #19b84c;
color: white;
box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.5);
}
.plan__annotation {
background: white;
color: #19b84c;
padding: 8px;
box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.5);
border-radius: 8px;
}
.plan__title {
color: #0e4f1f;
}
.plan__price {
color: #858585;
}
.plan--highlighted .plan__title {
color: white;
}
.plan--highlighted .plan__price {
color: #0e4f1f;
}
.plan__features {
list-style: none;
margin: 0;
padding: 0;
}
.plan__feature {
margin: 8px 0;
}
#key-features {
background: #ff1b68;
margin-top: 80px;
padding: 16px;
}
#key-features .section-title {
color: white;
margin: 32px;
}
.key-feature__list {
list-style: none;
margin: 0;
padding: 0;
text-align: center;
}
.key-feature {
display: inline-block;
width: 30%;
vertical-align: top;
}
.key-feature__image {
background: #ffcede;
width: 128px;
height: 128px;
border: 2px solid #424242;
border-radius: 50%;
margin: auto;
}
.key-feature__description {
text-align: center;
font-weight: bold;
color: white;
font-size: 20px;
}
/* h1 {
font-family: sans-serif;
} */
main {
padding-top: 32px;
}
.background {
background: url("../images/plans-background.jpg");
width: 100%;
height: 100%;
position: fixed;
z-index: -1;
}
.package {
width: 80%;
margin: 16px 0;
border: 4px solid #0e4f1f;
border-left: none;
position: relative;
}
.package:hover,
.package:active {
box-shadow: 2px 2px 4px rgba(0,0,0,0.5);
border-color: #ff5454;
/* border-color: #ff5454 !important; */
}
.package a {
text-decoration: none;
color: inherit;
display: block;
padding: 32px;
}
.package__badge {
position: absolute;
top: 0;
right: 0;
margin: 20px;
font-size: 12px;
color: white;
background: #ff5454;
padding: 8px;
z-index: 100;
}
.package__subtitle {
color: #979797;
}
.package__info {
padding: 16px;
border: 1px solid #0e4f1f;
font-size: 20px;
color: #0e4f1f;
background: white;
}
.clearfix {
clear: both;
}
#plus {
background: rgba(213, 255, 220, 0.95);
}
#free {
background: rgba(234, 252, 237, 0.95);
float: right;
border-right: none;
border-left: 4px solid #0e4f1f;
text-align: right;
}
#free:hover,
#free:active {
border-left-color: #ff5454;
}
#premium {
background: rgba(14, 79, 31, 0.95);
}
#premium .package__title {
color: white;
}
#premium .package__subtitle {
color: #bbb;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment