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.
<!--Header page -->
<header class="full-height text-center fixed">
<div class="container full-height text-center">
<div class="logo">Alexis Carmona</div>
<nav class="text-center">
<ul class="full-height">
<li><a href="#"><span class="glyphicon glyphicon-home"></span><br/>Home</a></li>
<li><a href="#"><span class="glyphicon glyphicon-user"></span><br/>About</a></li>
<li><a href="#"><span class="glyphicon glyphicon-dashboard"></span><br/>Skills</a></li>
<li><a href="#"><span class="glyphicon glyphicon-briefcase"></span><br/>Portfolio</a></li>
<li><a href="#"><span class="glyphicon glyphicon-link"></span><br/>Contact</a></li>
</ul>
</nav>
<div class="social-media relative">
<a href="https://github.com/alexisgcn" target="blank"><i class="fa fa-github" style="font-size:23px"></i></a>
<a href="https://www.freecodecamp.com/alexisgcn" target="blank"><i class="fa fa-free-code-camp" style="font-size:23px"></i></a>
<a href="https://codepen.io/alexis-carmona" target="blank"><i class="fa fa-codepen" style="font-size:23px"></i></a>
</div>
</div>
</header>
<!--Home page -->
<div id="home" class="full-height full-width absolute">
</div>
<div class="content row no-margin full-height full-width middle-xs center-xs relative up">
<div class="col-xs-12">
<div class="box">
<img src="https://media.licdn.com/mpr/mpr/shrinknp_200_200/AAEAAQAAAAAAAAbAAAAAJDBkOTUzMDM1LWU5ZjItNGM3Ny1hMDM1LTM4MDA4MTMxZWU2Zg.jpg" alt=""/>
<br /><br />
<h4>alexis carmona</h4>
<h1>Frontend Developer</h1>
</div>
</div>
</div>
<!--About page -->
<div id="about" class="full-height full-width">
<div class="row middle-xs center-xs relative">
<div class="col-xs-12">
<div class="box">
<h2>About</h2>
</div>
</div>
<div class="col-xs-10">
<div class="box">
<p>Hello, I'm Alexis, a Junior web developer, autodidact, and future industrial engineer. I love technology and I like to create for the Web. Also, I consider myself an eternal student because there are always new things to learn. Love Front-End as well as Back-End. I create stuff utilizing languages like Javascript, Python and tools like Jquery and Django. If you like the Web bring a cup of coffee and we will create wonders.</p>
</div>
</div>
<div class="col-xs-12">
<hr />
<div class="box">
<div class="social-media text-white">
<a href="https://github.com/alexisgcn" target="blank"><i class="fa fa-github" style="font-size:50px"></i></a>
<a href="https://www.freecodecamp.com/alexisgcn" target="blank"><i class="fa fa-free-code-camp" style="font-size:50px"></i></a>
<a href="https://codepen.io/alexis-carmona" target="blank"><i class="fa fa-codepen" style="font-size:50px"></i></a>
</div>
</div>
</div>
</div>
</div>
<!--Skills page -->
<div id="skills" class="full-height full-width relative text-center middle-xs">
<div class="container">
<div class="row">
<div class="col-xs-12">
<h2>Skills</h2>
<p>Im proficient in some languages and tools which I show below.</p>
</div>
<div class="col-xs-12">
<div class="box middle-xs">
<h3>HTML</h3>
<div class="progress">
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="90"
aria-valuemin="0" aria-valuemax="100" style="width:90%;height:25px; background-color:orange;">
</div>
</div>
<h3>CSS</h3>
<div class="progress">
<div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="85"
aria-valuemin="0" aria-valuemax="100" style="width:85%;height:25px; background-color:#6A5ACD;">
</div>
</div>
<h3>Bootstrap</h3>
<div class="progress">
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="80"
aria-valuemin="0" aria-valuemax="100" style="width:80%;height:25px; background-color:#8A2BE2;">
</div>
</div>
<h3>JavaScript</h3>
<div class="progress">
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="85"
aria-valuemin="0" aria-valuemax="100" style="width:85%;height:25px; background-color:#FFD700;">
</div>
</div>
<h3>Jquery</h3>
<div class="progress">
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="75"
aria-valuemin="0" aria-valuemax="100" style="width:75%;height:25px; background-color:#6A5ACD;">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--Portfolio page -->
<div id="portfolio" class="min-height full-width relative">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h2>Portfolio</h2>
</div>
<div class="col-lg-3 col-md-4 col-xs-6 thumb">
<a class="thumbnail" href="#">
<img class="img-responsive" src=https://www.web-savvy-marketing.com/wp-content/uploads/2012/05/H+Y-Responsive-View.png alt="">
</a>
</div>
<div class="col-lg-3 col-md-4 col-xs-6 thumb">
<a class="thumbnail" href="#">
<img class="img-responsive" src=https://www.web-savvy-marketing.com/wp-content/uploads/2012/05/H+Y-Responsive-View.png alt="">
</a>
</div>
<div class="col-lg-3 col-md-4 col-xs-6 thumb">
<a class="thumbnail" href="#">
<img class="img-responsive" src=https://www.web-savvy-marketing.com/wp-content/uploads/2012/05/H+Y-Responsive-View.png alt="">
</a>
</div>
<div class="col-lg-3 col-md-4 col-xs-6 thumb">
<a class="thumbnail" href="#">
<img class="img-responsive" src=https://www.web-savvy-marketing.com/wp-content/uploads/2012/05/H+Y-Responsive-View.png alt="">
</a>
</div>
<div class="col-lg-3 col-md-4 col-xs-6 thumb">
<a class="thumbnail" href="#">
<img class="img-responsive" src=https://www.web-savvy-marketing.com/wp-content/uploads/2012/05/H+Y-Responsive-View.png alt="">
</a>
</div>
<div class="col-lg-3 col-md-4 col-xs-6 thumb">
<a class="thumbnail" href="#">
<img class="img-responsive" src=https://www.web-savvy-marketing.com/wp-content/uploads/2012/05/H+Y-Responsive-View.png alt="">
</a>
</div>
<div class="col-lg-3 col-md-4 col-xs-6 thumb">
<a class="thumbnail" href="#">
<img class="img-responsive" src=https://www.web-savvy-marketing.com/wp-content/uploads/2012/05/H+Y-Responsive-View.png alt="">
</a>
</div>
<div class="col-lg-3 col-md-4 col-xs-6 thumb">
<a class="thumbnail" href="#">
<img class="img-responsive" src=https://www.web-savvy-marketing.com/wp-content/uploads/2012/05/H+Y-Responsive-View.png alt="">
</a>
</div>
<div class="col-lg-3 col-md-4 col-xs-6 thumb">
<a class="thumbnail" href="#">
<img class="img-responsive" src=https://www.web-savvy-marketing.com/wp-content/uploads/2012/05/H+Y-Responsive-View.png alt="">
</a>
</div>
<div class="col-lg-3 col-md-4 col-xs-6 thumb">
<a class="thumbnail" href="#">
<img class="img-responsive" src=https://www.web-savvy-marketing.com/wp-content/uploads/2012/05/H+Y-Responsive-View.png alt="">
</a>
</div>
<div class="col-lg-3 col-md-4 col-xs-6 thumb">
<a class="thumbnail" href="#">
<img class="img-responsive" src=https://www.web-savvy-marketing.com/wp-content/uploads/2012/05/H+Y-Responsive-View.png alt="">
</a>
</div>
<div class="col-lg-3 col-md-4 col-xs-6 thumb">
<a class="thumbnail" href="#">
<img class="img-responsive" src=https://www.web-savvy-marketing.com/wp-content/uploads/2012/05/H+Y-Responsive-View.png alt="">
</a>
</div>
</div>
</div>
</div>
<!--Contact page-->
<div id="contact" class="full-height full-width">
<div class="box">
<div class="col-xs-12">
<form>
<div class="form-group">
<label for="exampleInputName2">Name</label>
<input type="text" class="form-control" id="exampleInputName2" placeholder="Your name">
</div>
<div class="form-group">
<label for="exampleInputEmail2">Email</label>
<input type="email" class="form-control" id="exampleInputEmail2" placeholder="Your email">
</div>
<div class="form-group">
<textarea class="form-control" rows="3"></textarea>
</div>
<button type="submit" class="btn btn-primary">Send</button>
</form>
</div>
</div>
</div>
$white:#fff;
$gray: #F8F8FF;
$green:#20B2AA;
@import url('//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-glyphicons.css');
@import url("https://fonts.googleapis.com/css?family=Slabo+27px");
body,html {
margin: 0px;
padding: 0px;
width: 100%;
height: 100%;
}
.full-height{
height: 100%;
}
.min-height{
min-height: 100%;
}
.full-width{
width: 91%;
//float:right;
}
.relative{
position: relative;
}
.absolute{
position: absolute;
}
.fixed{
position: fixed;
}
.no-margin{
margin: 0px;
}
.up{
z-index: 500;
}
top{
top: 15px;
}
.text-white{
color: $white;
}
.container{
top:20px;
}
header{
z-index:1000;
width: 9%;
margin: 0px;
//display:none;
background-color: $green;
//background-color: #000;
color: $white;
.container{
width: 100%;
margin:0px;
padding: 0px;
}
}
//@import url('https://fonts.googleapis.com/css?family=Cookie');
@import url('https://fonts.googleapis.com/css?family=VT323');
.logo{
position: relative;
//top: 10px;
padding: 10px 5px;
//font-family: 'Cookie', cursive;
font-family: 'VT323', monospace;
font-size: 1.8em;
//text-transform:uppercase;
}
nav{
position:relative;
ul{
text-transform: uppercase;
padding: 0px;
font-family: 'Slabo 27px', serif;
color:$gray;
}
}
nav li{
//margin-top:40px;
//font-size:1.1em;
margin: 0px;
padding: 25px 5px;
display: block;
font-weight:bold;
&:hover{
background-color: #008B8B;
transition: all 0.6s;
width: 100%;
}
a{
text-decoration:none;
color:$gray;
&:hover{
text-decoration:none;
color:$white;
transition: all 0.6s;
}
}
}
span{
font-size: 20px;
}
.social-media{
padding: 25px 0px;
a{
text-decoration: none;
color: $gray;
&:hover{
color:gray;
transition: all 0.4s;
}
}
}
#home{
background-image:url(http://www.hdwallpapersfreedownload.com/uploads/large/cities/new-york-hd-background.jpg);
background-size: cover;
background-position:center;
filter: grayscale(85%) blur(1.9px);
margin-left:9%;
}
.content{
margin-left:9%;
img{
border-radius: 50%;
}
h1{
text-transform:uppercase;
color: #fff;
font-size: 3.5em;
font-weight: 800;
margin:0px;
}
h4{
text-transform:uppercase;
color: #fff;
font-size: 2.5em;
font-weight: bold;
}
}
#about{
background-color: $gray;
margin-left:9%;
.row{
top:10%;
}
h2{
color:#000;
text-transform:uppercase;
//margin-top: 5%;
font-weight:700;
margin-bottom:10%;
}
p{
font-size: 1.3em;
color: #000;
//margin-top: 2%;
}
a{
color: #000;
margin: 0px 20px;
&:hover{
color: $green;
transition: all 0.4s;
}
}
}
#skills{
background-image:url(https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSkZ3m8dENpl-j_BZMQFZiNpCgpw0rqdKGYsqjr_A3XeTXt1l-8);
background-size: cover;
background-position: center;
margin-left:9%;
color:#000;
.row{
top:10%;
}
.progress{
margin: 10px 5px;
}
h2{
text-transform:uppercase;
//margin-top: 5%;
font-weight:700;
margin-bottom: 0px;
margin-top:5%;
}
h3{
font-weight: 700;
}
p{
font-size:1.3em;
color:$green;
margin-bottom: 3%;
}
}
#portfolio{
background-color:$gray;
margin-left:9%;
.container{
.thumb {
margin-bottom: 30px;
}
}
h2{
text-transform:uppercase;
font-weight: 700;
margin-bottom: 20px;
}
}
#contact{
margin-left:9%;
}
Also see: Tab Triggers