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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

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.

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

              
                <!DOCTYPE html>
<html>
<head>
	<title>My Portfolio</title>
	<meta name=”viewport” content=”width=device-width, initial-scale=1″>
	<style type="text/css"></style>
	<link rel="stylesheet" type="text/css" href="portfolio2.css">
	<link href="https://fonts.googleapis.com/css?family=Josefin+Sans|Play|Raleway" rel="stylesheet">
</head>
<body>
	<nav id="navbar">
		<a href="#welcome-section" class="navLink" id="navHome">Home</a>
		<a href="#projects" class="navLink" id="navGallery">Gallery</a>
		<a href="#connect" class="navLink" id="navContact">Contact</a>
	</nav>
	<div id="welcome-section" class="mainDiv">
		<h1 id="h1Welcome" class="pageTop">Design Portfolio</h1>
		<h2 id="h2Welcome">Specializing in clean, responsive web design solutions.</h2>
		<p id="pWelcome">This page was created from the ground up, without the use of frameworks, to allow you to see the foundations of my approach to front-end design.</p>
	</div>

	<div id="projects">
		<h1 id="projectHeader">Gallery</h1>
        <div class="projectWindow" id="gridDoc"><a href="https://codepen.io/james922/full/dLWyev" target="_blank" class="project-tile"><img src="https://i.imgur.com/4n42CsM.png" class="pageScreenshot" alt="screenshot of the linked CSS Grid Documentation page"><p>CSS Grid Documentation</p></a></div>
		<div class="projectWindow" id="spiceMel"><a href="https://codepen.io/james922/full/MRymzb" target="_blank" class="project-tile"><img src="https://i.imgur.com/XMD2gTR.jpg" class="pageScreenshot" alt="screenshot of the linked Product Landing Page"><p>The Spice Melange</p></a></div>
		<div class="projectWindow" id="webForm"><a href="https://codepen.io/james922/full/qwyEyV" target="_blank" class="project-tile"><img src="https://i.imgur.com/C0ppewM.jpg" class="pageScreenshot" alt="screenshot of the linked Web Development form page"><p>Web Dev Form</p></a></div>
		<div class="projectWindow" id="culpeperTrib"><a href="https://codepen.io/james922/full/oVaaej" target="_blank" class="project-tile"><img src="https://i.imgur.com/J9zuf9O.jpg" class="pageScreenshot" alt="screenshot of the linked Nicholas Culpeper tribute page"><p>Tribute Page</p></a></div>
	</div>
	
	<div id="connect">
		<div id="thanks">
			<p>Thank you for visiting my portfolio. I hope that you have found something to inspire you!</p>
			<p>Please feel free to get in touch with any comments or questions. You will find links to my CodePen and GitHub profiles at the bottom of the page, along with an email link. You are also more than welcome to contact me here, through the form below.</p>
		</div>
		<form id="contactForm" action="#">
			<textarea rows="9" cols="36" maxlength="1200" wrap="hard" placeholder="Send me a nice message." required=""></textarea><br>
			<a href="#"><button type="submit" name="sendMessage" id="sendMessage">GET IN TOUCH!</button></a>
		</form>
		<nav id="connectionBar">
			<a href="https://codepen.io/james922/" id="codepen-link" class="connectLink" target="_blank"><img src="http://blog.codepen.io/wp-content/uploads/2012/06/Button-White-Small.png" id="iconCodePen" alt="CodePen logo"></a>
			<a href="#"><img src="https://s15-us2.startpage.com/cgi-bin/serveimage?url=https:%2F%2Fcdn5.vectorstock.com%2Fi%2F1000x1000%2F99%2F74%2Femail-icon-isolated-on-white-background-vector-19239974.jpg&sp=a00b71504a57a8d915616f6566cc1650" id="iconEmail" alt="email icon"></a>
			<a href="https://github.com/jamesw922" id="profile-link" target="_blank"><img src="https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png" id="iconGit" alt="GitHub link image"></a>
		</nav>
	</div>

</body>

<!-- design by James White - 2019 -->

</html>
              
            
!

CSS

              
                body {
	display: block;
	height: 100%;
	width: 100%;
	background: radial-gradient(circle, #330099, #0f0f0f);
	color: #eaf5f4;
	font-family: 'Josefin Sans', sans-serif;
	scroll-behavior: smooth;
}

h1 {
	font-family: 'Play', sans-serif;
	font-size: 3rem;
}

h2 {
	font-size: 2rem;
}

p {
	font-size: 1.6rem;
	line-height: 1.5;
	text-align: left;
}

#navbar {
	display: grid;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: auto;
	grid-template-columns: 33% 33% 33%
}

.navLink {
	font-family: 'Josefin Sans', sans-serif;
	font-size: 1.5rem;
	text-decoration: none;
	margin-top: 5%;
}

.navLink:hover {
	color: #cccc33;
}

#navHome {
	grid-column: 1 / 2;
	margin-left: 10%;
}

#navGallery {
	grid-column: 2 / 3;
	text-align: center;
}

#navContact {
	grid-column: 3 / 4;
	text-align: right;
	margin-right: 10%;
}

.mainDiv {
	display: grid;
	height: 100vh;
	margin-top: 3%;
	margin-bottom: 11%;
	grid-template-rows:30% 35% 35%;
	align-items: center;
}

