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 URL's 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 it's URL and the proper URL extention.
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 Skypack, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ES6 import
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.
<!doctype html>
<!-- Product Landing Page (Pure Sounds) -->
<head>
<title>Speaker Landing Page Project</title>
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
<meta charset="UTF-8">
<meta name="author" content="Dan Hamilton">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<header>
<div id="header">
<!-- nav bar -->
<nav id="nav-bar">
<ul>
<a class="nav-link" href="#header-img"><li>Home</li></a>
<a class="nav-link" href="#showcase"><li>Products</li></a>
<a class="nav-link" href="#soundcards"><li>Finance</li></a>
<a class="nav-link" href="#synth"><li>Contact Us</li></a>
</ul>
</nav>
<!-- Logo & Banner -->
<div class="pure-sounds-logo">
<!--<img id="header-img" src="root_images/pure_sounds_smaller.jpg" alt="Pure Sounds Logo"/>-->
<a href="https://www.dropbox.com/s/6jveh8tmmdd29x9/pure_sounds_smaller.jpg?raw=1"><img id="header-img" src="https://www.dropbox.com/s/6jveh8tmmdd29x9/pure_sounds_smaller.jpg?raw=1" alt="Pure Sounds Logo"></a>
</div>
</div>
</header>
<section id="showcase">
<iframe id="video" src="https://www.youtube.com/embed/H0XfvVVJdZ8" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen alt="Sweetwater Video"></iframe>
<iframe id="production" src="https://www.youtube.com/embed/pp8RPrBWYEo" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</section>
<form id="form" action="https://www.freecodecamp.com/email-submit" method="post">
<label for="mail">Our Newsletter:</label>
<input type="email" id="email" name="email" placeholder="example@gmail.com">
<input type="submit" id="Submit" name="email" placeholder="https://www.freecodecamp.com/email-submit">
</label>
</form>
<!-- Studio Monitors -->
<div class="caption">
<h3>Studio Monitors</h3>
<p>Our speaker products come with a full 2 year warranty and are available
through a variety of payment plans.</p>
</div>
<section id="monitors">
<div class="box-1">
<h3>Genelec 8010A 3" Studio Monitor</h3>
<p>50 watt powered studio monitor with a 3"
sub woofer.</p>
<a href="https://www.dropbox.com/s/vmfcjka3ksb4w51/genelec_8010.jpg?raw=1"><img class="G8010" src="https://www.dropbox.com/s/vmfcjka3ksb4w51/genelec_8010.jpg?raw=1" alt="Genelec 8010a"/></a>
<!--<img class="G8010" src="root_images/genelec_8010.jpg" alt="Genelec 8010a">-->
<p><strong>£209</strong></p>
</div>
<div class="box-2">
<h3>Mackie MR824 8" Studio Monitor</h3>
<p>85 watt bi-amplified active studio monitor
with an 8" polypropylene woofer.</p>
<!--<img class="MR824" src="root_images/mackie_MR824.jpg" alt="Mackie MR824">-->
<a href="https://www.dropbox.com/s/llwjtoksgurqvaj/mackie_MR824.jpg?raw=1"><img class="MR824" src="https://www.dropbox.com/s/llwjtoksgurqvaj/mackie_MR824.jpg?raw=1" alt="Mackie MR824"/></a>
<p><strong>£179</strong></p>
</div>
<div class="box-3">
<h3>Pioneer DJ Bulit8 8" Studio Monitor</h3>
<p>8" powered reference monitor with 1" silk
dome Tweeter.</p>
<!--<img class="bulit8" src="root_images/bulit8.jpg" alt="Pioneer Bulit8">-->
<a href="https://www.dropbox.com/s/33os18spbkrl7yo/bulit8.jpg?raw=1"><img class="bulit8" src="https://www.dropbox.com/s/33os18spbkrl7yo/bulit8.jpg?raw=1" alt="Pioneer Bulit8"/></a>
<p><strong>£165</strong></p>
</div>
</section>
<!-- Soundcards -->
<div class="caption">
<h3>Soundcards & Audio Interfaces</h3>
<p>Our soundcard products come with a full 2 year warranty and are available
through a variety of payment plans.</p>
</div>
<section id="soundcards">
<div class="box-4">
<h3>Focusrite Saffire Solo USB</h3>
<p>2in / 2out USB 2.0 audio interface</p>
<!--<img class="focusrite-saffire" src="root_images/focusrite-saffire.jpg" alt="Focusrite Saffire Interface">-->
<a href="https://www.dropbox.com/s/uhfeeky82xaclwv/focusrite-saffire.jpg?raw=1"><img class="focusrite-saffire" src="https://www.dropbox.com/s/uhfeeky82xaclwv/focusrite-saffire.jpg?raw=1" alt="Focusrite Saffire Interace"/></a>
<p><strong>£85</strong></p>
</div>
<div class="box-5">
<h3>M -Audio M-Track 2X2</h3>
<p>2-channel USB Interface with 24-bit/192kHz Resolution, Direct Monitoring, XLR/TRS and TS Inputs.</p>
<!--<img class="maudio" src="root_images/maudio.jpg" alt="M-Audio M-Track 2X2">-->
<a href="https://www.dropbox.com/s/vreg0tvcj256a1w/maudio.jpg?raw=1"><img class="maudio" src="https://www.dropbox.com/s/vreg0tvcj256a1w/maudio.jpg?raw=1" alt="M-Audio M-Track 2X2"/></a>
<p><strong>£80</strong></p>
</div>
<div class="box-6">
<h3>Apogee Ensemble Thunderbolt Audio Interface</h3>
<p>Superior sound quality and low latency audio interface.</p>
<!--<img class="apogee-ensemble" src="root_images/apogee-ensemble.jpg" alt="Apogee Ensemble">-->
<a href="https://www.dropbox.com/s/hamfjc4iwcelx8l/apogee-ensemble.jpg?raw=1"><img class="apogee-ensemble" src="https://www.dropbox.com/s/hamfjc4iwcelx8l/apogee-ensemble.jpg?raw=1" alt="Apogee Ensemble"/></a>
<p><strong>£1800</strong></p>
</div>
</section>
<!-- Sound Editing -->
<div class="caption">
<h3>Digital Mixers</h3>
<p>Our mixing products come with a full 2 year warranty and are available
through a variety of payment plans.</p>
</div>
<section id="editing">
<div class="box-7">
<h3>Midas M32 Digital Mixer</h3>
<p>40 channel digital mixing console with 32 Midas preamps.</p>
<!--<img class="midas" src="root_images/midas_m32jpg.jpg" alt="Midas M32">-->
<a href="https://www.dropbox.com/s/rhmthznmkymkj9k/midas_m32jpg.jpg?raw=1"><img class="midas" src="https://www.dropbox.com/s/rhmthznmkymkj9k/midas_m32jpg.jpg?raw=1" alt="Midas M32"/></a>
<p><strong>£3200</strong></p>
</div>
<div class="box-8">
<h3>Behringer X32 Digital Mixer</h3>
<p>40-input, 25 total bus digital mixer with 32 programmable preamps.</p>
<!--<img class="behringerx32" src="root_images/behringer_x32.jpg" alt="Behringer X32">-->
<a href="https://www.dropbox.com/s/yud4ggfa9f8yjoa/behringer_x32.jpg?raw=1"><img class="behringerx32" src="https://www.dropbox.com/s/yud4ggfa9f8yjoa/behringer_x32.jpg?raw=1" alt="behringer X32"/></a>
<p><strong>£1100</strong></p>
</div>
<div class="box-9">
<h3>QSC Touchmix-16 Digital Mixer</h3>
<p>20 channel digital mixer with touchscreen interface and 12 mic inputs.</p>
<!--<img class="qsc-touchmix" src="root_images/qsc_touchmix.jpg" alt="QSC Touchmix">-->
<a href="https://www.dropbox.com/s/13dsxk7h5un8hxc/qsc_touchmix.jpg?raw=1"><img class="qsc-touchmix" src="https://www.dropbox.com/s/13dsxk7h5un8hxc/qsc_touchmix.jpg?raw=1" alt="QSC Touchmix"/></a>
<p><strong>£1250</strong></p>
</div>
</section>
<!-- Synthesizers -->
<div class="caption">
<h3>Analog & Digital Synthesizers</h3>
<p>Our synthesizer products come with a full 2 year warranty and are available
through a variety of payment plans.</p>
</div>
<section id="synth">
<div class="box-10">
<h3>Moog Grandmother Semi-Modular Synthesizer</h3>
<p>32-key semi-modulator analog synthesizer with spring reverb.</p>
<!--<img class="moog" src="root_images/moog.jpg" alt="Moog Grandmother Synthesizer">-->
<a href="https://www.dropbox.com/s/xjgz2fuuhj1qol0/moog.jpg?raw=1"><img class="moog" src="https://www.dropbox.com/s/xjgz2fuuhj1qol0/moog.jpg?raw=1" alt="Moog Grandmother"/></a>
<p><strong>£800</strong></p>
</div>
<div class="box-11">
<h3>Korg Minilogue 4-Voice Analog Synthesizer</h3>
<p>4 voice, 2 oscillators, LP/HP filter, 8-step sequencer.</p>
<!--<img class="korg" src="root_images/korg_minilogue.jpg" alt="Korg Minilogue Synthesizer">-->
<a href="https://www.dropbox.com/s/93gb99ju11fje70/korg_minilogue.jpg?raw=1"><img class="korg" src="https://www.dropbox.com/s/93gb99ju11fje70/korg_minilogue.jpg?raw=1" alt="Korg Minilogue Synthesizer"/></a>
<p><strong>£489</strong></p>
</div>
<div class="box-12">
<h3>Yamaha Mod X6</h3>
<p>61 key synthesizer with LC synth weighted action keybed, EDS sound engine.</p>
<!--<img class="yamaha-x6" src="root_images/yamaha_x6.jpg" alt="Yamaha MOD X6 Synthesizer">-->
<a href="https://www.dropbox.com/s/ogn934twdqlo3zr/yamaha_x6.jpg?raw=1"><img class="yamaha-x6" src="https://www.dropbox.com/s/ogn934twdqlo3zr/yamaha_x6.jpg?raw=1" alt="Yamaha MOD X6 Synthesizer"/></a>
<p><strong>£1200</strong></p>
</div>
</section>
<footer>
<a href="#"> <i class="fab fa-facebook"></i></a>
<a href="#"> <i class="fab fa-instagram"></i></a>
<a href="#"> <i class="fab fa-twitter"></i></a>
<a href="#"> <i class="fab fa-github"></i></a>
<p class="footer-text">© 2019, <strong>Pure Sounds.com</strong></p>
</footer>
</body>
</html>
/* Stylesheet */
@import url('https://fonts.googleapis.com/css?family=Catamaran');
body{
font-family: 'Catamaran', sans-serif;
color: #1a1a1a;
}
/* nav bar */
#nav-bar {
position: fixed;
top: 0;
width: 90%;
margin-left: 5%;
list-style-type: none;
}
ul {
margin-top: 0;
border-radius: 10px;
background-color: #333;
border: 1px white solid;
}
li {
display: inline-block;
padding: 1% 9%;
color: white;
}
li:hover {
background-color: white;
color: black;
}
/* Logo & Banner */
#header-img{
display: block;
height: 5%;
width: 30%;
margin-top: 5%;
margin-left: 33%;
margin-bottom: 2%;
border-radius: 8px;
}
/* Showcase */
#showcase{
display: flex;
width: 95%;
margin: 2%;
background-color: #ddd;
border-radius: 4px;
}
#video {
display: block;
flex: 1;
margin: 2%;
}
#production{
display: block;
flex: 1;
margin: 2%;
width: 300px;
height: 300px;
border-radius: 8px;
}
/* Form */
#form{
background-color: #ccc;
height: 2rem;
margin: 4% 6% 4% 6%;
padding: 1% 1% 1% 3%;
border-radius: 10px;
}
#email{
height: 1.5rem;
width: 70%;
border-radius: 5px;
}
#submit{
height: 1.8rem;
width: 8%;
margin-left: 1%;
color: black;
background-color: gold;
border-radius: 5px;
}
#button:hover{
color: gold;
background-color: black;
}
/* Caption */
.caption{
text-align: center;
background-color: gold;
border-radius: 10px;
margin: 0% 6% 2% 6%;
}
.caption p{
margin-top: -1%;
}
/* Monitors */
#monitors{
display: flex;
text-align: center;
border: 3px purple solid;
border-radius: 5px;
margin: 2% 2% 4% 2%;
}
.box-1{
flex:1;
margin: 2% 2% 2% 2%;
text-align: center;
}
.G8010{
height: 240px;
width: 200px;
}
.box-2{
flex:1;
margin: 2% 2% 2% 2%;
text-align: center;
}
.MR824{
height: 210px;
width: 200px;
}
.box-3{
flex:1;
margin: 2% 2% 2% 2%;
text-align: center;
}
.bulit8{
height: 240px;
width: 220px;
margin-top: 2%;
}
/* Soundcards */
#soundcards{
display: flex;
text-align: center;
border: 3px purple solid;
border-radius: 4px;
margin: 2% 2% 4% 2%;
}
.box-4{
flex:1;
margin: 2% 2% 2% 2%;
text-align: center;
}
.focusrite-saffire{
height: 120px;
width: 290px;
margin-top: 9%;
}
.box-5{
flex:1;
margin: 2% 2% 2% 2%;
text-align: center;
}
.maudio{
height: 135px;
width: 250px;
}
.box-6{
flex:1;
margin: 2% 2% 2% 2%;
text-align: center;
}
.apogee-ensemble{
height: 140px;
width: 350px;
margin-top: 4%;
}
/* Sound Editing */
#editing{
display: flex;
text-align: center;
border: 3px purple solid;
border-radius: 4px;
margin: 2% 2% 4% 2%;
}
.box-7{
flex:1;
margin: 2% 2% 2% 2%;
text-align: center;
}
.midas{
height: 150px;
width: 360px;
margin-top: 9%;
}
.box-8{
flex:1;
margin: 2% 2% 2% 2%;
text-align: center;
}
.behringerx32{
height: 180px;
width: 320px;
}
.box-9{
flex:1;
margin: 2% 2% 2% 2%;
text-align: center;
}
.qsc-touchmix{
height: 200px;
width: 210px;
margin-top: -4%;
}
/* Synthesizers */
#synth{
display: flex;
text-align: center;
border: 3px purple solid;
border-radius: 4px;
margin: 2% 2% 4% 2%;
}
.box-10{
flex:1;
margin: 2% 2% 2% 2%;
text-align: center;
}
.moog{
height: 150px;
width: 350px;
}
.box-11{
flex:1;
margin: 2% 2% 2% 2%;
text-align: center;
}
.korg{
height: 150px;
width: 350px;
margin-top: 7%;
}
.box-12{
flex:1;
margin: 2% 2% 2% 2%;
text-align: center;
}
.yamaha-x6{
height: 140px;
width: 350px;
margin-top: 3%;
}
/* Footer */
footer {
text-align: center;
height: 20vh;
border-radius: 4px;
background-color: gold;
}
footer p{
margin-right: 13%;
padding-top: 1.5%;
}
i{
font-size: 30px;
float: left;
margin: 0.5% 0.5% 0.5% 0.5%;
padding-top: 1%;
}
/* Media Queries */
@media screen and (max-width: 550px) {
#nav-bar{display: none;
}
#showcase{margin-top: 10%;
display: block;
}
#header-img{
height: 10vh;
width: 90vw;
margin: 2% 2% 2% 2%;
}
#form{
margin: 0;
width: 90vw;
}
#email{
margin: 0;
width: 38vw;
}
#button{
margin: 0;
width: 20vw;
}
#monitors{
flex: none;
display: block;
}
#soundcards{
flex: none;
display: block;
}
#editing{
flex: none;
display: block;
}
#synth{
flex: none;
display: block;
}
.apogee-ensemble{
width: 80vw;
}
.midas{
width: 80vw;
}
.moog{
width: 80vw;
}
.korg{
width: 80vw;
}
.yamaha-x6{
width: 80vw;
}
footer{
width: 95vw;
}
footer p{
padding-top: 5%;
}
i{
padding-top: 4%;
padding-left: 1%;
}
}
// !! IMPORTANT README:
// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place.
/***********
INSTRUCTIONS:
- Select the project you would
like to complete from the dropdown
menu.
- Click the "RUN TESTS" button to
run the tests against the blank
pen.
- Click the "TESTS" button to see
the individual test cases.
(should all be failing at first)
- Start coding! As you fulfill each
test case, you will see them go
from red to green.
- As you start to build out your
project, when tests are failing,
you should get helpful errors
along the way!
************/
// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!
// Once you have read the above messages, you can delete all comments.
Also see: Tab Triggers