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 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

              
                <div id="modal-logo-card" class="modal-logo-card">
  <div class="modal-content">
    <span class="modal--close">&times;</span>
		<div class="modal-logo-content"></div>
    <div class="modal-body">I use precompilers and autoprefixers to ensure that my CSS works across browsers.</div>
  </div>
</div>
<div class="container">
	<div class="header"><h1>Jennifer Kirchner</h1></div>
	<div class="hero">
		<div class="desk">
			<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1116997/macbook.jpg">
			<div class="laptop">
				<div class="logo-container logo-container--sass" onclick="showContent('sass')">
					<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1116997/sass.svg" class="sass-logo" alt="SASS Logo">
				</div>
				<div class="logo-container logo-container--js">
					<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1116997/javascript.svg" class="js-logo" alt="JS Logo">
				</div>
				<div class="logo-container logo-container--css">
					<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1116997/css.3.svg" class="css-logo" alt="CSS Logo">
				</div>
				<div class="logo-container logo-container--html">
					<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1116997/html-5.svg" class="html-logo" alt="HTML Logo">
				</div>
				<div class="logo-container logo-container--github">
					<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1116997/github-octocat.svg" class="github-logo" alt="Github Logo">
				</div>
				<div class="logo-container logo-container--bitbucket">
					<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1116997/bitbucket.svg" class="bitbucket-logo" alt="Bitbucket Logo">
				</div>
				<div class="logo-container logo-container--codepen">
					<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1116997/codepen.png" class="codepen-logo" alt="Codepen Logo">
				</div>
				<div class="logo-container logo-container--json">
					<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1116997/json.svg" class="json-logo" alt="JSON Logo">
				</div>
				<div class="logo-container logo-container--angular">
					<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1116997/angular.svg" class="angular-logo" alt="Angular Logo">
				</div>
				<div class="logo-container logo-container--react">
					<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1116997/react.svg" class="react-logo" alt="React Logo">
				</div>
				<div class="logo-container logo-container--git">
					<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1116997/git.png" class="git-logo" alt="git Logo">
				</div>
				<div class="logo-container logo-container--grunt">
					<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1116997/grunt.svg" class="grunt-logo" alt="Grunt Logo">
				</div>
				<div class="logo-container logo-container--node">
					<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1116997/node.svg" class="node-logo" alt="nodejs Logo">
				</div>
				<div class="logo-container logo-container--npm">
					<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1116997/npm.svg" class="npm-logo" alt="npm Logo">
				</div>
				<div class="logo-container logo-container--php">
					<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1116997/php.svg" class="php-logo" alt="php Logo">
				</div>
				<div class="logo-container logo-container--oracle">
					<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1116997/oracle.svg" class="oracle-logo" alt="Oracle Logo">
				</div>
				<div class="logo-container logo-container--java">
					<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1116997/java.svg" class="java-logo" alt="Java Logo">
				</div>
			</div>
			<article>
				<div><h2>Hi. I'm Jenn.</h2> Check out my Macbook lid. Each sticker represents a skill or service with more information about me. If you want a quick overview, check out my resume.</div>
				<div>I'm a web developer with over 15 years experience and I'm looking for a remote team of fun, motivated, and performant front end developers that I can learn and grow with. I'm most interested in using React and SCSS to deliver SPA solutions. I have years of experience in back end development, so I collaborate well with back end designers and programmers.  </div>
			</article>
			<footer><div class="footer-links"><span class="link">Home</span> | <span class="link">Resume</span></div>
			</footer>
		</div>
	</div>
<div class="shadow-container"></div>
	<!--div class="ruler"></div-->
</div>
              
            
!

CSS

              
                @charset 'utf-8';

*,
*::before,
*::after {
	position: relative;
  box-sizing: border-box;
  padding: 0px;
  margin: 0px;
}

body {
	font-family: 'Roboto', sans-serif;
	margin: auto;
}

