Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

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.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

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.

+ add another resource

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

<!DOCTYPE html>
<html>
<head>
	<title>Personal Portfolio</title>
	<link href="https://fonts.googleapis.com/css?family=Josefin+Sans:400,700|Roboto+Slab:400,700&display=swap" rel="stylesheet">
	<link rel="stylesheet" type="text/css" href="Styles.css">

</head>
<body>

<!-- navbar -->
<nav id="navbar" class="nav">	<!-- USER STORY #6 contains navbar with id of navbar -->
	<a href="#welcome-section">About</a>	<!-- USER STORY #7 navbar contains link to navigate to other sections of page -->
	<a href="#projects">Projects</a>
	<a href="#contact">Contact</a>
</nav>


<main>
	<!-- welcome section -->
	<section id="welcome-section"> <!-- USER STORY #1 welcome section with id = welcome-section -->
		<h1>About me</h1>	<!-- USER STORY #2 welcome section has an h1 element with text -->
	
			<p>I am a web developer with a good eye for detail, experience with different technologies, and always looking to learn more. Scroll through my site to see more of my work and feel free to contact me.</p>
	</section>



	<!-- projects section -->
	<section id="projects">	<!-- USER STORY #3 projects section with id = "projects" -->
		<h2>Take a look at some of my projects</h2>
		<div class="projects">
			<div class="project-tile">	<!-- USER STORY #4 projects section contains element with class="project-tile" -->
				<a href="">Project-numero-uno<!-- USER STORY #5 projects section contains link to a project -->
					
				</a>			
			</div>
		</div>
		
	</section>

	<!-- contact section -->
	<section id="contact">
		<h2>Contact</h2>
		
		<p>Call me 1-800-GETADEV</p>
		<a id="profile-link" href="https://www.freecodecamp.org/mcflacken" target="_blank">Check out my FCC Profile</a>

	</section>

</main>




</body>
</html>
              
            
!

CSS

              
                body{
	background: #267e58;
	color: #ffdbaa;
	margin: 0; this margin allows the navbar to extend all the way
	padding: 0;
	font-family: 'Josefin Sans', sans-serif;
	font-size: 20px;
}

#hola{
	color: white;
	z-index: 2;
}



#navbar{
	background: #295576;
	color: white;
	position: fixed;	/*this fixes the navbar to the top, allows the rest of content to scroll*/
	top: 0px;
  	left: 0px;
  	
  	display: flex;
  	justify-content: flex-end;
  	align-items: center;
  	
  	width: 100%;
  	height: 100px;
  	
}

#navbar a{
	border: 1px solid yellow;
	margin: 0;
	padding: 30px;
	text-transform: uppercase;
	color: white;
	text-decoration: none;
	margin: 5px;
}

#navbar a:hover{
	background: white;
	color: #295576;
	transition: .3s;
}

#welcome-section{
	margin-top: 100px;
	/*padding-top: 100px; this is in comments just to pass the challenge however it does look better with the padding on*/
	background: #267e58;
	height: 100vh;
	font-family: 'Roboto Slab', serif;
	/*the following push the text to the middle of the welcome-section*/
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

#welcome-section p{
	width: 50%;
}

#projects{
	background: #b85c37;
	height: 100vh;
	padding-top: 100px;
}

#contact{
	background: #b88137;
	color: #042037;
	height: 100vh;
	padding-top: 100px;
}


/*media queries below*/

@media only screen and (max-width: 600px){
	#navbar{
		font-size: .8em;
	}
	main{
		font-size: .8em;
	}
}

              
            
!

JS

              
                // !! IMPORTANT README:

// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place. 

/***********
INSTRUCTIONS:
  - Select the project you would 
    like to complete from the dropdown 
    menu.
  - Click the "RUN TESTS" button to
    run the tests against the blank 
    pen.
  - Click the "TESTS" button to see 
    the individual test cases. 
    (should all be failing at first)
  - Start coding! As you fulfill each
    test case, you will see them go   
    from red to green.
  - As you start to build out your 
    project, when tests are failing, 
    you should get helpful errors 
    along the way!
    ************/

// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!

// Once you have read the above messages, you can delete all comments. 

              
            
!
999px

Console