Skip to content

Commit

Permalink
Presentation updates that weren't commited until now
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristian Ivascu committed Jun 2, 2013
1 parent 36816e3 commit 0316bb7
Show file tree
Hide file tree
Showing 3 changed files with 510 additions and 91 deletions.
333 changes: 333 additions & 0 deletions 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,333 @@
<!doctype html>

<!--

Welcome to the light side of the source, young padawan.

One step closer to learn something interesting you are...

____
_.' : `._
.-.'`. ; .'`.-.
__ / : ___\ ; /___ ; \ __
,'_ ""--.:__;".-.";: :".-.":__;.--"" _`,
:' `.t""--.. '<@.`;_ ',@>` ..--""j.' `;
`:-.._J '-.-'L__ `-- ' L_..-;'
"-.__ ; .-" "-. : __.-"
L ' /.------.\ ' J
"-. "--" .-"
__.l"-:_JL_;-";.__
.-j/'.; ;"""" / .'\"-.
.' /:`. "-.: .-" .'; `.
.-" / ; "-. "-..-" .-" : "-.
.+"-. : : "-.__.-" ;-._ \
; \ `.; ; : : "+. ;
: ; ; ; : ; : \:
; : ; : ;: ; :
: \ ; : ; : ; / ::
; ; : ; : ; : ;:
: : ; : ; : : ; : ;
;\ : ; : ; ; ; ;
: `."-; : ; : ; / ;
; -: ; : ; : .-" :
:\ \ : ; : \.-" :
;`. \ ; : ;.'_..-- / ;
: "-. "-: ; :/." .' :
\ \ : ;/ __ :
\ .-`.\ /t-"" ":-+. :
`. .-" `l __/ /`. : ; ; \ ;
\ .-" .-"-.-" .' .'j \ / ;/
\ / .-" /. .'.' ;_:' ;
:-""-.`./-.' / `.___.'
\ `t ._ /
"-.t-._:'

-->

<!--

So you'd like to know how to use impress.js?

You've made the first, very important step -- you're reading the source code.
And that's how impress.js presentations are built -- with HTML and CSS code.

Believe me, you need quite decent HTML and CSS skills to be able to use impress.js effectively.
And what is even more important, you need to be a designer, too, because there are no default
styles for impress.js presentations, there is no default or automatic layout for them.

You need to design and build it by hand.

So...

Would you still like to know how to use impress.js?

-->

<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=1024" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>impress.js | presentation tool based on the power of CSS3 transforms and transitions in modern browsers | by Bartek Szopka @bartaz</title>

<meta name="description" content="impress.js is a presentation tool based on the power of CSS3 transforms and transitions in modern browsers and inspired by the idea behind prezi.com." />
<meta name="author" content="Bartek Szopka" />

<link href="http://fonts.googleapis.com/css?family=Open+Sans:regular,semibold,italic,italicsemibold|PT+Sans:400,700,400italic,700italic|PT+Serif:400,700,400italic,700italic" rel="stylesheet" />

<!--

Impress.js doesn't depend on any external stylesheet. Script adds all styles it needs for
presentation to work.

This style below contains styles only for demo presentation. Browse it to see how impress.js
classes are used to style presentation steps, or how to apply fallback styles, but I don't want
you to use them directly in your presentation.

Be creative, build your own. We don't really want all impress.js presentations to look the same,
do we?

When creating your own presentation get rid of this file. Start from scratch, it's fun!

-->
<link href="css/impress-demo.css" rel="stylesheet" />

<link rel="apple-touch-icon" href="apple-touch-icon.png" />
</head>
<body>

<!--

That's the wrapper for your presentation steps. In this element all the impress.js magic happens.
It doesn't have to be a `<div>`. Only `id` is important here as that's how the script find it.

It's worth to notice the `impress-not-supported` class. This class means, that browser doesn't
support features required by impress.js, so you can apply some fallback styles in your CSS.
It's not necessary to add it manually on this element. If the script detects that browser is not
good enough it will add this class, but keeping it in HTML means that users without JavaScript
will also get fallback styles.

The class name on this element also depends on currently active presentation step. More details about
it can be found below, when `hint` element is being described.

-->
<div id="impress" class="impress-not-supported">

<div class="fallback-message">
<p>Your browser <b>doesn't support the features required</b> by impress.js, so you are presented with a simplified version of this presentation.</p>
<p>For the best experience please use the latest <b>Chrome</b>, <b>Safari</b> or <b>Firefox</b> browser. Upcoming version 10 of Internet Explorer <i>should</i> also handle it.</p>
</div>

<!--

Here is where interesting thing start to happen.

Each step of the presentation should be an element inside the `#impress` with a class name
of `step`. These step elements are positioned, rotated and scaled by impress.js, and
the 'camera' shows them on each step of the presentation.

