JSFiddle - React, Tailwind, and code Playground

by mmarcon

HTML

<header>
    <h1>Massimiliano Marcon</h1>
    <h2>mm</h2>
    <h3>R&amp;D Engineer -  Developer - Web Standards Expert</h3>
    <nav>
        <ul>
            <li><a href="info.html"><img src="http://dl.dropbox.com/u/234787/mm/info.png"/><span></span></a></li>
            <li><a href="#"><img src="http://dl.dropbox.com/u/234787/mm/mail.png"/><span></span></a></li>
            <li><a href="#"><img src="http://dl.dropbox.com/u/234787/mm/twitter.png"/><span></span></a></li>
        </ul>
    </nav>
</header>
<section id="info" class="details">
    <h4>Who am I</h4>
    <p>
        Accomplished R&amp;D engineer and passionate innovator specializing in design and 
        development of <strong>distributed systems</strong> and <strong>Service Oriented Architectures</strong>, infrastructures for 
        <strong>information sharing</strong>, <strong>security frameworks</strong>, <strong>web standards</strong> and <strong>user interface</strong> design. Extensive 
        background in full-cycle of software development process, from the requirement analysis to the 
        implementation and testing phases.
    </p>
</section>

CSS

@import url(http://fonts.googleapis.com/css?family=Josefin+Slab:300);
@import url(http://fonts.googleapis.com/css?family=Lobster+Two);

body {
    background-color: #e4e4db;
    color: #444;
    font-size: 14px;
    font-weight: 100;
    font-family: 'Josefin Slab', serif;
}

strong {
    color: #111;
}

header {
    margin-top: 200px;
}

h1 {
    display: block;
    font-family: 'Lobster Two', cursive;
    font-size: 48px;
    text-shadow: 0 1px 0 #000;
    text-align: center;
}

h2 {
    display: none;
    font-family: 'Limelight', serif;
    font-size: 144px;
    text-shadow: 0 1px 0 #000;
    text-align: center;
}

h3 {
    text-align: center;
    font-size: 18px;
}

ul {
    text-align: center;
    margin: 30px 0;
}

li {
    display: inline-block;
    margin: 0 10px;
    text-align: center;
}

li a span {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    /*
    border-width: 10px;
    border-style: solid;
    border-color: #444 transparent transparent transparent;
    */
    margin: auto;
    display: none;
    background: #444;
}

li.selected a span {
    display: block;
}

section.details {
    display: none;
    max-width: 600px;
    margin: auto;
    padding: 20px;
}

section.details h4 {
    font-family: 'Lobster Two', cursive;
    font-size: 48px;
    background: #444;
    color: #fff;
    display: inline-block;
    margin-bottom: 30px;
    padding: 10px;
    line-height: 1;
    -webkit-transform: rotate(-5deg);
    box-shadow: 2px 0 10px #999;
    position: relative;
    left: -20px;
}

section.details p {
    font-size: 28px;
    color: #444;
}

JavaScript

$(function() {
    var links = $('nav a');
    links.each(function() {
        var h = $(this).attr('href');
        h = '#' + h.replace('.html', '');
        $(this).attr('href', h);
    });

    links.click(function() {
        var target = $(this).attr('href'),
            li = $(this).parent();

        if ($(target + ':visible').length > 0) {
            return false;
        }
        $(this).parent().fadeTo(200, 1);
        $('header').animate({
            'margin-top': 0
        }, 1000, null, function() {
            $(target).fadeTo(0, 0).show();
            li.addClass('selected').siblings().removeClass('selected');
            $(target).fadeTo(500, 1);
        });
        return false;
    }).hover(function() {
        $(this).parent().fadeTo(500, 0.7);
    }, function() {
        $(this).parent().fadeTo(200, 1);
    });
});