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.
<section id="cover">
<div class="container">
<div class="row">
<div class="col-sm-3">
<p class="lead wall-sticker">
I'm <br> Vladimir <br> Pak <br>
<a href="#features"><button type="button" class="btn btn-primary btn-lg">Learn more</button></a>
</p>
</div>
<div class="col-sm-9">
<h1 class="moto">This is my <span class="bold-green">Portfolio</span> Check it<span class="green-underline"><br>out</span></h1>
<a href="#section-cards" id="arrow-down"><i class="fa fa-arrow-down"></i></a>
</div>
</div>
</div>
</section>
<nav class="navbar navbar-dark bg-inverse">
<button class="navbar-toggler hidden-sm-up" type="button" data-toggle="collapse" data-target="#exCollapsingNavbar2" aria-controls="exCollapsingNavbar2" aria-expaded="false" aria-label="Toggle navigation">☰</button>
<div class="collapse navbar-toggleable-xs" id="exCollapsingNavbar2">
<a class="navbar-brand" href="#cover">My <span class="bold-green">Portfolio</span></a>
<ul class="nav navbar-nav">
<li class="nav-item">
<a class="nav-link" href="#cover">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#features">Skills</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#section-cards">Projects</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#testimonials">About me</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#contact">Contact me</a>
</li>
</ul>
</div>
</nav>
<section id="features">
<div class="section-features">
<div class="container">
<h2 class="heading js-wp-1">What <span class="bold-green">I </span> know</h2>
<p class="lead under-heading js-wp-1">My Skills</p>
<div class="row">
<div class="col-sm-3 square js-wp-2">
<i class="fa fa-free-code-camp fa-5x" aria-hidden="true"></i>
<hr class="green-hr">
<p>Proud to be a freecodecamp student</p>
</div>
<div class="col-sm-3 square js-wp-4">
<i class="fa fa-html5 fa-5x" aria-hidden="true"></i>
<hr class="green-hr">
<p>Have a foundation of markup language</p>
</div>
<div class="col-sm-3 square js-wp-4">
<i class="fa fa-css3 fa-5x" aria-hidden="true"></i>
<hr class="green-hr">
<p>Know how to impliment Cascading Style Sheet</p>
</div>
<div class="col-sm-3 square js-wp-3">
<i class="fa fa-code fa-5x" aria-hidden="true"></i>
<hr class="green-hr">
<p>Learning other languages such as javaScript and jQuery</p>
</div>
</div>
<!-- ROW -->
</div>
<!-- CONTAINER -->
</div>
<!-- SECTION-FEATURES -->
</section>
<!-- SECTION -->
<section id="section-parallax" data-type="background" data-speed="4">
<div class="container">
<div class="row">
<div class="col-sm-8 offset-sm-2">
<h2>Send me a <strong><span class="bold-green">message</span></strong>?</h2>
<p><a href="#contact" class="btn btn-lg btn-block btn-success parallax-btn">Yes, please!</a></p>
</div>
</div>
</div>
</section>
<section id="testimonials">
<div class="section-testimonials">
<div class="container">
<h2>My name is <span class="bold-green">Vladimir Pak</span></h2>
<div class="about me">
<div class="row">
<div class="col-md-12">
<div class="row testimonial">
<div class="col-md-12">
<img src="https://res.cloudinary.com/dfqddpjfl/image/upload/v1485881584/me_wobrbc.gif" class="monice-img">
</div>
<div class="col-sm-12">
<q>I'm from Brooklyn, NY</q>
<hr class="testimonials-hr">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<section id="section-cards">
<div class="container">
<h2>My <span class="bold-green">Projects</span></h2>
<div class="row">
<div class="col-sm-4">
<div class="card">
<img src="https://res.cloudinary.com/dfqddpjfl/image/upload/v1482751777/stars-bg_jk6jfe.jpg" alt="Card image">
<div class="card-block">
<p class="card-text">Project #1</p>
<a href="#" class="card-link">Project link</a>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="card">
<img src="https://res.cloudinary.com/dfqddpjfl/image/upload/v1471845092/rsz_new-york_1_yelu4i.jpg" alt="Card image">
<div class="card-block">
<p class="card-text">Project #2</p>
<a href="#" class="card-link">Project link</a>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="card">
<img src="https://res.cloudinary.com/dfqddpjfl/image/upload/v1471844774/new-york-2_qegleu.jpg" alt="Card image">
<div class="card-block">
<p class="card-text">Project #3</p>
<a href="#" class="card-link">Project link</a>
</div>
</div>
</div>
</div>
</div>
<!-- end of container-->
</section>
<section id="contact">
<div class="section-contact">
<div class="container">
<div class="row">
<div class="col-md-8 offset-md-2">
<h2>Leave me a <span class="bold-green">message</span>!</h2>
<form class="form-horizontal" role="form" method="post" action="index.php">
<div class="form-group">
<label for="name" class="col-sm-2 control-label">Name</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="name" name="name" placeholder="First & Last Name" value="">
</div>
</div>
<div class="form-group">
<label for="email" class="col-sm-2 control-label">Email</label>
<div class="col-sm-10">
<input type="email" class="form-control" id="email" name="email" placeholder="example@domain.com" value="">
</div>
</div>
<div class="form-group">
<label for="message" class="col-sm-2 control-label">Message</label>
<div class="col-sm-10">
<textarea class="form-control" row="4" name="message"></textarea>
</div>
</div>
<div class="form-group">
<div class="col-sm-8 col-sm-offset-2">
<input id="submit" name="submit" type="submit" value="Send message!" class="btn btn-success">
</div>
</div>
<div class="form-group">
<div class="col-sm-10 col-sm-offset-2">
<!--Will be used to display an alert to the user>-->
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</section>
<footer class="footer">
<div class="container">
<div class="row">
<div class="col-sm-4">
<p>Copyright © Created by me</p>
</div>
<div class="col-sm-4">
<ul class="social-links">
<li><a href="https://www.facebook.com/vladimir.pak.7"><i class="fa fa-facebook-official fa-2x" aria-hidden="true"></i></li>
<li><a href=""><i class="fa fa-github-square fa-2x" aria-hidden="true"></i></a></li>
</ul>
</div>
<div class="col-sm-4 scroll-to-top-button">
<a href="#cover"><i class="fa fa-3x fa-chevron-circle-up"></i></a>
</div>
</div>
</div>
</footer>
/* Colors
rgba(19, 128, 36, 0.54);
*/
html,
body {
height: 100%;
font-size: 16px;
font-family: 'Oswald', sans-serif;
background: url('https://res.cloudinary.com/dfqddpjfl/image/upload/v1482751862/pattern_c2b2lx.jpg') center center;
}
/* FONT FACES */
/*
@font-face {
font-family: 'Oswald', sans-serif;
}
@font-face {
font-family: 'Oswald', sans-serif;
}
*/
/* SECTION COVER */
#cover {
background: url("https://res.cloudinary.com/dfqddpjfl/image/upload/v1485880770/success_gluznb.jpg") center;
background-size: cover;
background-attachment: fixed;
color: white;
}
.wall-sticker {
background: rgba(0, 0, 0, 0.4);
padding: 14rem 20rem 16rem 3rem;
font-family: 'Cubano-Regular';
font-size: 5rem;
color: white;
}
.moto {
font-family: 'Cubano-Regular';@
font-size: 3rem;
margin-top: 245px;
margin-left: 350px;
text-align: center;
}
/* BUTTONS */
.btn-lg,
.btn-success-outline {
background-color: transparent;
border-radius: 5px;
border: 1px solid rgba(19, 128, 26, 1);
font-family: 'Nunito-Regular';
transition: 0.5s;
}
.btn-lg:hover,
.btn-lg:focus,
.btn-lg:active,
.btn-success-outline:hover,
.btn-success-outline:focus,
.btn-success-outline:active {
background-color: rgba(19, 128, 36, 0.54);
border: 1px solid rgba(19, 128, 26, 0);
transition: 0.5s;
}
.fa-arrow-down {
margin-left: 35rem;
margin-top: 50px;
font-size: 2.5rem;
color: white;
transition: 0.3s;
}
.fa-arrow-down:hover {
color: rgba(19, 128, 36, 0.54);
transition: 0.3s;
}
.parallax-btn {
width: 200px;
margin: 30px auto 0 auto;
}
/* SPANS */
.bold-green {
color: rgba(19, 128, 36, 0.9);
}
.green-underline {
border-bottom: 1px solid rgba(19, 128, 36, 0.9);
}
/* NAVBAR */
.navbar-brand {
font-family: 'Cubano-Regular';
padding-right: 15px;
}
#exCollapsingNavbar2 {
font-family: 'Nunito-Regular';
}
.nav-item a {
border-bottom: 1px solid transparent;
transition: 0.5s;
}
.nav-item a:hover {
border-bottom: 1px solid green;
transition: 0.5s;
}
.navbar-toggler {
color: white;
}
/* SECTION FEATURES */
.section-features {
padding: 5rem 0;
/*
background: url('../img/pattern.jpg') center center;
*/
}
.square {
text-align: center;
}
.square i {
text-align: center;
margin-top: 5rem;
margin-bottom: 1rem;
transition: 0.3s;
}
.square i:hover {
color: rgba(19, 128, 36, 1);
transition: 0.3s;
}
.square p {
padding-top: 1rem;
font-family: 'Nunito-Regular';
font-size: 1.2rem;
}
.green-hr {
border-top: 1px solid rgba(19, 128, 36, 1);
width: 150px;
background-color: rgba(19, 128, 36, 1);
}
.heading,
.under-heading {
text-align: center;
padding-top: 30px;
}
.fa-html5:hover {
color: #ffa500 !important;
}
.fa-css3:hover {
color: #000099 !important;
}
.fa-code:hover {
color: #B20000 !important;
}
/* SECTION TIMELINE */
.section-timeline {
background-color: white;
padding-top: 5rem;
}
.timeline {
list-style: none;
padding: 20px 0 80px;
padding-top: 50px;
position: relative;
}
.timeline:before { /* GREY LINE */
top: 0;
bottom: 0;
position: absolute;
content: " ";
width: 3px;
background-color: #eeeeee;
left: 50%;
margin-left: -1.5px;
}
.timeline > li {
margin-bottom: 20px;
position: relative;
}
.timeline > li:before,
.timeline > li:after {
content: "";
display: table;
}
.timeline > li:after {
clear: both;
}
.timeline > li > .timeline-panel {
width: 50%;
float: left;
border: 1px solid #d4d4d4;
border-radius: 2px;
padding: 20px;
position: relative;
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.175);
}
.timeline p {
font-family: 'Nunito-Regular';
font-weight: 700;
}
.timeline > li:not(.timeline-inverted) {
padding-right: 90px;
}
.timeline > li.timeline-inverted {
padding-left: 90px;
}
.timeline > li > .timeline-badge {
font-size: 1rem; !important;
color: #fff;
width: 50px;
height: 50px;
line-height: 50px;
text-align: center;
position: absolute;
top: 16px;
left: 50%;
margin-left: -25px;
background-color: rgba(19, 128, 36, 0.82);
border-top-right-radius: 50%;
border-top-left-radius: 50%;
border-bottom-right-radius: 50%;
border-bottom-left-radius: 50%;
}
.timeline > li.timeline-inverted > .timeline-panel {
float: right;
}
.fa.fa-clock-o {
padding-right: 3px;
}
/* SECTION PARALLAX */
#section-parallax {
text-align: center;
background: url("https://res.cloudinary.com/dfqddpjfl/image/upload/v1482766010/trees_cvx3m9.jpg") center repeat fixed;
padding: 140px 0;
background-size: cover;
color: white;
}
/* SECTION CARDS */
#section-cards h2 {
text-align: center;
padding-top: 35px;
}
#section-cards {
padding: 5rem 0;
}
.card {
margin-top: 3rem;
}
.card img {
height: 180px;
width: 100%;
transition: 1s;
}
.card img:hover {
transform: scale(0.98);
transition: 1s;
}
.card a {
color: rgba(19, 128, 36, 0.90);
}
.card a:hover {
color: rgb(19, 128, 36);
}
/* SECTION NUMBERS */
.section-numbers {
background-color: white;
padding-top: 5rem;
}
h2 {
text-align: center;
}
.num-content {
display: table;
font-size: 20px;
line-height: 20px;
height: 140px;
width: 140px;
background: rgba(19, 128, 36, 0.91);
border-radius: 100px;
color: white;
transition: 0.3s;
}
.num .num-content {
display: table-cell;
vertical-align: middle;
}
.num {
text-align: center;
padding-top: 5rem;
padding-bottom: 5rem;
margin-left: 80px;
}
.num-content p {
padding-top: 15px;
}
.num-content:hover {
color: #222;
transition: 0.3s;
}
/* SECTION TESTIMONIALS */
.section-testimonials {
padding-top: 5rem;
}
.testimonial {
margin-top: 5rem;
padding-bottom: 5rem;
}
.monka-img,
.mario-img,
.monice-img {
position: relative;
bottom: 30px;
width: 135px;
height: auto;
border-radius: 50%;
transition: 0.5s;
}
.monka-img:hover,
.mario-img:hover,
.monice-img:hover {
transition: 0.5s;
transform: scale(0.95);
}
q {
font-size: 25px;
}
.fa.fa-quote-right {
margin-right: 10px;
float: right;
}
.testimonials-hr {
border-top: 1px solid rgba(19, 128, 36, 1);
width: 260px;
background-color: rgba(19, 128, 36, 1);
}
.about.me {
text-align: center;
}
/* SECTION CONTACT */
.section-contact {
background-color: white;
padding: 10rem 0;
}
#contact .control-label {
font-size: 20px;
line-height: 80%;
margin-top: 10px;
}
.form-control {
font-size: 18px;
}
.form-horizontal {
padding-top: 5rem;
}
textarea:focus, input:focus {
border-color: rgba(19, 128, 36, 0.53) !important;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 1px rgba(231, 76, 60, 0.05) !important;
}
#contact .btn.btn-success {
background-color: rgba(19, 128, 36, 1);
border: 1px solid rgba(19, 128, 36, 1);
border-radius: 5px;
font-size: 20px;
margin-top: 50px;
margin-bottom: 5rem;
transition: 0.5s;
}
#contact .btn.btn-success:hover {
background-color: rgba(19, 128, 36, 0.9);
border: 1px solid rgba(19, 128, 36, 1);
transition: 0.5s;
}
/* FOOTER */
footer {
background-color: #222;
padding-bottom: 10px;
position: relative;
text-align: center;
}
.social-links {
list-style: none;
float: right;
margin-top: 20px;
}
.social-links li {
display: inline-block;
margin-right: 20px;
margin-top: 30px;
padding-right: 25px;
}
.social-links li:last-child {
margin-right: 0;
}
.social-links li a:link,
.social-links li a:visited {
text-decoration: none;
border: 0;
color: #888;
font-size: 160%;
transition: 0.2s;
}
.fa-facebook-official:hover {
color: #3b5998;
}
.fa-github-square:hover {
color: #4078c0;
}
.fa-facebook-square,
.fa-github-square {
transition: 0.2s;
}
footer p {
color: #888;
text-align: center;
margin-top: 45px;
font-size: 18px;
}
.fa-chevron-circle-up {
margin-top: 35px;
color: rgb(14, 96, 27);
transition: 0.2s;
}
.fa-chevron-circle-up:hover {
color: rgba(14, 96, 27, 0.92);
transition: 0.2s;
}
/* ANIMATIONS */
.js-wp-1 {
opacity: 0;
}
.js-wp-1.animated {
opacity: 1;
}
.js-wp-2 {
opacity: 0;
animation-delay: 0.7s;
}
.js-wp-2.animated {
opacity: 1;
}
.js-wp-3 {
opacity: 0;
animation-delay: 0.7s;
}
.js-wp-3.animated {
opacity: 1;
}
.js-wp-4 {
opacity: 0;
}
.js-wp-4.animated {
opacity: 1;
animation-delay: 1.4s;
}
/* RESPONSIVENESS */
@media only screen and (max-width: 1920px) {
.wall-sticker {
font-size: 5rem;
padding: 13rem 22rem 10rem 3rem;
}
}
@media only screen and (max-width: 1200px) {
.fa-facebook-square,
.fa-github-square {
font-size: 43px;
}
}
@media only screen and (max-width: 1024px) {
.navbar {
font-size: 15px;
}
.fa-arrow-down {
position: absolute;
right: 135px;
}
.monka-img,
.mario-img,
.monice-img {
width: 85px;
height: 85px;
}
.testimonials-hr {
width: 210px;
}
.fa-facebook-square,
.fa-github-square {
font-size: 55px;
}
}
@media only screen and (max-width: 992px) {
.moto {
font-size: 2.2rem;
}
.fa-facebook-square,
.fa-github-square {
font-size: 2em;
}
}
@media only screen and (max-width: 768px) {
.moto {
display: none;
}
.fa.fa-arrow-down {
display: block;
position: relative;
margin: 18em auto;
left: -85px;
}
#arrow-down, #arrow-down:hover{
text-decoration: none !important;
}
.fa-chevron-circle-up {
font-size: 40px;
}
.monka-img,
.mario-img,
.monice-img {
width: 65px;
height: 65px;
}
.num {
margin-left: 0;
}
.fa-facebook-square,
.fa-github-square {
font-size: 35px;
}
}
.social-links li {
display: inline-block;
margin-right: 10px;
margin-top: 10px;
padding-right: 15px;
}
@media only screen and (max-width: 640px) {
.fa.fa-arrow-down {
display: block;
position: relative;
margin: 18em auto;
left: -45px;
}
#arrow-down, #arrow-down:hover{
text-decoration: none !important;
}
}
@media only screen and (max-width: 541px) {
.fa.fa-arrow-down {
display: block;
position: static;
margin: 20px auto;
text-align: center;
}
#cover {
padding-top: 125px;
}
.footer {
padding: 3px;
}
.fa-chevron-circle-up {
position: relative;
bottom: 44px;
padding-top: 35px;
font-size: 40px;
}
}
@media only screen and (max-width: 480px) {
.testimonial {
margin-top: 2.5rem;
padding-bottom: 2.5rem;
}
.num {
margin-left: 0.1px;
}
.footer {
padding: 3px;
}
.fa.fa-arrow-down {
display: block;
position: relative;
margin: 18em auto;
left: -95px;
bottom: 21em;
}
#arrow-down, #arrow-down:hover{
text-decoration: none !important;
}
}
$(document).ready(function() {
$(".nav-link").click(function(){
$(".collapse").collapse("toggle");
});
$(window).scroll(function() {
if ($(window).scrollTop() > 970) {
$('.navbar').addClass('navbar-fixed-top');
}
if ($(window).scrollTop() < 971) {
$('.navbar').removeClass('navbar-fixed-top');
}
});
});
$(".navbar-dark ul li a[href^='#']").on('click', function(e) {
e.preventDefault();
var hash = this.hash;
$('html, body').animate({
scrollTop: $(hash).offset().top
}, 900, function() {
window.location.hash = hash;
});
});
$("#section-parallax .col-sm-8 a[href^='#']").on('click', function(e) {
e.preventDefault();
var hash = this.hash;
$('html, body').animate({
scrollTop: $(hash).offset().top
}, 300, function() {
window.location.hash = hash;
});
});
$(".footer .scroll-to-top-button a[href^='#']").on('click', function(e) {
e.preventDefault();
var hash = this.hash;
$('html, body').animate({
scrollTop: $(hash).offset().top
}, 300, function() {
window.location.hash = hash;
});
});
$('.js-wp-1').waypoint(function(direction) {
$('.js-wp-1').addClass('animated fadeInDown');
}, {
offset: '50%'
});
$('.js-wp-2').waypoint(function(direction) {
$('.js-wp-2').addClass('animated fadeInLeft');
}, {
offset: '50%'
});
$('.js-wp-3').waypoint(function(direction) {
$('.js-wp-3').addClass('animated fadeInRight');
}, {
offset: '50%'
});
$('.js-wp-4').waypoint(function(direction) {
$('.js-wp-4').addClass('animated fadeInUp');
}, {
offset: '50%'
});
$('a[href^="#"]').on('click', function(event) {
var target = $(this.getAttribute('href'));
if (target.length) {
event.preventDefault();
$('html, body').stop().animate({
scrollTop: target.offset().top
}, 2000);
}
});
Also see: Tab Triggers