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.
<body class="text-center bgimg" style="background-position:top">
<nav class="navbar navbar-default navbar-fixed-top" style="padding-top:-20px;" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>>
<span class="sr-only"> Toggle Navigation </span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#"><span class="fa fa-terminal"></span></a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a href="#">Home <span class="sr-only">(current)</span></a></li>
<li><a href="#about">About</a></li>
<li><a href="#projects">Projects</a></li>
<li><a href="#social-media">Social Media</a></li>
</ul>
</div>
</div>
</nav>
<div class="container">
<div style="background:transparent !important" class="jumbotron jumbotron-fluid text-center vertical-center">
<div class="container">
<h1 style="color:white;"> Blake's Portfolio </h1>
<div class="sexy_line white"></div>
<p class="lead">
The Sea of What Remains
</p>
</div>
</div>
<div class="row top end" id="about">
<h1 class="heading"> About Me </h1>
<div class="sexy_line blue"></div>
<div class="col-xs-12 col-sm-6" style="padding:2% 0 2% 0;">
<img src="https://res.cloudinary.com/seaofwhatremains/image/upload/v1467606288/personal%20photo.jpg" class="img-fluid img-responsive img-rounded center-block" style="max-height: 30%; max-width: 50%; border:2px solid #586E95;" alt="Picture of Blake"
/>
</div>
<div class="col-xs-12 col-sm-6" style="text-align:left; margin:2% 0 2% 0;">
<p>
Hi, my name is Blake. I'm currently striving towards a second bachelor's degree in computer science.
</p>
<p>
The road thus far has been one heck of a roller coaster, starting with Harvard's cs50x, an introductory course in Python at a local community college, and all the while mixing in the thrill of Calculus courses taught by essentially a modern day Socrates (if he was cryogenically frozen prior to the whole poising thing).
</p>
<p>
I hope to gain a better appreciation for the web and the immense amount of effort that goes into developing for it. While the path may take time, I am beyond excited to see where learning web development takes me.
</p>
</div>
</div>
<div class="row top" id="projects">
<h1 class="heading"> Projects </h1>
<div class="sexy_line blue"></div>
<div class="col-sm-6 col-xs-12 col-md-6 project">
<a href="https://github.com/bgeraci714/beyond-the-system/blob/master/README.md" class="thumbnail" target="_blank">
<img class="thumbImg img-responsive img-fluid img-square" src="https://res.cloudinary.com/seaofwhatremains/image/upload/v1467597763/beyond_logo.png" alt="Beyond the System" />
</a>
<p> <strong>Beyond the System</strong>: A procedurally generated space exploration game written in Python.
</p>
</div>
<div class="col-sm-6 col-xs-12 col-md-6 project">
<a href="#" class="thumbnail">
<img class="thumbImg img-responsive img-fluid img-square" src="https://res.cloudinary.com/seaofwhatremains/image/upload/v1467608231/In_Progress_pilt2i.png" alt="In Progress" />
</a>
<p>
In Progress
</p>
</div>
</div>
<div class="row end testHeight">
<div class="col-sm-6 col-xs-12 col-md-6 project">
<a href="#" class="thumbnail">
<img class="thumbImg img-responsive img-fluid img-square" src="https://res.cloudinary.com/seaofwhatremains/image/upload/v1467608231/In_Progress_pilt2i.png" alt="In Progress" />
</a>
<p>
In Progress
</p>
</div>
<div class="col-sm-6 col-xs-12 col-md-6 project">
<a href="#" class="thumbnail">
<img class="thumbImg img-responsive img-fluid img-square" src="https://res.cloudinary.com/seaofwhatremains/image/upload/v1467608231/In_Progress_pilt2i.png" alt="In Progress" />
</a>
<p>
In Progress
</p>
</div>
</div>
<div class="row top end" id="social-media">
<h1 class="heading"> Social Media </h1>
<div class="sexy_line blue"></div>
<p>
If you're looking to get in touch, you can reach me through any of the link below.
</p>
<br />
<div class="col-xs-3 col-xs-offset-3">
<a class="btn btn-social-icon btn-facebook glyphicon" href="https://www.facebook.com/redshirtinfinity">
<span class="fa fa-facebook "></span>
</a>
</div>
<div class="col-xs-3">
<a class="btn btn-social-icon btn-github glyphicon" href="https://github.com/bgeraci714/">
<span class="fa fa-github"></span>
</a>
</div>
<div class="col-xs-3 col-xs-offset-3">
<a class="btn btn-social-icon btn-codepen glyphicon" href="https://codepen.io/seaofwhatremains/">
<i class="fa fa-codepen"></i>
</a>
</div>
<div class="col-xs-3">
<a class="btn btn-social-icon glyphicon" href="https://www.freecodecamp.com/bgeraci714">
<i class="fa fa-fire"></i>
</a>
</div>
</div>
<div class="row" style="margin-top:2%; padding-bottom:2%; background-color:transparent">
<div class="col-xs-6 col-xs-offset-3 vertical-align">
Created and Designed by Blake Geraci 2016
</div>
</div>
</div>
</body>
body {
background-color: #6e8abb;
background-image: url(https://res.cloudinary.com/seaofwhatremains/image/upload/v1467486461/mixed-bgimg7_ghbzlu.jpg);
background-repeat: no-repeat;
background-position: center;
min-height:100%;
min-width:100%;
font-family: Ubuntu;
color: #586E95;
}
p
{
font-size:1.2em;
}
.jumbotron {
padding: 0.5em 0.6em;
color: white;
}
.heading {
color: #586E95;
}
.thumbImg {
max-width: 250px;
max-height: 235px;
}
.vertical-center {
min-height: 100%;
min-height: 100vh;
display: flex;
align-items: center;
}
.row {
margin: 0% 15% 0% 15%;
padding-bottom: 5%;
background-color: white;
}
.row.top {
padding-top: 50px;
}
.row.end {
padding-bottom: 15%;
}
.sexy_line {
margin: 25px 20%;
height: 1px;
width: 60%;
background-color: white !important;
}
.sexy_line.white {
background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0)) !important;
}
.sexy_line.black {
background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0)) !important;
}
.sexy_line.blue {
background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(88, 110, 149, 0.75), rgba(0, 0, 0, 0)) !important;
}
.glyphicon {
font-size: 2em;
}
.project {
padding-bottom: 0%;
}
.showBorder {
padding: 3px solid black;
}
/* Navbar CSS created using http://work.smarchal.com/twbscolor/*/
.navbar-default {
background-color: #b4a4dc;
border: 0px;
border-radius: 0px;
}
}
.navbar-default .navbar-brand {
color: #586e95;
}
.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus {
color: #f7f7f7;
}
.navbar-default .navbar-text {
color: #586e95;
}
.navbar-default .navbar-nav > li > a {
color: #586e95;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
color: #f7f7f7;
}
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
color: #f7f7f7;
background-color: #000000;
}
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus {
color: #f7f7f7;
background-color: #000000;
}
.navbar-default .navbar-toggle {
border-color: #000000;
}
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
background-color: #000000;
}
.navbar-default .navbar-toggle .icon-bar {
background-color: #586e95;
}
.navbar-default .navbar-collapse,
.navbar-default .navbar-form {
border-color: #586e95;
}
.navbar-default .navbar-link {
color: #586e95;
}
.navbar-default .navbar-link:hover {
color: #f7f7f7;
}
@media (max-width: 767px) {
.navbar-default .navbar-nav .open .dropdown-menu > li > a {
color: #586e95;
}
.navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,
.navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {
color: #f7f7f7;
}
.navbar-default .navbar-nav .open .dropdown-menu > .active > a,
.navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover,
.navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus {
color: #f7f7f7;
background-color: #000000;
}
}
Also see: Tab Triggers