#h1Welcome {
	display: block;
	margin-left: 8%;
	grid-row: 1 / 2;
	color: #4719a3;
	overflow: hidden;
  	animation: 36s infinite normal titleAnimation;
}

#h2Welcome {
	display: block;
	margin-left: 24%;
	margin-right: 7%;
	grid-row: 2 / 3;
	color: #ad99d6;
	text-shadow: 3px 3px 4px #330099;
}

#pWelcome {
	display: block;
	margin-left: 16%;
	margin-right: 21%;
	grid-row: 3 / 4;
	letter-spacing: 1px;
}

@keyframes titleAnimation {
	0% {
		color: #4719a3;
	}
	10% {
		color: #4719a3;
	}
	20% {
		color: #4719a3;
	}
	30% {
		color: #4719a3;
	}
	40% {
		color: #4719a3;
		text-decoration-color: transparent;
	}
	50% {
		color: #eaf5f4;
	}
	60% {
		color: #4719a3;
		text-decoration-color: transparent;
	}
	70% {
		color: #4719a3;
	}
	80% {
		color: #4719a3;
	}
	90% {
		color: #4719a3;
	}
	100% {
		color: #4719a3;
	}
}

#projects {
	display: grid;
	grid-template-rows: 20% 40% 40%;
	grid-template-columns: 5% 45% 45% 5%;
	grid-template-areas: ". ph ph ."
						 ". gd sm ."
						 ". wf tp .";
	height: 100vh;
	width: auto;
	padding-top: 3%;
	margin-bottom: 11%;
}

#projectHeader {
	display: block;
	text-align: center;
	grid-area: ph;
}

#projects p {
	text-align: center;
	color: #ad99d6;
	font-size: 1rem;
}

#projects a {
	text-decoration: none;
}

.projectWindow {
	display: block;
	width: auto;
    height: 100%;
    justify-self: center; 
}

#gridDoc {
	grid-area: gd;
}
#spiceMel {
	grid-area: sm;
}
#webForm {
	grid-area: wf;
}
#culpeperTrib {
	grid-area: tp;
}

.pageScreenshot {
	display: block;
	width: auto;
	height: 50%;
	border: 2px solid silver;
	margin-left: auto;
    margin-right: auto;
    color: aliceblue; 
}

#connect {
	display: block;
	height: auto;
	width: 100%;
	margin-top: 3%;
	margin-bottom: 5%;
	padding-top: 7%;
}

#thanks {
	display: block;
	margin-left: 10%;
	margin-right: 10%;
	margin-top: 3%;
	margin-bottom: 7%;
}

#contactForm {
	display: block;
	text-align: center;
	margin-top: 9%;
}

textarea {
	border: 4px solid silver;
	border-radius: 2px;
	background-color: #d1d1d1;
	margin-bottom: 50px;
	font-size: 1em;
}

button {
	display: inline-block;
	padding: 15px 40px 15px 40px;
	border: 2px solid silver;
	border-radius: 1px;
	color: #eaf5f4;
    background-color: #300050;
    font-family: 'Play', sans-serif;
	font-size: 1rem;
}

button:hover {
    color: #300050;
    background-color: #cccc33;
    border-color: #300050;
    transform: scale(1.2);
    font-size: 1.3rem;
}

#connectionBar {
	display: flex;
	margin-top: 10%;
	margin-bottom: 5%;
	left: 0;
	width: 100%;
	height: auto;
	justify-content: space-around;
}
.connectLink {
	display: block;
	padding: none;
	border: none;
}
#iconCodePen {
	width: 70px;
	height: auto;
}
#iconEmail {
	width: 70px;
	height: 70px;
}
#iconGit {
	width: 70px;
	height: auto;
}

/* design by James White 2019 */

@media (max-width: 702px) {
	h1 {
		font-size: 2.7rem;
	}
	h2 {
		font-size: 1.8rem
	}
	p {
		font-size: 1.4rem;
	}
	.pageScreenshot {
		display: block;
		width: auto;
		height: 45%;
		border: 1px solid silver;
	}
}

@media only screen and (max-width: 591px) {
	h1 {
		margin-top: 18%;
	}
	h2 {
		margin-right: 5%;
	}
	p {
		text-align: top;
    }
    #projects {
        display: flex;
        flex-direction: column;
        flex-flow: column;
        margin-top: -20%;
        padding-bottom: 230%;
        height: 70vh;
        width: auto;
        align-content: space-between;
    }
    #projectHeader {
        margin-bottom: 10%;
    }
    .projectWindow {
        display: block;
        width: auto;
        height: 50%;
        justify-self: center;
    }    
}

@media only screen and (max-width: 500px) {
	h1 {
		font-size: 2.5rem;
	}
	h2 {
		font-size: 1.6rem;
	}
	p {
		font-size: 1.2rem;
    }
    
    #projects {
        padding-bottom: 270%;
    }
}

@media only screen and (max-width: 415px) {
    #projects {
        padding-bottom: 300%;
    }
}

@media only screen and (max-width: 370px) {
    #welcome-section {
        display: block;
        width: 100%;
    }
    #h1Welcome {
        margin: 20% auto;
        font-size: 2.3rem;
    }
    #h2Welcome {
        margin: 20% auto;
        font-size: 1.3rem;
    }
    #pWelcome {
        margin: 0 auto;
    }
    #projects {
        padding-bottom: 330%;
    }
    #projectHeader {
        padding-bottom: 30%;
    }
}
              
            
!

JS

              
                
              
            
!
999px

Console