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.
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<header>
<link itemprop="fonts" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link itemprop="font" href="https://fonts.googleapis.com/css?family=Bree+Serif&display=swap" rel="stylesheet">
<link itemprop="fonts" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</header>
<!-- Top Navigation Menu -->
<div id="navbar">
<a href="#home" class="active">Logo</a>
<!-- Navigation links (hidden by default) -->
<div id="myLinks">
<a href="#welcome-section">Home</a>
<a href="#about">About</a>
<a href="#projects">Portofolio</a>
<a href="#contact">Contact</a>
</div>
<!-- "Hamburger menu" / "Bar icon" to toggle the navigation links -->
<a href="javascript:void(0);" class="icon" onclick="myFunction()">
<i class="fa fa-bars"></i>
</a>
</div>
<section id="welcome-section">
<div>
<h1>Hi there! I'm <span style="color:#E31B6D">Diana Mackaya</span>.</h1>
<p>Front-end developer.</p>
</div>
</section>
<section id="about">
<h2 class="about-center about-animate-right"><u>ABOUT</u></h2>
<div class="img-container">
<div class="row-img">
<div class="column-img">
<img class="imgAbout" src="https://www.clipartwiki.com/clipimg/detail/9-94954_alarm-clock-comments-emoticon-alarm-clock-png.png" alt="alarm">
</div>
<div class="column-img">
<img class="imgAbout" src="https://cdn1.iconfinder.com/data/icons/seo-markiting/66/15-512.png" alt="bulb">
</div>
<div class="column-img">
<img class="imgAbout" src="https://icon-library.net/images/computer-tablet-phone-icon/computer-tablet-phone-icon-12.jpg" alt="devices">
</div>
<div class="column-img">
<img class="imgAbout" src="https://icon-library.net/images/dynamic-icon/dynamic-icon-16.jpg" alt="pulse">
</div>
</div>
</div>
<div class="about-container">
<div class="row-about">
<div class="column-about">
<p id="column-containt"><span style="color:#E31B6D">Fast</span>
<br>Fast load times and lag free interaction, my highest priority.</p>
</div>
<div class="column-about">
<p id="column-containt"><span style="color:#E31B6D" "font-size:20px">"Intuitive</span>
<br>Strong preference for easy to use, intuitive UX/UI.</p>
</div>
<div class="column-about">
<p id="column-containt"><span style="color:#E31B6D">Responsive</span>
<br>My layouts will work on any device, big or small.</p>
</div>
<div class="column-about">
<p id="column-containt"><span style="color:#E31B6D">Dynamic</span>
<br>Websites don't have to be static, I love making pages come to life.</p>
</div>
</div>
</div>
</section>
<section id="projects">
<h2 class="portfolio-center portfolio-animate-right"><u>Projects</u></h2>
<div class="grid-container">
<div class="row">
<div class="column project-tile">
<iframe height="265" style="width: 80%;" scrolling="no" title="FCC: Tribute Page" src="https://codepen.io/Mackdine/embed/preview/WNeaLmG?height=227&theme-id=0&default-tab=html,result" frameborder="no" allowtransparency="true" allowfullscreen="true">
See the Pen <a href='https://codepen.io/Mackdine/pen/WNeaLmG'>FCC: Tribute Page</a> by Diana Diamond
(<a href='https://codepen.io/Mackdine'>@Mackdine</link>) on <a href='https://codepen.io'>CodePen</a>.
</iframe>
</div>
<div class="column project-tile">
<iframe height="265" style="width: 80%;" scrolling="no" title="Fork Me! FCC: Test Suite Template" src="https://codepen.io/Mackdine/embed/preview/NWWqpeV?height=265&theme-id=0&default-tab=html,result" frameborder="no" allowtransparency="true" allowfullscreen="true">
See the Pen <a class="project-tile" href='https://codepen.io/Mackdine/pen/NWWqpeV'>Fork Me! FCC: Test Suite Template</a> by Diana Diamond
(<a href='https://codepen.io/Mackdine'>@Mackdine</a>) on <a href='https://codepen.io'>CodePen</a>.
</iframe>
</div>
</div>
<div class="row">
<div class="column project-tile">
<iframe height="265" style="width: 80%;" scrolling="no" title="Build a Technical Documentation Page" src="https://codepen.io/Mackdine/embed/preview/oNNZRgy?height=265&theme-id=0&default-tab=html,result" frameborder="no" allowtransparency="true" allowfullscreen="true">
See the Pen <a href='https://codepen.io/Mackdine/pen/oNNZRgy'>Build a Technical Documentation Page</a> by Diana Diamond
(<a href='https://codepen.io/Mackdine'>@Mackdine</a>) on <a href='https://codepen.io'>CodePen</a>.
</iframe>
</div>
<div class="column project-tile">
<iframe height="265" style="width: 80%;" scrolling="no" title="Portfolio" src="https://codepen.io/Mackdine/embed/preview/abbEZjL?height=265&theme-id=0&default-tab=html,result" frameborder="no" allowtransparency="true" allowfullscreen="true">
See the Pen <a href='https://codepen.io/Mackdine/pen/abbEZjL'>Portfolio</a> by Diana Diamond
(<a href='https://codepen.io/Mackdine'>@Mackdine</a>) on <a href='https://codepen.io'>CodePen</a>.
</iframe>
</div>
</div>
</section>
<div id="contact">
<h2 id="title"><u>Contact</u></h2>
<h3 id="explanation">Have a question or want to work together?
</h3>
<form id="survey-form" action="index.html" method="GET">
<input autofocus type="text" name="name" id="name" class="input-field" placeholder="Enter your name" required>
<br>
<input type="email" name="email" id="email" class="input-field" placeholder="Enter your email" required>
<br>
<textarea id="comments" cols="50" class="input-field" placeholder="Write something.." style="height:200px"></textarea>
<br>
<input class="button" type="submit" id="submit" value="SUBMIT">
</form>
</div>
<br>
<section class="footerIcon">
<div class="footer-main-div">
<div class="footer-social-icons">
<ul>
<li><a id="profile-link" href="https://www.facebook.com/mackdine1608" target="_blank"><i style="color:#E31B6D" class="fa fa-facebook"></i></a></li>
<li><a id="profile-link" href="https://www.instagram.com/mackdine1/?hl=fr-ca" target="_blank"><i style="color:#E31B6D" class="fa fa-instagram"></i></a></li>
<li><a id="profile-link" href="https://www.freecodecamp.org/fcc0374b5c2-d97c-4453-9d78-f3bac084365d" target="_blank"><i style="color:#E31B6D" class="fa fa-free-code-camp"></i></a></li>
<li><a id="profile-link" href="https://codepen.io/dashboard/" target="_blank"><i style="color:#E31B6D" class="fa fa-codepen"></i></a></li>
</div>
</div>
</section>
#navbar {
overflow: hidden;
background-color: #333;
position: fixed;
width: 100%;
}
body {
font-family: Bree Serif;
background-color: white;
color: black;
}
/* Hide the links inside the navigation menu (except for logo/home) */
#navbar #myLinks {
display: none;
}
/* Style navigation menu links */
#navbar a {
color: white;
padding: 14px 16px;
text-decoration: none;
font-size: 19px;
display: block;
}
/* Style the hamburger menu */
#navbar a.icon {
background: black;
display: block;
position: absolute;
right: 0;
top: 0;
width: 5%;
}
/* Add a grey background color on mouse-over */
#navbar a:hover {
background-color: #ddd;
color: black;
}
/* Style the active link (or home/logo) */
.active {
background-color: black;
color: white;
}
/* begining of welcome of the welcome section */
h1 {
font-size: 35px;
padding-bottom: 5px;
padding-top: 300px;
color: white;
}
p {
font-size: 25px;
padding-top: -5px;
padding-bottom: 100px
}
#welcome-section {
color: white;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
flex-direction: column;
background-image:url(https://i.postimg.cc/43ZB6CHH/earth-11595-1920.jpg)
}
/* End of styling of the welcome section */
/* biggining of styling of about section */
#about {
text-align: center;
height: 500px;
padding-top: 40px;
padding-bottom: 40px;
}
.row-img {
display: flex;
flex-direction: row;
width: 80%;
padding-top: 50px;
margin-left: auto;
margin-right: auto;
position: center;
}
.row-about {
display: flex;
flex-direction: row;
width: 80%;
margin-left: auto;
margin-right: auto;
position: center;
}
.column-img {
display: flex;
flex-direction: column;
flex: 1;
}
.column-about {
display: flex;
flex-direction: column;
flex: 1;
}
.imgAbout {
width: 95px;
margin-left: auto;
margin-right: auto;
display: block;
}
#column-containt {
font-size: 20px;
color: #646464;
position: relative;
padding: 20px 10px 50px 10px;
}
.about-container {
display: block;
margin-left: auto;
margin-right: auto;
width: 100%;
}
#span {
font-size: 20px;
}
/* biggining of styling of about section */
/* biggining styling of projects section */
#portfolio {
text-align: center;
height: 500px;
padding-top: 40px;
}
.column {
display: inline-block;
flex-direction: column;
flex:1;
padding-top: 50px;
margin-left: 100px;
}
/* Clear floats after the columns */
.row {
display: flex;
width: 80%;
flex-direction: row;
margin-left: auto;
margin-right: auto;
margin-bottom: 20px;
}
/* End of styling of projects section */
#contact {
height: 700px;
text-align: center;
color: White;
padding-top: 40px;
background-color: #252931;
overflow: hidden;
margin-top: 80px;
}
#title {
color: white;
}
h3 {
color: #E31B6D;
font-size: 25px;
}
div.form {
display: block;
text-align: center;
}
.input-field {
height: 30px;
width: 50vw;
padding: 7px;
margin: 20px;
border: 1px solid #c0c0c0;
font-size: 15px;
padding-bottom:5px;
}
.userRating, input[ type="checkbox"] {
float: left;
margin-right: 5px;
}
#submit {
background-color: #E31B6D;
border-radius: 7px;
color: white;
font-size: 1.5em;
height: 50px;
width: 100px;
margin: -10px;
border: 0 solid;
}
h2 {
font-size: 40px;
text-align: center;
}
/* styling of the footer */
.footer-main-div {
width: 100%;
height: auto;
margin: auto;
background: #252931;
padding: 20px 0px;
}
.footer-social-icons {
width: 100%;
height: auto;
margin: auto;
}
.footer-social-icons ul {
margin: 0px;
padding: 0px;
text-align: center;
}
.footer-social-icons ul li {
display: inline-block;
width: 50px;
height: 50px;
margin: 0px 10px;
border-radius: 100%;
background: white;
}
.footer-social-icons ul li a {
color: #272727;
font-size: 35px;
}
.footer-social-icons ul li a i {
line-height: 50px;
}
@media (max-height: 800px) {
img {
width: 100px;
}
}
/* Toggle between showing and hiding the navigation menu links when the user clicks on the hamburger menu / bar icon */
function myFunction() {
var x = document.getElementById("myLinks");
if (x.style.display === "block") {
x.style.display = "none";
} else {
x.style.display = "block";
}
}
Also see: Tab Triggers