JSFiddle - React, Tailwind, and code Playground

by adamschwartz

HTML

<section>
    <div>
        <p><b>This Talk</b><br/>
tinyurl.com/pace-vex-tech-talk</p>
    </div>
</section>

<section>
    <div>
        <img src="https://raw.github.com/HubSpot/vex/master/docs/vex.gif" />
    </div>
</section>

<iframe src="http://github.hubspot.com/vex/docs/welcome/" scrolling="no"></iframe>

<section>
    <div>
        <h3>
            Vex by the Numbers
        </h3>
        <p>
            <b>2,300</b>GitHub Stars
        </p>
    </div>
</section>

<section>
    <div>
        <h3>
            Vex by the Numbers
        </h3>
        <p>
            <b>400</b> Tweets of Vex Home Page
        </p>
    </div>
</section>

<section>
    <div>
        <h3>
            Vex by the Numbers
        </h3>
        <p>
            <b>50,000</b> Pageviews
        </p>
    </div>
</section>

<iframe src="http://github.hubspot.com/pace/docs/welcome/" scrolling="no"></iframe>

<section>
    <div>
        <h3>
            Pace by the Numbers
        </h3>
        <p>
            <b>2,600</b>GitHub Stars
        </p>
    </div>
</section>

<section>
    <div>
        <h3>
            Pace by the Numbers
        </h3>
        <p>
            <b>570</b> Tweets of Vex Home Page
        </p>
    </div>
</section>

<section>
    <div>
        <h3>
            Pace by the Numbers
        </h3>
        <p>
            <b>100,000</b> Pageviews
        </p>
    </div>
</section>

<section>
    <p>More info on the Wiki.<br/><br/>
    Links to be shared over HipChat shortly.</p>
</section>

<section>
    <p><b>Questions?</b></p>
</section>

CSS

html, body {
    height: 100%;
    margin: 0;
    font-family: "Helvetica Neue", sans-serif;
    font-weight: normal;
}

h3 {
    font-weight: normal;
}

html {
    font-size: 62.5%;
}

body {
    font-size: 3rem;
    line-height: 1.4em;
}

section {
    height: 100%;
    position: relative;
}

section > * {
    position: absolute;
    margin: auto;
    width: 50%;
    height: 50%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    text-align: center;
}

img, iframe {
    max-width: 100%;
}

b {
    font-size: 10rem;
    line-height: 12rem;
    display: block;
}

iframe {
    border: 0;
    height: 100%;
    width: 100%;
    margin: 0;
    overflow: hidden;
}

JavaScript

$('body').keypress(function(e){
    e.preventDefault();
    if (e.keyCode === 32) { //space
        window.scrollBy(0, $(window).height());
    }
});