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.
<div id="contenedor">
<header>
<div id="efecto">
<div>
<h1>Satoru Iwata</h1>
<h3>Game developer and president of Nintendo</h3>
<h4>1959-2015</h4>
</div>
<i class="fa fa-angle-down fa-2x" aria-hidden="true"></i>
</div>
</header>
<div id="contenido">
<div id="about">
<h2 class="seccion">About</h2>
<p><b>Satoru Iwata</b> was a Japanese video game programmer and businessman who served as the fourth president and chief executive officer (CEO) of <b>Nintendo</b>. He is widely regarded as a major contributor in broadening the appeal of video games to a wider audience by focusing on novel and entertaining games rather than top-of-the-line hardware.</p>
</div>
<div id="cita">
<i class="fa fa-quote-left" aria-hidden="true"></i>
<div id="contenidoCita">
<p>On my business card, I am a corporate president.<br>In my mind, I am a game developer.<br>But in my heart, I am a gamer.</p>
</div>
</div>
<!-- Fuente: http://www.polygon.com/features/2015/7/13/8940557/satoru-iwata-accomplishments-timeline-biography-life -->
<div id="contenedorTimeline">
<h2 class="seccion">Timeline</h2>
<div id="timeline">
<div class="timelineItem">
<div class="timelineIcon">
<i class="fa fa-hospital-o"></i>
</div>
<div class="timelineContent">
<h2>Satoru Iwata is born</h2>
<h3>1959</h3>
<div>
<img src="https://raw.githubusercontent.com/YuneVK/YuneVK.github.io/master/iwata/img/map.png">
<p>Satoru Iwata is born in <b>Hokkaido Prefecture</b>, on Japan's second-largest island.</p>
</div>
</div>
</div>
<div class="timelineItem">
<div class="timelineIcon">
<i class="fa fa-graduation-cap"></i>
</div>
<div class="timelineContent right">
<h2>Iwata studies</h2>
<h3>1978 — 1982</h3>
<div>
<img src="https://raw.githubusercontent.com/YuneVK/YuneVK.github.io/master/iwata/img/studies.jpg">
<p>Iwata studies <b>computer science</b> at the <b>Tokyo Institute of Technology University</b>. In interviews, he says he'd been hooked on programming since high school. He graduates in 1982.</p>
</div>
</div>
</div>
<div class="timelineItem">
<div class="timelineIcon">
<i class="fa fa-gamepad"></i>
</div>
<div class="timelineContent">
<h2>HAL Laboratory</h2>
<h3>1983 — 2000</h3>
<div>
<img src="https://raw.githubusercontent.com/YuneVK/YuneVK.github.io/master/iwata/img/hal.jpg">
<p>Iwata joins <b>HAL Laboratory</b>, becoming the small company's fifth full-time employee. At the Japanese games maker, Iwata is a designer, engineer, programmer and marketer, helping develop games like <b>NES Pinball</b> and those in the <b>EarthBound</b>, <b>Kirby</b> and <b>Super Smash Bros.</b> franchises for <b>Nintendo systems</b>.</p>
</div>
</div>
</div>
<div class="timelineItem">
<div class="timelineIcon">
<i class="fa fa-gamepad"></i>
</div>
<div class="timelineContent right">
<h2>Balloon Fight</h2>
<h3>1984 — 1986</h3>
<div>
<img src="https://raw.githubusercontent.com/YuneVK/YuneVK.github.io/master/iwata/img/balloon.jpg">
<p>In 1984, <b>Nintendo</b> releases an arcade version of <b>Balloon Fight</b>, a simple game where players try to fly, thanks to the poppable balloons on their heads. In 1986, it arrives on the company’s new home console, the <b>NES</b>. Satoru Iwata, in his 20s at the time, is the game’s programmer.</p>
</div>
</div>
</div>
<div class="timelineItem">
<div class="timelineIcon">
<i class="fa fa-briefcase"></i>
</div>
<div class="timelineContent">
<h2>Iwata's first presidency</h2>
<h3>1993</h3>
<div>
<img src="https://raw.githubusercontent.com/YuneVK/YuneVK.github.io/master/iwata/img/president.jpg">
<p>Despite creating several notable games, <b>HAL</b> is in financial jeopardy. In 1993, Iwata becomes <b>president</b> of the company he's worked at for a decade and steers it back to solvency.</p>
</div>
</div>
</div>
<div class="timelineItem">
<div class="timelineIcon">
<i class="fa fa-gamepad"></i>
</div>
<div class="timelineContent right">
<h2>Creating Super Smash Bros</h2>
<h3>1998 — 1999</h3>
<div>
<img src="https://raw.githubusercontent.com/YuneVK/YuneVK.github.io/master/iwata/img/smash.jpg">
<p>At <b>HAL Laboratory</b>, <b>Iwata</b> and <b>Masahiro Sakurai</b> develop the prototype for the original <b>Super Smash Bros</b>. The fighting game stars a cast of a dozen Nintendo characters. It becomes a franchise, spanning Nintendo's console and handheld systems. The latest entry was created simultaneously for Nintendo 3DS and Wii U.</p>
</div>
</div>
</div>
<div class="timelineItem">
<div class="timelineIcon">
<i class="fa fa-user-plus"></i>
</div>
<div class="timelineContent">
<h2>Joining Nintendo</h2>
<h3>2000</h3>
<div>
<img src="https://raw.githubusercontent.com/YuneVK/YuneVK.github.io/master/iwata/img/gamecube.jpg">
<p>Iwata joins <b>Nintendo</b> as a nearly 20-year veteran of the industry. He arrives just ahead of the <b>GameCube's</b> release and is charged with overseeing Nintendo's Corporate Planning Division, which has a global reach.</p>
</div>
</div>
</div>
<div class="timelineItem">
<div class="timelineIcon">
<i class="fa fa-briefcase"></i>
</div>
<div class="timelineContent right">
<h2>A second presidency</h2>
<h3>2002 — 2015</h3>
<div>
<img src="https://raw.githubusercontent.com/YuneVK/YuneVK.github.io/master/iwata/img/president2.jpg">
<p>In 2002, <b>Hiroshi Yamauchi</b> announces his retirement, after having served as <b>Nintendo's president</b> since 1949. He names Iwata as his successor, saying that Iwata <i>'has the instincts to survive in the business.'</i> Iwata is the first president outside of the founding Yamauchi family — and only the fourth since the company was founded in 1889.</p>
</div>
</div>
</div>
<div class="timelineItem">
<div class="timelineIcon">
<i class="fa fa-gamepad"></i>
</div>
<div class="timelineContent">
<h2>Nintendo DS</h2>
<h3>NOVEMBER 2004</h3>
<div>
<img src="https://raw.githubusercontent.com/YuneVK/YuneVK.github.io/master/iwata/img/ds.jpg">
<p>Under Iwata, Nintendo releases the the <b>Nintendo DS</b>, a dual-screened handheld successor to the <b>Game Boy Advance</b>. Nintendo iterates its clamshell design for the next decade while selling hundreds of millions in the DS product line.</p>
</div>
</div>
</div>
<div class="timelineItem">
<div class="timelineIcon">
<i class="fa fa-gamepad"></i>
</div>
<div class="timelineContent right">
<h2>Wii</h2>
<h3>NOVEMBER 2006</h3>
<div>
<img src="https://raw.githubusercontent.com/YuneVK/YuneVK.github.io/master/iwata/img/wii.jpg">
<p>Iwata's insights lead him to believe that games are becoming too complex to be widely adopted, and that Nintendo is in a unique position to innovate its way to help broad adoption. Released in November 2006, the <b>motion-controlled Wii</b> is an unqualified success, bringing video games — often designed simply, with less graphical fidelity and to be easily playable — to the masses, not just the hardcore audience. To date, Nintendo has sold more than 101 million units, making it the undisputed sales winner of the previous generation.</p>
</div>
</div>
</div>
<div class="timelineItem">
<div class="timelineIcon">
<i class="fa fa-gamepad"></i>
</div>
<div class="timelineContent">
<h2>Nintendo 3DS</h2>
<h3>FEBRUARY 2011</h3>
<div>
<img src="https://raw.githubusercontent.com/YuneVK/YuneVK.github.io/master/iwata/img/3DS.jpg">
<p>Nintendo releases the <b>3DS</b>, the glasses-free successor to the DS handheld. In the years that follow, Nintendo releases larger, <b>XL</b> versions and the <b>New 3DS</b>, which improves and strengthens the hardware and includes new input methods.</p>
</div>
</div>
</div>
<div class="timelineItem">
<div class="timelineIcon">
<i class="fa fa-video-camera"></i>
</div>
<div class="timelineContent right">
<h2>Nintendo Direct presentations</h2>
<h3>NOVEMBER 2011</h3>
<div>
<img src="https://raw.githubusercontent.com/YuneVK/YuneVK.github.io/master/iwata/img/direct.png">
<p>Nintendo begins talking directly to its fans through periodic <b>Nintendo Direct presentations</b>. Iwata often hosts these, becoming an even more genial, public face for the company.</p>
</div>
</div>
</div>
<div class="timelineItem">
<div class="timelineIcon">
<i class="fa fa-gamepad"></i>
</div>
<div class="timelineContent">
<h2>Wii U</h2>
<h3>NOVEMBER 2012</h3>
<div>
<img src="https://raw.githubusercontent.com/YuneVK/YuneVK.github.io/master/iwata/img/wiiu.jpg">
<p>Nintendo releases the <b>Wii U</b>. In many ways, it's a console version of Nintendo's popular dual-screen line of handhelds, designed with two screens, including the tablet-like <b>GamePad</b> controller.</p>
</div>
</div>
</div>
<div class="timelineItem">
<div class="timelineIcon">
<i class="fa fa-area-chart"></i>
</div>
<div class="timelineContent right">
<h2>50 percent pay cut</h2>
<h3>JANUARY 2014 — JUNE 2014</h3>
<div>
<img src="https://raw.githubusercontent.com/YuneVK/YuneVK.github.io/master/iwata/img/pay.jpg">
<p>After Nintendo profits fall in 2013, Iwata announces that he will cut his pay in half for several months. Other executive pay is cut, too, but Iwata's paycheck takes the biggest hit.</p>
</div>
</div>
</div>
<div class="timelineItem">
<div class="timelineIcon">
<i class="fa fa-plus-square"></i>
</div>
<div class="timelineContent">
<h2>The end</h2>
<h3>JULY 11, 2015</h3>
<div>
<img src="https://raw.githubusercontent.com/YuneVK/YuneVK.github.io/master/iwata/img/rip.jpg">
<p>Satoru Iwata passes away at 55. The Associated Press reports that his funeral will be held on July 17.</p>
</div>
</div>
</div>
</div>
</div>
<div id="borde"></div>
<div id="miiverse">
<img src="https://raw.githubusercontent.com/YuneVK/YuneVK.github.io/master/iwata/img/miiverse.png">
<div id="contenidoMiiverse">
<p>Hello, I'm Satoru Iwata, global president of Nintendo.<br>Thank you for enjoying our products.<br>And please, don't be sad, Everything is going to be fine.<br>Plase understand.</p>
</div>
</div>
<footer>
<h1>Thank you, Satoru Iwata</h1>
<h2>Read more about Iwata on his <a href="https://en.wikipedia.org/wiki/Satoru_Iwata" target="_blank">Wikipedia entry</a></h2>
<p><a href="https://www.freecodecamp.com" target="_blank">FreeCodeCamp</a> tribute page coded by <a href="https://www.freecodecamp.com/yunevk" target="_blank">Sonia Ruiz</a></p>
</footer>
</div>
</div>
@import 'https://fonts.googleapis.com/css?family=Raleway:300,400';
@import 'https://fonts.googleapis.com/css?family=Open+Sans:400,600,300';
@import "//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css";
* {
margin: 0;
padding: 0;
}
*, *:after, *:before {
box-sizing: border-box;
}
body, html {
height: 100%;
}
body {
overflow-x: hidden;
color: #181818;
}
header {
background-image: url("https://raw.githubusercontent.com/YuneVK/YuneVK.github.io/master/iwata/img/iwata.jpg");
background-position: center 0;
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
height: 100vh;
}
#efecto {
height: 100vh;
background: radial-gradient(circle, rgba(185,185,185,0.2), rgba(40,40,40, 0.6));
text-align: center;
display: -ms-flexbox;
display: flex;
-ms-flex-align: center;
align-items: center;
-ms-flex-pack: center;
justify-content: center;
}
header h1, header h3, header h4 {
color: white;
font-family: 'Raleway', sans-serif;
text-shadow: 2px 4px 3px rgba(0,0,0,0.3);
}
header h1 {
font-size: 4.3em;
letter-spacing: 0.13em;
padding-bottom: 0.21em;
}
header h3 {
font-weight: 300;
font-size: 1.5em;
letter-spacing: 0.15em;
}
header h4 {
font-weight: 300;
font-size: 1.3em;
letter-spacing: 0.2em;
}
header i {
text-align: center;
position: absolute;
bottom: 1%;
left: 50%;
color: #FFF;
animation: 1.5s bounce infinite;
}
@keyframes bounce {
0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
40% {transform: translateY(-20px);}
60% {transform: translateY(-10px);}
}
#efecto div {
display: inline-block;
vertical-align: middle;
padding: 1em;
border-top: 3px solid white;
border-bottom: 3px solid white;
margin-top: -5vh;
}
#contenido {
display: -ms-flexbox;
display: flex;
-ms-flex-direction: column;
flex-direction: column;
-ms-flex-align: center;
align-items: center;
margin: auto;
color: #242424;
font-family: 'Open Sans', sans-serif;
font-weight: 400;
}
#about {
padding: 1em;
background-color: #F2F2F2;
position: relative;
}
#about:after {
content: '';
display: block;
position: absolute;
left: 0;
top: 100%;
width: 0;
height: 0;
border-top: 33px solid #F2F2F2;
border-right: 50vw solid transparent;
border-bottom: 0 solid transparent;
border-left: 50vw solid transparent;
}
.seccion {
text-align: center;
font-size: 3em;
margin: auto;
margin-bottom: 0.4em;
color: #8F000A;
}
#about p {
margin: 0 10vw;
font-size: 1.1em;
letter-spacing: 0.1em;
line-height: 1.5em;
}
b {
font-weight: 600;
color: #8F000A;
text-shadow: 0px 1px 1px rgba(0,0,0,0.1);
}
i {
color: #303030;
}
#cita {
padding: 60px 0;
background-color: #8F000A;
width: 100%;
display: -ms-flexbox;
display: flex;
-ms-flex-align: center;
align-items: center;
-ms-flex-pack: center;
justify-content: center;
color: #F2F2F2;
}
#cita i {
color: #F2F2F2;
font-size: 3em;
padding-right: 10px;
}
#cita p {
font-size: 1.3em;
padding-left: 10px;
border-left: 2px solid #F2F2F2;
font-weight: 300;
}
#contenidoCita {
max-width: 60vw;
}
#contenedorTimeline {
background-color: #F2F2F2;
width: 100%;
position: relative;
}
#contenedorTimeline:after {
content: '';
display: block;
position: absolute;
left: 0;
bottom: 100%;
width: 0;
height: 0;
border-bottom: 33px solid #F2F2F2;
border-right: 50vw solid transparent;
border-top: 0 solid transparent;
border-left: 50vw solid transparent;
}
/*
* -- Timeline --
* Basado en: https://codepen.io/itbruno/pen/KwarLp
*/
.timelineItem:after, .timelineItem:before {
content: '';
display: block;
width: 100%;
clear: both;
}
#timeline {
width: 100%;
margin: 30px auto;
position: relative;
padding: 0 10px;
}
#timeline:before {
content: '';
width: 3px;
height: 100%;
background: #8F000A;
left: 50%;
top: 0;
position: absolute;
}
#timeline:after {
content: '':
;clear:; both;
display: table;
width: 100%;
}
.timelineItem {
margin-bottom: 50px;
position: relative;
}
.timelineIcon {
background: #8F000A;
width: 50px;
height: 50px;
position: absolute;
top: 0;
left: 50%;
overflow: hidden;
margin-left: -23px;
border-radius: 50%;
display: -ms-flexbox;
display: flex;
-ms-flex-align: center;
align-items: center;
-ms-flex-pack: center;
justify-content: center;
}
.timelineIcon i {
font-size: 25px;
color: white;
text-shadow: 2px 4px 3px rgba(0,0,0,0.3);
}
.timelineContent {
width: 45%;
background: #FFFFFF;
padding: 20px;
box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);
border-radius: 5px;
}
.timelineContent h2 {
padding: 15px;
background: #8F000A;
color: #FFF;
margin: -20px -20px 0 -20px;
border-radius: 3px 3px 0 0;
text-shadow: 2px 4px 3px rgba(0,0,0,0.3);
}
.timelineContent h3 {
font-weight: 300;
color: #434343;
padding: 8px 0;
font-size: 1em;
}
.timelineContent div {
display: -ms-flexbox;
display: flex;
-ms-flex-align: center;
align-items: center;
-ms-flex-pack: center;
justify-content: center;
}
.timelineContent img {
width: 50%;
height: auto !important;
max-height: 200px;
padding: .5em;
object-fit: contain;
}
.timelineContent p {
line-height: 1.45em;
}
.timelineContent:before {
content: '';
position: absolute;
left: 45%;
top: 20px;
width: 0;
height: 0;
border-top: 7px solid transparent;
border-bottom: 7px solid transparent;
border-left: 7px solid #8F000A;
}
.timelineContent.right {
float: right;
}
.timelineContent.right:before {
content: '';
right: 45%;
left: inherit;
border-left: 0;
border-right: 7px solid #8F000A;
}
@media (max-width: 768px) {
#timeline {
margin: 30px;
padding: 0;
width: 90%;
}
#timeline:before {
left: 0;
}
.timelineContent {
width: 90%;
float: right;
}
.timelineContent:before, .timelineContent.right:before {
left: 10%;
margin-left: -6px;
border-left: 0;
border-right: 7px solid #8F000A;
}
.timelineIcon {
left: 0;
}
.timelineContent div {
display: -ms-flexbox;
display: flex;
-ms-flex-align: center;
align-items: center;
-ms-flex-pack: center;
justify-content: center;
-ms-flex-direction: column;
flex-direction: column;
}
.timelineContent img {
width: 80%;
height: auto !important;
display: block;
padding: .5em;
}
}
#borde {
display: block;
left: 0;
bottom: 100%;
width: 0;
height: 0;
border-top: 33px solid #F2F2F2;
border-right: 50vw solid transparent;
border-bottom: 0 solid transparent;
border-left: 50vw solid transparent;
z-index: 3;
}
#miiverse {
background-color: #8F000A;
width: 100%;
display: -ms-flexbox;
display: flex;
-ms-flex-align: center;
align-items: center;
-ms-flex-pack: center;
justify-content: center;
position: relative;
margin-top: -33px;
padding-top: 50px;
padding-bottom: 50px;
color: #F2F2F2;
}
#miiverse p {
font-size: 1.3em;
padding-left: 10px;
border-left: 2px solid #F2F2F2;
font-weight: 300;
}
#contenidoMiiverse {
padding-right: 10px;
}
footer {
background-color: #420005;
width: 100%;
position: relative;
color: #F2F2F2;
text-align: center;
padding-bottom: 1.7em;
}
footer:before {
content: '';
display: block;
position: absolute;
left: 0;
bottom: 100%;
width: 0;
height: 0;
border-bottom: 33px solid #420005;
border-right: 50vw solid transparent;
border-top: 0 solid transparent;
border-left: 50vw solid transparent;
}
footer h1 {
padding: 0.3em 0.7em;
font-weight: 300;
font-size: 2.5em;
}
footer h2 {
text-align: center;
padding: 0.1em 0.7em;
font-weight: 300;
font-size: 1.5em;
}
footer a {
color: #F2F2F2;
}
footer a:hover {
color: #F48484;
transition: 0.3s ease;
}
footer p {
font-size: 0.8em;
padding-top: 0.6em;
}
/*
FreeCodeCamp tribute page.
Timeline: https://codepen.io/itbruno/pen/KwarLp
Info: http://www.polygon.com/features/2015/7/13/8940557/satoru-iwata-accomplishments-timeline-biography-life
*/
Also see: Tab Triggers