HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Any URLs added here will be added as <link>
s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
Any URL's added here will be added as <script>
s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
Search for and use JavaScript packages from npm here. By selecting a package, an import
statement will be added to the top of the JavaScript editor for this package.
Using packages here is powered by esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<main>
<h2 class="neon-heading neon-heading--lines-both">
Leagues
</h2>
<section class="league-tabs--section">
<div class="league-tabs--section-content">
<h3 class="league-tabs--day">Monday</h3>
<header class="league-tabs--header-grid">
<p class="league-tabs--header-col">League</p>
<p class="league-tabs--header-col">Time</p>
<p class="league-tabs--header-col">Team</p>
<p class="league-tabs--header-col">Meet</p>
<p class="league-tabs--header-col">Start</p>
<p class="league-tabs--header-col">Cost</p>
</header>
<div class="league-tabs--grid">
<p class="league-tabs--col league-tabs--league-name">Monday Maniacs</p>
<p class="league-tabs--col">6:30pm</p>
<p class="league-tabs--col">5</p>
<p class="league-tabs--col">8-26</p>
<p class="league-tabs--col">9-9</p>
<p class="league-tabs--col">$20</p>
</div>
<div class="league-tabs--grid">
<p class="league-tabs--col league-tabs--league-name">Monday Maniacs</p>
<p class="league-tabs--col">6:30pm</p>
<p class="league-tabs--col">5</p>
<p class="league-tabs--col">8-26</p>
<p class="league-tabs--col">9-9</p>
<p class="league-tabs--col">$20</p>
</div>
<div class="league-tabs--grid">
<p class="league-tabs--col league-tabs--league-name">Monday Maniacs</p>
<p class="league-tabs--col">6:30pm</p>
<p class="league-tabs--col">5</p>
<p class="league-tabs--col">8-26</p>
<p class="league-tabs--col">9-9</p>
<p class="league-tabs--col">$20</p>
</div>
<div class="league-tabs--grid">
<p class="league-tabs--col league-tabs--league-name">Monday Maniacs</p>
<p class="league-tabs--col">6:30pm</p>
<p class="league-tabs--col">5</p>
<p class="league-tabs--col">8-26</p>
<p class="league-tabs--col">9-9</p>
<p class="league-tabs--col">$20</p>
</div>
</div>
</section>
<section class="league-tabs--section">
<div class="league-tabs--section-content">
<h3 class="league-tabs--day">Tuesday</h3>
<header class="league-tabs--header-grid">
<p class="league-tabs--header-col">Day</p>
<p class="league-tabs--header-col">League</p>
<p class="league-tabs--header-col">Time</p>
<p class="league-tabs--header-col">Meet</p>
<p class="league-tabs--header-col">Start</p>
<p class="league-tabs--header-col">Cost</p>
</header>
<div class="league-tabs--grid">
<p class="league-tabs--col league-tabs--league-name">Monday Maniacs</p>
<p class="league-tabs--col">6:30pm</p>
<p class="league-tabs--col">5</p>
<p class="league-tabs--col">8-26</p>
<p class="league-tabs--col">9-9</p>
<p class="league-tabs--col">$20</p>
</div>
<div class="league-tabs--grid">
<p class="league-tabs--col league-tabs--league-name">Monday Maniacs</p>
<p class="league-tabs--col">6:30pm</p>
<p class="league-tabs--col">5</p>
<p class="league-tabs--col">8-26</p>
<p class="league-tabs--col">9-9</p>
<p class="league-tabs--col">$20</p>
</div>
<div class="league-tabs--grid">
<p class="league-tabs--col league-tabs--league-name">Monday Maniacs</p>
<p class="league-tabs--col">6:30pm</p>
<p class="league-tabs--col">5</p>
<p class="league-tabs--col">8-26</p>
<p class="league-tabs--col">9-9</p>
<p class="league-tabs--col">$20</p>
</div>
<div class="league-tabs--grid">
<p class="league-tabs--col league-tabs--league-name">Monday Maniacs</p>
<p class="league-tabs--col">6:30pm</p>
<p class="league-tabs--col">5</p>
<p class="league-tabs--col">8-26</p>
<p class="league-tabs--col">9-9</p>
<p class="league-tabs--col">$20</p>
</div>
</div>
</section>
<br><br>
<h2 class="neon-heading neon-heading--lines-both">
Events
</h2>
<section class="content-grid">
<div class="content"><h2 class="neon-heading neon-heading--lines-left">
Strike!
</h2>
<p>University Bowl offers 32 lanes of fully animated, state of the art bowling with the all-new hi-tech Bowler Entertainment System X, and touch-screen consoles. Enjoy delicious food from our snack bar, grab a drink in the 11th Frame Pub, play a few games, and shoot some pool! Visit us today and get the good times rolling!</p><br>
<a href="#0" class="neon-button neon-button--blue">View Scores</a>
<a href="#0" class="neon-button neon-button--green">Join a League</a>
</div>
<img src='https://s3-us-west-2.amazonaws.com/s.cdpn.io/764894/bowling-balls-closeup1.jpg' alt='' class="neon--image-border">
</section>
<section class="service-triangle">
<div class="service-triangle--circles-group">
<ul>
<div class="service-triangle--row service-triangle--1row3col"><li>
<div>
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/764894/11th-frame-logo1.png" alt="" class="neon-circle neon-circle--green">
<h3>Event Planning</h3>
</div>
</li>
<li>
<div>
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/764894/theGrill-logo2.png" alt="" class="neon-circle neon-circle--green">
<h3>Specials</h3>
</div>
</li>
<li>
<div>
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/764894/11th-frame-logo1.png" alt="" class="neon-circle neon-circle--green">
<h3>The Grill</h3>
</div>
</li></div>
<div class="service-triangle--row service-triangle--2row2col"><li>
<div>
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/764894/theGrill-logo2.png" alt="" class="neon-circle neon-circle--blue">
<h3>11<sup>th</sup> Frame Pub</h3>
</div>
</li>
<li>
<div>
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/764894/11th-frame-logo1.png" alt="" class="neon-circle neon-circle--blue">
<h3>Curve Club</h3>
</div>
</li></div>
<div class="service-triangle--row service-triangle--3row1col"><li>
<div>
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/764894/theGrill-logo2.png" alt="" class="neon-circle neon-circle--green">
<h3>Online <br>Reservations</h3>
</div>
</li></div>
</ul>
</div>
</section>
<article class="package-card">
<h2 class="package-card--heading">Over the Top</h2>
<div class="package-card--info-block">
<h3 class="package-card--price">$49.95<br>
<span class="package-card--price-details">Per Person</span>
</h3>
<p class="package-card--description">
Specially designed for our youngest guests of honor, this package includes food and fun. Bring up to 20 guests for some great food, and bowling! This package is meant for family and friends to be able to gather together and all share in the birthday child's special day!!
</p>
<ul class="package-card--details-list">
<li>4 Hours Party Time Reserved Party Space</li>
<li>2 Hours Bowling</li>
<li>Choice of Menu Selection</li>
<li>$25 Curve Card for All Guests</li>
</ul>
</div>
<div class="package-card--additonal-details">
<p class="additonal-details--reservation">Reservations Required </p>
<p class="additonal-details--info">Paid Guests</p>
<p class="additonal-details--asterisk">*Adult Birthday Menu Only</p>
</div>
</article>
<div class="package-card--corporate-price-grid">
<div class="package-card--corporate-price-grid-item">
<p class="package-card--corporate-days">
Weekdays Before 5pm </p>
<p class="package-card--corporate-price package-card--price">
$19.95</p>
<p class="package-card--price-details">
Per Person</p>
</div>
<div class="package-card--corporate-price-grid-item">
<p class="package-card--corporate-days">
Weekdays After 5pm </p>
<p class="package-card--corporate-price package-card--price">
$29.95</p>
<p class="package-card--price-details">
Per Person</p>
</div>
</div>
<ul class="package-card--price-list">
<li><span class="package-card--price-list__item">1 Hour of Bowling & Shoe Rental</span> <strong>$4.00 Per Child</strong></li>
<li><span class="package-card--price-list__item">1.5 Hours of Bowling & Shoe Rental</span> <strong>$5.25 Per Child</strong></li>
<li><span class="package-card--price-list__item">2 Hours of Bowling & Shoe Rental</span> <strong>$7.00 Per Child</strong></li>
</ul>
</main>
@import url('https://fonts.googleapis.com/css?family=Bangers|Montserrat:500,600&display=swap');
html,body{
height:100%
}
body {
background: var(--backgroundColor);
background-size:cover;
margin: 1em 15vw 5em;
font-family: 'Montserrat', sans-serif;
}
section {
margin: 2em 0 10em;
}
p {
color: #ffffff;
line-height: 1.9em;
font-size: 16px;
width: 50ch;
}
.content-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 50px;
}
/* ==== BASICS ==== */
/* Variables */
:root {
--backgroundColor: #16161D; /* Dark Blue */
--primaryColor: #599E11; /* Green */
--secondaryColor: #003567; /* Blue */
--primaryColor: #edac00; /* Gold */
/*--secondaryColor: #96311b; /* Maroon */
/* --backgroundColor: #350101; /* Dark Maroon */
--backgroundColor: #020222; /* Darkish Blue */
--primaryColor: #FC0396; /* Pink */
--secondaryColor: #00e6f2; /* Blue */
}
/* ==== NEON HEADINGS ==== */
.neon-heading {
text-align: center;
width: 100%;
height: auto;
margin: .5em auto .75em;
font-family: 'Bangers', sans-serif;
font-size: 120px;
letter-spacing: .075em;
color: #fee;
text-shadow:
0 -10px 30px rgba(255,255,255,.2), 0 0 2px, 0 0 .4em var(--primaryColor), 0 0 0.2em var(--primaryColor), 0 0 0.1em var(--primaryColor), 0 10px 3px #000;
/*animation: flicker ease-in-out infinite 10s;*/
}
.neon-heading--lines-left {
text-align: left;
margin: .5em 0 .2em;
text-indent: -1.7em;
}
.neon-heading--lines-left::before {
content: '';
display: inline-block;
width: 1.45em;
height: 1em;
background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/764894/neon-lines-blue-left.png);
background-repeat: no-repeat;
background-size: contain;
position: relative;
top: .22em;
left: .15em;
}
.neon-heading--lines-both::before {
background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/764894/neon-lines-blue-left.png);
left: -.15em;
}
.neon-heading--lines-both::after {
background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/764894/neon-lines-blue-right.png);
right: -.15em;
}
.neon-heading--lines-both::before,
.neon-heading--lines-both::after {
content: '';
display: inline-block;
width: 1.5em;
height: 1em;
background-repeat: no-repeat;
background-size: contain;
position: relative;
top: .22em;
}
@keyframes flicker {
0% {
text-shadow: transparent;
opacity: 0.8;
}
25% {
color: #FFF;
opacity: 1;
}
50% {
text-shadow: #FFF;
opacity: 0.8;
}
75% {
text-shadow: #FFF;
opacity: 0.8;
}
100% {
color: #FFF;
opacity: 1;
}
}
/* ==== NEON BUTTONS ==== */
.neon-button {
text-decoration: none;
color: #fff;
text-transform: uppercase;
margin: 1em;
letter-spacing: .085em;
font-size: .9em;
font-weight: 600;
border: solid 1px #fff;
padding: 10px 20px;
}
.neon-button--green {
box-shadow:
/* 0 0 4px -8px #599E11,
0 0 0 -5px rgba(255,255,255,.6),
0 0 10px 2px #599E11; */
0 0 2px #fff,
inset 0 0 12px var(--primaryColor),
0 0 12px var(--primaryColor);
}
.neon-button--green:hover {
background-color: #fc039640;
}
.neon-button--blue {
box-shadow:
/* 0 0 4px -8px var(--secondaryColor),
0 0 0 -5px rgba(255,255,255,.6),
0 0 10px 2px var(--secondaryColor); */
0 0 2px #fff,
inset 0 0 12px var(--secondaryColor),
0 0 12px var(--secondaryColor);
}
.neon-button--blue:hover {
background-color: #00e6f240;
}
/* ==== NEON BORDERS - rectangle & circles ==== */
.neon--image-border {
width: 80%;
transform: rotate(-5deg);
border-radius: 2px;
box-shadow:
20px 20px 4px -8px var(--backgroundColor),
20px 20px 0 -4px var(--secondaryColor),
20px 20px 0 -6px var(--secondaryColor),
20px 20px 0 -2px rgba(255,255,255,.6),
20px 20px 8px 2px var(--secondaryColor);
}
.neon-circle {
width: 250px;
height: 250px;
border: solid 2px #fff;
border-radius: 100%;
}
.neon-circle img {
width: 100%;
object-fit: cover;
}
.neon-circle--green {
box-shadow:
0 0 4px -8px var(--primaryColor),
0 0 0 -5px rgba(255,255,255,.6),
0 0 10px 2px var(--primaryColor);
}
.neon-circle--blue {
box-shadow:
0 0 4px -8px var(--secondaryColor),
0 0 0 -5px rgba(255,255,255,.6),
0 0 10px 2px var(--secondaryColor)
}
/* ==== SERVICE TRIANGLE ==== */
.service-triangle::before {
content: '';
display: inline-block;
width: 290px;
height: 730px;
background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/764894/neon-bowling-pin1.png);
background-repeat: none;
background-size: contain;
position: relative;
top: 100%;
left: -50%;
opacity: .8;
transfrom: rotate(-5deg);
}
.service-triangle::after {
/* content: ''; */
display: inline-block;
width: 290px;
height: 730px;
background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/764894/neon-bowling-pin1.png);
background-repeat: none;
background-size: contain;
position: relative;
top: 100%;
right: 50%;
opacity: .8;
transfrom: rotate(-5deg);
}
.service-triangle {
max-height: 1750px;
color: #fff;
text-align: center;
display: grid;
grid-template-columns: 1fr;
grid-template-rows: repeat(3, 1fr);
align-items: center;
justify-items: center;
margin-top: -50%;
}
.service-triangle ul {
list-style: none;
padding-left: 0;
margin-left: 0;
}
/* .service-triangle ul li img {
width: 250px;
} */
.service-triangle ul li {
margin: 0 2em;
}
.service-triangle--row {
margin: 1em 0 3em;
}
.service-triangle--1row3col {
display: flex;
justify-content: space-around;
}
.service-triangle--1row3col ul li {
margin: 0 15em;
}
.service-triangle--2row2col {
display: flex;
justify-content: space-around;
}
.service-triangle--3row1col {
display: flex;
justify-content: space-around;
}
.package-card {
background: #ffffff;
color: #16161D;
width: 550px;
/* min-height: 650px; */
}
.package-card--heading {
background: #599E11;
padding: .3em 0;
border-bottom: solid 10px #16161D;
color: #ffffff;
text-align: center;
font-size: 4em;
letter-spacing: .035em;
}
.package-cards--grid-row .vce-col:nth-child(even) .package-card--heading {
background: #003567;
}
.package-card--info-block {
padding: 1em 2em;
text-align: center;
}
.package-card--price {
color: #003567;
font-size: 4em;
line-height: .5em;
margin: .3em auto .5em;
}
.package-card--description {
padding: 1em 2em;
background: rgba(0, 53, 103, .1);
text-align: left;
font-size: .95em;
font-weight: 100;
color: #003567;
}
.package-card--price-details {
color: #599E11;
font-size: .3em;
font-family: 'Montserrat';
text-transform: uppercase;
letter-spacing: .05em;
}
.package-card--details-list {
margin-left: 0;
padding-left: 0;
text-align: left;
padding: 0 1em;
list-style: none;
}
.package-card--details-list li {
margin-bottom: 1em;
padding-left: 1em;
text-indent: -1em;
}
.package-card--details-list li::before {
content: '';
display: inline-block;
width: 10px;
height: 10px;
border: solid 3px #599E11;
border-radius: 100%;
margin-right: .5em;
}
.package-card--additonal-details {
width: 100%;
background: rgba(89, 158, 17, .1);
text-align: center;
padding: 2em;
}
.package-card--additonal-details p {
margin: .4em;
}
.additonal-details--reservation {
font-style: italic;
color: #599E11;
}
.additonal-details--asterisk {
font-weight: bold;
font-style: italic;
}
/* ==== LEAGUE GRID ==== */
.league-tabs--section {
background: #fff;
border-top: solid 6px #78bb14;
margin: 2em auto;
}
.league-tabs--section::before {
content: '';
display: block;
border-top: solid 8px #020222;
}
.league-tabs--section-content {
padding: 2em 4em 4em;
}
.leauge-tabs--section p {
color: #020222!important;
}
.league-tabs--day {
font-family: 'Bangers';
color: #78bb14;
letter-spacing: .025em;
font-size: 3.5em;
margin: .15em auto .25em;
text-align: center;
/* padding-bottom: .2em;
border-bottom: solid 3px rgba(0, 53, 103, .2);*/
}
.league-tabs--header-grid {
display: grid;
grid-template-columns: repeat(6, 1fr);
grid-template-columns: 1.25fr 1fr .75fr .75fr .75fr .75fr;
justify-items: center;
background: rgba(179, 0, 104, 1);
padding: .5em 0;
}
.league-tabs--header-col {
width: 100%;
margin: 0;
text-align: center;
text-transform: uppercase;
font-weight: bold;
color: #b30068;
color: #fff;
font-size: 1.2em;
}
.league-tabs--grid {
display: grid;
grid-template-columns: repeat(6, 1fr);
grid-template-columns: 1.25fr 1fr .75fr .75fr .75fr .75fr;
}
.league-tabs--col {
width: 100%;
color: #000;
text-align: center;
font-size: 1.1em;
}
.league-tabs--col {
margin: 0;
padding: .5em 0;
align-self: center;
}
.league-tabs--grid:nth-child(even) {
background: rgba(89, 158, 17, .1);
}
.league-tabs--league-name {
color: #16161D;
font-weight: bold;
line-height: 1.2em;
}
Also see: Tab Triggers