123

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <head>
	<title>C.K.'s Personal Portfolio</title>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta name="description" content="The personal portfolio page of C.K.">
</head>

<body data-spy="scroll" data-target="#navbar-overall" data-offset="55">
	<nav id="navbar-overall" class="navbar navbar-inverse navbar-fixed-top">
		<div class="container">
			<!-- Navbar header -->
			<div class="navbar-header">
				<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
			</div>
			<!-- Navbar links -->
			<div id="navbar" class="navbar-collapse collapse">
				<ul class="nav navbar-nav navbar-right" id="navbar-link-fader">
					<li><a href="#container-about">About</a></li>
					<li><a href="#container-portfolio">Portfolio</a></li>
					<li><a href="#container-contact">Contact</a></li>
				</ul>
			</div>
		</div>
	</nav>
	<!-- About section -->
	<div class="container-fluid" id="container-about">
		<div class="row">
			<div class="col-xs-12">
				<h1 id="header-about">About</h1>
				<p id="paragraph-about">Hello! My name is C.K., and I'm currently a third-year electrical engineering student learning web development as a hobby.</p>
			</div>
		</div>
	</div>
	<!-- Portfolio section -->
	<div class="container-fluid" id="container-portfolio">
		<div class=row>
			<div class="col-xs-12">
				<h1 id="header-portfolio">Portfolio</h1>
				<p id="paragraph-portfolio">You'll hopefully see some projects in here soon, whether they're web development related, Java/C programming, Arduino, or others created through my pursuit of knowledge in the electrical engineering field.</p>
			</div>
		</div>
	</div>
	<!-- Contact section -->
	<div class="container-fluid" id="container-contact">
		<div class="row">
			<div class="col-xs-12">
				<h1 id="header-contact">Contact</h1>
				<p id="paragraph-contact">Nothing here yet, once I get an actual domain I'll add some contact information.</p>
			</div>
		</div>
	</div>
</body>

<footer>
	<div class="container-fluid">
		<div class="row">
			<div class="col-xs-12">
				<div>
				</div>
			</div>
</footer>
            
          
!
            
              @import 'https://fonts.googleapis.com/css?family=Open+Sans';

/* Adds some general website modifications with the body and footer*/

body {
	font-family: 'Open Sans', sans-serif;
	padding-top: 70px;
	position: relative;
	background: #151515;
}

footer {
	text-align: center;
	margin-bottom: 10px;
}

/* Adds a hover fade effect to the Navbar link anchors */

#navbar-link-fader li a {
	border: 1.0px solid grey;
	margin: 7.5px 5px 5px 5px;
	padding: 5px;
	-webkit-transition: all 0.7s ease;
	-moz-transition: all 0.7s ease;
	-o-transition: all 0.7s ease;
	transition: all 0.7s ease;
	transition-property: color, border-color;
}

#navbar-link-fader li a:hover {
	color: #1BA1E2;
	border-color: #1BA1E2;
	background-color: #222;
}

#navbar-link-fader li.active a {
	border-color: white;
	color: white;
	background-color: #222;
}

#navbar-link-fader li a:focus {
	color: white;
	border-color: white;
	background-color: #222;
}

#navbar-link-fader li a:visited {
	background-color: #222;
}


/* Modifies the Navbar brand */

#navbar-brand-fader {
	-webkit-transition: all 0.7s ease;
	-moz-transition: all 0.7s ease;
	-o-transition: all 0.7s ease;
	transition: all 0.7s ease;
	transition-property: color, border-color;
}

#navbar-brand-fader:hover {
	color: #1BA1E2;
}


/* Sets the width of the fluid container */

.container-fluid {
	width: 70%;
}


/* Modifies the About section */

#paragraph-about {
	padding: 0px 20px 20px 30px;
	font-size: 1.25em;
}

#header-about {
	padding: 20px 20px 0px 30px;
}

#container-about {
	margin-top: 20px;
	background-color: #b3b3b3;
	border-top: 1.0px solid black;
	border-left: 1.0px solid black;
	border-right: 1.0px solid black;
	height: 500px;
}


/* Modifies the Porfolio section */

#container-portfolio {
	background-color: #cccccc;
	border-top: 1.0px solid black;
	border-left: 1.0px solid black;
	border-right: 1.0px solid black;
	height: 500px;
}

#paragraph-portfolio {
	padding: 0px 20px 0px 30px;
	font-size: 1.25em;
}

#header-portfolio {
	padding: 20px 20px 0px 30px;
}


/* Modifies the Contact section */

#container-contact {
	background-color: #e6e6e6;
	border-top: 1.0px solid black;
	border-left: 1.0px solid black;
	border-right: 1.0px solid black;
	border-bottom: 1.0px solid black;
	margin-bottom: 20px;
	height: 500px;
}

#paragraph-contact {
	padding: 0px 20px 0px 30px;
	font-size: 1.25em;
}

#header-contact {
	padding: 20px 20px 0px 30px;
}
            
          
!
            
              $(document).ready(function() {
	// Add smooth scrolling to all links
	$("a").on('click', function(event) {

		// Make sure this.hash has a value before overriding default behavior
		if (this.hash !== "") {
			// Prevent default anchor click behavior
			event.preventDefault();

			// Store hash
			var hash = this.hash;

			// Using jQuery's animate() method to add smooth page scroll
			// The optional number (800) specifies the number of milliseconds it takes to scroll to the specified area
			$('html, body').animate({
				scrollTop: $(hash).offset().top
			}, 600, function() {

				// Add hash (#) to URL when done scrolling (default click behavior)
				window.location.hash = hash;
			});
		} // End if
	});
});
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console