Positioning information is passed through data attributes.

In the example below we only specify x and y position of the step element with `data-x="-1000"`
and `data-y="-1500` attributes. This means that **the center** of the element (yes, the center)
will be positioned in point x = -1000px and y = -1500px of the presentation 'canvas'.

It will not be rotated or scaled.

-->
<div id="bored" class="step slide" data-x="-1000" data-y="-1500">
<q>Business Catalyst Admin UI V4</q>

</div>

<div id="ui-evolution" class="step" data-rotate="90" data-scale="2" data-x="0" data-y="-1500">
<strong>Admin v2</strong>
<br />
<em>Still the default for most sites</em>
</div>

<div id="v3-hybrid" class="step" data-rotate="90" data-scale="3" data-x="500" data-y="-1500">
<strong> V3 Hybrid </strong>
<br />
<q>Brand new visual, consistent </q>
</div>

<div id="v4-future" class="step" data-rotate="0" data-scale="1" data-x="1500" data-y="-1500">
<q> Admin V4 </q>
<br />
<p>An API based, client-only version of the Admin ready for the future<br /> <em> fast, server independent</em> &amp; <em>mobile ready</em><p>
</div>

<div id="what-is-v4" class="step slide" data-rotate="0" data-scale="1" data-x="3000" data-y="-1500">
<p>
Admin V4 uses:
<ol>
<li> * A Javascript M-V-C framework (Backbone.js)</li>
<li> * The liquid templating engine (Liquid.js)</li>
<li> * Structure (Backbone-Boilerplate)</li>
</ul>
</p>
</div>

<div id="what-we-added" class="step slide" data-x="4500" data-y="-1500">
<q>Layered on top we added:</q>
<p>
<ul>
<li>* Data-models that can perform authenticated calls</li>
<li>* Model relations based on discoverability</li>
<li>* Automatic rendering to the page </li>
<li>* Self-contained modules</li>
<li>* Datasources</li>
<li>* Model Meta for server-provided validation rules</li>
<li>* Components</li>
<li>* CORS support for IE8/9</li>
</ul>
<br />
And we're not done - if we find something that warrants inclusion, we will do it
</p>
</div>
<!--

And the last one shows full power and flexibility of impress.js.

You can not only position element in 3D, but also rotate it around any axis.
So this one here will get rotated by -40 degrees (40 degrees anticlockwise) around X axis and
10 degrees (clockwise) around Y axis.

You can of course rotate it around Z axis with `data-rotate-z` - it has exactly the same effect
as `data-rotate` (these two are basically aliases).

-->
<div id="its-in-3d" class="step" data-x="6200" data-y="4300" data-z="-100" data-rotate-x="-40" data-rotate-y="10" data-scale="2">
<p><span class="have">have</span> <span class="you">you</span> <span class="noticed">noticed</span> <span class="its">it's</span> <span class="in">in</span> <b>3D<sup>*</sup></b>?</p>
<span class="footnote">* beat that, prezi ;)</span>
</div>

<!--