.container {
	height: 100%;
	width: 100%;
  display: grid;
	justify-content: center;
  align-items: center;
  grid-gap: 10px;
  grid-template-columns: 3; //repeat(2, minmax(10vh, 50vh));
  grid-template-rows: 4; //repeat(2, minmax(100vw, 100vw));
}

.header {
  display: grid;
	justify-content: center;
  align-items: center;	
	grid-column: 2;
	grid-row: 1;
}

.hero {
  display: grid;
	justify-content: center;
  align-items: center;	
	grid-column: 2;
	grid-row: 2;
	// border: 1px solid #333;
}

h1 {
	color: #e42e70;
	font-weight: bold;
	font-size: 2em;
	text-align: center;
	line-height: 3em;
}

h2, .link {
	// background-color: #5e1b44;
	color: #e42e70;
	font-weight: bold;
	font-size: 1em;
	line-height: 2em;
}

article {
  display: grid;
	justify-content: center;
  align-items: center;	
	grid-column: 2;
	grid-row: 3;
	margin: 2rem 0 0 2rem;
}

article > div {
	line-height: 2rem;
}

footer {
  display: grid;
	justify-content: center;
  align-items: center;	
	grid-column: 2;
	grid-row: 4;
	height: 100px;
	margin: 2rem 0 2rem 0;
	width: 100%;
	// background-color: #5e1b44;
	// box-shadow: inset -1px -1px 5px #471433;
	// box-shadow: inset 1px 1px 5px #a32d75;
}

.ruler {
	position: absolute;
	top: 458px;
	left: 0;
	right: 0;
	border-top: 1px solid red;
}

.logo-container {
	// filter: saturate(0) contrast(2);
	// transition: filter 0.3s;
	
	&:hover {
		// filter: saturate(1);
		animation: show-sticker 2s ease-in 1;
	}
}

.desk {
	position: relative;
	//2:3 aspect ratio
	height: 500px;
	width: 750px;
	@media only screen and (max-width: 600px) {
	height: 300px;
	width: 450px;
	}
}

.laptop {
	position: absolute;
	height: 70%;
	width: 68%;
	top: 10%;
	left: 15%;
	// border: 1px solid #333;
}

.desk > img {
	height: 100%;
	width: 100%;
}

.logo-container--sass {
	position: absolute;
	width: 15%;
	top: 10%;
	left: 8%;
	&:hover {
		// filter: saturate(1);
		animation: show-sticker--sass 2s ease-in 1;
	}
}

.sass-logo {
	width: 100%;
	transform: rotateZ(-20deg)
}

.logo-container--js {
	position: absolute;
	width: 15%;
	top: 5%;
	right: 8%;
}

.js-logo {
	width: 100%;
}

.logo-container--css {
	position: absolute;
	width: 10%;
	bottom: 5%;
	right: 36%;
}

.css-logo {
	width: 100%;
}

.logo-container--html {
	position: absolute;
	width: 10%;
	bottom: 5%;
	left: 40%;
}

.html-logo {
	width: 100%;
}

.logo-container--github {
	position: absolute;
	width: 15%;
	bottom: 50%;
	left: 20%;
}

.github-logo {
	width: 100%;
}

.logo-container--bitbucket {
	position: absolute;
	width: 12%;
	bottom: 5%;
	left: 10%;
}

.bitbucket-logo {
	width: 100%;
}

.logo-container--codepen {
	position: absolute;
	width: 18%;
	bottom: 35%;
	right: 15%;
}

.codepen-logo {
	width: 100%;
}

.logo-container--json {
	position: absolute;
	width: 10%;
	bottom: 5%;
	left: 25%;
}

.json-logo {
	width: 100%;
}

.logo-container--angular {
	position: absolute;
	width: 15%;
	bottom: 3%;
	right: 20%;
}

.angular-logo {
	width: 100%;
}

