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.
<html>
<body onload="odliczanie()", "zmienslajd()">
<!-- Navbar section -->
<nav class="navbar navbar-light navbar-expand-md" id="#">
<div class="navbar-header">
<a href="#" class="navbar-brand"><img src="https://vignette.wikia.nocookie.net/lifeofheroesrp/images/2/2b/Mario_icon_bubble.png/revision/latest?cb=20120708185516" class="navbar-left" id="navLogo"></a>
</div>
<button class="navbar-toggler navbar-dark" type="button" data-toggle="collapse" data-target="#navbarNav">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ml-auto">
<li class="navbar-item">
<a href="#about" class="nav-link"><button id="btn1" type="button" class="btn btn-nav btn-lg">About me</button></a>
</li>
<li class="navbar-item">
<a href="#portfolio" class="nav-link"><button id="btn2" type="button" class="btn btn-nav btn-lg">Portfolio</button></a>
</li>
<li class="navbar-item">
<a href="#contact" class="nav-link"><button id="btn3" type="button" class="btn btn-nav btn-lg">Contact</button></a>
</li>
</ul>
</div>
</nav>
<!-- About me section -->
<section class="about-section" id="about">
<div class="jumbotron" id="jumbotron1">
<div class="container">
<div class="row">
<div class="col-sm-12 col-lg-7">
<h1 class="display-3 text-center"> About me</h1>
<p class="lead display-5"><b>Michał Dziadkowiec</b> - I'm gonna be a Front End Developer! <br>:-D. I've just started to learn it so be tolerant, please. I need to put some text on the page so that's why I've written this meaningless text. This sentence was written only to make the whole text longer.</p>
</div>
<div class="col-sm-12 col-lg-5">
<img id="fotoMe" class="img-fluid img-circle img-responsive" src="http://www.ian-young.net/wp-content/uploads/2014/06/Al-Pacino.jpg" alt="Michał Dziadkowiec">
</div>
</div>
</div>
</div>
</section>
<!-- PORTFOLIO section -->
<section class="portfolio-section" id="portfolio">
<div class="container">
<h2 class="display-2 text-center">Portfolio</h2>
<p class="lead text-center">Here will be my projects in the future!</p>
<div class="row">
<div class="col-sm-6 col-lg-4">
<div class="card mt-3" style="width: 100%;">
<a href="https://getbootstrap.com/docs/4.0/components/card/#sizing" target="_blank"> <img class="card-img-top" src="https://wallpaperscraft.com/image/clouds_milky_way_eclipse_light_68883_1024x768.jpg" alt="Clouds Milky" id="fotoPortfolio1"></a>
<div class="card-body">
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>
</div>
<div class="col-sm-6 col-lg-4">
<div class="card mt-3" style="width: 100%;">
<a href="https://getbootstrap.com/docs/4.0/components/card/#sizing" target="_blank"><img class="card-img-top" src="https://wallpaperscraft.com/image/clouds_milky_way_eclipse_light_68883_1024x768.jpg" alt="Clouds Milky"></a>
<div class="card-body">
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>
</div>
<div class="col-sm-6 col-lg-4">
<div class="card mt-3" style="width: 100%;">
<a href="https://getbootstrap.com/docs/4.0/components/card/#sizing" target="_blank"> <img class="card-img-top" src="https://wallpaperscraft.com/image/clouds_milky_way_eclipse_light_68883_1024x768.jpg" alt="Clouds Milky"></a>
<div class="card-body">
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>
</div>
<div class="col-sm-6 col-lg-4">
<div class="card mt-3" style="width: 100%;">
<a href="https://getbootstrap.com/docs/4.0/components/card/#sizing" target="_blank"><img class="card-img-top" src="https://wallpaperscraft.com/image/clouds_milky_way_eclipse_light_68883_1024x768.jpg" alt="Clouds Milky"></a>
<div class="card-body">
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>
</div>
<div class="col-sm-6 col-lg-4">
<div class="card mt-3" style="width: 100%;">
<a href="https://getbootstrap.com/docs/4.0/components/card/#sizing" target="_blank"><img class="card-img-top" src="https://wallpaperscraft.com/image/clouds_milky_way_eclipse_light_68883_1024x768.jpg" alt="Clouds Milky"></a>
<div class="card-body">
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>
</div>
<div class="col-sm-6 col-lg-4">
<div class="card mt-3" style="width: 100%;">
<a href="https://getbootstrap.com/docs/4.0/components/card/#sizing" target="_blank"><img class="card-img-top" src="https://wallpaperscraft.com/image/clouds_milky_way_eclipse_light_68883_1024x768.jpg" alt="Clouds Milky"></a>
<div class="card-body">
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- CONTACT section -->
<section class="contact-section" id="contact">
<h3 class="display-3 text-center pb-5">Contact</h3>
<div class="container">
<div class="row">
<div class="col-lg-6 col-sm-12">
<!-- INPUTS -->
<form>
<div class="form-group">
<label for="name"></label>
<input type="name" class="form-control form-control-lg" id="name" placeholder="Your name">
<hr>
</div>
<div class="form-group">
<label for="email"></label>
<input type="email" class="form-control form-control-lg" id="email" placeholder="Your Email">
<hr>
</div>
<div class="form-group">
<label for="phoneNumber"></label>
<input type="phoneNumber" class="form-control form-control-lg" id="phoneNumber" placeholder="Your phone number">
<hr>
</div>
<div class="form-group">
<label for="textMessage"></label>
<textarea class="form-control form-control-lg" id="textMessage" rows="3" placeholder="Write your message here!"></textarea>
<hr>
</div>
</form>
<button type="submit" class="btn btn-dark" id="send-btn"> Send</button>
<hr>
</div>
<!-- Social Media -->
<div class="col-lg-6 col-sm-12">
<div class="jumbotron text-center" id="jumbotron2">
<a href="https://www.facebook.com" target="_blank">
<i class="fab fa-facebook-square fa-5x" style="text-decoration: none" id="facebookIcon"></i>
</a>
<a href="https://www.google.com" target="_blank">
<i class="fab fa-google-plus-square fa-5x" id="googleIcon"></i>
</a>
<a href="https://www.instagram.com" target="_blank">
<i class="fab fa-instagram fa-5x" id="instagramIcon"></i>
</a>
<a href="https://www.linkedin.com" target="_bank">
<i class="fab fa-linkedin fa-5x" id="linkedinIcon"></i>
</a>
<a href="https://www.freecodecamp.com" target="_blank">
<img src="https://pbs.twimg.com/profile_images/692531829287567360/ytP7U362_400x400.png" alt="FreeCodeCamp icon" id="freeCodeCampIcon"></a>
</div>
</div>
</div>
</section>
<!-- BOTTOM section -->
<section class="bottom-section" id="bottom">
<div class="containter-fluid">
<div class="row">
<div class="col-sm-12 col-lg-6">
<h4 class="text-center">Designed and coded by Michał Dziadkowiec.</h4>
</div>
<div class="col-sm-12 col-lg-6"><p class="lead text-center">
The page was created as a project of <a href="https://www.freecodecamp.com" target="_blank" style="text-decoration: none"> freeCodeCamp.com </a>course.</p>
<!-- practicing JavaScript -->
<p> Java Script practicing (seconds)</p>
<div id="zegar"></div>
<!-- SLIDER practicing -->
</div>
</div>
</div>
</section>
/* GENERAL */
body {margin-top: 0px;
background-color: #e6e6e6;}
/* navigation bar */
.navbar {position: fixed;
top: 0;
width: 100%;
overflow: hidden;
z-index: 999999;
background-color: #5c5c8a;
opacity: 0.9;
filter: alpha(opacity=50);
filter: grayscale(20%);}
.navbar-item {
text-align:right; /* makes buttons right after collapsing */
}
.btn-nav {color: white;
background-color: #5c5c8a;
border-style: none;
border-size: 1px;
border-color: #4040bf;}
.btn:hover {opacity: 0.7;
color: #ff4d4d;
background-color: #47476b;
box-shadow: 0px 8px 20px #47476b;
}
#navLogo {width: 70px;
height: 70px;
filter: grayscale(40%);}
.navbar-toggler-icon {color: white;}
#navLogo:hover {opacity: 0.8}
/* ABOUT section */
#jumbotron1 {background-image: url("http://pillift.pl/wp-content/uploads/2017/10/grey-abstract-tech-geometric-polygonal-motion-background-video-low-poly-animation-ultra-hd-4k-3840x2160_bhffvoz9p__F0000.png");
border-bottom: 3px solid #cc6600;}
.about-section {background-color: #b7b7b7;
padding-top: 95px;}
#fotoMe {border-radius: 50%;
width: 100%;
height: 100%;
filter: grayscale(50%);
box-shadow: 0px 50px 700px #5c5c8a;
}
/* PORTFOLIO section */
.portfolio-section {padding-top: 100px;
padding-bottom: 30px;
border-bottom: 3px solid grey;}
.card {
box-shadow: 0px 8px 20px #999;
}
.card-img-top:hover {opacity: 0.7;}
/* CONTACT section */
.contact-section {padding-top: 100px;
padding-bottom: 50px;
background-color: #cccccc;}
.form-control {background-color: transparent;
border-style: none;}
/* SOCIAL MEDIA / links - ICONS */
#jumbotron2 {background-color: white;
border-radius: 7%;
padding-top: 40px;
padding-bottom: 0px;}
#facebookIcon {color: #3b5998;}
#facebookIcon:hover {opacity: 0.7;}
#googleIcon {color: #dd4b39;}
#googleIcon:hover {opacity: 0.7;}
#instagramIcon {color: #32506d;}
#instagramIcon:hover {opacity: 0.7;}
#linkedinIcon {color: #007bb5;}
#linkedinIcon:hover {opacity: 0.7;}
#freeCodeCampIcon {border-radius: 10%;
width: 71px;
height: 71px;
margin-bottom: 52px;}
#freeCodeCampIcon:hover {
opacity: 0.7;}
/* BOTTOM section */
.bottom-section {background-color: #999999;}
/* zegar JS */
function odliczanie()
{ var dzisiaj = new Date();
var sekunda = dzisiaj.getSeconds();
document.getElementById("zegar").innerHTML = sekunda;
setTimeout("odliczanie(), 1000;")
}
/* photo slider */
$(document).ready(function(){
$("#btn1").click(function(){
$("#btn1").animate({height: "60px"});
});
$("#btn1").click(function(){
$("#btn1").animate({height: "50px"});
});
});
$(document).ready(function(){
$("#btn2").click(function(){
$("#btn2").animate({height: "60px"});
});
$("#btn2").click(function(){
$("#btn2").animate({height: "50px"});
});
});
$(document).ready(function(){
$("#btn3").click(function(){
$("#btn3").animate({height: "60px"});
});
$("#btn3").click(function(){
$("#btn3").animate({height: "50px"});
});
});
Also see: Tab Triggers