So to make a summary of all the possible attributes used to position presentation steps, we have:

* `data-x`, `data-y`, `data-z` -- they define the position of **the center** of step element on
the canvas in pixels; their default value is 0;
* `data-rotate-x`, `data-rotate-y`, 'data-rotate-z`, `data-rotate` -- they define the rotation of
the element around given axis in degrees; their default value is 0; `data-rotate` and `data-rotate-z`
are exactly the same;
* `data-scale` -- defines the scale of step element; default value is 1

-->
<div id="overview" class="step" data-x="3000" data-y="1500" data-scale="10">
</div>

</div>

<!--

Hint is not related to impress.js in any way.

But it can show you how to use impress.js features in creative way.

When the presentation step is shown (selected) it's element get's the class of "active" and `#impress` root
element get's the class based on active step id `step-ID` (where ID is the step id)... It probably is not
so clear because of all these IDs in here, so for example when the first step (the one with id of `bored`)
is active, `#impress` element get a class of `step-bored`.

This class is used by this hint below. Check CSS file to see how it's shown with delayed CSS animation.

-->
<div class="hint">
<p>Use a spacebar or arrow keys to navigate</p>
</div>
<script>
if ("ontouchstart" in document.documentElement) {
document.querySelector(".hint").innerHTML = "<p>Tap on the left or right to navigate</p>";
}
</script>

<!--

Last, but not least.

To make all described above really work, you need to include impress.js in the page.
I strongly encourage to minify it first.

In here I just include full source of the script to make it more readable.

You also need to call a `impress()` function to initialize impress.js presentation.
And you should do it in the end of your document. Not only because it's a good practice, but also
because I should be done when the whole document is ready.
Of course you can wrap it in any kind of "DOM ready" event, but I was to lazy to do so ;)

-->
<script src="js/impress.js"></script>
<script>impress();</script>

<!--

The `impress()` function also gives you access to API to control the presentation.

Just store the result of the call:

var api = impress();

and you will get three functions you can call:

`api.next()` - moves to next step of the presentation,
`api.prev()` - moves to previous step of the presentation
`api.goto( stepElement ) - moves the presentation to given step element (the DOM element of the step).

You can also simply call `impress()` again to get the API, so `impress().next()` is also allowed.
Don't worry, it wont initialize the presentation again.

For some example uses of this API check the last part of the source of impress.js where the API
is used in event handlers.

-->

</body>
</html>

<!--

Now you know more or less everything you need to build your first impress.js presentation, but before
you start...

Oh, you've already cloned the code from GitHub?

You have it open in text editor?

Stop right there!

That's not how you create awesome presentations. This is only a code. Implementation of the idea that
first needs to grow in your mind.

So if you want to build great presentation take a pencil and piece of paper. And turn off the computer.

Sketch, draw and write. Brainstorm your ideas on a paper. Try to build a mind-map of what you'd like
to present. It will get you closer and closer to the layout you'll build later with impress.js.

Get back to the code only when you have your presentation ready on a paper. It doesn't make sense to do
it earlier, because you'll only waste your time fighting with positioning of useless points.

If you think I'm crazy, please put your hands on a book called "Presentation Zen". It's all about
creating awesome and engaging presentations.

Think about it. 'Cause impress.js may not help you, if you have nothing interesting to say.

-->

<!--

Are you still reading this?

For real?

I'm impressed! Feel free to let me know that you got that far (I'm @bartaz on Twitter), 'cause I'd like
to congratulate you personally :)

But you don't have to do it now. Take my advice and take some time off. Make yourself a cup of coffee, tea,
or anything you like to drink. And raise a glass for me ;)

Cheers!

-->

2 changes: 1 addition & 1 deletion css/impress-demo.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ body {
line-height: 1;
}
ol, ul {
list-style: none;
# list-style: none;
}
blockquote, q {
quotes: none;
Expand Down
Loading

0 comments on commit 0316bb7

Please sign in to comment.