.logo-container--react {
	position: absolute;
	width: 25%;
	top: 5%;
	right: 30%;
}

.react-logo {
	width: 100%;
}

.logo-container--git {
	position: absolute;
	width: 10%;
	bottom: 5%;
	right: 8%;
}

.git-logo {
	width: 100%;
}

.logo-container--grunt {
	position: absolute;
	width: 8%;
	top: 50%;
	left: 33%;
}

.grunt-logo {
	width: 100%;
}

.logo-container--node {
	position: absolute;
	width: 25%;
	top: 50%;
	left: 5%;
}

.node-logo {
	width: 100%;
}

.logo-container--npm {
	position: absolute;
	width: 10%;
	top: 10%;
	left: 30%;
}

.npm-logo {
	width: 100%;
}

.logo-container--php {
	position: absolute;
	width: 10%;
	top: 40%;
	left: 5%;
}

.php-logo {
	width: 100%;
}

.logo-container--oracle {
	position: absolute;
	width: 25%;
	top: 68%;
	right: 5%;
}

.oracle-logo {
	width: 100%;
}

.logo-container--java {
	position: absolute;
	width: 5%;
	top: 25%;
	left: 40%;
}

.java-logo {
	width: 100%;
}

.modal-logo-card {
    // display: none;
    position: fixed;
    z-index: 1;
    right: 10%;
		top: 0;
    bottom: 0;
    width: 50%;
    overflow: auto; /* Enable scroll if needed */
}

.shadow-container {
  display: none;
	position: fixed;
	height: 100%;
	width: 100%;
	top:0;
	left: 0;
	background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-logo-card {
  display: none;
	background-color: #fefefe;
	margin: 15% auto;
	padding: 20px;
	border: 1px solid #888;
	height: 70%;
	width: 40%; 
	border-radius: 5px;
	box-shadow: 1px 1px 5px #111;
}

.modal-content {
  display: grid;
	justify-content: center;
  align-items: center;
  grid-gap: 12px;
  grid-template-columns: 3;
  grid-template-rows: 3;
	height: 30%;
	width: 100%;
}

.modal--close {
  display: grid;
	grid-column: 3;
	grid-row: 1;
	color: #aaa;
	font-size: 28px;
	font-weight: bold;
}

.modal-logo {
  display: grid;
	grid-column: 1;
	grid-row: 2;
}

.modal-body {
  display: grid;
	grid-column: 1;
	grid-row: 3;
}

.modal--close:hover,
.modal--close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

@keyframes show-sticker--sass {
	20%, 80% {
		z-index: 1;
		transform: scale(3.0, 3.0) translate(40%, 5%);
	}
	0%, 100% {
		transform: scale(1, 1);
	}
}

@keyframes show-sticker {
	20%, 80% {
		z-index: 1;
		transform: scale(3.0, 3.0);
	}
	0%, 100% {
		transform: scale(1, 1);
	}
}
              
            
!

JS

              
                console.clear();
// const modal = document.querySelector('.modal-logo-card');
// const modalClose = document.querySelector('.modal--close');
// const shadowContainer = document.querySelector('.shadow-container');

console.log('test');

window.addEventListener('click', () => {
	console.log('window');
});

function showContent(type) {
	console.log('test');
	// modal.style.display = '';
	// shadowContainer.style.display = '';
	// const laptopLogo = document.querySelector('.' + type + '-logo');
	// const contentLogo = document.querySelector('.modal-content-logo');
	// let logoImg = document.createElement('img');
	// logoImg.src = logo.src;
	// contentLogo.appendChild(logoImg);
}

// modalClose.onclick = function() {
//     modal.style.display = 'none';
// 		shadowContainer.style.display = 'none';
// }

// window.onclick = function(event) {
//     if (event.target == modal) {
//         modal.style.display = 'none';
// 				shadowContainer.style.display = 'none';
//     }
// }
              
            
!
999px

Console