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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.
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.
If the stylesheet 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 CSS 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.
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>
<div id="home" class="desk-background">
<div class="banner">
<a href="#" class="navbar-left"><img src="http://res.cloudinary.com/wateryourroots/image/upload/c_scale,w_150/v1497471425/WatkinsDesigns3_zd0kvr.png"></a>
<ul>
<li><a href="#home">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#works1">Works</a></li>
<li><a href="#skills1">Skills</a></li>
<li><a href="#future1">Future</a></li>
<li><a href="#contact1">Contact</a></li>
</ul>
<ul id="icons">
<li><a href="#" class="fa fa-github"></a></li>
<li><a href="#" class="fa fa-codepen"></a></li>
<li><a href="#" class="fa fa-instagram"></a></li>
<li><a href="#" class="fa fa-facebook"></a></li>
</ul>
</div>
<div class="flex-container">
<h1 class="title-name">Danny Watkins</h1>
<p class="job-title">UX/UI Designer<p>
</div>
</div>
<section id="about" class="about">
<img id="pic" src="http://res.cloudinary.com/wateryourroots/image/upload/c_scale,h_2257,w_1750/v1502888018/BW_Headshot_w1xqpo.jpg"/>
<h1 id="hello">Hello.</h1><h2>I'm Danny Watkins, an aspiring UX/UI Designer based out of Cincinnati, OH. I have a background in Design and Programming and am here to engineer simple, clean, and creative site architectures for you. I work with your visions and goals to shape the best website possible. I'm a design fiend eager to take on new projects, this site is a little showcase of my work. </h2>
</section>
<section id="works" class="works">
<h1 id="worksTitle">Works</h1>
<div class="row">
<div class="col-md-4 col-sm-6 col-xs-12">
<a href="https://www.monarchoutdoorco.com/" target="_blank">
<div class="block wow rotateInDownLeft" data-wow-duration="1s" data-wow-delay="0.15s">
<div class="works-thumb" id="work-1"></div>
<div class="works-caption">Monarch Outdoor Company Squarespace</div>
</div>
</a>
</div>
<div class="col-md-4 col-sm-6 col-xs-12">
<a href="https://codepen.io/Wateryourroots/pen/wevoRX" target="_blank">
<div class="block wow rotateInDownLeft" data-wow-duration=".8s" data-wow-delay="0.3s">
<div class="works-thumb" id="work-2"></div>
<div class="works-caption">FreeCodeCamp First Project: Tribute Page</div>
</div>
</a>
</div>
<div class="col-md-4 col-sm-6 col-xs-12">
<a href="https://codepen.io/Wateryourroots/pen/yXJVVy" target="_blank">
<div class="block wow rotateInDownLeft" data-wow-duration=".8s" data-wow-delay="0.45s">
<div class="works-thumb" id="work-3"></div>
<div class="works-caption">FreeCodeCamp Second Project: Portfolio Page</div>
</div>
</a>
</div>
</section>
<section id="skills1" class="skills">
<h1 id="skills">Skills</h1>
<div class="container">
<div class="row">
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-3">
<div class="skills-thumb wow bounceIn" data-wow-duration="1.5s" data-wow-delay="0s"><img src="http://res.cloudinary.com/wateryourroots/image/upload/v1498004974/logo_mdv1re.ico" alt="HTML5 logo" class="img-responsive img-thumbnail center-block">
<h3>HTML5</h3>
</div>
</div>
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-3">
<div class="skills-thumb wow bounceIn" data-wow-duration="1.5s" data-wow-delay="0.2s"><img src="http://res.cloudinary.com/wateryourroots/image/upload/v1498008180/icon-bootstrap_yznnza.png" alt="rwd logo" class="img-responsive img-thumbnail center-block">
<h3>Bootstrap</h3>
</div>
</div>
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-3">
<div class="skills-thumb wow bounceIn" data-wow-duration="1.5s" data-wow-delay="0.4s"><img src="http://res.cloudinary.com/wateryourroots/image/upload/v1498005090/java_gcqkov.png" alt="JS logo" class="img-responsive img-thumbnail center-block">
<h3>Javascript</h3>
</div>
</div>
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-3">
<div class="skills-thumb wow bounceIn" data-wow-duration="1.5s" data-wow-delay="0.6s"><img src="http://res.cloudinary.com/wateryourroots/image/upload/v1498007878/css3_tme0jo.svg" alt="CSS logo" class="img-responsive img-thumbnail center-block">
<h3>CSS3</h3>
</div>
</div>
</div>
</div>
</section>
<section id="future1" class="future">
<h1 id="future">Future</h1>
<p class="future2">Here's a quick background of myself. I'm 27 years old, I grew up in Cincinnati, OH and attended Arizona State University. I pursued degrees in Marketing and Philosophy. Shortly after college I opted to explore my passions furthur and settled in the mountains of Telluride, CO. After a few years of personal growth and organizing priorities, I decided it was time for the next step. Leaving the mountains was bittersweet but it opened up a clear path for me and I couldn't be more confident in the path that lays ahead. Los Angeles, CA is the next destination, a true land of opportunity for Tech and Fashion (my favorite beasts to quarrel with). I'm fairly new to the World of Programming and Design but I've always had a natural eye for colors, layouts, patterns, environments, and overall aestetics. I did feel however that I wasn't using my full capabilities. In the past couple months, that has changed. It started with acquiring a basic data analyst contracting position at a tech startup in downtown Cincinnati. As I observed what was going on around me, I started to become exceedingly fascinated with what felt like a foreign environment. A new environment of brilliant, keyboard wielding engineers. Developers that were fueled by problems that most of us would easily quit pursuing. People that utilized the power of the computer and the tools of technology to create applications that solved real-world problems or even just basic life-hacks. These people were very intriguing to me. I started picking the devoloper's brains, yearning to learn more about this world I knew little about. I quickly realized how exceptionally helpful the tech community can be. My co-workers were glad to help and send me down the right path. I was thrown through the hazing of learning basic binary, assembly code, and the different parts and processes of the computer. From there I set out to learn the holy trinity of HTML, CSS, and Javascript. My nights and weekends are completely dedicated to learning more and more of the tech sector. I utilize online programs, communities, books and tutorials. I keep my basic mathematics sharp (kudos to MIT and Khan Academy), and I constantly practice logic word problems and lateral thinking to explore the benefits of multiple thought processes. What I lack in experience I more than make up in raw passion and eagerness to excel. As of now, I'm polishing my HTML and CSS abilities, honing in on responsive design (both Bootstrap and Flexbox) and learning to power up the great tool that is Javascript. I plan to become strong and fluent with JavaScript and then start heading towards Python, Ruby on Rails, and C next. This world of technology seems to be limitless and there's so much to learn and absorb, it's simultaneously exciting and daunting. I may be at the beginning but I'm looking straight ahead and the future is bright.</p>
</section>
<section id="contact1" class="contact">
<h1 id="contact">Get In Touch</h1>
<div class="contacts-data">
<i class="fa fa-paper-plane fa-2x"></i>
<span class="contact-text">dannywatkins13@gmail.com</span>
</div>
<div class="contacts-data">
<i class="fa fa-phone fa-2x"></i>
<span class="contact-text">+5132835316</span>
</div>
<div class="contacts-data">
<i class="fa fa-skype fa-2x"></i>
<span class="contact-text">@WaterYourRoots</span>
</div>
<div class="contacts-data">
<i class="fa fa-instagram fa-2x"></i>
<span class="contact-text">@monarchoutdoorco</span>
</div>
<footer>ALL RIGHTS RESERVED. WATKINS DESIGNS 2017.</footer>
</section>
</body>
</html>
@import url("https://fonts.googleapis.com/css?family=Poppins");
@import url("https://fonts.googleapis.com/css?family=Grand+Hotel");
@import url(https://fonts.googleapis.com/css?family=Lato);
.desk-background {
display: flex;
background: url("https://static.pexels.com/photos/7100/iphone-desk-laptop-notebook.jpg") no-repeat center center fixed;
background-size: cover;
height: 800px;
}
header {
height: 0px;
}
.banner {
background-color: rgba(0,0,0,0.15);
width: 100%;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
height: 250px;
position: fixed;
}
.banner ul {
display: flex;
list-style-type: none;
margin: 0px 105px 55px 60px;
flex-wrap: nowrap;
}
li {
padding: 30px;
font-size: 25px;
font-family: 'Poppins';
}
a {
text-decoration: none;
color: rgba(255,255,255,0.50);
}
img {
display: flex;
margin: 40px
}
#icons {
margin: 0px 35px 50px 200px;
}
.flex-container {
display: flex;
align-items: center;
flex-wrap: wrap;
height: 100%;
}
.title-name {
color: rgba(255,255,255,0.7);
font-family: 'Grand Hotel';
font-size: 120px;
margin: -15px 280px 0px;
}
.job-title {
font-size: 28px;
font-family: 'Poppins';
color: rgba(255,255,255,0.50);
margin: 120px 0px 0px -550px
}
.about {
display: flex;
flex-direction: column;
background-color: white;
height: 600px;
justify-content: center;
align-items: center;
}
#pic {
width: 400px;
height: 550px;
margin: -675px 0px 0px 700px;
opacity: 0.65;
}
#pic:hover {
opacity: 1.0;
}
#hello {
align-self: flex-start;
margin: 30px 173px;
font-size: 60px;
font-family: 'Poppins';
color: rgba(0,0,0,0.8);
}
h2 {
font-family: 'Poppins';
margin: 0px 175px;
line-height: 1.2;
color: rgba(0,0,0,0.7)
}
p {
font-family: 'Poppins';
margin: 120px;
color: rgba(0,0,0,0.7)
}
.future2 {
text-indent: 50px;
font-family: 'Poppins';
line-height: 1.4;
font-size: 20px;
color: rgba(0,0,0,0.7);
width: 85%;
}
.skills {
display: flex;
background: url("https://s-media-cache-ak0.pinimg.com/originals/8c/3c/c1/8c3cc1d5271a13a40c65c76b145473d7.png") no-repeat center center fixed;
background-size: cover;
height: 700px;
align-items: center;
flex-direction: column;
}
.container {
height: 50%;
width: 50%;
margin-top: 50px;
}
#skills {
font-family: 'Poppins';
align-self: center;
margin: 50px;
font-size: 50px;
color: rgba(255,255,255,0.50);
}
#worksTitle {
display: flex;
font-family: 'Poppins';
font-size: 50px;
color: rgba(255,255,255,0.50);
justify-content: center;
}
i {
margin-right: 15px;
}
.future {
display: flex;
background-color: white;
height: 850px;
justify-content: center;
align-items: center;
flex-direction: column;
}
#future {
font-family: 'Poppins';
font-size: 50px;
align-item: center;
color: rgba(0,0,0,0.9);
}
.contact {
display: flex;
background: url("https://s-media-cache-ak0.pinimg.com/originals/8c/3c/c1/8c3cc1d5271a13a40c65c76b145473d7.png") no-repeat center center fixed;
background-size: cover;
height: 800px;
justify-content: flex-start;
align-items: center;
flex-direction: column;
}
.contacts-data {
display: flex;
font-family: 'Poppins';
align-self: center;
font-size: 20px;
margin: 10px;
color: rgba(255,255,255,0.9);
}
#contact {
font-family: 'Poppins';
align-self: center;
margin: 50px 0px 170px;
font-size: 50px;
color: rgba(255,255,255,0.50);
}
h3 {
font-family: 'Poppins';
align-self: center;
margin: 50px 50px;
font-size: 20px;
color: rgba(255,255,255,0.50);
}
footer {
font-family: 'Poppins';
margin-top: 235px;
font-size: 12px;
color: rgba(255,255,255,0.8);
text-align: center;
}
/*works*/
.block {
box-shadow: 1.5px 1.5px 1.5px 3px #FFF;
overflow: hidden;
position: relative;
margin-bottom: 10%;
}
.works {
padding-bottom: 10%;
padding-top: 10%;
padding-left: 5%;
padding-right: 5%;
background: rgb(44, 45, 44);
}
.works-thumb {
height: 350px;
}
#work-1 {
background: url("http://res.cloudinary.com/wateryourroots/image/upload/v1504289212/A_lcd0ad.png") no-repeat 100%;
background-size: cover;
}
#work-2 {
background: url("http://res.cloudinary.com/wateryourroots/image/upload/c_scale,h_899,w_1550/v1499649241/tribute_screenshot_htri0m.png") no-repeat 100%;
background-size: cover;
}
#work-3 {
background: url("http://res.cloudinary.com/wateryourroots/image/upload/v1504289297/AA_n23dlw.png") no-repeat 100%;
background-size: cover;
}
.block::after, .block::before {
content: '';
background: rgba(0,0,0,0.6);
position: absolute;
display: block;
width: 50%;
height: 100%;
top: 0;
overflow: hidden;
}
.block::after {
left: -50%;
transition: 0.5s;
}
.block::before {
right: -50%;
transition: 0.5s;
}
.block:hover:after {
left: 0;
}
.block:hover:before {
right: 0;
}
.works-caption {
text-align: center;
font-family: "Lato", serif;
font-size: 2rem;
letter-spacing: 0.4rem;
position: absolute;
border-radius: 10px;
display: block;
padding: 15px 2px;
width: 60%;
left: 20%;
top:-40%;
z-index: 1;
color: #fff;
border: 2px solid #fff;
transition: top 0.5s;
}
.block:hover .works-caption {
top: 33%;
}
/*.works {
margin: 0, 100, 0, 0;
}*/
/*works end*/
$(function(){
new WOW().init();
});
Also see: Tab Triggers