├── .DS_Store
├── README.md
├── sesion-03
├── .DS_Store
├── ejemplos
│ ├── .gitignore
│ ├── README.md
│ ├── package.json
│ ├── public
│ │ ├── favicon.ico
│ │ └── index.html
│ └── src
│ │ ├── App.css
│ │ ├── App.js
│ │ ├── App.test.js
│ │ ├── dynamic-children
│ │ └── index.js
│ │ ├── encapsulating-libraries
│ │ ├── Timeago.js
│ │ └── index.js
│ │ ├── index.css
│ │ ├── index.js
│ │ ├── life-cycle
│ │ └── index.js
│ │ └── nesting-views
│ │ └── index.js
└── presentacion
│ ├── .DS_Store
│ ├── css
│ ├── .DS_Store
│ ├── custom.css
│ ├── print
│ │ ├── paper.css
│ │ └── pdf.css
│ ├── reveal.css
│ ├── reveal.scss
│ └── theme
│ │ ├── README.md
│ │ ├── beige.css
│ │ ├── black.css
│ │ ├── blood.css
│ │ ├── league.css
│ │ ├── moon.css
│ │ ├── night.css
│ │ ├── serif.css
│ │ ├── simple.css
│ │ ├── sky.css
│ │ ├── solarized.css
│ │ ├── source
│ │ ├── beige.scss
│ │ ├── black.scss
│ │ ├── blood.scss
│ │ ├── league.scss
│ │ ├── moon.scss
│ │ ├── night.scss
│ │ ├── serif.scss
│ │ ├── simple.scss
│ │ ├── sky.scss
│ │ ├── solarized.scss
│ │ └── white.scss
│ │ ├── template
│ │ ├── mixins.scss
│ │ ├── settings.scss
│ │ └── theme.scss
│ │ └── white.css
│ ├── img
│ ├── 1.jpg
│ ├── cat-box.gif
│ ├── cat-keyboard-2.gif
│ ├── cat-keyboard-3.gif
│ ├── cat-keyboard-4.gif
│ ├── cat-keyboard.gif
│ ├── dynamic.gif
│ ├── inception.gif
│ ├── life1.png
│ ├── life2.png
│ ├── life3.png
│ ├── life4.png
│ ├── logo-fotocasa.png
│ ├── miduga.png
│ ├── react-logo.png
│ └── uiku-logo.png
│ ├── index.html
│ ├── js
│ └── reveal.js
│ ├── lib
│ ├── css
│ │ └── zenburn.css
│ ├── font
│ │ ├── league-gothic
│ │ │ ├── LICENSE
│ │ │ ├── league-gothic.css
│ │ │ ├── league-gothic.eot
│ │ │ ├── league-gothic.ttf
│ │ │ └── league-gothic.woff
│ │ └── source-sans-pro
│ │ │ ├── LICENSE
│ │ │ ├── source-sans-pro-italic.eot
│ │ │ ├── source-sans-pro-italic.ttf
│ │ │ ├── source-sans-pro-italic.woff
│ │ │ ├── source-sans-pro-regular.eot
│ │ │ ├── source-sans-pro-regular.ttf
│ │ │ ├── source-sans-pro-regular.woff
│ │ │ ├── source-sans-pro-semibold.eot
│ │ │ ├── source-sans-pro-semibold.ttf
│ │ │ ├── source-sans-pro-semibold.woff
│ │ │ ├── source-sans-pro-semibolditalic.eot
│ │ │ ├── source-sans-pro-semibolditalic.ttf
│ │ │ ├── source-sans-pro-semibolditalic.woff
│ │ │ └── source-sans-pro.css
│ └── js
│ │ ├── classList.js
│ │ ├── head.min.js
│ │ └── html5shiv.js
│ └── plugin
│ ├── highlight
│ └── highlight.js
│ ├── markdown
│ ├── example.html
│ ├── example.md
│ ├── markdown.js
│ └── marked.js
│ ├── math
│ └── math.js
│ ├── multiplex
│ ├── client.js
│ ├── index.js
│ ├── master.js
│ └── package.json
│ ├── notes-server
│ ├── client.js
│ ├── index.js
│ └── notes.html
│ ├── notes
│ ├── notes.html
│ └── notes.js
│ ├── print-pdf
│ └── print-pdf.js
│ ├── search
│ └── search.js
│ └── zoom-js
│ └── zoom.js
├── sesion-05
├── .DS_Store
├── apps
│ ├── .gitignore
│ ├── README.md
│ ├── package.json
│ ├── public
│ │ ├── favicon.ico
│ │ ├── index.html
│ │ └── marvel-logo.jpeg
│ └── src
│ │ ├── index.css
│ │ ├── index.js
│ │ ├── marvel
│ │ ├── App.css
│ │ ├── App.js
│ │ ├── Button.js
│ │ ├── Card
│ │ │ ├── Card.css
│ │ │ └── Card.js
│ │ ├── Logo.js
│ │ ├── Searcher.css
│ │ ├── Searcher.js
│ │ └── dummyData.js
│ │ └── marvel_done
│ │ ├── App.css
│ │ ├── App.js
│ │ ├── Button.js
│ │ ├── Card.css
│ │ ├── Card.js
│ │ ├── Logo.js
│ │ ├── ResultMessage.js
│ │ ├── Searcher.css
│ │ ├── Searcher.js
│ │ └── dummyData.js
└── presentacion
│ ├── css
│ ├── .DS_Store
│ ├── custom.css
│ ├── print
│ │ ├── paper.css
│ │ └── pdf.css
│ ├── reveal.css
│ ├── reveal.scss
│ └── theme
│ │ ├── README.md
│ │ ├── beige.css
│ │ ├── black.css
│ │ ├── blood.css
│ │ ├── league.css
│ │ ├── moon.css
│ │ ├── night.css
│ │ ├── serif.css
│ │ ├── simple.css
│ │ ├── sky.css
│ │ ├── solarized.css
│ │ ├── source
│ │ ├── beige.scss
│ │ ├── black.scss
│ │ ├── blood.scss
│ │ ├── league.scss
│ │ ├── moon.scss
│ │ ├── night.scss
│ │ ├── serif.scss
│ │ ├── simple.scss
│ │ ├── sky.scss
│ │ ├── solarized.scss
│ │ └── white.scss
│ │ ├── template
│ │ ├── mixins.scss
│ │ ├── settings.scss
│ │ └── theme.scss
│ │ └── white.css
│ ├── img
│ ├── 1.jpg
│ ├── cat-box.gif
│ ├── cat-keyboard-2.gif
│ ├── cat-keyboard-3.gif
│ ├── cat-keyboard-4.gif
│ ├── cat-keyboard.gif
│ ├── dynamic.gif
│ ├── inception.gif
│ ├── life1.png
│ ├── life2.png
│ ├── life3.png
│ ├── life4.png
│ ├── logo-fotocasa.png
│ ├── miduga.png
│ ├── react-logo.png
│ └── uiku-logo.png
│ ├── index.html
│ ├── js
│ └── reveal.js
│ ├── lib
│ ├── css
│ │ └── zenburn.css
│ ├── font
│ │ ├── league-gothic
│ │ │ ├── LICENSE
│ │ │ ├── league-gothic.css
│ │ │ ├── league-gothic.eot
│ │ │ ├── league-gothic.ttf
│ │ │ └── league-gothic.woff
│ │ └── source-sans-pro
│ │ │ ├── LICENSE
│ │ │ ├── source-sans-pro-italic.eot
│ │ │ ├── source-sans-pro-italic.ttf
│ │ │ ├── source-sans-pro-italic.woff
│ │ │ ├── source-sans-pro-regular.eot
│ │ │ ├── source-sans-pro-regular.ttf
│ │ │ ├── source-sans-pro-regular.woff
│ │ │ ├── source-sans-pro-semibold.eot
│ │ │ ├── source-sans-pro-semibold.ttf
│ │ │ ├── source-sans-pro-semibold.woff
│ │ │ ├── source-sans-pro-semibolditalic.eot
│ │ │ ├── source-sans-pro-semibolditalic.ttf
│ │ │ ├── source-sans-pro-semibolditalic.woff
│ │ │ └── source-sans-pro.css
│ └── js
│ │ ├── classList.js
│ │ ├── head.min.js
│ │ └── html5shiv.js
│ └── plugin
│ ├── highlight
│ └── highlight.js
│ ├── markdown
│ ├── example.html
│ ├── example.md
│ ├── markdown.js
│ └── marked.js
│ ├── math
│ └── math.js
│ ├── multiplex
│ ├── client.js
│ ├── index.js
│ ├── master.js
│ └── package.json
│ ├── notes-server
│ ├── client.js
│ ├── index.js
│ └── notes.html
│ ├── notes
│ ├── notes.html
│ └── notes.js
│ ├── print-pdf
│ └── print-pdf.js
│ ├── search
│ └── search.js
│ └── zoom-js
│ └── zoom.js
├── sesion-11
├── .DS_Store
└── firebase
│ ├── .gitignore
│ ├── README.md
│ ├── package.json
│ ├── public
│ ├── favicon.ico
│ └── index.html
│ ├── src
│ ├── 00-class
│ │ └── index.js
│ ├── 01-hola
│ │ └── index.js
│ ├── 02-set-hola
│ │ └── index.js
│ ├── 03-mini-chat
│ │ └── index.js
│ ├── 04-login
│ │ ├── components
│ │ │ ├── AnonymousMenu.js
│ │ │ ├── Button
│ │ │ │ ├── Button.css
│ │ │ │ ├── Button.js
│ │ │ │ └── Button.test.js
│ │ │ ├── LoggedInMenu.js
│ │ │ └── index.js
│ │ ├── index.js
│ │ └── pages
│ │ │ ├── Home.js
│ │ │ ├── Login.js
│ │ │ ├── NoMatch.js
│ │ │ ├── Signup.js
│ │ │ └── index.js
│ ├── index.css
│ └── index.js
│ └── yarn.lock
└── todo
├── .gitignore
├── README.md
├── package.json
├── public
├── favicon.ico
└── index.html
└── src
├── App.css
├── App.js
├── App.test.js
├── TodoList.js
├── index.css
├── index.js
└── logo.svg
/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/.DS_Store
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Curso de React JS
2 |
3 | Repositorio con todo el material usado en el curso de React JS de Escuela IT.
4 |
5 | ## Contenido de las clases impartidas
6 |
7 | ###Sesión 3
8 |
9 | * Ciclos de vida de un componente
10 | * Hijos dinámicos
11 | * Anidamiento de vistas
12 | * Encapsulando librerías
13 |
14 | ### Sesión 5
15 |
16 | * Ejemplo de aplicación
17 | * Consumiendo una API rest desde React
18 |
--------------------------------------------------------------------------------
/sesion-03/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-03/.DS_Store
--------------------------------------------------------------------------------
/sesion-03/ejemplos/.gitignore:
--------------------------------------------------------------------------------
1 | # See http://help.github.com/ignore-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | node_modules
5 |
6 | # testing
7 | coverage
8 |
9 | # production
10 | build
11 |
12 | # misc
13 | .DS_Store
14 | .env
15 | npm-debug.log
16 |
--------------------------------------------------------------------------------
/sesion-03/ejemplos/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "ejemplos",
3 | "version": "0.1.0",
4 | "private": true,
5 | "devDependencies": {
6 | "react-scripts": "0.6.1"
7 | },
8 | "dependencies": {
9 | "moment": "^2.15.1",
10 | "react": "^15.3.2",
11 | "react-dom": "^15.3.2"
12 | },
13 | "eslintConfig": {
14 | "extends": "react-app"
15 | },
16 | "scripts": {
17 | "start": "react-scripts start",
18 | "build": "react-scripts build",
19 | "test": "react-scripts test --env=jsdom",
20 | "eject": "react-scripts eject"
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/sesion-03/ejemplos/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-03/ejemplos/public/favicon.ico
--------------------------------------------------------------------------------
/sesion-03/ejemplos/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
16 | Demo: Sesión 03 ReactJS
17 |
18 |
19 |
20 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/sesion-03/ejemplos/src/App.css:
--------------------------------------------------------------------------------
1 | @import url(https://fonts.googleapis.com/css?family=Roboto:400,700,500);
2 |
3 | html {
4 | box-sizing: border-box;
5 | }
6 | *, *:before, *:after {
7 | box-sizing: inherit;
8 | }
9 |
10 | body {
11 | font-family: 'Roboto', sans-serif;
12 | font-size: 16px;
13 | font-weight: 400;
14 | line-height: 1;
15 | text-align: center;
16 | }
17 |
18 | h1 {
19 | color: #444;
20 | font-size: 32px;
21 | font-weight: 700;
22 | text-align: center;
23 | }
24 |
25 | p {
26 | color: rgba(51, 48, 48, 0.6);
27 | }
28 |
29 | header {
30 | margin: 50px 0;
31 | text-align: center;
32 | }
33 |
34 | button {
35 | position: relative;
36 | vertical-align: top;
37 | display:inline-block;
38 | height: 35px;
39 | padding: 0px 10px;
40 | font-size: 14px;
41 | color: white;
42 | text-align: center;
43 | text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
44 | background: #2980b9;
45 | border: 0;
46 | border-bottom: 2px solid #2475ab;
47 | cursor: pointer;
48 | -webkit-box-shadow: inset 0 -2px #2475ab;
49 | box-shadow: inset 0 -2px #2475ab;
50 | margin: 5px;
51 | outline: 0;
52 | }
53 |
54 | button:hover {
55 | opacity: .85;
56 | }
57 |
58 | button.active {
59 | background: #2475ab;
60 | }
61 |
62 | button:active {
63 | top: 1px;
64 | outline: none;
65 | -webkit-box-shadow: none;
66 | box-shadow: none;
67 | }
68 |
69 | img {
70 | display: block;
71 | margin: 20px auto;
72 | }
73 |
--------------------------------------------------------------------------------
/sesion-03/ejemplos/src/App.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from 'react';
2 |
3 | import LifeCycleDemo from './life-cycle';
4 | import DynamicChildrenDemo from './dynamic-children'
5 | import NestingViewsDemo from './nesting-views';
6 | import EncapsulatingLibrariesDemo from './encapsulating-libraries'
7 |
8 | import './App.css'
9 |
10 | export default class App extends Component {
11 | constructor (...args) {
12 | super(...args);
13 |
14 | this.changeDemo = this.changeDemo.bind(this);
15 |
16 | this.state = {
17 | demoToLoad : 'LifeCycleDemo'
18 | }
19 | }
20 |
21 | changeDemo (demoToLoad) {
22 | return () => { // arrow function to bind this context
23 | this.setState({ demoToLoad });
24 | }
25 | }
26 |
27 | render () {
28 | const {demoToLoad} = this.state;
29 |
30 | return (
31 |
32 |
33 |
34 | LifeCycleDemo
37 | DynamicChildrenDemo
40 | NestingViewsDemo
43 | EncapsulatingLibrariesDemo
46 |
47 |
48 | {(demoToLoad === 'LifeCycleDemo') && }
49 |
50 | {(demoToLoad === 'DynamicChildrenDemo') && }
51 |
52 | {(demoToLoad === 'NestingViewsDemo') && }
53 |
54 | {(demoToLoad === 'EncapsulatingLibrariesDemo') && }
55 |
56 |
57 | )
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/sesion-03/ejemplos/src/App.test.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import ReactDOM from 'react-dom';
3 | import App from './App';
4 |
5 | it('renders without crashing', () => {
6 | const div = document.createElement('div');
7 | ReactDOM.render( , div);
8 | });
9 |
--------------------------------------------------------------------------------
/sesion-03/ejemplos/src/dynamic-children/index.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from 'react';
2 |
3 | export default class DynamicChildrenDemo extends Component {
4 |
5 | constructor (...args) {
6 | super(...args)
7 | this.state = {
8 | show: this.props.initialShow,
9 | images: [ 'https://unsplash.it/150?image=0','https://unsplash.it/150?image=1', 'https://unsplash.it/150?image=2','https://unsplash.it/150?image=3', 'https://unsplash.it/150?image=4' ]
10 | }
11 |
12 | this.showImage = this.showImage.bind(this)
13 | }
14 |
15 | showImage () {
16 | this.setState({ show: true })
17 | }
18 |
19 | render () {
20 | return (
21 |
22 |
Dynamic Children Demo
23 | { !this.state.show &&
24 |
Show me a bunch of images!
25 | }
26 |
27 |
28 | {this.state.images.map((img, index) => {
29 | return
30 | })}
31 |
32 |
33 |
34 | );
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/sesion-03/ejemplos/src/encapsulating-libraries/Timeago.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import moment from 'moment'
3 |
4 | export default function Timeago (props) {
5 | const timeago = moment(props.date).fromNow();
6 | return (
7 | {timeago}
8 | )
9 | }
10 |
--------------------------------------------------------------------------------
/sesion-03/ejemplos/src/encapsulating-libraries/index.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from 'react';
2 | import Timeago from './Timeago.js';
3 |
4 | /*
5 | function RadioButton (props) {
6 | return (
7 |
8 |
13 | {props.date}
14 | )
15 | }
16 |
17 |
21 | */
22 |
23 | export default class EncapsulatingLibrariesDemo extends Component {
24 | constructor (...args) {
25 | super(...args)
26 | this.state = { date: false }
27 | this.handleChange = this.handleChange.bind(this)
28 | }
29 |
30 | handleChange (e) {
31 | this.setState({ date: e.target.value})
32 | }
33 |
34 | render () {
35 | return (
36 |
70 | );
71 | }
72 | }
73 |
--------------------------------------------------------------------------------
/sesion-03/ejemplos/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | padding: 0;
4 | font-family: sans-serif;
5 | }
6 |
--------------------------------------------------------------------------------
/sesion-03/ejemplos/src/index.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import ReactDOM from 'react-dom';
3 | import App from './App';
4 | import './index.css';
5 |
6 | ReactDOM.render(
7 | ,
8 | document.getElementById('root')
9 | );
10 |
--------------------------------------------------------------------------------
/sesion-03/ejemplos/src/life-cycle/index.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from 'react';
2 |
3 | export default class LifeCycleDemo extends Component {
4 |
5 | constructor (...args) {
6 | super(...args);
7 |
8 | this.changeState = this.changeState.bind(this);
9 |
10 | this.state = {
11 | mensaje: this.props.initialMessage
12 | };
13 |
14 | console.log(' constructor');
15 | }
16 |
17 | componentWillMount () {
18 | console.log(' componentWillMount');
19 | }
20 |
21 | componentDidMount () {
22 | console.log(' componentDidMount');
23 | /*this.interval = setInterval(() => {
24 | this.setState({ mensaje: Date.now() })
25 | // console.log('Hola EscuelaIT!')
26 | }, 100)*/
27 | }
28 |
29 | shouldComponentUpdate (nextProps, nextState) {
30 | console.log(' shouldComponentUpdate');
31 | console.log('actualProps', this.props.sizeMessage)
32 | console.log('nextProps', nextProps.sizeMessage)
33 | return true;
34 | // return this.props.sizeMessage !== nextProps.sizeMessage
35 | }
36 |
37 | componentWillReceiveProps (nextProps) {
38 | console.log(' componentWillReceiveProps', nextProps);
39 | }
40 |
41 | componentWillUpdate () {
42 | console.log(' componentWillUpdate');
43 | }
44 |
45 | componentDidUpdate () {
46 | console.log(' componentDidUpdate');
47 | }
48 |
49 | componentWillUnmount () {
50 | console.log(' componentWillUnmount');
51 | // clearInterval(this.interval)
52 | }
53 |
54 | changeState () {
55 | this.setState({ mensaje: 'Mensaje actualizado!' })
56 | }
57 |
58 | render () {
59 | console.log(' render')
60 | return (
61 |
62 |
Life Cycle Demo
63 |
State: {JSON.stringify(this.state)}
64 |
Props: {JSON.stringify(this.props)}
65 |
Change component state
66 |
67 | );
68 | }
69 | }
70 |
--------------------------------------------------------------------------------
/sesion-03/ejemplos/src/nesting-views/index.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from 'react';
2 |
3 |
4 | function Item (props) {
5 | console.log('Item prop show', props.show)
6 | return {props.text}
7 | }
8 |
9 | function List (props) {
10 | console.log('List prop show', props.show)
11 | return (
12 |
13 |
14 | {props.children &&
Number of items: {props.children.length} }
15 |
16 | )
17 | }
18 |
19 | function Article (props) {
20 | return (
21 |
22 |
23 | {props.title}
24 | {props.timeago && {props.timeago} }
25 |
26 | {props.children}
27 |
28 | )
29 | }
30 |
31 | export default class NestingViewsDemo extends Component {
32 | render () {
33 | return (
34 |
35 |
Nesting Views Demo
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 | En un lugar de la mancha, de cuyo nombre no quiero acordarme...
46 | Vivía un joven emponzoñado de whisky que exhíbia una figurota peculiar
47 |
48 |
49 |
50 | );
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/sesion-03/presentacion/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-03/presentacion/.DS_Store
--------------------------------------------------------------------------------
/sesion-03/presentacion/css/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-03/presentacion/css/.DS_Store
--------------------------------------------------------------------------------
/sesion-03/presentacion/css/custom.css:
--------------------------------------------------------------------------------
1 | .reveal .backgrounds {
2 | background: url('../img/react-logo.png') no-repeat center center;
3 | background-size: cover;
4 | opacity: 0.05;
5 | }
6 |
7 | .reveal .footer {
8 | position: absolute;
9 | bottom: 42px;
10 | left: 10px;
11 | font-size: 16px;
12 | }
13 |
14 | .reveal .highlight {
15 | color: #09f;
16 | }
17 |
18 | .reveal .footer strong,
19 | .reveal .footer span,
20 | .reveal .footer img {
21 | display: inline-block;
22 | margin: 0 5px;
23 | vertical-align: middle;
24 | }
25 |
--------------------------------------------------------------------------------
/sesion-03/presentacion/css/print/paper.css:
--------------------------------------------------------------------------------
1 | /* Default Print Stylesheet Template
2 | by Rob Glazebrook of CSSnewbie.com
3 | Last Updated: June 4, 2008
4 |
5 | Feel free (nay, compelled) to edit, append, and
6 | manipulate this file as you see fit. */
7 |
8 |
9 | @media print {
10 |
11 | /* SECTION 1: Set default width, margin, float, and
12 | background. This prevents elements from extending
13 | beyond the edge of the printed page, and prevents
14 | unnecessary background images from printing */
15 | html {
16 | background: #fff;
17 | width: auto;
18 | height: auto;
19 | overflow: visible;
20 | }
21 | body {
22 | background: #fff;
23 | font-size: 20pt;
24 | width: auto;
25 | height: auto;
26 | border: 0;
27 | margin: 0 5%;
28 | padding: 0;
29 | overflow: visible;
30 | float: none !important;
31 | }
32 |
33 | /* SECTION 2: Remove any elements not needed in print.
34 | This would include navigation, ads, sidebars, etc. */
35 | .nestedarrow,
36 | .controls,
37 | .fork-reveal,
38 | .share-reveal,
39 | .state-background,
40 | .reveal .progress,
41 | .reveal .backgrounds {
42 | display: none !important;
43 | }
44 |
45 | /* SECTION 3: Set body font face, size, and color.
46 | Consider using a serif font for readability. */
47 | body, p, td, li, div {
48 | font-size: 20pt!important;
49 | font-family: Georgia, "Times New Roman", Times, serif !important;
50 | color: #000;
51 | }
52 |
53 | /* SECTION 4: Set heading font face, sizes, and color.
54 | Differentiate your headings from your body text.
55 | Perhaps use a large sans-serif for distinction. */
56 | h1,h2,h3,h4,h5,h6 {
57 | color: #000!important;
58 | height: auto;
59 | line-height: normal;
60 | font-family: Georgia, "Times New Roman", Times, serif !important;
61 | text-shadow: 0 0 0 #000 !important;
62 | text-align: left;
63 | letter-spacing: normal;
64 | }
65 | /* Need to reduce the size of the fonts for printing */
66 | h1 { font-size: 28pt !important; }
67 | h2 { font-size: 24pt !important; }
68 | h3 { font-size: 22pt !important; }
69 | h4 { font-size: 22pt !important; font-variant: small-caps; }
70 | h5 { font-size: 21pt !important; }
71 | h6 { font-size: 20pt !important; font-style: italic; }
72 |
73 | /* SECTION 5: Make hyperlinks more usable.
74 | Ensure links are underlined, and consider appending
75 | the URL to the end of the link for usability. */
76 | a:link,
77 | a:visited {
78 | color: #000 !important;
79 | font-weight: bold;
80 | text-decoration: underline;
81 | }
82 | /*
83 | .reveal a:link:after,
84 | .reveal a:visited:after {
85 | content: " (" attr(href) ") ";
86 | color: #222 !important;
87 | font-size: 90%;
88 | }
89 | */
90 |
91 |
92 | /* SECTION 6: more reveal.js specific additions by @skypanther */
93 | ul, ol, div, p {
94 | visibility: visible;
95 | position: static;
96 | width: auto;
97 | height: auto;
98 | display: block;
99 | overflow: visible;
100 | margin: 0;
101 | text-align: left !important;
102 | }
103 | .reveal pre,
104 | .reveal table {
105 | margin-left: 0;
106 | margin-right: 0;
107 | }
108 | .reveal pre code {
109 | padding: 20px;
110 | border: 1px solid #ddd;
111 | }
112 | .reveal blockquote {
113 | margin: 20px 0;
114 | }
115 | .reveal .slides {
116 | position: static !important;
117 | width: auto !important;
118 | height: auto !important;
119 |
120 | left: 0 !important;
121 | top: 0 !important;
122 | margin-left: 0 !important;
123 | margin-top: 0 !important;
124 | padding: 0 !important;
125 | zoom: 1 !important;
126 |
127 | overflow: visible !important;
128 | display: block !important;
129 |
130 | text-align: left !important;
131 | -webkit-perspective: none;
132 | -moz-perspective: none;
133 | -ms-perspective: none;
134 | perspective: none;
135 |
136 | -webkit-perspective-origin: 50% 50%;
137 | -moz-perspective-origin: 50% 50%;
138 | -ms-perspective-origin: 50% 50%;
139 | perspective-origin: 50% 50%;
140 | }
141 | .reveal .slides section {
142 | visibility: visible !important;
143 | position: static !important;
144 | width: auto !important;
145 | height: auto !important;
146 | display: block !important;
147 | overflow: visible !important;
148 |
149 | left: 0 !important;
150 | top: 0 !important;
151 | margin-left: 0 !important;
152 | margin-top: 0 !important;
153 | padding: 60px 20px !important;
154 | z-index: auto !important;
155 |
156 | opacity: 1 !important;
157 |
158 | page-break-after: always !important;
159 |
160 | -webkit-transform-style: flat !important;
161 | -moz-transform-style: flat !important;
162 | -ms-transform-style: flat !important;
163 | transform-style: flat !important;
164 |
165 | -webkit-transform: none !important;
166 | -moz-transform: none !important;
167 | -ms-transform: none !important;
168 | transform: none !important;
169 |
170 | -webkit-transition: none !important;
171 | -moz-transition: none !important;
172 | -ms-transition: none !important;
173 | transition: none !important;
174 | }
175 | .reveal .slides section.stack {
176 | padding: 0 !important;
177 | }
178 | .reveal section:last-of-type {
179 | page-break-after: avoid !important;
180 | }
181 | .reveal section .fragment {
182 | opacity: 1 !important;
183 | visibility: visible !important;
184 |
185 | -webkit-transform: none !important;
186 | -moz-transform: none !important;
187 | -ms-transform: none !important;
188 | transform: none !important;
189 | }
190 | .reveal section img {
191 | display: block;
192 | margin: 15px 0px;
193 | background: rgba(255,255,255,1);
194 | border: 1px solid #666;
195 | box-shadow: none;
196 | }
197 |
198 | .reveal section small {
199 | font-size: 0.8em;
200 | }
201 |
202 | }
--------------------------------------------------------------------------------
/sesion-03/presentacion/css/print/pdf.css:
--------------------------------------------------------------------------------
1 | /**
2 | * This stylesheet is used to print reveal.js
3 | * presentations to PDF.
4 | *
5 | * https://github.com/hakimel/reveal.js#pdf-export
6 | */
7 |
8 | * {
9 | -webkit-print-color-adjust: exact;
10 | }
11 |
12 | body {
13 | margin: 0 auto !important;
14 | border: 0;
15 | padding: 0;
16 | float: none !important;
17 | overflow: visible;
18 | }
19 |
20 | html {
21 | width: 100%;
22 | height: 100%;
23 | overflow: visible;
24 | }
25 |
26 | /* Remove any elements not needed in print. */
27 | .nestedarrow,
28 | .reveal .controls,
29 | .reveal .progress,
30 | .reveal .playback,
31 | .reveal.overview,
32 | .fork-reveal,
33 | .share-reveal,
34 | .state-background {
35 | display: none !important;
36 | }
37 |
38 | h1, h2, h3, h4, h5, h6 {
39 | text-shadow: 0 0 0 #000 !important;
40 | }
41 |
42 | .reveal pre code {
43 | overflow: hidden !important;
44 | font-family: Courier, 'Courier New', monospace !important;
45 | }
46 |
47 | ul, ol, div, p {
48 | visibility: visible;
49 | position: static;
50 | width: auto;
51 | height: auto;
52 | display: block;
53 | overflow: visible;
54 | margin: auto;
55 | }
56 | .reveal {
57 | width: auto !important;
58 | height: auto !important;
59 | overflow: hidden !important;
60 | }
61 | .reveal .slides {
62 | position: static;
63 | width: 100%;
64 | height: auto;
65 |
66 | left: auto;
67 | top: auto;
68 | margin: 0 !important;
69 | padding: 0 !important;
70 |
71 | overflow: visible;
72 | display: block;
73 |
74 | -webkit-perspective: none;
75 | -moz-perspective: none;
76 | -ms-perspective: none;
77 | perspective: none;
78 |
79 | -webkit-perspective-origin: 50% 50%; /* there isn't a none/auto value but 50-50 is the default */
80 | -moz-perspective-origin: 50% 50%;
81 | -ms-perspective-origin: 50% 50%;
82 | perspective-origin: 50% 50%;
83 | }
84 |
85 | .reveal .slides section {
86 | page-break-after: always !important;
87 |
88 | visibility: visible !important;
89 | position: relative !important;
90 | display: block !important;
91 | position: relative !important;
92 |
93 | margin: 0 !important;
94 | padding: 0 !important;
95 | box-sizing: border-box !important;
96 | min-height: 1px;
97 |
98 | opacity: 1 !important;
99 |
100 | -webkit-transform-style: flat !important;
101 | -moz-transform-style: flat !important;
102 | -ms-transform-style: flat !important;
103 | transform-style: flat !important;
104 |
105 | -webkit-transform: none !important;
106 | -moz-transform: none !important;
107 | -ms-transform: none !important;
108 | transform: none !important;
109 | }
110 |
111 | .reveal section.stack {
112 | margin: 0 !important;
113 | padding: 0 !important;
114 | page-break-after: avoid !important;
115 | height: auto !important;
116 | min-height: auto !important;
117 | }
118 |
119 | .reveal img {
120 | box-shadow: none;
121 | }
122 |
123 | .reveal .roll {
124 | overflow: visible;
125 | line-height: 1em;
126 | }
127 |
128 | /* Slide backgrounds are placed inside of their slide when exporting to PDF */
129 | .reveal section .slide-background {
130 | display: block !important;
131 | position: absolute;
132 | top: 0;
133 | left: 0;
134 | width: 100%;
135 | z-index: -1;
136 | }
137 |
138 | /* All elements should be above the slide-background */
139 | .reveal section>* {
140 | position: relative;
141 | z-index: 1;
142 | }
143 |
144 | /* Display slide speaker notes when 'showNotes' is enabled */
145 | .reveal .speaker-notes-pdf {
146 | display: block;
147 | width: 100%;
148 | max-height: none;
149 | left: auto;
150 | top: auto;
151 | z-index: 100;
152 | }
153 |
154 | /* Display slide numbers when 'slideNumber' is enabled */
155 | .reveal .slide-number-pdf {
156 | display: block;
157 | position: absolute;
158 | font-size: 14px;
159 | }
160 |
161 |
--------------------------------------------------------------------------------
/sesion-03/presentacion/css/theme/README.md:
--------------------------------------------------------------------------------
1 | ## Dependencies
2 |
3 | Themes are written using Sass to keep things modular and reduce the need for repeated selectors across files. Make sure that you have the reveal.js development environment including the Grunt dependencies installed before proceding: https://github.com/hakimel/reveal.js#full-setup
4 |
5 | ## Creating a Theme
6 |
7 | To create your own theme, start by duplicating a ```.scss``` file in [/css/theme/source](https://github.com/hakimel/reveal.js/blob/master/css/theme/source). It will be automatically compiled by Grunt from Sass to CSS (see the [Gruntfile](https://github.com/hakimel/reveal.js/blob/master/Gruntfile.js)) when you run `grunt css-themes`.
8 |
9 | Each theme file does four things in the following order:
10 |
11 | 1. **Include [/css/theme/template/mixins.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/mixins.scss)**
12 | Shared utility functions.
13 |
14 | 2. **Include [/css/theme/template/settings.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/settings.scss)**
15 | Declares a set of custom variables that the template file (step 4) expects. Can be overridden in step 3.
16 |
17 | 3. **Override**
18 | This is where you override the default theme. Either by specifying variables (see [settings.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/settings.scss) for reference) or by adding any selectors and styles you please.
19 |
20 | 4. **Include [/css/theme/template/theme.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/theme.scss)**
21 | The template theme file which will generate final CSS output based on the currently defined variables.
22 |
--------------------------------------------------------------------------------
/sesion-03/presentacion/css/theme/source/beige.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * Beige theme for reveal.js.
3 | *
4 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
5 | */
6 |
7 |
8 | // Default mixins and settings -----------------
9 | @import "../template/mixins";
10 | @import "../template/settings";
11 | // ---------------------------------------------
12 |
13 |
14 |
15 | // Include theme-specific fonts
16 | @import url(../../lib/font/league-gothic/league-gothic.css);
17 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
18 |
19 |
20 | // Override theme settings (see ../template/settings.scss)
21 | $mainColor: #333;
22 | $headingColor: #333;
23 | $headingTextShadow: none;
24 | $backgroundColor: #f7f3de;
25 | $linkColor: #8b743d;
26 | $linkColorHover: lighten( $linkColor, 20% );
27 | $selectionBackgroundColor: rgba(79, 64, 28, 0.99);
28 | $heading1TextShadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 20px 20px rgba(0,0,0,.15);
29 |
30 | // Background generator
31 | @mixin bodyBackground() {
32 | @include radial-gradient( rgba(247,242,211,1), rgba(255,255,255,1) );
33 | }
34 |
35 |
36 |
37 | // Theme template ------------------------------
38 | @import "../template/theme";
39 | // ---------------------------------------------
--------------------------------------------------------------------------------
/sesion-03/presentacion/css/theme/source/black.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * Black theme for reveal.js. This is the opposite of the 'white' theme.
3 | *
4 | * By Hakim El Hattab, http://hakim.se
5 | */
6 |
7 |
8 | // Default mixins and settings -----------------
9 | @import "../template/mixins";
10 | @import "../template/settings";
11 | // ---------------------------------------------
12 |
13 |
14 | // Include theme-specific fonts
15 | @import url(../../lib/font/source-sans-pro/source-sans-pro.css);
16 |
17 |
18 | // Override theme settings (see ../template/settings.scss)
19 | $backgroundColor: #222;
20 |
21 | $mainColor: #fff;
22 | $headingColor: #fff;
23 |
24 | $mainFontSize: 38px;
25 | $mainFont: 'Source Sans Pro', Helvetica, sans-serif;
26 | $headingFont: 'Source Sans Pro', Helvetica, sans-serif;
27 | $headingTextShadow: none;
28 | $headingLetterSpacing: normal;
29 | $headingTextTransform: uppercase;
30 | $headingFontWeight: 600;
31 | $linkColor: #42affa;
32 | $linkColorHover: lighten( $linkColor, 15% );
33 | $selectionBackgroundColor: lighten( $linkColor, 25% );
34 |
35 | $heading1Size: 2.5em;
36 | $heading2Size: 1.6em;
37 | $heading3Size: 1.3em;
38 | $heading4Size: 1.0em;
39 |
40 | section.has-light-background {
41 | &, h1, h2, h3, h4, h5, h6 {
42 | color: #222;
43 | }
44 | }
45 |
46 |
47 | // Theme template ------------------------------
48 | @import "../template/theme";
49 | // ---------------------------------------------
--------------------------------------------------------------------------------
/sesion-03/presentacion/css/theme/source/blood.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * Blood theme for reveal.js
3 | * Author: Walther http://github.com/Walther
4 | *
5 | * Designed to be used with highlight.js theme
6 | * "monokai_sublime.css" available from
7 | * https://github.com/isagalaev/highlight.js/
8 | *
9 | * For other themes, change $codeBackground accordingly.
10 | *
11 | */
12 |
13 | // Default mixins and settings -----------------
14 | @import "../template/mixins";
15 | @import "../template/settings";
16 | // ---------------------------------------------
17 |
18 | // Include theme-specific fonts
19 |
20 | @import url(https://fonts.googleapis.com/css?family=Ubuntu:300,700,300italic,700italic);
21 |
22 | // Colors used in the theme
23 | $blood: #a23;
24 | $coal: #222;
25 | $codeBackground: #23241f;
26 |
27 | $backgroundColor: $coal;
28 |
29 | // Main text
30 | $mainFont: Ubuntu, 'sans-serif';
31 | $mainFontSize: 36px;
32 | $mainColor: #eee;
33 |
34 | // Headings
35 | $headingFont: Ubuntu, 'sans-serif';
36 | $headingTextShadow: 2px 2px 2px $coal;
37 |
38 | // h1 shadow, borrowed humbly from
39 | // (c) Default theme by Hakim El Hattab
40 | $heading1TextShadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 20px 20px rgba(0,0,0,.15);
41 |
42 | // Links
43 | $linkColor: $blood;
44 | $linkColorHover: lighten( $linkColor, 20% );
45 |
46 | // Text selection
47 | $selectionBackgroundColor: $blood;
48 | $selectionColor: #fff;
49 |
50 |
51 | // Theme template ------------------------------
52 | @import "../template/theme";
53 | // ---------------------------------------------
54 |
55 | // some overrides after theme template import
56 |
57 | .reveal p {
58 | font-weight: 300;
59 | text-shadow: 1px 1px $coal;
60 | }
61 |
62 | .reveal h1,
63 | .reveal h2,
64 | .reveal h3,
65 | .reveal h4,
66 | .reveal h5,
67 | .reveal h6 {
68 | font-weight: 700;
69 | }
70 |
71 | .reveal p code {
72 | background-color: $codeBackground;
73 | display: inline-block;
74 | border-radius: 7px;
75 | }
76 |
77 | .reveal small code {
78 | vertical-align: baseline;
79 | }
--------------------------------------------------------------------------------
/sesion-03/presentacion/css/theme/source/league.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * League theme for reveal.js.
3 | *
4 | * This was the default theme pre-3.0.0.
5 | *
6 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
7 | */
8 |
9 |
10 | // Default mixins and settings -----------------
11 | @import "../template/mixins";
12 | @import "../template/settings";
13 | // ---------------------------------------------
14 |
15 |
16 |
17 | // Include theme-specific fonts
18 | @import url(../../lib/font/league-gothic/league-gothic.css);
19 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
20 |
21 | // Override theme settings (see ../template/settings.scss)
22 | $headingTextShadow: 0px 0px 6px rgba(0,0,0,0.2);
23 | $heading1TextShadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 20px 20px rgba(0,0,0,.15);
24 |
25 | // Background generator
26 | @mixin bodyBackground() {
27 | @include radial-gradient( rgba(28,30,32,1), rgba(85,90,95,1) );
28 | }
29 |
30 |
31 |
32 | // Theme template ------------------------------
33 | @import "../template/theme";
34 | // ---------------------------------------------
--------------------------------------------------------------------------------
/sesion-03/presentacion/css/theme/source/moon.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * Solarized Dark theme for reveal.js.
3 | * Author: Achim Staebler
4 | */
5 |
6 |
7 | // Default mixins and settings -----------------
8 | @import "../template/mixins";
9 | @import "../template/settings";
10 | // ---------------------------------------------
11 |
12 |
13 |
14 | // Include theme-specific fonts
15 | @import url(../../lib/font/league-gothic/league-gothic.css);
16 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
17 |
18 | /**
19 | * Solarized colors by Ethan Schoonover
20 | */
21 | html * {
22 | color-profile: sRGB;
23 | rendering-intent: auto;
24 | }
25 |
26 | // Solarized colors
27 | $base03: #002b36;
28 | $base02: #073642;
29 | $base01: #586e75;
30 | $base00: #657b83;
31 | $base0: #839496;
32 | $base1: #93a1a1;
33 | $base2: #eee8d5;
34 | $base3: #fdf6e3;
35 | $yellow: #b58900;
36 | $orange: #cb4b16;
37 | $red: #dc322f;
38 | $magenta: #d33682;
39 | $violet: #6c71c4;
40 | $blue: #268bd2;
41 | $cyan: #2aa198;
42 | $green: #859900;
43 |
44 | // Override theme settings (see ../template/settings.scss)
45 | $mainColor: $base1;
46 | $headingColor: $base2;
47 | $headingTextShadow: none;
48 | $backgroundColor: $base03;
49 | $linkColor: $blue;
50 | $linkColorHover: lighten( $linkColor, 20% );
51 | $selectionBackgroundColor: $magenta;
52 |
53 |
54 |
55 | // Theme template ------------------------------
56 | @import "../template/theme";
57 | // ---------------------------------------------
58 |
--------------------------------------------------------------------------------
/sesion-03/presentacion/css/theme/source/night.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * Black theme for reveal.js.
3 | *
4 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
5 | */
6 |
7 |
8 | // Default mixins and settings -----------------
9 | @import "../template/mixins";
10 | @import "../template/settings";
11 | // ---------------------------------------------
12 |
13 |
14 | // Include theme-specific fonts
15 | @import url(https://fonts.googleapis.com/css?family=Montserrat:700);
16 | @import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic,700italic);
17 |
18 |
19 | // Override theme settings (see ../template/settings.scss)
20 | $backgroundColor: #111;
21 |
22 | $mainFont: 'Open Sans', sans-serif;
23 | $linkColor: #e7ad52;
24 | $linkColorHover: lighten( $linkColor, 20% );
25 | $headingFont: 'Montserrat', Impact, sans-serif;
26 | $headingTextShadow: none;
27 | $headingLetterSpacing: -0.03em;
28 | $headingTextTransform: none;
29 | $selectionBackgroundColor: #e7ad52;
30 | $mainFontSize: 30px;
31 |
32 |
33 | // Theme template ------------------------------
34 | @import "../template/theme";
35 | // ---------------------------------------------
--------------------------------------------------------------------------------
/sesion-03/presentacion/css/theme/source/serif.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * A simple theme for reveal.js presentations, similar
3 | * to the default theme. The accent color is brown.
4 | *
5 | * This theme is Copyright (C) 2012-2013 Owen Versteeg, http://owenversteeg.com - it is MIT licensed.
6 | */
7 |
8 |
9 | // Default mixins and settings -----------------
10 | @import "../template/mixins";
11 | @import "../template/settings";
12 | // ---------------------------------------------
13 |
14 |
15 |
16 | // Override theme settings (see ../template/settings.scss)
17 | $mainFont: 'Palatino Linotype', 'Book Antiqua', Palatino, FreeSerif, serif;
18 | $mainColor: #000;
19 | $headingFont: 'Palatino Linotype', 'Book Antiqua', Palatino, FreeSerif, serif;
20 | $headingColor: #383D3D;
21 | $headingTextShadow: none;
22 | $headingTextTransform: none;
23 | $backgroundColor: #F0F1EB;
24 | $linkColor: #51483D;
25 | $linkColorHover: lighten( $linkColor, 20% );
26 | $selectionBackgroundColor: #26351C;
27 |
28 | .reveal a {
29 | line-height: 1.3em;
30 | }
31 |
32 |
33 | // Theme template ------------------------------
34 | @import "../template/theme";
35 | // ---------------------------------------------
36 |
--------------------------------------------------------------------------------
/sesion-03/presentacion/css/theme/source/simple.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * A simple theme for reveal.js presentations, similar
3 | * to the default theme. The accent color is darkblue.
4 | *
5 | * This theme is Copyright (C) 2012 Owen Versteeg, https://github.com/StereotypicalApps. It is MIT licensed.
6 | * reveal.js is Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
7 | */
8 |
9 |
10 | // Default mixins and settings -----------------
11 | @import "../template/mixins";
12 | @import "../template/settings";
13 | // ---------------------------------------------
14 |
15 |
16 |
17 | // Include theme-specific fonts
18 | @import url(https://fonts.googleapis.com/css?family=News+Cycle:400,700);
19 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
20 |
21 |
22 | // Override theme settings (see ../template/settings.scss)
23 | $mainFont: 'Lato', sans-serif;
24 | $mainColor: #000;
25 | $headingFont: 'News Cycle', Impact, sans-serif;
26 | $headingColor: #000;
27 | $headingTextShadow: none;
28 | $headingTextTransform: none;
29 | $backgroundColor: #fff;
30 | $linkColor: #00008B;
31 | $linkColorHover: lighten( $linkColor, 20% );
32 | $selectionBackgroundColor: rgba(0, 0, 0, 0.99);
33 |
34 |
35 |
36 | // Theme template ------------------------------
37 | @import "../template/theme";
38 | // ---------------------------------------------
--------------------------------------------------------------------------------
/sesion-03/presentacion/css/theme/source/sky.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * Sky theme for reveal.js.
3 | *
4 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
5 | */
6 |
7 |
8 | // Default mixins and settings -----------------
9 | @import "../template/mixins";
10 | @import "../template/settings";
11 | // ---------------------------------------------
12 |
13 |
14 |
15 | // Include theme-specific fonts
16 | @import url(https://fonts.googleapis.com/css?family=Quicksand:400,700,400italic,700italic);
17 | @import url(https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700);
18 |
19 |
20 | // Override theme settings (see ../template/settings.scss)
21 | $mainFont: 'Open Sans', sans-serif;
22 | $mainColor: #333;
23 | $headingFont: 'Quicksand', sans-serif;
24 | $headingColor: #333;
25 | $headingLetterSpacing: -0.08em;
26 | $headingTextShadow: none;
27 | $backgroundColor: #f7fbfc;
28 | $linkColor: #3b759e;
29 | $linkColorHover: lighten( $linkColor, 20% );
30 | $selectionBackgroundColor: #134674;
31 |
32 | // Fix links so they are not cut off
33 | .reveal a {
34 | line-height: 1.3em;
35 | }
36 |
37 | // Background generator
38 | @mixin bodyBackground() {
39 | @include radial-gradient( #add9e4, #f7fbfc );
40 | }
41 |
42 |
43 |
44 | // Theme template ------------------------------
45 | @import "../template/theme";
46 | // ---------------------------------------------
47 |
--------------------------------------------------------------------------------
/sesion-03/presentacion/css/theme/source/solarized.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * Solarized Light theme for reveal.js.
3 | * Author: Achim Staebler
4 | */
5 |
6 |
7 | // Default mixins and settings -----------------
8 | @import "../template/mixins";
9 | @import "../template/settings";
10 | // ---------------------------------------------
11 |
12 |
13 |
14 | // Include theme-specific fonts
15 | @import url(../../lib/font/league-gothic/league-gothic.css);
16 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
17 |
18 |
19 | /**
20 | * Solarized colors by Ethan Schoonover
21 | */
22 | html * {
23 | color-profile: sRGB;
24 | rendering-intent: auto;
25 | }
26 |
27 | // Solarized colors
28 | $base03: #002b36;
29 | $base02: #073642;
30 | $base01: #586e75;
31 | $base00: #657b83;
32 | $base0: #839496;
33 | $base1: #93a1a1;
34 | $base2: #eee8d5;
35 | $base3: #fdf6e3;
36 | $yellow: #b58900;
37 | $orange: #cb4b16;
38 | $red: #dc322f;
39 | $magenta: #d33682;
40 | $violet: #6c71c4;
41 | $blue: #268bd2;
42 | $cyan: #2aa198;
43 | $green: #859900;
44 |
45 | // Override theme settings (see ../template/settings.scss)
46 | $mainColor: $base00;
47 | $headingColor: $base01;
48 | $headingTextShadow: none;
49 | $backgroundColor: $base3;
50 | $linkColor: $blue;
51 | $linkColorHover: lighten( $linkColor, 20% );
52 | $selectionBackgroundColor: $magenta;
53 |
54 | // Background generator
55 | // @mixin bodyBackground() {
56 | // @include radial-gradient( rgba($base3,1), rgba(lighten($base3, 20%),1) );
57 | // }
58 |
59 |
60 |
61 | // Theme template ------------------------------
62 | @import "../template/theme";
63 | // ---------------------------------------------
64 |
--------------------------------------------------------------------------------
/sesion-03/presentacion/css/theme/source/white.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * White theme for reveal.js. This is the opposite of the 'black' theme.
3 | *
4 | * By Hakim El Hattab, http://hakim.se
5 | */
6 |
7 |
8 | // Default mixins and settings -----------------
9 | @import "../template/mixins";
10 | @import "../template/settings";
11 | // ---------------------------------------------
12 |
13 |
14 | // Include theme-specific fonts
15 | @import url(../../lib/font/source-sans-pro/source-sans-pro.css);
16 |
17 |
18 | // Override theme settings (see ../template/settings.scss)
19 | $backgroundColor: #fff;
20 |
21 | $mainColor: #222;
22 | $headingColor: #222;
23 |
24 | $mainFontSize: 38px;
25 | $mainFont: 'Source Sans Pro', Helvetica, sans-serif;
26 | $headingFont: 'Source Sans Pro', Helvetica, sans-serif;
27 | $headingTextShadow: none;
28 | $headingLetterSpacing: normal;
29 | $headingTextTransform: uppercase;
30 | $headingFontWeight: 600;
31 | $linkColor: #2a76dd;
32 | $linkColorHover: lighten( $linkColor, 15% );
33 | $selectionBackgroundColor: lighten( $linkColor, 25% );
34 |
35 | $heading1Size: 2.5em;
36 | $heading2Size: 1.6em;
37 | $heading3Size: 1.3em;
38 | $heading4Size: 1.0em;
39 |
40 | section.has-dark-background {
41 | &, h1, h2, h3, h4, h5, h6 {
42 | color: #fff;
43 | }
44 | }
45 |
46 |
47 | // Theme template ------------------------------
48 | @import "../template/theme";
49 | // ---------------------------------------------
--------------------------------------------------------------------------------
/sesion-03/presentacion/css/theme/template/mixins.scss:
--------------------------------------------------------------------------------
1 | @mixin vertical-gradient( $top, $bottom ) {
2 | background: $top;
3 | background: -moz-linear-gradient( top, $top 0%, $bottom 100% );
4 | background: -webkit-gradient( linear, left top, left bottom, color-stop(0%,$top), color-stop(100%,$bottom) );
5 | background: -webkit-linear-gradient( top, $top 0%, $bottom 100% );
6 | background: -o-linear-gradient( top, $top 0%, $bottom 100% );
7 | background: -ms-linear-gradient( top, $top 0%, $bottom 100% );
8 | background: linear-gradient( top, $top 0%, $bottom 100% );
9 | }
10 |
11 | @mixin horizontal-gradient( $top, $bottom ) {
12 | background: $top;
13 | background: -moz-linear-gradient( left, $top 0%, $bottom 100% );
14 | background: -webkit-gradient( linear, left top, right top, color-stop(0%,$top), color-stop(100%,$bottom) );
15 | background: -webkit-linear-gradient( left, $top 0%, $bottom 100% );
16 | background: -o-linear-gradient( left, $top 0%, $bottom 100% );
17 | background: -ms-linear-gradient( left, $top 0%, $bottom 100% );
18 | background: linear-gradient( left, $top 0%, $bottom 100% );
19 | }
20 |
21 | @mixin radial-gradient( $outer, $inner, $type: circle ) {
22 | background: $outer;
23 | background: -moz-radial-gradient( center, $type cover, $inner 0%, $outer 100% );
24 | background: -webkit-gradient( radial, center center, 0px, center center, 100%, color-stop(0%,$inner), color-stop(100%,$outer) );
25 | background: -webkit-radial-gradient( center, $type cover, $inner 0%, $outer 100% );
26 | background: -o-radial-gradient( center, $type cover, $inner 0%, $outer 100% );
27 | background: -ms-radial-gradient( center, $type cover, $inner 0%, $outer 100% );
28 | background: radial-gradient( center, $type cover, $inner 0%, $outer 100% );
29 | }
--------------------------------------------------------------------------------
/sesion-03/presentacion/css/theme/template/settings.scss:
--------------------------------------------------------------------------------
1 | // Base settings for all themes that can optionally be
2 | // overridden by the super-theme
3 |
4 | // Background of the presentation
5 | $backgroundColor: #2b2b2b;
6 |
7 | // Primary/body text
8 | $mainFont: 'Lato', sans-serif;
9 | $mainFontSize: 36px;
10 | $mainColor: #eee;
11 |
12 | // Vertical spacing between blocks of text
13 | $blockMargin: 20px;
14 |
15 | // Headings
16 | $headingMargin: 0 0 $blockMargin 0;
17 | $headingFont: 'League Gothic', Impact, sans-serif;
18 | $headingColor: #eee;
19 | $headingLineHeight: 1.2;
20 | $headingLetterSpacing: normal;
21 | $headingTextTransform: uppercase;
22 | $headingTextShadow: none;
23 | $headingFontWeight: normal;
24 | $heading1TextShadow: $headingTextShadow;
25 |
26 | $heading1Size: 3.77em;
27 | $heading2Size: 2.11em;
28 | $heading3Size: 1.55em;
29 | $heading4Size: 1.00em;
30 |
31 | // Links and actions
32 | $linkColor: #13DAEC;
33 | $linkColorHover: lighten( $linkColor, 20% );
34 |
35 | // Text selection
36 | $selectionBackgroundColor: #FF5E99;
37 | $selectionColor: #fff;
38 |
39 | // Generates the presentation background, can be overridden
40 | // to return a background image or gradient
41 | @mixin bodyBackground() {
42 | background: $backgroundColor;
43 | }
--------------------------------------------------------------------------------
/sesion-03/presentacion/img/1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-03/presentacion/img/1.jpg
--------------------------------------------------------------------------------
/sesion-03/presentacion/img/cat-box.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-03/presentacion/img/cat-box.gif
--------------------------------------------------------------------------------
/sesion-03/presentacion/img/cat-keyboard-2.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-03/presentacion/img/cat-keyboard-2.gif
--------------------------------------------------------------------------------
/sesion-03/presentacion/img/cat-keyboard-3.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-03/presentacion/img/cat-keyboard-3.gif
--------------------------------------------------------------------------------
/sesion-03/presentacion/img/cat-keyboard-4.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-03/presentacion/img/cat-keyboard-4.gif
--------------------------------------------------------------------------------
/sesion-03/presentacion/img/cat-keyboard.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-03/presentacion/img/cat-keyboard.gif
--------------------------------------------------------------------------------
/sesion-03/presentacion/img/dynamic.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-03/presentacion/img/dynamic.gif
--------------------------------------------------------------------------------
/sesion-03/presentacion/img/inception.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-03/presentacion/img/inception.gif
--------------------------------------------------------------------------------
/sesion-03/presentacion/img/life1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-03/presentacion/img/life1.png
--------------------------------------------------------------------------------
/sesion-03/presentacion/img/life2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-03/presentacion/img/life2.png
--------------------------------------------------------------------------------
/sesion-03/presentacion/img/life3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-03/presentacion/img/life3.png
--------------------------------------------------------------------------------
/sesion-03/presentacion/img/life4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-03/presentacion/img/life4.png
--------------------------------------------------------------------------------
/sesion-03/presentacion/img/logo-fotocasa.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-03/presentacion/img/logo-fotocasa.png
--------------------------------------------------------------------------------
/sesion-03/presentacion/img/miduga.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-03/presentacion/img/miduga.png
--------------------------------------------------------------------------------
/sesion-03/presentacion/img/react-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-03/presentacion/img/react-logo.png
--------------------------------------------------------------------------------
/sesion-03/presentacion/img/uiku-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-03/presentacion/img/uiku-logo.png
--------------------------------------------------------------------------------
/sesion-03/presentacion/lib/css/zenburn.css:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Zenburn style from voldmar.ru (c) Vladimir Epifanov
4 | based on dark.css by Ivan Sagalaev
5 |
6 | */
7 |
8 | .hljs {
9 | display: block;
10 | overflow-x: auto;
11 | padding: 0.5em;
12 | background: #3f3f3f;
13 | color: #dcdcdc;
14 | }
15 |
16 | .hljs-keyword,
17 | .hljs-selector-tag,
18 | .hljs-tag {
19 | color: #e3ceab;
20 | }
21 |
22 | .hljs-template-tag {
23 | color: #dcdcdc;
24 | }
25 |
26 | .hljs-number {
27 | color: #8cd0d3;
28 | }
29 |
30 | .hljs-variable,
31 | .hljs-template-variable,
32 | .hljs-attribute {
33 | color: #efdcbc;
34 | }
35 |
36 | .hljs-literal {
37 | color: #efefaf;
38 | }
39 |
40 | .hljs-subst {
41 | color: #8f8f8f;
42 | }
43 |
44 | .hljs-title,
45 | .hljs-name,
46 | .hljs-selector-id,
47 | .hljs-selector-class,
48 | .hljs-section,
49 | .hljs-type {
50 | color: #efef8f;
51 | }
52 |
53 | .hljs-symbol,
54 | .hljs-bullet,
55 | .hljs-link {
56 | color: #dca3a3;
57 | }
58 |
59 | .hljs-deletion,
60 | .hljs-string,
61 | .hljs-built_in,
62 | .hljs-builtin-name {
63 | color: #cc9393;
64 | }
65 |
66 | .hljs-addition,
67 | .hljs-comment,
68 | .hljs-quote,
69 | .hljs-meta {
70 | color: #7f9f7f;
71 | }
72 |
73 |
74 | .hljs-emphasis {
75 | font-style: italic;
76 | }
77 |
78 | .hljs-strong {
79 | font-weight: bold;
80 | }
81 |
--------------------------------------------------------------------------------
/sesion-03/presentacion/lib/font/league-gothic/LICENSE:
--------------------------------------------------------------------------------
1 | SIL Open Font License (OFL)
2 | http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL
3 |
--------------------------------------------------------------------------------
/sesion-03/presentacion/lib/font/league-gothic/league-gothic.css:
--------------------------------------------------------------------------------
1 | @font-face {
2 | font-family: 'League Gothic';
3 | src: url('league-gothic.eot');
4 | src: url('league-gothic.eot?#iefix') format('embedded-opentype'),
5 | url('league-gothic.woff') format('woff'),
6 | url('league-gothic.ttf') format('truetype');
7 |
8 | font-weight: normal;
9 | font-style: normal;
10 | }
--------------------------------------------------------------------------------
/sesion-03/presentacion/lib/font/league-gothic/league-gothic.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-03/presentacion/lib/font/league-gothic/league-gothic.eot
--------------------------------------------------------------------------------
/sesion-03/presentacion/lib/font/league-gothic/league-gothic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-03/presentacion/lib/font/league-gothic/league-gothic.ttf
--------------------------------------------------------------------------------
/sesion-03/presentacion/lib/font/league-gothic/league-gothic.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-03/presentacion/lib/font/league-gothic/league-gothic.woff
--------------------------------------------------------------------------------
/sesion-03/presentacion/lib/font/source-sans-pro/LICENSE:
--------------------------------------------------------------------------------
1 | SIL Open Font License
2 |
3 | Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name ‘Source’. All Rights Reserved. Source is a trademark of Adobe Systems Incorporated in the United States and/or other countries.
4 |
5 | This Font Software is licensed under the SIL Open Font License, Version 1.1.
6 | This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
7 |
8 | —————————————————————————————-
9 | SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10 | —————————————————————————————-
11 |
12 | PREAMBLE
13 | The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others.
14 |
15 | The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives.
16 |
17 | DEFINITIONS
18 | “Font Software” refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation.
19 |
20 | “Reserved Font Name” refers to any names specified as such after the copyright statement(s).
21 |
22 | “Original Version” refers to the collection of Font Software components as distributed by the Copyright Holder(s).
23 |
24 | “Modified Version” refers to any derivative made by adding to, deleting, or substituting—in part or in whole—any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment.
25 |
26 | “Author” refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software.
27 |
28 | PERMISSION & CONDITIONS
29 | Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:
30 |
31 | 1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself.
32 |
33 | 2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user.
34 |
35 | 3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users.
36 |
37 | 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission.
38 |
39 | 5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software.
40 |
41 | TERMINATION
42 | This license becomes null and void if any of the above conditions are not met.
43 |
44 | DISCLAIMER
45 | THE FONT SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
--------------------------------------------------------------------------------
/sesion-03/presentacion/lib/font/source-sans-pro/source-sans-pro-italic.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-03/presentacion/lib/font/source-sans-pro/source-sans-pro-italic.eot
--------------------------------------------------------------------------------
/sesion-03/presentacion/lib/font/source-sans-pro/source-sans-pro-italic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-03/presentacion/lib/font/source-sans-pro/source-sans-pro-italic.ttf
--------------------------------------------------------------------------------
/sesion-03/presentacion/lib/font/source-sans-pro/source-sans-pro-italic.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-03/presentacion/lib/font/source-sans-pro/source-sans-pro-italic.woff
--------------------------------------------------------------------------------
/sesion-03/presentacion/lib/font/source-sans-pro/source-sans-pro-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-03/presentacion/lib/font/source-sans-pro/source-sans-pro-regular.eot
--------------------------------------------------------------------------------
/sesion-03/presentacion/lib/font/source-sans-pro/source-sans-pro-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-03/presentacion/lib/font/source-sans-pro/source-sans-pro-regular.ttf
--------------------------------------------------------------------------------
/sesion-03/presentacion/lib/font/source-sans-pro/source-sans-pro-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-03/presentacion/lib/font/source-sans-pro/source-sans-pro-regular.woff
--------------------------------------------------------------------------------
/sesion-03/presentacion/lib/font/source-sans-pro/source-sans-pro-semibold.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-03/presentacion/lib/font/source-sans-pro/source-sans-pro-semibold.eot
--------------------------------------------------------------------------------
/sesion-03/presentacion/lib/font/source-sans-pro/source-sans-pro-semibold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-03/presentacion/lib/font/source-sans-pro/source-sans-pro-semibold.ttf
--------------------------------------------------------------------------------
/sesion-03/presentacion/lib/font/source-sans-pro/source-sans-pro-semibold.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-03/presentacion/lib/font/source-sans-pro/source-sans-pro-semibold.woff
--------------------------------------------------------------------------------
/sesion-03/presentacion/lib/font/source-sans-pro/source-sans-pro-semibolditalic.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-03/presentacion/lib/font/source-sans-pro/source-sans-pro-semibolditalic.eot
--------------------------------------------------------------------------------
/sesion-03/presentacion/lib/font/source-sans-pro/source-sans-pro-semibolditalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-03/presentacion/lib/font/source-sans-pro/source-sans-pro-semibolditalic.ttf
--------------------------------------------------------------------------------
/sesion-03/presentacion/lib/font/source-sans-pro/source-sans-pro-semibolditalic.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-03/presentacion/lib/font/source-sans-pro/source-sans-pro-semibolditalic.woff
--------------------------------------------------------------------------------
/sesion-03/presentacion/lib/font/source-sans-pro/source-sans-pro.css:
--------------------------------------------------------------------------------
1 | @font-face {
2 | font-family: 'Source Sans Pro';
3 | src: url('source-sans-pro-regular.eot');
4 | src: url('source-sans-pro-regular.eot?#iefix') format('embedded-opentype'),
5 | url('source-sans-pro-regular.woff') format('woff'),
6 | url('source-sans-pro-regular.ttf') format('truetype');
7 | font-weight: normal;
8 | font-style: normal;
9 | }
10 |
11 | @font-face {
12 | font-family: 'Source Sans Pro';
13 | src: url('source-sans-pro-italic.eot');
14 | src: url('source-sans-pro-italic.eot?#iefix') format('embedded-opentype'),
15 | url('source-sans-pro-italic.woff') format('woff'),
16 | url('source-sans-pro-italic.ttf') format('truetype');
17 | font-weight: normal;
18 | font-style: italic;
19 | }
20 |
21 | @font-face {
22 | font-family: 'Source Sans Pro';
23 | src: url('source-sans-pro-semibold.eot');
24 | src: url('source-sans-pro-semibold.eot?#iefix') format('embedded-opentype'),
25 | url('source-sans-pro-semibold.woff') format('woff'),
26 | url('source-sans-pro-semibold.ttf') format('truetype');
27 | font-weight: 600;
28 | font-style: normal;
29 | }
30 |
31 | @font-face {
32 | font-family: 'Source Sans Pro';
33 | src: url('source-sans-pro-semibolditalic.eot');
34 | src: url('source-sans-pro-semibolditalic.eot?#iefix') format('embedded-opentype'),
35 | url('source-sans-pro-semibolditalic.woff') format('woff'),
36 | url('source-sans-pro-semibolditalic.ttf') format('truetype');
37 | font-weight: 600;
38 | font-style: italic;
39 | }
--------------------------------------------------------------------------------
/sesion-03/presentacion/lib/js/classList.js:
--------------------------------------------------------------------------------
1 | /*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js*/
2 | if(typeof document!=="undefined"&&!("classList" in document.createElement("a"))){(function(j){var a="classList",f="prototype",m=(j.HTMLElement||j.Element)[f],b=Object,k=String[f].trim||function(){return this.replace(/^\s+|\s+$/g,"")},c=Array[f].indexOf||function(q){var p=0,o=this.length;for(;p
2 |
3 |
4 |
5 |
6 |
7 | reveal.js - Markdown Demo
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
37 |
38 |
39 |
55 |
56 |
57 |
70 |
71 |
72 |
78 |
79 |
80 |
87 |
88 |
89 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
127 |
128 |
129 |
130 |
--------------------------------------------------------------------------------
/sesion-03/presentacion/plugin/markdown/example.md:
--------------------------------------------------------------------------------
1 | # Markdown Demo
2 |
3 |
4 |
5 | ## External 1.1
6 |
7 | Content 1.1
8 |
9 | Note: This will only appear in the speaker notes window.
10 |
11 |
12 | ## External 1.2
13 |
14 | Content 1.2
15 |
16 |
17 |
18 | ## External 2
19 |
20 | Content 2.1
21 |
22 |
23 |
24 | ## External 3.1
25 |
26 | Content 3.1
27 |
28 |
29 | ## External 3.2
30 |
31 | Content 3.2
32 |
--------------------------------------------------------------------------------
/sesion-03/presentacion/plugin/math/math.js:
--------------------------------------------------------------------------------
1 | /**
2 | * A plugin which enables rendering of math equations inside
3 | * of reveal.js slides. Essentially a thin wrapper for MathJax.
4 | *
5 | * @author Hakim El Hattab
6 | */
7 | var RevealMath = window.RevealMath || (function(){
8 |
9 | var options = Reveal.getConfig().math || {};
10 | options.mathjax = options.mathjax || 'https://cdn.mathjax.org/mathjax/latest/MathJax.js';
11 | options.config = options.config || 'TeX-AMS_HTML-full';
12 |
13 | loadScript( options.mathjax + '?config=' + options.config, function() {
14 |
15 | MathJax.Hub.Config({
16 | messageStyle: 'none',
17 | tex2jax: {
18 | inlineMath: [['$','$'],['\\(','\\)']] ,
19 | skipTags: ['script','noscript','style','textarea','pre']
20 | },
21 | skipStartupTypeset: true
22 | });
23 |
24 | // Typeset followed by an immediate reveal.js layout since
25 | // the typesetting process could affect slide height
26 | MathJax.Hub.Queue( [ 'Typeset', MathJax.Hub ] );
27 | MathJax.Hub.Queue( Reveal.layout );
28 |
29 | // Reprocess equations in slides when they turn visible
30 | Reveal.addEventListener( 'slidechanged', function( event ) {
31 |
32 | MathJax.Hub.Queue( [ 'Typeset', MathJax.Hub, event.currentSlide ] );
33 |
34 | } );
35 |
36 | } );
37 |
38 | function loadScript( url, callback ) {
39 |
40 | var head = document.querySelector( 'head' );
41 | var script = document.createElement( 'script' );
42 | script.type = 'text/javascript';
43 | script.src = url;
44 |
45 | // Wrapper for callback to make sure it only fires once
46 | var finish = function() {
47 | if( typeof callback === 'function' ) {
48 | callback.call();
49 | callback = null;
50 | }
51 | }
52 |
53 | script.onload = finish;
54 |
55 | // IE
56 | script.onreadystatechange = function() {
57 | if ( this.readyState === 'loaded' ) {
58 | finish();
59 | }
60 | }
61 |
62 | // Normal browsers
63 | head.appendChild( script );
64 |
65 | }
66 |
67 | })();
68 |
--------------------------------------------------------------------------------
/sesion-03/presentacion/plugin/multiplex/client.js:
--------------------------------------------------------------------------------
1 | (function() {
2 | var multiplex = Reveal.getConfig().multiplex;
3 | var socketId = multiplex.id;
4 | var socket = io.connect(multiplex.url);
5 |
6 | socket.on(multiplex.id, function(data) {
7 | // ignore data from sockets that aren't ours
8 | if (data.socketId !== socketId) { return; }
9 | if( window.location.host === 'localhost:1947' ) return;
10 |
11 | Reveal.setState(data.state);
12 | });
13 | }());
14 |
--------------------------------------------------------------------------------
/sesion-03/presentacion/plugin/multiplex/index.js:
--------------------------------------------------------------------------------
1 | var http = require('http');
2 | var express = require('express');
3 | var fs = require('fs');
4 | var io = require('socket.io');
5 | var crypto = require('crypto');
6 |
7 | var app = express();
8 | var staticDir = express.static;
9 | var server = http.createServer(app);
10 |
11 | io = io(server);
12 |
13 | var opts = {
14 | port: process.env.PORT || 1948,
15 | baseDir : __dirname + '/../../'
16 | };
17 |
18 | io.on( 'connection', function( socket ) {
19 | socket.on('multiplex-statechanged', function(data) {
20 | if (typeof data.secret == 'undefined' || data.secret == null || data.secret === '') return;
21 | if (createHash(data.secret) === data.socketId) {
22 | data.secret = null;
23 | socket.broadcast.emit(data.socketId, data);
24 | };
25 | });
26 | });
27 |
28 | [ 'css', 'js', 'plugin', 'lib' ].forEach(function(dir) {
29 | app.use('/' + dir, staticDir(opts.baseDir + dir));
30 | });
31 |
32 | app.get("/", function(req, res) {
33 | res.writeHead(200, {'Content-Type': 'text/html'});
34 |
35 | var stream = fs.createReadStream(opts.baseDir + '/index.html');
36 | stream.on('error', function( error ) {
37 | res.write('reveal.js multiplex server. Generate token ');
38 | res.end();
39 | });
40 | stream.on('readable', function() {
41 | stream.pipe(res);
42 | });
43 | });
44 |
45 | app.get("/token", function(req,res) {
46 | var ts = new Date().getTime();
47 | var rand = Math.floor(Math.random()*9999999);
48 | var secret = ts.toString() + rand.toString();
49 | res.send({secret: secret, socketId: createHash(secret)});
50 | });
51 |
52 | var createHash = function(secret) {
53 | var cipher = crypto.createCipher('blowfish', secret);
54 | return(cipher.final('hex'));
55 | };
56 |
57 | // Actually listen
58 | server.listen( opts.port || null );
59 |
60 | var brown = '\033[33m',
61 | green = '\033[32m',
62 | reset = '\033[0m';
63 |
64 | console.log( brown + "reveal.js:" + reset + " Multiplex running on port " + green + opts.port + reset );
--------------------------------------------------------------------------------
/sesion-03/presentacion/plugin/multiplex/master.js:
--------------------------------------------------------------------------------
1 | (function() {
2 |
3 | // Don't emit events from inside of notes windows
4 | if ( window.location.search.match( /receiver/gi ) ) { return; }
5 |
6 | var multiplex = Reveal.getConfig().multiplex;
7 |
8 | var socket = io.connect( multiplex.url );
9 |
10 | function post() {
11 |
12 | var messageData = {
13 | state: Reveal.getState(),
14 | secret: multiplex.secret,
15 | socketId: multiplex.id
16 | };
17 |
18 | socket.emit( 'multiplex-statechanged', messageData );
19 |
20 | };
21 |
22 | // Monitor events that trigger a change in state
23 | Reveal.addEventListener( 'slidechanged', post );
24 | Reveal.addEventListener( 'fragmentshown', post );
25 | Reveal.addEventListener( 'fragmenthidden', post );
26 | Reveal.addEventListener( 'overviewhidden', post );
27 | Reveal.addEventListener( 'overviewshown', post );
28 | Reveal.addEventListener( 'paused', post );
29 | Reveal.addEventListener( 'resumed', post );
30 |
31 | }());
--------------------------------------------------------------------------------
/sesion-03/presentacion/plugin/multiplex/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "reveal-js-multiplex",
3 | "version": "1.0.0",
4 | "description": "reveal.js multiplex server",
5 | "homepage": "http://lab.hakim.se/reveal-js",
6 | "scripts": {
7 | "start": "node index.js"
8 | },
9 | "engines": {
10 | "node": "~4.1.1"
11 | },
12 | "dependencies": {
13 | "express": "~4.13.3",
14 | "grunt-cli": "~0.1.13",
15 | "mustache": "~2.2.1",
16 | "socket.io": "~1.3.7"
17 | },
18 | "license": "MIT"
19 | }
20 |
--------------------------------------------------------------------------------
/sesion-03/presentacion/plugin/notes-server/client.js:
--------------------------------------------------------------------------------
1 | (function() {
2 |
3 | // don't emit events from inside the previews themselves
4 | if( window.location.search.match( /receiver/gi ) ) { return; }
5 |
6 | var socket = io.connect( window.location.origin ),
7 | socketId = Math.random().toString().slice( 2 );
8 |
9 | console.log( 'View slide notes at ' + window.location.origin + '/notes/' + socketId );
10 |
11 | window.open( window.location.origin + '/notes/' + socketId, 'notes-' + socketId );
12 |
13 | /**
14 | * Posts the current slide data to the notes window
15 | */
16 | function post() {
17 |
18 | var slideElement = Reveal.getCurrentSlide(),
19 | notesElement = slideElement.querySelector( 'aside.notes' );
20 |
21 | var messageData = {
22 | notes: '',
23 | markdown: false,
24 | socketId: socketId,
25 | state: Reveal.getState()
26 | };
27 |
28 | // Look for notes defined in a slide attribute
29 | if( slideElement.hasAttribute( 'data-notes' ) ) {
30 | messageData.notes = slideElement.getAttribute( 'data-notes' );
31 | }
32 |
33 | // Look for notes defined in an aside element
34 | if( notesElement ) {
35 | messageData.notes = notesElement.innerHTML;
36 | messageData.markdown = typeof notesElement.getAttribute( 'data-markdown' ) === 'string';
37 | }
38 |
39 | socket.emit( 'statechanged', messageData );
40 |
41 | }
42 |
43 | // When a new notes window connects, post our current state
44 | socket.on( 'new-subscriber', function( data ) {
45 | post();
46 | } );
47 |
48 | // When the state changes from inside of the speaker view
49 | socket.on( 'statechanged-speaker', function( data ) {
50 | Reveal.setState( data.state );
51 | } );
52 |
53 | // Monitor events that trigger a change in state
54 | Reveal.addEventListener( 'slidechanged', post );
55 | Reveal.addEventListener( 'fragmentshown', post );
56 | Reveal.addEventListener( 'fragmenthidden', post );
57 | Reveal.addEventListener( 'overviewhidden', post );
58 | Reveal.addEventListener( 'overviewshown', post );
59 | Reveal.addEventListener( 'paused', post );
60 | Reveal.addEventListener( 'resumed', post );
61 |
62 | // Post the initial state
63 | post();
64 |
65 | }());
66 |
--------------------------------------------------------------------------------
/sesion-03/presentacion/plugin/notes-server/index.js:
--------------------------------------------------------------------------------
1 | var http = require('http');
2 | var express = require('express');
3 | var fs = require('fs');
4 | var io = require('socket.io');
5 | var Mustache = require('mustache');
6 |
7 | var app = express();
8 | var staticDir = express.static;
9 | var server = http.createServer(app);
10 |
11 | io = io(server);
12 |
13 | var opts = {
14 | port : 1947,
15 | baseDir : __dirname + '/../../'
16 | };
17 |
18 | io.on( 'connection', function( socket ) {
19 |
20 | socket.on( 'new-subscriber', function( data ) {
21 | socket.broadcast.emit( 'new-subscriber', data );
22 | });
23 |
24 | socket.on( 'statechanged', function( data ) {
25 | delete data.state.overview;
26 | socket.broadcast.emit( 'statechanged', data );
27 | });
28 |
29 | socket.on( 'statechanged-speaker', function( data ) {
30 | delete data.state.overview;
31 | socket.broadcast.emit( 'statechanged-speaker', data );
32 | });
33 |
34 | });
35 |
36 | [ 'css', 'js', 'images', 'plugin', 'lib' ].forEach( function( dir ) {
37 | app.use( '/' + dir, staticDir( opts.baseDir + dir ) );
38 | });
39 |
40 | app.get('/', function( req, res ) {
41 |
42 | res.writeHead( 200, { 'Content-Type': 'text/html' } );
43 | fs.createReadStream( opts.baseDir + '/index.html' ).pipe( res );
44 |
45 | });
46 |
47 | app.get( '/notes/:socketId', function( req, res ) {
48 |
49 | fs.readFile( opts.baseDir + 'plugin/notes-server/notes.html', function( err, data ) {
50 | res.send( Mustache.to_html( data.toString(), {
51 | socketId : req.params.socketId
52 | }));
53 | });
54 |
55 | });
56 |
57 | // Actually listen
58 | server.listen( opts.port || null );
59 |
60 | var brown = '\033[33m',
61 | green = '\033[32m',
62 | reset = '\033[0m';
63 |
64 | var slidesLocation = 'http://localhost' + ( opts.port ? ( ':' + opts.port ) : '' );
65 |
66 | console.log( brown + 'reveal.js - Speaker Notes' + reset );
67 | console.log( '1. Open the slides at ' + green + slidesLocation + reset );
68 | console.log( '2. Click on the link in your JS console to go to the notes page' );
69 | console.log( '3. Advance through your slides and your notes will advance automatically' );
70 |
--------------------------------------------------------------------------------
/sesion-03/presentacion/plugin/notes/notes.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Handles opening of and synchronization with the reveal.js
3 | * notes window.
4 | *
5 | * Handshake process:
6 | * 1. This window posts 'connect' to notes window
7 | * - Includes URL of presentation to show
8 | * 2. Notes window responds with 'connected' when it is available
9 | * 3. This window proceeds to send the current presentation state
10 | * to the notes window
11 | */
12 | var RevealNotes = (function() {
13 |
14 | function openNotes( notesFilePath ) {
15 |
16 | if( !notesFilePath ) {
17 | var jsFileLocation = document.querySelector('script[src$="notes.js"]').src; // this js file path
18 | jsFileLocation = jsFileLocation.replace(/notes\.js(\?.*)?$/, ''); // the js folder path
19 | notesFilePath = jsFileLocation + 'notes.html';
20 | }
21 |
22 | var notesPopup = window.open( notesFilePath, 'reveal.js - Notes', 'width=1100,height=700' );
23 |
24 | /**
25 | * Connect to the notes window through a postmessage handshake.
26 | * Using postmessage enables us to work in situations where the
27 | * origins differ, such as a presentation being opened from the
28 | * file system.
29 | */
30 | function connect() {
31 | // Keep trying to connect until we get a 'connected' message back
32 | var connectInterval = setInterval( function() {
33 | notesPopup.postMessage( JSON.stringify( {
34 | namespace: 'reveal-notes',
35 | type: 'connect',
36 | url: window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search,
37 | state: Reveal.getState()
38 | } ), '*' );
39 | }, 500 );
40 |
41 | window.addEventListener( 'message', function( event ) {
42 | var data = JSON.parse( event.data );
43 | if( data && data.namespace === 'reveal-notes' && data.type === 'connected' ) {
44 | clearInterval( connectInterval );
45 | onConnected();
46 | }
47 | } );
48 | }
49 |
50 | /**
51 | * Posts the current slide data to the notes window
52 | */
53 | function post() {
54 |
55 | var slideElement = Reveal.getCurrentSlide(),
56 | notesElement = slideElement.querySelector( 'aside.notes' );
57 |
58 | var messageData = {
59 | namespace: 'reveal-notes',
60 | type: 'state',
61 | notes: '',
62 | markdown: false,
63 | whitespace: 'normal',
64 | state: Reveal.getState()
65 | };
66 |
67 | // Look for notes defined in a slide attribute
68 | if( slideElement.hasAttribute( 'data-notes' ) ) {
69 | messageData.notes = slideElement.getAttribute( 'data-notes' );
70 | messageData.whitespace = 'pre-wrap';
71 | }
72 |
73 | // Look for notes defined in an aside element
74 | if( notesElement ) {
75 | messageData.notes = notesElement.innerHTML;
76 | messageData.markdown = typeof notesElement.getAttribute( 'data-markdown' ) === 'string';
77 | }
78 |
79 | notesPopup.postMessage( JSON.stringify( messageData ), '*' );
80 |
81 | }
82 |
83 | /**
84 | * Called once we have established a connection to the notes
85 | * window.
86 | */
87 | function onConnected() {
88 |
89 | // Monitor events that trigger a change in state
90 | Reveal.addEventListener( 'slidechanged', post );
91 | Reveal.addEventListener( 'fragmentshown', post );
92 | Reveal.addEventListener( 'fragmenthidden', post );
93 | Reveal.addEventListener( 'overviewhidden', post );
94 | Reveal.addEventListener( 'overviewshown', post );
95 | Reveal.addEventListener( 'paused', post );
96 | Reveal.addEventListener( 'resumed', post );
97 |
98 | // Post the initial state
99 | post();
100 |
101 | }
102 |
103 | connect();
104 |
105 | }
106 |
107 | if( !/receiver/i.test( window.location.search ) ) {
108 |
109 | // If the there's a 'notes' query set, open directly
110 | if( window.location.search.match( /(\?|\&)notes/gi ) !== null ) {
111 | openNotes();
112 | }
113 |
114 | // Open the notes when the 's' key is hit
115 | document.addEventListener( 'keydown', function( event ) {
116 | // Disregard the event if the target is editable or a
117 | // modifier is present
118 | if ( document.querySelector( ':focus' ) !== null || event.shiftKey || event.altKey || event.ctrlKey || event.metaKey ) return;
119 |
120 | // Disregard the event if keyboard is disabled
121 | if ( Reveal.getConfig().keyboard === false ) return;
122 |
123 | if( event.keyCode === 83 ) {
124 | event.preventDefault();
125 | openNotes();
126 | }
127 | }, false );
128 |
129 | // Show our keyboard shortcut in the reveal.js help overlay
130 | if( window.Reveal ) Reveal.registerKeyboardShortcut( 'S', 'Speaker notes view' );
131 |
132 | }
133 |
134 | return { open: openNotes };
135 |
136 | })();
137 |
--------------------------------------------------------------------------------
/sesion-03/presentacion/plugin/print-pdf/print-pdf.js:
--------------------------------------------------------------------------------
1 | /**
2 | * phantomjs script for printing presentations to PDF.
3 | *
4 | * Example:
5 | * phantomjs print-pdf.js "http://lab.hakim.se/reveal-js?print-pdf" reveal-demo.pdf
6 | *
7 | * By Manuel Bieh (https://github.com/manuelbieh)
8 | */
9 |
10 | // html2pdf.js
11 | var page = new WebPage();
12 | var system = require( 'system' );
13 |
14 | var slideWidth = system.args[3] ? system.args[3].split( 'x' )[0] : 960;
15 | var slideHeight = system.args[3] ? system.args[3].split( 'x' )[1] : 700;
16 |
17 | page.viewportSize = {
18 | width: slideWidth,
19 | height: slideHeight
20 | };
21 |
22 | // TODO
23 | // Something is wrong with these config values. An input
24 | // paper width of 1920px actually results in a 756px wide
25 | // PDF.
26 | page.paperSize = {
27 | width: Math.round( slideWidth * 2 ),
28 | height: Math.round( slideHeight * 2 ),
29 | border: 0
30 | };
31 |
32 | var inputFile = system.args[1] || 'index.html?print-pdf';
33 | var outputFile = system.args[2] || 'slides.pdf';
34 |
35 | if( outputFile.match( /\.pdf$/gi ) === null ) {
36 | outputFile += '.pdf';
37 | }
38 |
39 | console.log( 'Printing PDF (Paper size: '+ page.paperSize.width + 'x' + page.paperSize.height +')' );
40 |
41 | page.open( inputFile, function( status ) {
42 | window.setTimeout( function() {
43 | console.log( 'Printed successfully' );
44 | page.render( outputFile );
45 | phantom.exit();
46 | }, 1000 );
47 | } );
48 |
49 |
--------------------------------------------------------------------------------
/sesion-05/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-05/.DS_Store
--------------------------------------------------------------------------------
/sesion-05/apps/.gitignore:
--------------------------------------------------------------------------------
1 | # See http://help.github.com/ignore-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | node_modules
5 |
6 | # testing
7 | coverage
8 |
9 | # production
10 | build
11 |
12 | # misc
13 | .DS_Store
14 | .env
15 | npm-debug.log
16 |
--------------------------------------------------------------------------------
/sesion-05/apps/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "marvel",
3 | "version": "0.1.0",
4 | "private": true,
5 | "devDependencies": {
6 | "react-scripts": "0.6.1"
7 | },
8 | "eslintConfig": {
9 | "extends": "react-app"
10 | },
11 | "dependencies": {
12 | "babel-eslint": "^6.1.2",
13 | "eslint": "^3.5.0",
14 | "eslint-config-react-app": "^0.2.1",
15 | "eslint-plugin-flowtype": "^2.18.1",
16 | "eslint-plugin-import": "^1.12.0",
17 | "eslint-plugin-jsx-a11y": "^2.2.2",
18 | "eslint-plugin-react": "^6.3.0",
19 | "lscache": "^1.0.7",
20 | "react": "^15.3.2",
21 | "react-dom": "^15.3.2",
22 | "react-icons": "^2.2.1",
23 | "react-spinkit": "^1.1.11",
24 | "superagent": "^2.3.0"
25 | },
26 | "scripts": {
27 | "start": "react-scripts start",
28 | "build": "react-scripts build",
29 | "test": "react-scripts test --env=jsdom",
30 | "eject": "react-scripts eject"
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/sesion-05/apps/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-05/apps/public/favicon.ico
--------------------------------------------------------------------------------
/sesion-05/apps/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
16 | Demo Sesion 05
17 |
18 |
19 |
20 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/sesion-05/apps/public/marvel-logo.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-05/apps/public/marvel-logo.jpeg
--------------------------------------------------------------------------------
/sesion-05/apps/src/index.css:
--------------------------------------------------------------------------------
1 | html {
2 | box-sizing: border-box;
3 | }
4 |
5 | *, *:before, *:after {
6 | box-sizing: inherit;
7 | }
8 |
9 | html, body {
10 | background: #fff;
11 | min-width: 320px;
12 | font-family:
13 | /* 1 */ -apple-system, BlinkMacSystemFont,
14 | /* 2 */ "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans",
15 | /* 3 */ "Helvetica Neue", sans-serif;
16 | }
17 |
18 | body {
19 | margin: 0;
20 | padding: 0;
21 | }
22 |
--------------------------------------------------------------------------------
/sesion-05/apps/src/index.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import ReactDOM from 'react-dom';
3 | import App from './marvel/App';
4 | import './index.css';
5 |
6 | ReactDOM.render(
7 | ,
8 | document.getElementById('root')
9 | );
10 |
--------------------------------------------------------------------------------
/sesion-05/apps/src/marvel/App.css:
--------------------------------------------------------------------------------
1 | .container {
2 | margin: 20px;
3 | }
4 |
5 | .has-text-centered {
6 | text-align: center;
7 | }
8 |
9 | .results {
10 | display: flex;
11 | flex-direction: row;
12 | flex-wrap: wrap;
13 | justify-content: space-between;
14 | padding-top: 35px;
15 | max-width: 90%;
16 | margin: 0 auto;
17 | }
18 |
--------------------------------------------------------------------------------
/sesion-05/apps/src/marvel/App.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from 'react';
2 | import lscache from 'lscache'
3 |
4 | import './App.css';
5 |
6 | import Card from './Card/Card.js'
7 | import Logo from './Logo.js'
8 | import Searcher from './Searcher.js'
9 |
10 | const API_URL = 'http://gateway.marvel.com:80/v1/public'
11 | const APIKEY_QUERYSTRING = 'apikey=408b6d7a1fd0560193bf0a239d279af1'
12 |
13 | export default class App extends Component {
14 |
15 | constructor (...args) {
16 | super(...args)
17 | this.state = {
18 | initialState: true,
19 | isLoading: false,
20 | favs: [],
21 | results: []
22 | }
23 |
24 | this.handleSubmit = this.handleSubmit.bind(this)
25 | }
26 |
27 | componentDidMount () {
28 | const favs = lscache.get('favs') || []
29 | this.setState({ favs: favs })
30 | }
31 |
32 | handleSubmit (textToSearch) {
33 | this.setState({ initialState: false, isLoading: true });
34 |
35 | const FETCH_URL = `${API_URL}/characters?nameStartsWith=${textToSearch}&${APIKEY_QUERYSTRING}`
36 |
37 | console.log(FETCH_URL)
38 |
39 | fetch(FETCH_URL)
40 | .then(res => res.json())
41 | .then(res => {
42 | this.setState({ isLoading: false, results: res.data.results })
43 | })
44 | .catch(err => console.log(err))
45 | }
46 |
47 | render () {
48 | return (
49 |
50 |
51 |
52 |
56 |
57 | {this.state.initialState &&
58 |
Por favor, usa el formulario para buscar el personaje
}
59 |
60 |
61 | {this.state.results.map(item => {
62 | return (
63 | item.id === id)}
65 | item={item}
66 | key={item.id} />
67 | )
68 | })}
69 |
70 |
71 | );
72 | }
73 | }
74 |
--------------------------------------------------------------------------------
/sesion-05/apps/src/marvel/Button.js:
--------------------------------------------------------------------------------
1 | import React, { PropTypes } from 'react'
2 | import Spinner from 'react-spinkit'
3 |
4 | export default function Button (props) {
5 | return (
6 | {
7 | props.isLoading
8 | ?
9 | : props.label
10 | }
11 | )
12 | }
13 |
14 | Button.propTypes = {
15 | isLoading: PropTypes.bool,
16 | label: PropTypes.string
17 | }
18 |
--------------------------------------------------------------------------------
/sesion-05/apps/src/marvel/Card/Card.css:
--------------------------------------------------------------------------------
1 | .card {
2 | border: 1px solid #ccc;
3 | border-radius: 3px;
4 | margin-bottom: 35px;
5 | padding: 15px;
6 | width: 32%;
7 | animation-duration: 1s;
8 | animation-fill-mode: both;
9 | animation-name: fadeInUp;
10 | }
11 |
12 | .card-title {
13 | color: #333;
14 | font-weight: 100;
15 | font-size: 30px;
16 | margin: 5px 0;
17 | }
18 |
19 | .card-description {
20 | font-size: 15px;
21 | font-weight: 200;
22 | }
23 |
24 | .card-image {
25 | width: 100%;
26 | height: auto;
27 | }
28 |
29 | @keyframes fadeInUp {
30 | from {
31 | opacity: 0;
32 | }
33 |
34 | to {
35 | opacity: 1;
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/sesion-05/apps/src/marvel/Card/Card.js:
--------------------------------------------------------------------------------
1 | import React, { Component, PropTypes } from 'react'
2 | import lscache from 'lscache'
3 |
4 | import './Card.css'
5 |
6 | import IconStarOutline from 'react-icons/lib/md/star-outline'
7 | import IconStarFull from 'react-icons/lib/md/star'
8 |
9 | export default class Card extends Component {
10 |
11 | constructor (...args) {
12 | super(...args)
13 | this.state = {
14 | isFav: this.props.isFav
15 | }
16 |
17 | this.addFav = this.addFav.bind(this)
18 | this.removeFav = this.removeFav.bind(this)
19 | this.saveToLocalStorage = this.saveToLocalStorage.bind(this)
20 | }
21 |
22 | addFav () {
23 | this.setState({ isFav: true })
24 | this.saveToLocalStorage()
25 | }
26 |
27 | removeFav () {
28 | this.setState({ isFav: false })
29 | this.saveToLocalStorage()
30 | }
31 |
32 | saveToLocalStorage () {
33 | const id = this.props.item.id
34 | let favs = lscache.get('favs') || []
35 | if (favs.indexOf(id) < 0) {
36 | favs.push(id)
37 | } else {
38 | favs.splice(favs.indexOf(id), 1)
39 | }
40 | lscache.set('favs', favs)
41 | }
42 |
43 | render () {
44 | const item = this.props.item
45 | const img = `${item.thumbnail.path}.${item.thumbnail.extension}`
46 | return (
47 |
48 | {this.state.isFav
49 | ?
50 | :
}
51 |
52 |
53 |
{item.name}
54 |
{item.description}
55 |
56 |
57 | )
58 | }
59 |
60 | }
61 |
62 | Card.propTypes = {
63 | item: PropTypes.object,
64 | isFav: PropTypes.bool
65 | }
66 |
--------------------------------------------------------------------------------
/sesion-05/apps/src/marvel/Logo.js:
--------------------------------------------------------------------------------
1 | import React, { PropTypes } from 'react'
2 |
3 | export default function Logo (props) {
4 | const className = props.isCentered ? 'has-text-centered' : ''
5 |
6 | return (
7 |
8 |
9 |
10 | )
11 | }
12 |
13 | Logo.propTypes = {
14 | isCentered: PropTypes.bool
15 | }
16 |
--------------------------------------------------------------------------------
/sesion-05/apps/src/marvel/Searcher.css:
--------------------------------------------------------------------------------
1 | .Searcher {
2 | align-items: center;
3 | display: flex;
4 | justify-content: center;
5 | }
6 |
7 | .Searcher input {
8 | border-right: 0;
9 | border: 1px solid #e23636;
10 | border-radius: 3px 0 0 3px;
11 | line-height: 35px;
12 | height: 35px;
13 | min-width: 200px;
14 | outline: 0;
15 | padding: 5px;
16 | }
17 |
18 | .Searcher button {
19 | background: #e23636;
20 | border: 1px solid #e23636;
21 | color: #fff;
22 | height: 35px;
23 | padding: 5px 10px;
24 | border-radius: 0 3px 3px 0;
25 | outline: 0;
26 | transition: background .3s ease;
27 | }
28 |
29 | .Searcher button:hover {
30 | background: red;
31 | }
32 |
33 | .Searcher button .circle:before {
34 | background-color: #fff;
35 | }
36 |
--------------------------------------------------------------------------------
/sesion-05/apps/src/marvel/Searcher.js:
--------------------------------------------------------------------------------
1 | import React, { Component, PropTypes } from 'react'
2 | import './Searcher.css'
3 |
4 | import Button from './Button.js'
5 |
6 | export default class Searcher extends Component {
7 | constructor (...args) {
8 | super(...args);
9 | this.state = {
10 | textToSearch: ''
11 | }
12 |
13 | this.handleChange = this.handleChange.bind(this)
14 | this.handleSubmit = this.handleSubmit.bind(this)
15 | }
16 |
17 | handleChange (e) {
18 | this.setState({ textToSearch: e.currentTarget.value})
19 | }
20 |
21 | handleSubmit (e) {
22 | e.preventDefault()
23 | this.props.onSubmit(this.state.textToSearch)
24 | }
25 |
26 | render () {
27 | return (
28 |
39 | )
40 | }
41 | }
42 |
43 | Searcher.propTypes = {
44 | isLoading: PropTypes.bool,
45 | onSubmit: PropTypes.func.isRequired
46 | }
47 |
48 | Searcher.defaultProps = {
49 | onSubmit: () => {}
50 | }
51 |
--------------------------------------------------------------------------------
/sesion-05/apps/src/marvel/dummyData.js:
--------------------------------------------------------------------------------
1 | export default [{
2 | name: 'Iron Man',
3 | id: 1,
4 | description: 'Con una armadura roja muy poderosa, lanza rayos por las manos!',
5 | thumbnail: {
6 | path: 'https://s-media-cache-ak0.pinimg.com/originals/5b/26/ff/5b26ff29982e6bd0aa05870ad84e9e7a',
7 | extension: 'png'
8 | }
9 | }, {
10 | name: 'Hulk',
11 | id: 2,
12 | description: 'Es verde y tiene bastante mala leche',
13 | thumbnail: {
14 | path: 'http://img.lum.dolimg.com/v1/images/open-uri20150608-27674-1jdbpa8_be64ca1b',
15 | extension: 'png'
16 | }
17 | }, {
18 | name: 'Hulka',
19 | id: 3,
20 | description: 'Es verde y tiene bastante mala leche',
21 | thumbnail: {
22 | path: 'http://img.lum.dolimg.com/v1/images/open-uri20150608-27674-1jdbpa8_be64ca1b',
23 | extension: 'png'
24 | }
25 | }]
26 |
--------------------------------------------------------------------------------
/sesion-05/apps/src/marvel_done/App.css:
--------------------------------------------------------------------------------
1 | .container {
2 | margin: 20px;
3 | }
4 |
5 | .has-text-centered {
6 | text-align: center;
7 | }
8 |
9 | .results {
10 | display: flex;
11 | flex-direction: row;
12 | flex-wrap: wrap;
13 | justify-content: space-between;
14 | padding-top: 35px;
15 | max-width: 90%;
16 | margin: 0 auto;
17 | }
18 |
--------------------------------------------------------------------------------
/sesion-05/apps/src/marvel_done/App.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from 'react';
2 | import Card from './Card.js'
3 | import Searcher from './Searcher.js'
4 | import ResultMessage from './ResultMessage.js'
5 | import Logo from './Logo.js'
6 |
7 | import lscache from 'lscache'
8 |
9 | import './App.css';
10 |
11 | const API_URL = 'http://gateway.marvel.com:80/v1/public/'
12 | const APIKEY_QUERYSTRING = 'apikey=408b6d7a1fd0560193bf0a239d279af1'
13 |
14 | class App extends Component {
15 |
16 | constructor (...args) {
17 | super(...args)
18 | this.state = {
19 | errorMessage: false,
20 | favs: [],
21 | initialState: true,
22 | isLoading: false,
23 | results: [],
24 | showContainer: false,
25 | }
26 | this.handleButtonClick = this.handleButtonClick.bind(this)
27 | }
28 |
29 | componentDidMount () {
30 | const favs = lscache.get('favs') || []
31 | this.setState({ favs: favs })
32 | }
33 |
34 | handleButtonClick (textToSearch) {
35 | this.setState({ initialState: false, errorMessage: false, isLoading: true })
36 |
37 | let FETCH_URL = `${API_URL}characters?${APIKEY_QUERYSTRING}&`
38 | FETCH_URL += textToSearch ? `nameStartsWith=${textToSearch}` : ''
39 |
40 | fetch(FETCH_URL)
41 | .then(res => res.json())
42 | .then(res => {
43 | console.log(res.data.results)
44 | this.setState({isLoading: false, results: res.data.results})
45 | })
46 | .catch(() => {
47 | this.setState({isLoading: false, results: []})
48 | })
49 | }
50 |
51 | render () {
52 | return (
53 |
54 |
55 |
59 |
60 | {this.state.initialState &&
61 |
64 | }
65 |
66 | {this.state.errorMessage &&
67 |
68 | Character name is not valid. Try another one!
69 |
70 | }
71 |
72 |
73 | {this.state.results.map((character) => {
74 | const image = `${character.thumbnail.path}.${character.thumbnail.extension}`
75 | const isFav = this.state.favs.find(id => character.id === id)
76 | return (
77 |
84 | )
85 | })}
86 |
87 |
88 | );
89 | }
90 | }
91 |
92 | export default App;
93 |
--------------------------------------------------------------------------------
/sesion-05/apps/src/marvel_done/Button.js:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import Spinner from 'react-spinkit'
3 |
4 | export default function Button (props) {
5 | let className = 'button'
6 | className += props.isLoading ? ' is-loading' : ''
7 |
8 | return (
9 |
10 | {props.isLoading ? : props.label}
11 |
12 | )
13 | }
14 |
--------------------------------------------------------------------------------
/sesion-05/apps/src/marvel_done/Card.css:
--------------------------------------------------------------------------------
1 | .card {
2 | border: 1px solid #ccc;
3 | border-radius: 3px;
4 | margin-bottom: 35px;
5 | padding: 15px;
6 | width: 32%;
7 | animation-duration: 1s;
8 | animation-fill-mode: both;
9 | animation-name: fadeInUp;
10 | }
11 |
12 | .card-title {
13 | color: #333;
14 | font-weight: 100;
15 | font-size: 30px;
16 | margin: 5px 0;
17 | }
18 |
19 | .card-description {
20 | font-size: 15px;
21 | font-weight: 200;
22 | }
23 |
24 | .card-image {
25 | width: 100%;
26 | height: auto;
27 | }
28 |
29 | @keyframes fadeInUp {
30 | from {
31 | opacity: 0;
32 | }
33 |
34 | to {
35 | opacity: 1;
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/sesion-05/apps/src/marvel_done/Card.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from 'react'
2 | import lscache from 'lscache'
3 |
4 | import './Card.css'
5 |
6 | import IconStarOutline from 'react-icons/lib/md/star-outline'
7 | import IconStartFull from 'react-icons/lib/md/star'
8 |
9 | export default class Card extends Component {
10 |
11 | constructor (...args) {
12 | super(...args)
13 | this.state = {
14 | isFav: this.props.isFav
15 | }
16 | }
17 |
18 | addFav () {
19 | this.setState({isFav: true})
20 | this.saveToLocalStorage(this.props.id)
21 | }
22 |
23 | removeFav () {
24 | this.setState({isFav: false})
25 | this.saveToLocalStorage(this.props.id)
26 | }
27 |
28 | saveToLocalStorage (value) {
29 | let favs = lscache.get('favs') || []
30 | const index = favs.indexOf(value)
31 | if (favs.length === 0 || index < 0) {
32 | favs.push(value)
33 | } else {
34 | favs.splice(index, 1)
35 | }
36 | lscache.set('favs', favs)
37 | }
38 |
39 | render () {
40 | return (
41 |
42 | {this.state.isFav
43 | ?
44 | :
45 | }
46 |
47 |
48 |
{this.props.title}
49 |
50 | {this.props.content}
51 |
52 |
53 |
54 | );
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/sesion-05/apps/src/marvel_done/Logo.js:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 |
3 | export default function Logo () {
4 | return (
5 |
6 |
7 |
8 | )
9 | }
10 |
--------------------------------------------------------------------------------
/sesion-05/apps/src/marvel_done/ResultMessage.js:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 |
3 | export default function ResultMessage (props) {
4 | const className = props.isCentered ? 'has-text-centered' : ''
5 | return (
6 |
7 | {props.label}
8 |
9 | )
10 | }
11 |
--------------------------------------------------------------------------------
/sesion-05/apps/src/marvel_done/Searcher.css:
--------------------------------------------------------------------------------
1 | .Searcher {
2 | align-items: center;
3 | display: flex;
4 | justify-content: center;
5 | }
6 |
7 | .Searcher input {
8 | border-right: 0;
9 | border: 1px solid #e23636;
10 | border-radius: 3px 0 0 3px;
11 | line-height: 35px;
12 | height: 35px;
13 | min-width: 200px;
14 | outline: 0;
15 | padding: 5px;
16 | }
17 |
18 | .Searcher button {
19 | background: #e23636;
20 | border: 1px solid #e23636;
21 | color: #fff;
22 | height: 35px;
23 | padding: 5px 10px;
24 | border-radius: 0 3px 3px 0;
25 | outline: 0;
26 | transition: background .3s ease;
27 | }
28 |
29 | .Searcher button:hover {
30 | background: red;
31 | }
32 |
33 | .Searcher button .circle:before {
34 | background-color: #fff;
35 | }
36 |
--------------------------------------------------------------------------------
/sesion-05/apps/src/marvel_done/Searcher.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from 'react'
2 | import Button from './Button.js'
3 |
4 | import './Searcher.css'
5 |
6 | export default class Searcher extends Component {
7 |
8 | constructor (...args) {
9 | super(...args)
10 | this.state = {
11 | textToSearch : ''
12 | }
13 | this.handleChangeText = this.handleChangeText.bind(this)
14 | this.handleSubmit = this.handleSubmit.bind(this)
15 | }
16 |
17 | handleChangeText (e) {
18 | const { value } = e.currentTarget
19 | this.setState({textToSearch: value})
20 | }
21 |
22 | handleSubmit (e) {
23 | e.preventDefault()
24 | this.props.onClickButton(this.state.textToSearch)
25 | }
26 |
27 | render () {
28 | return (
29 |
43 | )
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/sesion-05/apps/src/marvel_done/dummyData.js:
--------------------------------------------------------------------------------
1 | export default [{
2 | name: 'Iron Man',
3 | id: 1,
4 | description: 'Con una armadura roja muy poderosa, lanza rayos por las manos!',
5 | thumbnail: {
6 | path: 'https://s-media-cache-ak0.pinimg.com/originals/5b/26/ff/5b26ff29982e6bd0aa05870ad84e9e7a',
7 | extension: 'png'
8 | }
9 | }, {
10 | name: 'Hulk',
11 | id: 2,
12 | description: 'Es verde y tiene bastante mala leche',
13 | thumbnail: {
14 | path: 'http://img.lum.dolimg.com/v1/images/open-uri20150608-27674-1jdbpa8_be64ca1b',
15 | extension: 'png'
16 | }
17 | }, {
18 | name: 'Hulka',
19 | id: 3,
20 | description: 'Es verde y tiene bastante mala leche',
21 | thumbnail: {
22 | path: 'http://img.lum.dolimg.com/v1/images/open-uri20150608-27674-1jdbpa8_be64ca1b',
23 | extension: 'png'
24 | }
25 | }]
26 |
--------------------------------------------------------------------------------
/sesion-05/presentacion/css/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-05/presentacion/css/.DS_Store
--------------------------------------------------------------------------------
/sesion-05/presentacion/css/custom.css:
--------------------------------------------------------------------------------
1 | .reveal .backgrounds {
2 | background: url('../img/react-logo.png') no-repeat center center;
3 | background-size: cover;
4 | opacity: 0.05;
5 | }
6 |
7 | .reveal .footer {
8 | position: absolute;
9 | bottom: 42px;
10 | left: 10px;
11 | font-size: 16px;
12 | }
13 |
14 | .reveal .highlight {
15 | color: #09f;
16 | }
17 |
18 | .reveal .footer strong,
19 | .reveal .footer span,
20 | .reveal .footer img {
21 | display: inline-block;
22 | margin: 0 5px;
23 | vertical-align: middle;
24 | }
25 |
--------------------------------------------------------------------------------
/sesion-05/presentacion/css/print/pdf.css:
--------------------------------------------------------------------------------
1 | /**
2 | * This stylesheet is used to print reveal.js
3 | * presentations to PDF.
4 | *
5 | * https://github.com/hakimel/reveal.js#pdf-export
6 | */
7 |
8 | * {
9 | -webkit-print-color-adjust: exact;
10 | }
11 |
12 | body {
13 | margin: 0 auto !important;
14 | border: 0;
15 | padding: 0;
16 | float: none !important;
17 | overflow: visible;
18 | }
19 |
20 | html {
21 | width: 100%;
22 | height: 100%;
23 | overflow: visible;
24 | }
25 |
26 | /* Remove any elements not needed in print. */
27 | .nestedarrow,
28 | .reveal .controls,
29 | .reveal .progress,
30 | .reveal .playback,
31 | .reveal.overview,
32 | .fork-reveal,
33 | .share-reveal,
34 | .state-background {
35 | display: none !important;
36 | }
37 |
38 | h1, h2, h3, h4, h5, h6 {
39 | text-shadow: 0 0 0 #000 !important;
40 | }
41 |
42 | .reveal pre code {
43 | overflow: hidden !important;
44 | font-family: Courier, 'Courier New', monospace !important;
45 | }
46 |
47 | ul, ol, div, p {
48 | visibility: visible;
49 | position: static;
50 | width: auto;
51 | height: auto;
52 | display: block;
53 | overflow: visible;
54 | margin: auto;
55 | }
56 | .reveal {
57 | width: auto !important;
58 | height: auto !important;
59 | overflow: hidden !important;
60 | }
61 | .reveal .slides {
62 | position: static;
63 | width: 100%;
64 | height: auto;
65 |
66 | left: auto;
67 | top: auto;
68 | margin: 0 !important;
69 | padding: 0 !important;
70 |
71 | overflow: visible;
72 | display: block;
73 |
74 | -webkit-perspective: none;
75 | -moz-perspective: none;
76 | -ms-perspective: none;
77 | perspective: none;
78 |
79 | -webkit-perspective-origin: 50% 50%; /* there isn't a none/auto value but 50-50 is the default */
80 | -moz-perspective-origin: 50% 50%;
81 | -ms-perspective-origin: 50% 50%;
82 | perspective-origin: 50% 50%;
83 | }
84 |
85 | .reveal .slides section {
86 | page-break-after: always !important;
87 |
88 | visibility: visible !important;
89 | position: relative !important;
90 | display: block !important;
91 | position: relative !important;
92 |
93 | margin: 0 !important;
94 | padding: 0 !important;
95 | box-sizing: border-box !important;
96 | min-height: 1px;
97 |
98 | opacity: 1 !important;
99 |
100 | -webkit-transform-style: flat !important;
101 | -moz-transform-style: flat !important;
102 | -ms-transform-style: flat !important;
103 | transform-style: flat !important;
104 |
105 | -webkit-transform: none !important;
106 | -moz-transform: none !important;
107 | -ms-transform: none !important;
108 | transform: none !important;
109 | }
110 |
111 | .reveal section.stack {
112 | margin: 0 !important;
113 | padding: 0 !important;
114 | page-break-after: avoid !important;
115 | height: auto !important;
116 | min-height: auto !important;
117 | }
118 |
119 | .reveal img {
120 | box-shadow: none;
121 | }
122 |
123 | .reveal .roll {
124 | overflow: visible;
125 | line-height: 1em;
126 | }
127 |
128 | /* Slide backgrounds are placed inside of their slide when exporting to PDF */
129 | .reveal section .slide-background {
130 | display: block !important;
131 | position: absolute;
132 | top: 0;
133 | left: 0;
134 | width: 100%;
135 | z-index: -1;
136 | }
137 |
138 | /* All elements should be above the slide-background */
139 | .reveal section>* {
140 | position: relative;
141 | z-index: 1;
142 | }
143 |
144 | /* Display slide speaker notes when 'showNotes' is enabled */
145 | .reveal .speaker-notes-pdf {
146 | display: block;
147 | width: 100%;
148 | max-height: none;
149 | left: auto;
150 | top: auto;
151 | z-index: 100;
152 | }
153 |
154 | /* Display slide numbers when 'slideNumber' is enabled */
155 | .reveal .slide-number-pdf {
156 | display: block;
157 | position: absolute;
158 | font-size: 14px;
159 | }
160 |
161 |
--------------------------------------------------------------------------------
/sesion-05/presentacion/css/theme/README.md:
--------------------------------------------------------------------------------
1 | ## Dependencies
2 |
3 | Themes are written using Sass to keep things modular and reduce the need for repeated selectors across files. Make sure that you have the reveal.js development environment including the Grunt dependencies installed before proceding: https://github.com/hakimel/reveal.js#full-setup
4 |
5 | ## Creating a Theme
6 |
7 | To create your own theme, start by duplicating a ```.scss``` file in [/css/theme/source](https://github.com/hakimel/reveal.js/blob/master/css/theme/source). It will be automatically compiled by Grunt from Sass to CSS (see the [Gruntfile](https://github.com/hakimel/reveal.js/blob/master/Gruntfile.js)) when you run `grunt css-themes`.
8 |
9 | Each theme file does four things in the following order:
10 |
11 | 1. **Include [/css/theme/template/mixins.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/mixins.scss)**
12 | Shared utility functions.
13 |
14 | 2. **Include [/css/theme/template/settings.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/settings.scss)**
15 | Declares a set of custom variables that the template file (step 4) expects. Can be overridden in step 3.
16 |
17 | 3. **Override**
18 | This is where you override the default theme. Either by specifying variables (see [settings.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/settings.scss) for reference) or by adding any selectors and styles you please.
19 |
20 | 4. **Include [/css/theme/template/theme.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/theme.scss)**
21 | The template theme file which will generate final CSS output based on the currently defined variables.
22 |
--------------------------------------------------------------------------------
/sesion-05/presentacion/css/theme/source/beige.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * Beige theme for reveal.js.
3 | *
4 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
5 | */
6 |
7 |
8 | // Default mixins and settings -----------------
9 | @import "../template/mixins";
10 | @import "../template/settings";
11 | // ---------------------------------------------
12 |
13 |
14 |
15 | // Include theme-specific fonts
16 | @import url(../../lib/font/league-gothic/league-gothic.css);
17 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
18 |
19 |
20 | // Override theme settings (see ../template/settings.scss)
21 | $mainColor: #333;
22 | $headingColor: #333;
23 | $headingTextShadow: none;
24 | $backgroundColor: #f7f3de;
25 | $linkColor: #8b743d;
26 | $linkColorHover: lighten( $linkColor, 20% );
27 | $selectionBackgroundColor: rgba(79, 64, 28, 0.99);
28 | $heading1TextShadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 20px 20px rgba(0,0,0,.15);
29 |
30 | // Background generator
31 | @mixin bodyBackground() {
32 | @include radial-gradient( rgba(247,242,211,1), rgba(255,255,255,1) );
33 | }
34 |
35 |
36 |
37 | // Theme template ------------------------------
38 | @import "../template/theme";
39 | // ---------------------------------------------
--------------------------------------------------------------------------------
/sesion-05/presentacion/css/theme/source/black.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * Black theme for reveal.js. This is the opposite of the 'white' theme.
3 | *
4 | * By Hakim El Hattab, http://hakim.se
5 | */
6 |
7 |
8 | // Default mixins and settings -----------------
9 | @import "../template/mixins";
10 | @import "../template/settings";
11 | // ---------------------------------------------
12 |
13 |
14 | // Include theme-specific fonts
15 | @import url(../../lib/font/source-sans-pro/source-sans-pro.css);
16 |
17 |
18 | // Override theme settings (see ../template/settings.scss)
19 | $backgroundColor: #222;
20 |
21 | $mainColor: #fff;
22 | $headingColor: #fff;
23 |
24 | $mainFontSize: 38px;
25 | $mainFont: 'Source Sans Pro', Helvetica, sans-serif;
26 | $headingFont: 'Source Sans Pro', Helvetica, sans-serif;
27 | $headingTextShadow: none;
28 | $headingLetterSpacing: normal;
29 | $headingTextTransform: uppercase;
30 | $headingFontWeight: 600;
31 | $linkColor: #42affa;
32 | $linkColorHover: lighten( $linkColor, 15% );
33 | $selectionBackgroundColor: lighten( $linkColor, 25% );
34 |
35 | $heading1Size: 2.5em;
36 | $heading2Size: 1.6em;
37 | $heading3Size: 1.3em;
38 | $heading4Size: 1.0em;
39 |
40 | section.has-light-background {
41 | &, h1, h2, h3, h4, h5, h6 {
42 | color: #222;
43 | }
44 | }
45 |
46 |
47 | // Theme template ------------------------------
48 | @import "../template/theme";
49 | // ---------------------------------------------
--------------------------------------------------------------------------------
/sesion-05/presentacion/css/theme/source/blood.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * Blood theme for reveal.js
3 | * Author: Walther http://github.com/Walther
4 | *
5 | * Designed to be used with highlight.js theme
6 | * "monokai_sublime.css" available from
7 | * https://github.com/isagalaev/highlight.js/
8 | *
9 | * For other themes, change $codeBackground accordingly.
10 | *
11 | */
12 |
13 | // Default mixins and settings -----------------
14 | @import "../template/mixins";
15 | @import "../template/settings";
16 | // ---------------------------------------------
17 |
18 | // Include theme-specific fonts
19 |
20 | @import url(https://fonts.googleapis.com/css?family=Ubuntu:300,700,300italic,700italic);
21 |
22 | // Colors used in the theme
23 | $blood: #a23;
24 | $coal: #222;
25 | $codeBackground: #23241f;
26 |
27 | $backgroundColor: $coal;
28 |
29 | // Main text
30 | $mainFont: Ubuntu, 'sans-serif';
31 | $mainFontSize: 36px;
32 | $mainColor: #eee;
33 |
34 | // Headings
35 | $headingFont: Ubuntu, 'sans-serif';
36 | $headingTextShadow: 2px 2px 2px $coal;
37 |
38 | // h1 shadow, borrowed humbly from
39 | // (c) Default theme by Hakim El Hattab
40 | $heading1TextShadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 20px 20px rgba(0,0,0,.15);
41 |
42 | // Links
43 | $linkColor: $blood;
44 | $linkColorHover: lighten( $linkColor, 20% );
45 |
46 | // Text selection
47 | $selectionBackgroundColor: $blood;
48 | $selectionColor: #fff;
49 |
50 |
51 | // Theme template ------------------------------
52 | @import "../template/theme";
53 | // ---------------------------------------------
54 |
55 | // some overrides after theme template import
56 |
57 | .reveal p {
58 | font-weight: 300;
59 | text-shadow: 1px 1px $coal;
60 | }
61 |
62 | .reveal h1,
63 | .reveal h2,
64 | .reveal h3,
65 | .reveal h4,
66 | .reveal h5,
67 | .reveal h6 {
68 | font-weight: 700;
69 | }
70 |
71 | .reveal p code {
72 | background-color: $codeBackground;
73 | display: inline-block;
74 | border-radius: 7px;
75 | }
76 |
77 | .reveal small code {
78 | vertical-align: baseline;
79 | }
--------------------------------------------------------------------------------
/sesion-05/presentacion/css/theme/source/league.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * League theme for reveal.js.
3 | *
4 | * This was the default theme pre-3.0.0.
5 | *
6 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
7 | */
8 |
9 |
10 | // Default mixins and settings -----------------
11 | @import "../template/mixins";
12 | @import "../template/settings";
13 | // ---------------------------------------------
14 |
15 |
16 |
17 | // Include theme-specific fonts
18 | @import url(../../lib/font/league-gothic/league-gothic.css);
19 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
20 |
21 | // Override theme settings (see ../template/settings.scss)
22 | $headingTextShadow: 0px 0px 6px rgba(0,0,0,0.2);
23 | $heading1TextShadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 20px 20px rgba(0,0,0,.15);
24 |
25 | // Background generator
26 | @mixin bodyBackground() {
27 | @include radial-gradient( rgba(28,30,32,1), rgba(85,90,95,1) );
28 | }
29 |
30 |
31 |
32 | // Theme template ------------------------------
33 | @import "../template/theme";
34 | // ---------------------------------------------
--------------------------------------------------------------------------------
/sesion-05/presentacion/css/theme/source/moon.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * Solarized Dark theme for reveal.js.
3 | * Author: Achim Staebler
4 | */
5 |
6 |
7 | // Default mixins and settings -----------------
8 | @import "../template/mixins";
9 | @import "../template/settings";
10 | // ---------------------------------------------
11 |
12 |
13 |
14 | // Include theme-specific fonts
15 | @import url(../../lib/font/league-gothic/league-gothic.css);
16 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
17 |
18 | /**
19 | * Solarized colors by Ethan Schoonover
20 | */
21 | html * {
22 | color-profile: sRGB;
23 | rendering-intent: auto;
24 | }
25 |
26 | // Solarized colors
27 | $base03: #002b36;
28 | $base02: #073642;
29 | $base01: #586e75;
30 | $base00: #657b83;
31 | $base0: #839496;
32 | $base1: #93a1a1;
33 | $base2: #eee8d5;
34 | $base3: #fdf6e3;
35 | $yellow: #b58900;
36 | $orange: #cb4b16;
37 | $red: #dc322f;
38 | $magenta: #d33682;
39 | $violet: #6c71c4;
40 | $blue: #268bd2;
41 | $cyan: #2aa198;
42 | $green: #859900;
43 |
44 | // Override theme settings (see ../template/settings.scss)
45 | $mainColor: $base1;
46 | $headingColor: $base2;
47 | $headingTextShadow: none;
48 | $backgroundColor: $base03;
49 | $linkColor: $blue;
50 | $linkColorHover: lighten( $linkColor, 20% );
51 | $selectionBackgroundColor: $magenta;
52 |
53 |
54 |
55 | // Theme template ------------------------------
56 | @import "../template/theme";
57 | // ---------------------------------------------
58 |
--------------------------------------------------------------------------------
/sesion-05/presentacion/css/theme/source/night.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * Black theme for reveal.js.
3 | *
4 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
5 | */
6 |
7 |
8 | // Default mixins and settings -----------------
9 | @import "../template/mixins";
10 | @import "../template/settings";
11 | // ---------------------------------------------
12 |
13 |
14 | // Include theme-specific fonts
15 | @import url(https://fonts.googleapis.com/css?family=Montserrat:700);
16 | @import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic,700italic);
17 |
18 |
19 | // Override theme settings (see ../template/settings.scss)
20 | $backgroundColor: #111;
21 |
22 | $mainFont: 'Open Sans', sans-serif;
23 | $linkColor: #e7ad52;
24 | $linkColorHover: lighten( $linkColor, 20% );
25 | $headingFont: 'Montserrat', Impact, sans-serif;
26 | $headingTextShadow: none;
27 | $headingLetterSpacing: -0.03em;
28 | $headingTextTransform: none;
29 | $selectionBackgroundColor: #e7ad52;
30 | $mainFontSize: 30px;
31 |
32 |
33 | // Theme template ------------------------------
34 | @import "../template/theme";
35 | // ---------------------------------------------
--------------------------------------------------------------------------------
/sesion-05/presentacion/css/theme/source/serif.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * A simple theme for reveal.js presentations, similar
3 | * to the default theme. The accent color is brown.
4 | *
5 | * This theme is Copyright (C) 2012-2013 Owen Versteeg, http://owenversteeg.com - it is MIT licensed.
6 | */
7 |
8 |
9 | // Default mixins and settings -----------------
10 | @import "../template/mixins";
11 | @import "../template/settings";
12 | // ---------------------------------------------
13 |
14 |
15 |
16 | // Override theme settings (see ../template/settings.scss)
17 | $mainFont: 'Palatino Linotype', 'Book Antiqua', Palatino, FreeSerif, serif;
18 | $mainColor: #000;
19 | $headingFont: 'Palatino Linotype', 'Book Antiqua', Palatino, FreeSerif, serif;
20 | $headingColor: #383D3D;
21 | $headingTextShadow: none;
22 | $headingTextTransform: none;
23 | $backgroundColor: #F0F1EB;
24 | $linkColor: #51483D;
25 | $linkColorHover: lighten( $linkColor, 20% );
26 | $selectionBackgroundColor: #26351C;
27 |
28 | .reveal a {
29 | line-height: 1.3em;
30 | }
31 |
32 |
33 | // Theme template ------------------------------
34 | @import "../template/theme";
35 | // ---------------------------------------------
36 |
--------------------------------------------------------------------------------
/sesion-05/presentacion/css/theme/source/simple.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * A simple theme for reveal.js presentations, similar
3 | * to the default theme. The accent color is darkblue.
4 | *
5 | * This theme is Copyright (C) 2012 Owen Versteeg, https://github.com/StereotypicalApps. It is MIT licensed.
6 | * reveal.js is Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
7 | */
8 |
9 |
10 | // Default mixins and settings -----------------
11 | @import "../template/mixins";
12 | @import "../template/settings";
13 | // ---------------------------------------------
14 |
15 |
16 |
17 | // Include theme-specific fonts
18 | @import url(https://fonts.googleapis.com/css?family=News+Cycle:400,700);
19 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
20 |
21 |
22 | // Override theme settings (see ../template/settings.scss)
23 | $mainFont: 'Lato', sans-serif;
24 | $mainColor: #000;
25 | $headingFont: 'News Cycle', Impact, sans-serif;
26 | $headingColor: #000;
27 | $headingTextShadow: none;
28 | $headingTextTransform: none;
29 | $backgroundColor: #fff;
30 | $linkColor: #00008B;
31 | $linkColorHover: lighten( $linkColor, 20% );
32 | $selectionBackgroundColor: rgba(0, 0, 0, 0.99);
33 |
34 |
35 |
36 | // Theme template ------------------------------
37 | @import "../template/theme";
38 | // ---------------------------------------------
--------------------------------------------------------------------------------
/sesion-05/presentacion/css/theme/source/sky.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * Sky theme for reveal.js.
3 | *
4 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
5 | */
6 |
7 |
8 | // Default mixins and settings -----------------
9 | @import "../template/mixins";
10 | @import "../template/settings";
11 | // ---------------------------------------------
12 |
13 |
14 |
15 | // Include theme-specific fonts
16 | @import url(https://fonts.googleapis.com/css?family=Quicksand:400,700,400italic,700italic);
17 | @import url(https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700);
18 |
19 |
20 | // Override theme settings (see ../template/settings.scss)
21 | $mainFont: 'Open Sans', sans-serif;
22 | $mainColor: #333;
23 | $headingFont: 'Quicksand', sans-serif;
24 | $headingColor: #333;
25 | $headingLetterSpacing: -0.08em;
26 | $headingTextShadow: none;
27 | $backgroundColor: #f7fbfc;
28 | $linkColor: #3b759e;
29 | $linkColorHover: lighten( $linkColor, 20% );
30 | $selectionBackgroundColor: #134674;
31 |
32 | // Fix links so they are not cut off
33 | .reveal a {
34 | line-height: 1.3em;
35 | }
36 |
37 | // Background generator
38 | @mixin bodyBackground() {
39 | @include radial-gradient( #add9e4, #f7fbfc );
40 | }
41 |
42 |
43 |
44 | // Theme template ------------------------------
45 | @import "../template/theme";
46 | // ---------------------------------------------
47 |
--------------------------------------------------------------------------------
/sesion-05/presentacion/css/theme/source/solarized.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * Solarized Light theme for reveal.js.
3 | * Author: Achim Staebler
4 | */
5 |
6 |
7 | // Default mixins and settings -----------------
8 | @import "../template/mixins";
9 | @import "../template/settings";
10 | // ---------------------------------------------
11 |
12 |
13 |
14 | // Include theme-specific fonts
15 | @import url(../../lib/font/league-gothic/league-gothic.css);
16 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
17 |
18 |
19 | /**
20 | * Solarized colors by Ethan Schoonover
21 | */
22 | html * {
23 | color-profile: sRGB;
24 | rendering-intent: auto;
25 | }
26 |
27 | // Solarized colors
28 | $base03: #002b36;
29 | $base02: #073642;
30 | $base01: #586e75;
31 | $base00: #657b83;
32 | $base0: #839496;
33 | $base1: #93a1a1;
34 | $base2: #eee8d5;
35 | $base3: #fdf6e3;
36 | $yellow: #b58900;
37 | $orange: #cb4b16;
38 | $red: #dc322f;
39 | $magenta: #d33682;
40 | $violet: #6c71c4;
41 | $blue: #268bd2;
42 | $cyan: #2aa198;
43 | $green: #859900;
44 |
45 | // Override theme settings (see ../template/settings.scss)
46 | $mainColor: $base00;
47 | $headingColor: $base01;
48 | $headingTextShadow: none;
49 | $backgroundColor: $base3;
50 | $linkColor: $blue;
51 | $linkColorHover: lighten( $linkColor, 20% );
52 | $selectionBackgroundColor: $magenta;
53 |
54 | // Background generator
55 | // @mixin bodyBackground() {
56 | // @include radial-gradient( rgba($base3,1), rgba(lighten($base3, 20%),1) );
57 | // }
58 |
59 |
60 |
61 | // Theme template ------------------------------
62 | @import "../template/theme";
63 | // ---------------------------------------------
64 |
--------------------------------------------------------------------------------
/sesion-05/presentacion/css/theme/source/white.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * White theme for reveal.js. This is the opposite of the 'black' theme.
3 | *
4 | * By Hakim El Hattab, http://hakim.se
5 | */
6 |
7 |
8 | // Default mixins and settings -----------------
9 | @import "../template/mixins";
10 | @import "../template/settings";
11 | // ---------------------------------------------
12 |
13 |
14 | // Include theme-specific fonts
15 | @import url(../../lib/font/source-sans-pro/source-sans-pro.css);
16 |
17 |
18 | // Override theme settings (see ../template/settings.scss)
19 | $backgroundColor: #fff;
20 |
21 | $mainColor: #222;
22 | $headingColor: #222;
23 |
24 | $mainFontSize: 38px;
25 | $mainFont: 'Source Sans Pro', Helvetica, sans-serif;
26 | $headingFont: 'Source Sans Pro', Helvetica, sans-serif;
27 | $headingTextShadow: none;
28 | $headingLetterSpacing: normal;
29 | $headingTextTransform: uppercase;
30 | $headingFontWeight: 600;
31 | $linkColor: #2a76dd;
32 | $linkColorHover: lighten( $linkColor, 15% );
33 | $selectionBackgroundColor: lighten( $linkColor, 25% );
34 |
35 | $heading1Size: 2.5em;
36 | $heading2Size: 1.6em;
37 | $heading3Size: 1.3em;
38 | $heading4Size: 1.0em;
39 |
40 | section.has-dark-background {
41 | &, h1, h2, h3, h4, h5, h6 {
42 | color: #fff;
43 | }
44 | }
45 |
46 |
47 | // Theme template ------------------------------
48 | @import "../template/theme";
49 | // ---------------------------------------------
--------------------------------------------------------------------------------
/sesion-05/presentacion/css/theme/template/mixins.scss:
--------------------------------------------------------------------------------
1 | @mixin vertical-gradient( $top, $bottom ) {
2 | background: $top;
3 | background: -moz-linear-gradient( top, $top 0%, $bottom 100% );
4 | background: -webkit-gradient( linear, left top, left bottom, color-stop(0%,$top), color-stop(100%,$bottom) );
5 | background: -webkit-linear-gradient( top, $top 0%, $bottom 100% );
6 | background: -o-linear-gradient( top, $top 0%, $bottom 100% );
7 | background: -ms-linear-gradient( top, $top 0%, $bottom 100% );
8 | background: linear-gradient( top, $top 0%, $bottom 100% );
9 | }
10 |
11 | @mixin horizontal-gradient( $top, $bottom ) {
12 | background: $top;
13 | background: -moz-linear-gradient( left, $top 0%, $bottom 100% );
14 | background: -webkit-gradient( linear, left top, right top, color-stop(0%,$top), color-stop(100%,$bottom) );
15 | background: -webkit-linear-gradient( left, $top 0%, $bottom 100% );
16 | background: -o-linear-gradient( left, $top 0%, $bottom 100% );
17 | background: -ms-linear-gradient( left, $top 0%, $bottom 100% );
18 | background: linear-gradient( left, $top 0%, $bottom 100% );
19 | }
20 |
21 | @mixin radial-gradient( $outer, $inner, $type: circle ) {
22 | background: $outer;
23 | background: -moz-radial-gradient( center, $type cover, $inner 0%, $outer 100% );
24 | background: -webkit-gradient( radial, center center, 0px, center center, 100%, color-stop(0%,$inner), color-stop(100%,$outer) );
25 | background: -webkit-radial-gradient( center, $type cover, $inner 0%, $outer 100% );
26 | background: -o-radial-gradient( center, $type cover, $inner 0%, $outer 100% );
27 | background: -ms-radial-gradient( center, $type cover, $inner 0%, $outer 100% );
28 | background: radial-gradient( center, $type cover, $inner 0%, $outer 100% );
29 | }
--------------------------------------------------------------------------------
/sesion-05/presentacion/css/theme/template/settings.scss:
--------------------------------------------------------------------------------
1 | // Base settings for all themes that can optionally be
2 | // overridden by the super-theme
3 |
4 | // Background of the presentation
5 | $backgroundColor: #2b2b2b;
6 |
7 | // Primary/body text
8 | $mainFont: 'Lato', sans-serif;
9 | $mainFontSize: 36px;
10 | $mainColor: #eee;
11 |
12 | // Vertical spacing between blocks of text
13 | $blockMargin: 20px;
14 |
15 | // Headings
16 | $headingMargin: 0 0 $blockMargin 0;
17 | $headingFont: 'League Gothic', Impact, sans-serif;
18 | $headingColor: #eee;
19 | $headingLineHeight: 1.2;
20 | $headingLetterSpacing: normal;
21 | $headingTextTransform: uppercase;
22 | $headingTextShadow: none;
23 | $headingFontWeight: normal;
24 | $heading1TextShadow: $headingTextShadow;
25 |
26 | $heading1Size: 3.77em;
27 | $heading2Size: 2.11em;
28 | $heading3Size: 1.55em;
29 | $heading4Size: 1.00em;
30 |
31 | // Links and actions
32 | $linkColor: #13DAEC;
33 | $linkColorHover: lighten( $linkColor, 20% );
34 |
35 | // Text selection
36 | $selectionBackgroundColor: #FF5E99;
37 | $selectionColor: #fff;
38 |
39 | // Generates the presentation background, can be overridden
40 | // to return a background image or gradient
41 | @mixin bodyBackground() {
42 | background: $backgroundColor;
43 | }
--------------------------------------------------------------------------------
/sesion-05/presentacion/img/1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-05/presentacion/img/1.jpg
--------------------------------------------------------------------------------
/sesion-05/presentacion/img/cat-box.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-05/presentacion/img/cat-box.gif
--------------------------------------------------------------------------------
/sesion-05/presentacion/img/cat-keyboard-2.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-05/presentacion/img/cat-keyboard-2.gif
--------------------------------------------------------------------------------
/sesion-05/presentacion/img/cat-keyboard-3.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-05/presentacion/img/cat-keyboard-3.gif
--------------------------------------------------------------------------------
/sesion-05/presentacion/img/cat-keyboard-4.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-05/presentacion/img/cat-keyboard-4.gif
--------------------------------------------------------------------------------
/sesion-05/presentacion/img/cat-keyboard.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-05/presentacion/img/cat-keyboard.gif
--------------------------------------------------------------------------------
/sesion-05/presentacion/img/dynamic.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-05/presentacion/img/dynamic.gif
--------------------------------------------------------------------------------
/sesion-05/presentacion/img/inception.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-05/presentacion/img/inception.gif
--------------------------------------------------------------------------------
/sesion-05/presentacion/img/life1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-05/presentacion/img/life1.png
--------------------------------------------------------------------------------
/sesion-05/presentacion/img/life2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-05/presentacion/img/life2.png
--------------------------------------------------------------------------------
/sesion-05/presentacion/img/life3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-05/presentacion/img/life3.png
--------------------------------------------------------------------------------
/sesion-05/presentacion/img/life4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-05/presentacion/img/life4.png
--------------------------------------------------------------------------------
/sesion-05/presentacion/img/logo-fotocasa.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-05/presentacion/img/logo-fotocasa.png
--------------------------------------------------------------------------------
/sesion-05/presentacion/img/miduga.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-05/presentacion/img/miduga.png
--------------------------------------------------------------------------------
/sesion-05/presentacion/img/react-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-05/presentacion/img/react-logo.png
--------------------------------------------------------------------------------
/sesion-05/presentacion/img/uiku-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-05/presentacion/img/uiku-logo.png
--------------------------------------------------------------------------------
/sesion-05/presentacion/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Slides: Sesión 05 ReactJS
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
21 |
22 |
70 |
71 |
72 |
73 |
74 |
88 |
--------------------------------------------------------------------------------
/sesion-05/presentacion/lib/css/zenburn.css:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Zenburn style from voldmar.ru (c) Vladimir Epifanov
4 | based on dark.css by Ivan Sagalaev
5 |
6 | */
7 |
8 | .hljs {
9 | display: block;
10 | overflow-x: auto;
11 | padding: 0.5em;
12 | background: #3f3f3f;
13 | color: #dcdcdc;
14 | }
15 |
16 | .hljs-keyword,
17 | .hljs-selector-tag,
18 | .hljs-tag {
19 | color: #e3ceab;
20 | }
21 |
22 | .hljs-template-tag {
23 | color: #dcdcdc;
24 | }
25 |
26 | .hljs-number {
27 | color: #8cd0d3;
28 | }
29 |
30 | .hljs-variable,
31 | .hljs-template-variable,
32 | .hljs-attribute {
33 | color: #efdcbc;
34 | }
35 |
36 | .hljs-literal {
37 | color: #efefaf;
38 | }
39 |
40 | .hljs-subst {
41 | color: #8f8f8f;
42 | }
43 |
44 | .hljs-title,
45 | .hljs-name,
46 | .hljs-selector-id,
47 | .hljs-selector-class,
48 | .hljs-section,
49 | .hljs-type {
50 | color: #efef8f;
51 | }
52 |
53 | .hljs-symbol,
54 | .hljs-bullet,
55 | .hljs-link {
56 | color: #dca3a3;
57 | }
58 |
59 | .hljs-deletion,
60 | .hljs-string,
61 | .hljs-built_in,
62 | .hljs-builtin-name {
63 | color: #cc9393;
64 | }
65 |
66 | .hljs-addition,
67 | .hljs-comment,
68 | .hljs-quote,
69 | .hljs-meta {
70 | color: #7f9f7f;
71 | }
72 |
73 |
74 | .hljs-emphasis {
75 | font-style: italic;
76 | }
77 |
78 | .hljs-strong {
79 | font-weight: bold;
80 | }
81 |
--------------------------------------------------------------------------------
/sesion-05/presentacion/lib/font/league-gothic/LICENSE:
--------------------------------------------------------------------------------
1 | SIL Open Font License (OFL)
2 | http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL
3 |
--------------------------------------------------------------------------------
/sesion-05/presentacion/lib/font/league-gothic/league-gothic.css:
--------------------------------------------------------------------------------
1 | @font-face {
2 | font-family: 'League Gothic';
3 | src: url('league-gothic.eot');
4 | src: url('league-gothic.eot?#iefix') format('embedded-opentype'),
5 | url('league-gothic.woff') format('woff'),
6 | url('league-gothic.ttf') format('truetype');
7 |
8 | font-weight: normal;
9 | font-style: normal;
10 | }
--------------------------------------------------------------------------------
/sesion-05/presentacion/lib/font/league-gothic/league-gothic.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-05/presentacion/lib/font/league-gothic/league-gothic.eot
--------------------------------------------------------------------------------
/sesion-05/presentacion/lib/font/league-gothic/league-gothic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-05/presentacion/lib/font/league-gothic/league-gothic.ttf
--------------------------------------------------------------------------------
/sesion-05/presentacion/lib/font/league-gothic/league-gothic.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-05/presentacion/lib/font/league-gothic/league-gothic.woff
--------------------------------------------------------------------------------
/sesion-05/presentacion/lib/font/source-sans-pro/LICENSE:
--------------------------------------------------------------------------------
1 | SIL Open Font License
2 |
3 | Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name ‘Source’. All Rights Reserved. Source is a trademark of Adobe Systems Incorporated in the United States and/or other countries.
4 |
5 | This Font Software is licensed under the SIL Open Font License, Version 1.1.
6 | This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
7 |
8 | —————————————————————————————-
9 | SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10 | —————————————————————————————-
11 |
12 | PREAMBLE
13 | The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others.
14 |
15 | The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives.
16 |
17 | DEFINITIONS
18 | “Font Software” refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation.
19 |
20 | “Reserved Font Name” refers to any names specified as such after the copyright statement(s).
21 |
22 | “Original Version” refers to the collection of Font Software components as distributed by the Copyright Holder(s).
23 |
24 | “Modified Version” refers to any derivative made by adding to, deleting, or substituting—in part or in whole—any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment.
25 |
26 | “Author” refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software.
27 |
28 | PERMISSION & CONDITIONS
29 | Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:
30 |
31 | 1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself.
32 |
33 | 2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user.
34 |
35 | 3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users.
36 |
37 | 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission.
38 |
39 | 5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software.
40 |
41 | TERMINATION
42 | This license becomes null and void if any of the above conditions are not met.
43 |
44 | DISCLAIMER
45 | THE FONT SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
--------------------------------------------------------------------------------
/sesion-05/presentacion/lib/font/source-sans-pro/source-sans-pro-italic.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-05/presentacion/lib/font/source-sans-pro/source-sans-pro-italic.eot
--------------------------------------------------------------------------------
/sesion-05/presentacion/lib/font/source-sans-pro/source-sans-pro-italic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-05/presentacion/lib/font/source-sans-pro/source-sans-pro-italic.ttf
--------------------------------------------------------------------------------
/sesion-05/presentacion/lib/font/source-sans-pro/source-sans-pro-italic.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-05/presentacion/lib/font/source-sans-pro/source-sans-pro-italic.woff
--------------------------------------------------------------------------------
/sesion-05/presentacion/lib/font/source-sans-pro/source-sans-pro-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-05/presentacion/lib/font/source-sans-pro/source-sans-pro-regular.eot
--------------------------------------------------------------------------------
/sesion-05/presentacion/lib/font/source-sans-pro/source-sans-pro-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-05/presentacion/lib/font/source-sans-pro/source-sans-pro-regular.ttf
--------------------------------------------------------------------------------
/sesion-05/presentacion/lib/font/source-sans-pro/source-sans-pro-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-05/presentacion/lib/font/source-sans-pro/source-sans-pro-regular.woff
--------------------------------------------------------------------------------
/sesion-05/presentacion/lib/font/source-sans-pro/source-sans-pro-semibold.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-05/presentacion/lib/font/source-sans-pro/source-sans-pro-semibold.eot
--------------------------------------------------------------------------------
/sesion-05/presentacion/lib/font/source-sans-pro/source-sans-pro-semibold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-05/presentacion/lib/font/source-sans-pro/source-sans-pro-semibold.ttf
--------------------------------------------------------------------------------
/sesion-05/presentacion/lib/font/source-sans-pro/source-sans-pro-semibold.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-05/presentacion/lib/font/source-sans-pro/source-sans-pro-semibold.woff
--------------------------------------------------------------------------------
/sesion-05/presentacion/lib/font/source-sans-pro/source-sans-pro-semibolditalic.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-05/presentacion/lib/font/source-sans-pro/source-sans-pro-semibolditalic.eot
--------------------------------------------------------------------------------
/sesion-05/presentacion/lib/font/source-sans-pro/source-sans-pro-semibolditalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-05/presentacion/lib/font/source-sans-pro/source-sans-pro-semibolditalic.ttf
--------------------------------------------------------------------------------
/sesion-05/presentacion/lib/font/source-sans-pro/source-sans-pro-semibolditalic.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-05/presentacion/lib/font/source-sans-pro/source-sans-pro-semibolditalic.woff
--------------------------------------------------------------------------------
/sesion-05/presentacion/lib/font/source-sans-pro/source-sans-pro.css:
--------------------------------------------------------------------------------
1 | @font-face {
2 | font-family: 'Source Sans Pro';
3 | src: url('source-sans-pro-regular.eot');
4 | src: url('source-sans-pro-regular.eot?#iefix') format('embedded-opentype'),
5 | url('source-sans-pro-regular.woff') format('woff'),
6 | url('source-sans-pro-regular.ttf') format('truetype');
7 | font-weight: normal;
8 | font-style: normal;
9 | }
10 |
11 | @font-face {
12 | font-family: 'Source Sans Pro';
13 | src: url('source-sans-pro-italic.eot');
14 | src: url('source-sans-pro-italic.eot?#iefix') format('embedded-opentype'),
15 | url('source-sans-pro-italic.woff') format('woff'),
16 | url('source-sans-pro-italic.ttf') format('truetype');
17 | font-weight: normal;
18 | font-style: italic;
19 | }
20 |
21 | @font-face {
22 | font-family: 'Source Sans Pro';
23 | src: url('source-sans-pro-semibold.eot');
24 | src: url('source-sans-pro-semibold.eot?#iefix') format('embedded-opentype'),
25 | url('source-sans-pro-semibold.woff') format('woff'),
26 | url('source-sans-pro-semibold.ttf') format('truetype');
27 | font-weight: 600;
28 | font-style: normal;
29 | }
30 |
31 | @font-face {
32 | font-family: 'Source Sans Pro';
33 | src: url('source-sans-pro-semibolditalic.eot');
34 | src: url('source-sans-pro-semibolditalic.eot?#iefix') format('embedded-opentype'),
35 | url('source-sans-pro-semibolditalic.woff') format('woff'),
36 | url('source-sans-pro-semibolditalic.ttf') format('truetype');
37 | font-weight: 600;
38 | font-style: italic;
39 | }
--------------------------------------------------------------------------------
/sesion-05/presentacion/lib/js/classList.js:
--------------------------------------------------------------------------------
1 | /*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js*/
2 | if(typeof document!=="undefined"&&!("classList" in document.createElement("a"))){(function(j){var a="classList",f="prototype",m=(j.HTMLElement||j.Element)[f],b=Object,k=String[f].trim||function(){return this.replace(/^\s+|\s+$/g,"")},c=Array[f].indexOf||function(q){var p=0,o=this.length;for(;p
2 |
3 |
4 |
5 |
6 |
7 | reveal.js - Markdown Demo
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
37 |
38 |
39 |
55 |
56 |
57 |
70 |
71 |
72 |
78 |
79 |
80 |
87 |
88 |
89 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
127 |
128 |
129 |
130 |
--------------------------------------------------------------------------------
/sesion-05/presentacion/plugin/markdown/example.md:
--------------------------------------------------------------------------------
1 | # Markdown Demo
2 |
3 |
4 |
5 | ## External 1.1
6 |
7 | Content 1.1
8 |
9 | Note: This will only appear in the speaker notes window.
10 |
11 |
12 | ## External 1.2
13 |
14 | Content 1.2
15 |
16 |
17 |
18 | ## External 2
19 |
20 | Content 2.1
21 |
22 |
23 |
24 | ## External 3.1
25 |
26 | Content 3.1
27 |
28 |
29 | ## External 3.2
30 |
31 | Content 3.2
32 |
--------------------------------------------------------------------------------
/sesion-05/presentacion/plugin/math/math.js:
--------------------------------------------------------------------------------
1 | /**
2 | * A plugin which enables rendering of math equations inside
3 | * of reveal.js slides. Essentially a thin wrapper for MathJax.
4 | *
5 | * @author Hakim El Hattab
6 | */
7 | var RevealMath = window.RevealMath || (function(){
8 |
9 | var options = Reveal.getConfig().math || {};
10 | options.mathjax = options.mathjax || 'https://cdn.mathjax.org/mathjax/latest/MathJax.js';
11 | options.config = options.config || 'TeX-AMS_HTML-full';
12 |
13 | loadScript( options.mathjax + '?config=' + options.config, function() {
14 |
15 | MathJax.Hub.Config({
16 | messageStyle: 'none',
17 | tex2jax: {
18 | inlineMath: [['$','$'],['\\(','\\)']] ,
19 | skipTags: ['script','noscript','style','textarea','pre']
20 | },
21 | skipStartupTypeset: true
22 | });
23 |
24 | // Typeset followed by an immediate reveal.js layout since
25 | // the typesetting process could affect slide height
26 | MathJax.Hub.Queue( [ 'Typeset', MathJax.Hub ] );
27 | MathJax.Hub.Queue( Reveal.layout );
28 |
29 | // Reprocess equations in slides when they turn visible
30 | Reveal.addEventListener( 'slidechanged', function( event ) {
31 |
32 | MathJax.Hub.Queue( [ 'Typeset', MathJax.Hub, event.currentSlide ] );
33 |
34 | } );
35 |
36 | } );
37 |
38 | function loadScript( url, callback ) {
39 |
40 | var head = document.querySelector( 'head' );
41 | var script = document.createElement( 'script' );
42 | script.type = 'text/javascript';
43 | script.src = url;
44 |
45 | // Wrapper for callback to make sure it only fires once
46 | var finish = function() {
47 | if( typeof callback === 'function' ) {
48 | callback.call();
49 | callback = null;
50 | }
51 | }
52 |
53 | script.onload = finish;
54 |
55 | // IE
56 | script.onreadystatechange = function() {
57 | if ( this.readyState === 'loaded' ) {
58 | finish();
59 | }
60 | }
61 |
62 | // Normal browsers
63 | head.appendChild( script );
64 |
65 | }
66 |
67 | })();
68 |
--------------------------------------------------------------------------------
/sesion-05/presentacion/plugin/multiplex/client.js:
--------------------------------------------------------------------------------
1 | (function() {
2 | var multiplex = Reveal.getConfig().multiplex;
3 | var socketId = multiplex.id;
4 | var socket = io.connect(multiplex.url);
5 |
6 | socket.on(multiplex.id, function(data) {
7 | // ignore data from sockets that aren't ours
8 | if (data.socketId !== socketId) { return; }
9 | if( window.location.host === 'localhost:1947' ) return;
10 |
11 | Reveal.setState(data.state);
12 | });
13 | }());
14 |
--------------------------------------------------------------------------------
/sesion-05/presentacion/plugin/multiplex/index.js:
--------------------------------------------------------------------------------
1 | var http = require('http');
2 | var express = require('express');
3 | var fs = require('fs');
4 | var io = require('socket.io');
5 | var crypto = require('crypto');
6 |
7 | var app = express();
8 | var staticDir = express.static;
9 | var server = http.createServer(app);
10 |
11 | io = io(server);
12 |
13 | var opts = {
14 | port: process.env.PORT || 1948,
15 | baseDir : __dirname + '/../../'
16 | };
17 |
18 | io.on( 'connection', function( socket ) {
19 | socket.on('multiplex-statechanged', function(data) {
20 | if (typeof data.secret == 'undefined' || data.secret == null || data.secret === '') return;
21 | if (createHash(data.secret) === data.socketId) {
22 | data.secret = null;
23 | socket.broadcast.emit(data.socketId, data);
24 | };
25 | });
26 | });
27 |
28 | [ 'css', 'js', 'plugin', 'lib' ].forEach(function(dir) {
29 | app.use('/' + dir, staticDir(opts.baseDir + dir));
30 | });
31 |
32 | app.get("/", function(req, res) {
33 | res.writeHead(200, {'Content-Type': 'text/html'});
34 |
35 | var stream = fs.createReadStream(opts.baseDir + '/index.html');
36 | stream.on('error', function( error ) {
37 | res.write('reveal.js multiplex server. Generate token ');
38 | res.end();
39 | });
40 | stream.on('readable', function() {
41 | stream.pipe(res);
42 | });
43 | });
44 |
45 | app.get("/token", function(req,res) {
46 | var ts = new Date().getTime();
47 | var rand = Math.floor(Math.random()*9999999);
48 | var secret = ts.toString() + rand.toString();
49 | res.send({secret: secret, socketId: createHash(secret)});
50 | });
51 |
52 | var createHash = function(secret) {
53 | var cipher = crypto.createCipher('blowfish', secret);
54 | return(cipher.final('hex'));
55 | };
56 |
57 | // Actually listen
58 | server.listen( opts.port || null );
59 |
60 | var brown = '\033[33m',
61 | green = '\033[32m',
62 | reset = '\033[0m';
63 |
64 | console.log( brown + "reveal.js:" + reset + " Multiplex running on port " + green + opts.port + reset );
--------------------------------------------------------------------------------
/sesion-05/presentacion/plugin/multiplex/master.js:
--------------------------------------------------------------------------------
1 | (function() {
2 |
3 | // Don't emit events from inside of notes windows
4 | if ( window.location.search.match( /receiver/gi ) ) { return; }
5 |
6 | var multiplex = Reveal.getConfig().multiplex;
7 |
8 | var socket = io.connect( multiplex.url );
9 |
10 | function post() {
11 |
12 | var messageData = {
13 | state: Reveal.getState(),
14 | secret: multiplex.secret,
15 | socketId: multiplex.id
16 | };
17 |
18 | socket.emit( 'multiplex-statechanged', messageData );
19 |
20 | };
21 |
22 | // Monitor events that trigger a change in state
23 | Reveal.addEventListener( 'slidechanged', post );
24 | Reveal.addEventListener( 'fragmentshown', post );
25 | Reveal.addEventListener( 'fragmenthidden', post );
26 | Reveal.addEventListener( 'overviewhidden', post );
27 | Reveal.addEventListener( 'overviewshown', post );
28 | Reveal.addEventListener( 'paused', post );
29 | Reveal.addEventListener( 'resumed', post );
30 |
31 | }());
--------------------------------------------------------------------------------
/sesion-05/presentacion/plugin/multiplex/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "reveal-js-multiplex",
3 | "version": "1.0.0",
4 | "description": "reveal.js multiplex server",
5 | "homepage": "http://lab.hakim.se/reveal-js",
6 | "scripts": {
7 | "start": "node index.js"
8 | },
9 | "engines": {
10 | "node": "~4.1.1"
11 | },
12 | "dependencies": {
13 | "express": "~4.13.3",
14 | "grunt-cli": "~0.1.13",
15 | "mustache": "~2.2.1",
16 | "socket.io": "~1.3.7"
17 | },
18 | "license": "MIT"
19 | }
20 |
--------------------------------------------------------------------------------
/sesion-05/presentacion/plugin/notes-server/client.js:
--------------------------------------------------------------------------------
1 | (function() {
2 |
3 | // don't emit events from inside the previews themselves
4 | if( window.location.search.match( /receiver/gi ) ) { return; }
5 |
6 | var socket = io.connect( window.location.origin ),
7 | socketId = Math.random().toString().slice( 2 );
8 |
9 | console.log( 'View slide notes at ' + window.location.origin + '/notes/' + socketId );
10 |
11 | window.open( window.location.origin + '/notes/' + socketId, 'notes-' + socketId );
12 |
13 | /**
14 | * Posts the current slide data to the notes window
15 | */
16 | function post() {
17 |
18 | var slideElement = Reveal.getCurrentSlide(),
19 | notesElement = slideElement.querySelector( 'aside.notes' );
20 |
21 | var messageData = {
22 | notes: '',
23 | markdown: false,
24 | socketId: socketId,
25 | state: Reveal.getState()
26 | };
27 |
28 | // Look for notes defined in a slide attribute
29 | if( slideElement.hasAttribute( 'data-notes' ) ) {
30 | messageData.notes = slideElement.getAttribute( 'data-notes' );
31 | }
32 |
33 | // Look for notes defined in an aside element
34 | if( notesElement ) {
35 | messageData.notes = notesElement.innerHTML;
36 | messageData.markdown = typeof notesElement.getAttribute( 'data-markdown' ) === 'string';
37 | }
38 |
39 | socket.emit( 'statechanged', messageData );
40 |
41 | }
42 |
43 | // When a new notes window connects, post our current state
44 | socket.on( 'new-subscriber', function( data ) {
45 | post();
46 | } );
47 |
48 | // When the state changes from inside of the speaker view
49 | socket.on( 'statechanged-speaker', function( data ) {
50 | Reveal.setState( data.state );
51 | } );
52 |
53 | // Monitor events that trigger a change in state
54 | Reveal.addEventListener( 'slidechanged', post );
55 | Reveal.addEventListener( 'fragmentshown', post );
56 | Reveal.addEventListener( 'fragmenthidden', post );
57 | Reveal.addEventListener( 'overviewhidden', post );
58 | Reveal.addEventListener( 'overviewshown', post );
59 | Reveal.addEventListener( 'paused', post );
60 | Reveal.addEventListener( 'resumed', post );
61 |
62 | // Post the initial state
63 | post();
64 |
65 | }());
66 |
--------------------------------------------------------------------------------
/sesion-05/presentacion/plugin/notes-server/index.js:
--------------------------------------------------------------------------------
1 | var http = require('http');
2 | var express = require('express');
3 | var fs = require('fs');
4 | var io = require('socket.io');
5 | var Mustache = require('mustache');
6 |
7 | var app = express();
8 | var staticDir = express.static;
9 | var server = http.createServer(app);
10 |
11 | io = io(server);
12 |
13 | var opts = {
14 | port : 1947,
15 | baseDir : __dirname + '/../../'
16 | };
17 |
18 | io.on( 'connection', function( socket ) {
19 |
20 | socket.on( 'new-subscriber', function( data ) {
21 | socket.broadcast.emit( 'new-subscriber', data );
22 | });
23 |
24 | socket.on( 'statechanged', function( data ) {
25 | delete data.state.overview;
26 | socket.broadcast.emit( 'statechanged', data );
27 | });
28 |
29 | socket.on( 'statechanged-speaker', function( data ) {
30 | delete data.state.overview;
31 | socket.broadcast.emit( 'statechanged-speaker', data );
32 | });
33 |
34 | });
35 |
36 | [ 'css', 'js', 'images', 'plugin', 'lib' ].forEach( function( dir ) {
37 | app.use( '/' + dir, staticDir( opts.baseDir + dir ) );
38 | });
39 |
40 | app.get('/', function( req, res ) {
41 |
42 | res.writeHead( 200, { 'Content-Type': 'text/html' } );
43 | fs.createReadStream( opts.baseDir + '/index.html' ).pipe( res );
44 |
45 | });
46 |
47 | app.get( '/notes/:socketId', function( req, res ) {
48 |
49 | fs.readFile( opts.baseDir + 'plugin/notes-server/notes.html', function( err, data ) {
50 | res.send( Mustache.to_html( data.toString(), {
51 | socketId : req.params.socketId
52 | }));
53 | });
54 |
55 | });
56 |
57 | // Actually listen
58 | server.listen( opts.port || null );
59 |
60 | var brown = '\033[33m',
61 | green = '\033[32m',
62 | reset = '\033[0m';
63 |
64 | var slidesLocation = 'http://localhost' + ( opts.port ? ( ':' + opts.port ) : '' );
65 |
66 | console.log( brown + 'reveal.js - Speaker Notes' + reset );
67 | console.log( '1. Open the slides at ' + green + slidesLocation + reset );
68 | console.log( '2. Click on the link in your JS console to go to the notes page' );
69 | console.log( '3. Advance through your slides and your notes will advance automatically' );
70 |
--------------------------------------------------------------------------------
/sesion-05/presentacion/plugin/notes/notes.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Handles opening of and synchronization with the reveal.js
3 | * notes window.
4 | *
5 | * Handshake process:
6 | * 1. This window posts 'connect' to notes window
7 | * - Includes URL of presentation to show
8 | * 2. Notes window responds with 'connected' when it is available
9 | * 3. This window proceeds to send the current presentation state
10 | * to the notes window
11 | */
12 | var RevealNotes = (function() {
13 |
14 | function openNotes( notesFilePath ) {
15 |
16 | if( !notesFilePath ) {
17 | var jsFileLocation = document.querySelector('script[src$="notes.js"]').src; // this js file path
18 | jsFileLocation = jsFileLocation.replace(/notes\.js(\?.*)?$/, ''); // the js folder path
19 | notesFilePath = jsFileLocation + 'notes.html';
20 | }
21 |
22 | var notesPopup = window.open( notesFilePath, 'reveal.js - Notes', 'width=1100,height=700' );
23 |
24 | /**
25 | * Connect to the notes window through a postmessage handshake.
26 | * Using postmessage enables us to work in situations where the
27 | * origins differ, such as a presentation being opened from the
28 | * file system.
29 | */
30 | function connect() {
31 | // Keep trying to connect until we get a 'connected' message back
32 | var connectInterval = setInterval( function() {
33 | notesPopup.postMessage( JSON.stringify( {
34 | namespace: 'reveal-notes',
35 | type: 'connect',
36 | url: window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search,
37 | state: Reveal.getState()
38 | } ), '*' );
39 | }, 500 );
40 |
41 | window.addEventListener( 'message', function( event ) {
42 | var data = JSON.parse( event.data );
43 | if( data && data.namespace === 'reveal-notes' && data.type === 'connected' ) {
44 | clearInterval( connectInterval );
45 | onConnected();
46 | }
47 | } );
48 | }
49 |
50 | /**
51 | * Posts the current slide data to the notes window
52 | */
53 | function post() {
54 |
55 | var slideElement = Reveal.getCurrentSlide(),
56 | notesElement = slideElement.querySelector( 'aside.notes' );
57 |
58 | var messageData = {
59 | namespace: 'reveal-notes',
60 | type: 'state',
61 | notes: '',
62 | markdown: false,
63 | whitespace: 'normal',
64 | state: Reveal.getState()
65 | };
66 |
67 | // Look for notes defined in a slide attribute
68 | if( slideElement.hasAttribute( 'data-notes' ) ) {
69 | messageData.notes = slideElement.getAttribute( 'data-notes' );
70 | messageData.whitespace = 'pre-wrap';
71 | }
72 |
73 | // Look for notes defined in an aside element
74 | if( notesElement ) {
75 | messageData.notes = notesElement.innerHTML;
76 | messageData.markdown = typeof notesElement.getAttribute( 'data-markdown' ) === 'string';
77 | }
78 |
79 | notesPopup.postMessage( JSON.stringify( messageData ), '*' );
80 |
81 | }
82 |
83 | /**
84 | * Called once we have established a connection to the notes
85 | * window.
86 | */
87 | function onConnected() {
88 |
89 | // Monitor events that trigger a change in state
90 | Reveal.addEventListener( 'slidechanged', post );
91 | Reveal.addEventListener( 'fragmentshown', post );
92 | Reveal.addEventListener( 'fragmenthidden', post );
93 | Reveal.addEventListener( 'overviewhidden', post );
94 | Reveal.addEventListener( 'overviewshown', post );
95 | Reveal.addEventListener( 'paused', post );
96 | Reveal.addEventListener( 'resumed', post );
97 |
98 | // Post the initial state
99 | post();
100 |
101 | }
102 |
103 | connect();
104 |
105 | }
106 |
107 | if( !/receiver/i.test( window.location.search ) ) {
108 |
109 | // If the there's a 'notes' query set, open directly
110 | if( window.location.search.match( /(\?|\&)notes/gi ) !== null ) {
111 | openNotes();
112 | }
113 |
114 | // Open the notes when the 's' key is hit
115 | document.addEventListener( 'keydown', function( event ) {
116 | // Disregard the event if the target is editable or a
117 | // modifier is present
118 | if ( document.querySelector( ':focus' ) !== null || event.shiftKey || event.altKey || event.ctrlKey || event.metaKey ) return;
119 |
120 | // Disregard the event if keyboard is disabled
121 | if ( Reveal.getConfig().keyboard === false ) return;
122 |
123 | if( event.keyCode === 83 ) {
124 | event.preventDefault();
125 | openNotes();
126 | }
127 | }, false );
128 |
129 | // Show our keyboard shortcut in the reveal.js help overlay
130 | if( window.Reveal ) Reveal.registerKeyboardShortcut( 'S', 'Speaker notes view' );
131 |
132 | }
133 |
134 | return { open: openNotes };
135 |
136 | })();
137 |
--------------------------------------------------------------------------------
/sesion-05/presentacion/plugin/print-pdf/print-pdf.js:
--------------------------------------------------------------------------------
1 | /**
2 | * phantomjs script for printing presentations to PDF.
3 | *
4 | * Example:
5 | * phantomjs print-pdf.js "http://lab.hakim.se/reveal-js?print-pdf" reveal-demo.pdf
6 | *
7 | * By Manuel Bieh (https://github.com/manuelbieh)
8 | */
9 |
10 | // html2pdf.js
11 | var page = new WebPage();
12 | var system = require( 'system' );
13 |
14 | var slideWidth = system.args[3] ? system.args[3].split( 'x' )[0] : 960;
15 | var slideHeight = system.args[3] ? system.args[3].split( 'x' )[1] : 700;
16 |
17 | page.viewportSize = {
18 | width: slideWidth,
19 | height: slideHeight
20 | };
21 |
22 | // TODO
23 | // Something is wrong with these config values. An input
24 | // paper width of 1920px actually results in a 756px wide
25 | // PDF.
26 | page.paperSize = {
27 | width: Math.round( slideWidth * 2 ),
28 | height: Math.round( slideHeight * 2 ),
29 | border: 0
30 | };
31 |
32 | var inputFile = system.args[1] || 'index.html?print-pdf';
33 | var outputFile = system.args[2] || 'slides.pdf';
34 |
35 | if( outputFile.match( /\.pdf$/gi ) === null ) {
36 | outputFile += '.pdf';
37 | }
38 |
39 | console.log( 'Printing PDF (Paper size: '+ page.paperSize.width + 'x' + page.paperSize.height +')' );
40 |
41 | page.open( inputFile, function( status ) {
42 | window.setTimeout( function() {
43 | console.log( 'Printed successfully' );
44 | page.render( outputFile );
45 | phantom.exit();
46 | }, 1000 );
47 | } );
48 |
49 |
--------------------------------------------------------------------------------
/sesion-11/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-11/.DS_Store
--------------------------------------------------------------------------------
/sesion-11/firebase/.gitignore:
--------------------------------------------------------------------------------
1 | # See http://help.github.com/ignore-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | node_modules
5 |
6 | # testing
7 | coverage
8 |
9 | # production
10 | build
11 |
12 | # misc
13 | .DS_Store
14 | .env
15 | npm-debug.log
16 |
--------------------------------------------------------------------------------
/sesion-11/firebase/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "react-firebase-example",
3 | "version": "0.1.0",
4 | "private": true,
5 | "devDependencies": {
6 | "babel-eslint": "^6.1.2",
7 | "eslint": "^3.5.0",
8 | "eslint-config-react-app": "^0.2.1",
9 | "eslint-plugin-flowtype": "^2.18.1",
10 | "eslint-plugin-import": "^1.12.0",
11 | "eslint-plugin-jsx-a11y": "^2.2.2",
12 | "eslint-plugin-react": "^6.3.0",
13 | "react-scripts": "0.6.1"
14 | },
15 | "eslintConfig": {
16 | "extends": "react-app"
17 | },
18 | "dependencies": {
19 | "firebase": "^3.5.0",
20 | "history": "^4.2.0",
21 | "react": "^15.3.2",
22 | "react-dom": "^15.3.2",
23 | "react-router": "^2.8.1"
24 | },
25 | "scripts": {
26 | "start": "react-scripts start",
27 | "build": "react-scripts build",
28 | "test": "react-scripts test --env=jsdom",
29 | "eject": "react-scripts eject"
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/sesion-11/firebase/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-11/firebase/public/favicon.ico
--------------------------------------------------------------------------------
/sesion-11/firebase/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
16 | React App
17 |
18 |
19 |
20 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/sesion-11/firebase/src/00-class/index.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from 'react';
2 | import firebase from 'firebase';
3 |
4 | import { Button, TextInput } from 'belle';
5 |
6 | // Initialize config
7 | const config = {
8 | apiKey: "AIzaSyCDSe8b7MHPFGFHkeJW9JJ2x8SUGIupD14",
9 | authDomain: "react-escuela-it-firebase.firebaseapp.com",
10 | databaseURL: "https://react-escuela-it-firebase.firebaseio.com",
11 | storageBucket: "react-escuela-it-firebase.appspot.com",
12 | messagingSenderId: "591869958167"
13 | };
14 |
15 | firebase.initializeApp(config)
16 | const firebaseDBRef = firebase.database().ref()
17 | const messagesRef = firebaseDBRef.child('messages')
18 |
19 | export default class _00 extends Component {
20 |
21 | constructor (...args) {
22 | super(...args)
23 | this.state = { name: '', inputMessage: '', messages: {}, user: null }
24 |
25 | this.handleChange = this.handleChange.bind(this)
26 | this.handleClick = this.handleClick.bind(this)
27 | }
28 |
29 | componentDidMount () {
30 | firebase.auth().onAuthStateChanged((user) => {
31 | if (user === null) {
32 | firebase.auth().signInAnonymously()
33 | }
34 | this.setState({user})
35 | })
36 |
37 | messagesRef.orderByKey().once('value', (snapshot) => {
38 | if (snapshot.val() !== null) {
39 | this.setState({ messages: snapshot.val() })
40 | }
41 | })
42 |
43 | messagesRef.orderByKey().limitToLast(1).on('child_added', snapshot => {
44 | const newMessage = { [snapshot.key]: snapshot.val() }
45 | const messages = Object.assign( {}, this.state.messages, newMessage )
46 | this.setState({messages})
47 | })
48 | }
49 |
50 | handleChange ({value}) {
51 | this.setState({ inputMessage: value})
52 | }
53 |
54 | handleClick (e) {
55 | const message = {
56 | user: this.state.user.uid,
57 | content: this.state.inputMessage
58 | }
59 |
60 | messagesRef.push(message)
61 | this.setState({ inputMessage: ''})
62 | }
63 |
64 | renderMessages () {
65 | const arrayOfKeys = Object.keys(this.state.messages)
66 | return (
67 |
68 | {arrayOfKeys.map(key => {
69 | const msg = this.state.messages[key]
70 | let className = 'message'
71 | className += msg.user === this.state.user.uid ? ' is-mine' : ''
72 | return (
73 |
74 |
{msg.content}Escrito por {msg.user}
75 |
)
76 | })}
77 |
78 | )
79 | }
80 |
81 | render () {
82 | return (
83 |
84 | {
85 | this.state.user &&
86 |
Hola, soy {this.state.user.uid}
87 | }
88 |
94 | Guardar Mensaje
95 | {this.renderMessages()}
96 |
97 | );
98 | }
99 | }
100 |
--------------------------------------------------------------------------------
/sesion-11/firebase/src/01-hola/index.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from 'react';
2 | import firebase from 'firebase'
3 |
4 | // Initialize Firebase
5 | const config = {
6 | apiKey: "AIzaSyBnoq3ZGEQn1iJPeKKlKoFSTnDrfvKb51U",
7 | authDomain: "react-firebase-52d46.firebaseapp.com",
8 | databaseURL: "https://react-firebase-52d46.firebaseio.com",
9 | storageBucket: "",
10 | messagingSenderId: "338218715052"
11 | };
12 |
13 | firebase.initializeApp(config)
14 | const firebaseDBRef = firebase.database().ref()
15 | const nameRef = firebaseDBRef.child('name')
16 |
17 | export default class _01 extends Component {
18 | constructor (...args) {
19 | super(...args);
20 | this.state = { name: '' }
21 | }
22 |
23 | componentDidMount () {
24 | nameRef.on('value', snapshot => {
25 | this.setState({
26 | name: snapshot.val()
27 | })
28 | })
29 | }
30 |
31 | render() {
32 | return (
33 |
34 |
{this.state.name}
35 |
36 | );
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/sesion-11/firebase/src/02-set-hola/index.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from 'react';
2 | import firebase from 'firebase'
3 |
4 | import {Button, TextInput} from 'belle'
5 |
6 | // Initialize Firebase
7 | const config = {
8 | apiKey: "AIzaSyBnoq3ZGEQn1iJPeKKlKoFSTnDrfvKb51U",
9 | authDomain: "react-firebase-52d46.firebaseapp.com",
10 | databaseURL: "https://react-firebase-52d46.firebaseio.com",
11 | storageBucket: "",
12 | messagingSenderId: "338218715052"
13 | };
14 |
15 | firebase.initializeApp(config)
16 | const firebaseDBRef = firebase.database().ref()
17 | const nameRef = firebaseDBRef.child('name')
18 |
19 | export default class _02 extends Component {
20 | constructor (...args) {
21 | super(...args);
22 | this.state = { name: '', inputName: '' }
23 | this.handleChange = this.handleChange.bind(this)
24 | this.saveName = this.saveName.bind(this)
25 | }
26 |
27 | componentDidMount () {
28 | nameRef.on('value', snapshot => {
29 | this.setState({
30 | name: snapshot.val()
31 | })
32 | })
33 | }
34 |
35 | handleChange ({value}) {
36 | this.setState({ inputName: value })
37 | }
38 |
39 | saveName () {
40 | nameRef.set(this.state.inputName)
41 | }
42 |
43 | render() {
44 | return (
45 |
46 |
{this.state.name}
47 |
52 | Save!
53 |
54 | );
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/sesion-11/firebase/src/03-mini-chat/index.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from 'react';
2 | import firebase from 'firebase'
3 |
4 | import {Button, TextInput} from 'belle'
5 |
6 | // Initialize Firebase
7 | const config = {
8 | apiKey: "AIzaSyBnoq3ZGEQn1iJPeKKlKoFSTnDrfvKb51U",
9 | authDomain: "react-firebase-52d46.firebaseapp.com",
10 | databaseURL: "https://react-firebase-52d46.firebaseio.com",
11 | storageBucket: "",
12 | messagingSenderId: "338218715052"
13 | };
14 |
15 | firebase.initializeApp(config)
16 | const firebaseDBRef = firebase.database().ref()
17 | const messagesRef = firebaseDBRef.child('messages')
18 |
19 | export default class _03 extends Component {
20 | constructor (...args) {
21 | super(...args);
22 | this.state = { name: '', inputMessage: '', user: null, messages: {}, gotFirstMessages: false }
23 | this.handleChange = this.handleChange.bind(this)
24 | this.saveMessage = this.saveMessage.bind(this)
25 | }
26 |
27 | componentDidMount () {
28 | firebase.auth().onAuthStateChanged((user) => {
29 | if (user === null) {
30 | firebase.auth().signInAnonymously()
31 | }
32 | this.setState({user})
33 | });
34 |
35 | messagesRef.orderByKey().once('value', snapshot => {
36 | const messages = snapshot.val()
37 | this.setState({
38 | gotFirstMessages: true,
39 | messages
40 | })
41 |
42 | const messagesKeys = Object.keys(messages)
43 | const lastItem = messagesKeys.slice(-1)[0]
44 |
45 | messagesRef.orderByKey().startAt(lastItem).on('child_added', snapshot => {
46 | const newMessage = { [snapshot.key] : snapshot.val() }
47 | const messages = Object.assign( {}, this.state.messages, newMessage)
48 | this.setState({messages})
49 | })
50 | })
51 | }
52 |
53 | handleChange ({value}) {
54 | this.setState({ inputMessage: value })
55 | }
56 |
57 | saveMessage (e) {
58 | e.preventDefault()
59 |
60 | const message = {
61 | user: this.state.user.uid,
62 | content: this.state.inputMessage
63 | }
64 |
65 | messagesRef.push(message)
66 | this.setState({inputMessage: ''})
67 | }
68 |
69 | renderMessages () {
70 | const arrayOfKeys = Object.keys(this.state.messages)
71 | return (
72 |
73 | {arrayOfKeys.map(key => {
74 | const msg = this.state.messages[key]
75 | const isMine = this.state.user && msg.user === this.state.user.uid
76 | let className = 'message'
77 | className += isMine ? ' is-mine' : ''
78 |
79 | return (
80 |
81 |
{msg.content}Escrito por {msg.user}
82 |
83 |
84 | )
85 | })}
86 |
87 | )
88 | }
89 |
90 | render() {
91 | return (
92 |
93 | {this.state.user &&
94 |
Logged as: {this.state.user.uid}
95 | }
96 |
103 | {this.renderMessages()}
104 |
105 | );
106 | }
107 | }
108 |
--------------------------------------------------------------------------------
/sesion-11/firebase/src/04-login/components/AnonymousMenu.js:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import { Link } from 'react-router'
3 |
4 | const AnonymousMenu = () => (
5 |
6 |
7 | Sign up
8 |
9 |
10 | Log in
11 |
12 |
13 | )
14 |
15 | export default AnonymousMenu
16 |
--------------------------------------------------------------------------------
/sesion-11/firebase/src/04-login/components/Button/Button.css:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-11/firebase/src/04-login/components/Button/Button.css
--------------------------------------------------------------------------------
/sesion-11/firebase/src/04-login/components/Button/Button.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-11/firebase/src/04-login/components/Button/Button.js
--------------------------------------------------------------------------------
/sesion-11/firebase/src/04-login/components/Button/Button.test.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/sesion-11/firebase/src/04-login/components/Button/Button.test.js
--------------------------------------------------------------------------------
/sesion-11/firebase/src/04-login/components/LoggedInMenu.js:
--------------------------------------------------------------------------------
1 | import React, { PropTypes } from 'react'
2 | import { Link } from 'react-router'
3 |
4 | const LoggedInMenu = (props, context) => {
5 |
6 | const signOut = () => {
7 | context.firebase.auth().signOut().then(function() {
8 | console.log('Signed Out');
9 | }, function(error) {
10 | console.error('Sign Out Error', error);
11 | });
12 | }
13 |
14 | return (
15 |
16 |
17 | User Profile
18 |
19 |
20 | Sign Out
21 |
22 |
23 | )
24 | }
25 |
26 | LoggedInMenu.contextTypes = {
27 | firebase: PropTypes.object
28 | }
29 |
30 | export default LoggedInMenu
31 |
--------------------------------------------------------------------------------
/sesion-11/firebase/src/04-login/components/index.js:
--------------------------------------------------------------------------------
1 | import AnonymousMenu from './AnonymousMenu'
2 | import LoggedInMenu from './LoggedInMenu'
3 |
4 | export {
5 | AnonymousMenu,
6 | LoggedInMenu
7 | }
8 |
--------------------------------------------------------------------------------
/sesion-11/firebase/src/04-login/index.js:
--------------------------------------------------------------------------------
1 | import React, { Component, PropTypes } from 'react';
2 | import { Router, Route, browserHistory } from 'react-router'
3 | import { Home, Login, Signup, NoMatch } from './pages'
4 |
5 | import firebase from 'firebase'
6 |
7 | // Initialize Firebase
8 | const config = {
9 | apiKey: "AIzaSyBnoq3ZGEQn1iJPeKKlKoFSTnDrfvKb51U",
10 | authDomain: "react-firebase-52d46.firebaseapp.com",
11 | databaseURL: "https://react-firebase-52d46.firebaseio.com",
12 | storageBucket: "",
13 | messagingSenderId: "338218715052"
14 | };
15 |
16 | firebase.initializeApp(config)
17 |
18 | export default class _04 extends Component {
19 | constructor (...args) {
20 | super(...args);
21 | this.state = { user: null }
22 | }
23 |
24 | getChildContext () {
25 | return {
26 | firebase: firebase,
27 | user: this.state.user
28 | }
29 | }
30 |
31 | componentDidMount () {
32 | firebase.auth().onAuthStateChanged((user) => {
33 | this.setState({user}, () => {
34 | browserHistory.push('/')
35 | })
36 | });
37 | }
38 |
39 | render () {
40 | return (
41 |
42 |
43 |
44 |
45 |
46 |
47 | )
48 | }
49 | }
50 |
51 | _04.childContextTypes = {
52 | firebase: PropTypes.object,
53 | user: PropTypes.object
54 | }
55 |
--------------------------------------------------------------------------------
/sesion-11/firebase/src/04-login/pages/Home.js:
--------------------------------------------------------------------------------
1 | import React, { Component, PropTypes } from 'react'
2 | import { AnonymousMenu, LoggedInMenu } from '../components'
3 |
4 | export default class Home extends Component {
5 | render () {
6 | return (
7 |
8 | {this.context.user ?
:
}
9 |
10 | )
11 | }
12 | }
13 |
14 | Home.contextTypes = {
15 | user: PropTypes.object
16 | }
17 |
--------------------------------------------------------------------------------
/sesion-11/firebase/src/04-login/pages/Login.js:
--------------------------------------------------------------------------------
1 | import React, { PropTypes } from 'react'
2 |
3 | const Login = (props, context) => {
4 | let inputEmail, inputPassword
5 |
6 | const handleSubmit = (evt) => {
7 | const email = inputEmail.value
8 | const password = inputPassword.value
9 | context.firebase
10 | .auth()
11 | .signInWithEmailAndPassword(email, password)
12 | .catch((error) => {
13 | // Handle Errors here.
14 | console.log(error.message)
15 | })
16 | evt.preventDefault()
17 | }
18 |
19 | return (
20 |
34 | )
35 | }
36 |
37 | Login.contextTypes = {
38 | firebase: PropTypes.object
39 | }
40 |
41 | export default Login
42 |
--------------------------------------------------------------------------------
/sesion-11/firebase/src/04-login/pages/NoMatch.js:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 |
3 | const NoMatch = () => (
4 | 404. Sorry, the requested page does not exist
5 | )
6 |
7 | export default NoMatch
8 |
--------------------------------------------------------------------------------
/sesion-11/firebase/src/04-login/pages/Signup.js:
--------------------------------------------------------------------------------
1 | import React, { PropTypes } from 'react'
2 |
3 | const Signup = (props, context) => {
4 | let inputEmail, inputPassword
5 |
6 | const handleSubmit = (evt) => {
7 | const email = inputEmail.value
8 | const password = inputPassword.value
9 | context.firebase
10 | .auth()
11 | .createUserWithEmailAndPassword(email, password)
12 | .then(() => {
13 | console.log('User registered')
14 | })
15 | .catch((error) => {
16 | // Handle Errors here.
17 | console.log(error.message)
18 |
19 | })
20 | evt.preventDefault()
21 | }
22 |
23 | return (
24 |
40 | )
41 | }
42 | export default Signup
43 |
44 | Signup.contextTypes = {
45 | firebase: PropTypes.object
46 | }
47 |
--------------------------------------------------------------------------------
/sesion-11/firebase/src/04-login/pages/index.js:
--------------------------------------------------------------------------------
1 | import Home from './Home'
2 | import Login from './Login'
3 | import NoMatch from './NoMatch'
4 | import Signup from './Signup'
5 |
6 | export {
7 | Home,
8 | Login,
9 | NoMatch,
10 | Signup
11 | }
12 |
--------------------------------------------------------------------------------
/sesion-11/firebase/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 50px;
3 | padding: 0;
4 | font-family: sans-serif;
5 | }
6 |
7 | * {
8 | margin: 0;
9 | padding: 0;
10 | }
11 |
12 | ul {
13 | list-style: none;
14 | }
15 |
16 | ul a {
17 | font-size: 25px;
18 | line-height: 50px;
19 | font-weight: 100;
20 | text-decoration: none;
21 | color: #09f;
22 | }
23 |
24 | form {
25 | padding: 25px;
26 | }
27 |
28 | form p {
29 | color: #333;
30 | line-height: 150%;
31 | padding-bottom: 15px
32 | }
33 |
34 | fieldset {
35 | border: 1px solid #ccc;
36 | padding: 10px;
37 | }
38 |
39 | legend {
40 | color: #333;
41 | }
42 |
43 | label {
44 | padding-right: 30px;
45 | }
46 |
47 | .message {
48 | width: 320px;
49 | margin: 0 auto;
50 | padding: 1em .8em;
51 | font-weight: 200;
52 | font-size: 16px;
53 | font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
54 | color: #000;
55 | }
56 | .message dd:after {
57 | clear: both;
58 | content: " ";
59 | display: block;
60 | height: .1em;
61 | }
62 | .message p {
63 | color: #fff;
64 | float: right;
65 | z-index: 1;
66 | margin-right: 0;
67 | margin-bottom: 30px;
68 | padding: .45em .75em;
69 | background: rgb(0,120,255);
70 | line-height: 1.25;
71 | -webkit-border-radius: 1em;
72 | -moz-border-radius: 1em;
73 | border-radius: 1em;
74 | }
75 |
76 | .message small {
77 | display: block;
78 | font-size: 10px;
79 | }
80 |
81 | .message.is-mine p {
82 | float: left;
83 | margin-right: 25%;
84 | margin-left: 0;
85 | background: rgb(215,215,215);
86 | }
87 |
88 | .message p:last-child {
89 | position: relative;
90 | }
91 |
92 | .message p:last-child::before {
93 | position: absolute;
94 | bottom: 0;
95 | left: auto;
96 | right: -3em;
97 | z-index: -1;
98 | width: 3em;
99 | height: 2em;
100 | border-left: 1.5em solid rgb(0,120,255);
101 | border-bottom-left-radius: 50%;
102 | content: " ";
103 | clip: rect(1em,2em,2em,0);
104 | }
105 | .message.is-mine p:last-child::before {
106 | left: -3em;
107 | border-left: none;
108 | border-right: 1.5em solid rgb(215,215,215);
109 | border-bottom-right-radius: 50%;
110 | clip: rect(1em,4em,3em,2em);
111 | }
112 |
113 | .message dt,
114 | .message p {
115 | -webkit-transform: translate3d(0,0,0);
116 | -moz-transform: translate3d(0,0,0);
117 | -ms-transform: translate3d(0,0,0);
118 | -o-transform: translate3d(0,0,0);
119 | transform: translate3d(0,0,0);
120 | -webkit-transition: -webkit-transform .75s ease;
121 | -moz-transition: -moz-transform .75s ease;
122 | -ms-transition: -ms-transform .75s ease;
123 | -o-transition: -o-transform .75s ease;
124 | transition: transform .75s ease;
125 | }
126 | .message .past {
127 | -webkit-transform: translate3d(0,-10em,0);
128 | -moz-transform: translate3d(0,-10em,0);
129 | -ms-transform: translate3d(0,-10em,0);
130 | -o-transform: translate3d(0,-10em,0);
131 | transform: translate3d(0,-10em,0);
132 | }
133 | .message .to .past {
134 | opacity: .5;
135 | }
136 | .message .future {
137 | -webkit-transform: translate3d(0,10em,0);
138 | -moz-transform: translate3d(0,10em,0);
139 | -ms-transform: translate3d(0,10em,0);
140 | -o-transform: translate3d(0,10em,0);
141 | transform: translate3d(0,10em,0);
142 | }
143 | .message .to .future {
144 | opacity: 1;
145 | }
146 |
--------------------------------------------------------------------------------
/sesion-11/firebase/src/index.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import ReactDOM from 'react-dom';
3 | import Demo from './00-class';
4 | //import Demo from './01-hola';
5 | //import Demo from './02-set-hola';
6 | //import Demo from './03-mini-chat';
7 | //import Demo from './04-login';
8 | import './index.css';
9 |
10 | ReactDOM.render(
11 | ,
12 | document.getElementById('root')
13 | );
14 |
--------------------------------------------------------------------------------
/todo/.gitignore:
--------------------------------------------------------------------------------
1 | # See http://help.github.com/ignore-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | node_modules
5 |
6 | # testing
7 | coverage
8 |
9 | # production
10 | build
11 |
12 | # misc
13 | .DS_Store
14 | .env
15 | npm-debug.log
16 |
--------------------------------------------------------------------------------
/todo/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "todo",
3 | "version": "0.1.0",
4 | "private": true,
5 | "devDependencies": {
6 | "react-scripts": "0.6.1"
7 | },
8 | "dependencies": {
9 | "lscache": "^1.0.7",
10 | "react": "^15.3.2",
11 | "react-dom": "^15.3.2"
12 | },
13 | "scripts": {
14 | "start": "react-scripts start",
15 | "build": "react-scripts build",
16 | "test": "react-scripts test --env=jsdom",
17 | "eject": "react-scripts eject"
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/todo/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/midudev/aprende-react-js/eae3b2cd42d834b94b4362804efd91ca098d993b/todo/public/favicon.ico
--------------------------------------------------------------------------------
/todo/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
16 | React App
17 |
18 |
19 |
20 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/todo/src/App.css:
--------------------------------------------------------------------------------
1 | .App {
2 | text-align: center;
3 | }
4 |
5 | .App-logo {
6 | animation: App-logo-spin infinite 20s linear;
7 | height: 80px;
8 | }
9 |
10 | .App-header {
11 | background-color: #222;
12 | height: 150px;
13 | padding: 20px;
14 | color: white;
15 | }
16 |
17 | .App-intro {
18 | font-size: large;
19 | }
20 |
21 | @keyframes App-logo-spin {
22 | from { transform: rotate(0deg); }
23 | to { transform: rotate(360deg); }
24 | }
25 |
--------------------------------------------------------------------------------
/todo/src/App.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import TodoList from './TodoList.js'
3 | import lscache from 'lscache'
4 |
5 | export default class App extends React.Component {
6 |
7 | constructor(...args) {
8 | super(...args);
9 | this.handleChange = this.handleChange.bind(this);
10 | this.handleSubmit = this.handleSubmit.bind(this);
11 | this.state = {items: [], text: ''};
12 | }
13 |
14 | componentDidMount () {
15 | const items = lscache.get('todo-items') || []
16 | console.log('componentDidMount, items:', items)
17 | this.setState({ items: items })
18 | }
19 |
20 | render () {
21 | return (
22 |
23 |
LISTA TAREAS
24 |
25 |
29 |
30 | );
31 | }
32 |
33 | handleChange(e) {
34 | this.setState({text: e.target.value});
35 | }
36 |
37 | handleSubmit(e) {
38 | e.preventDefault();
39 | var newItem = {
40 | text: this.state.text,
41 | id: Date.now()
42 | };
43 |
44 | this.setState((prevState) => {
45 | const items = prevState.items.concat(newItem)
46 | lscache.set('todo-items', items)
47 | return {
48 | items: items,
49 | text: ''
50 | }
51 | });
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/todo/src/App.test.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import ReactDOM from 'react-dom';
3 | import App from './App';
4 |
5 | it('renders without crashing', () => {
6 | const div = document.createElement('div');
7 | ReactDOM.render( , div);
8 | });
9 |
--------------------------------------------------------------------------------
/todo/src/TodoList.js:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 |
3 | export default class TodoList extends React.Component {
4 | render () {
5 | return (
6 |
7 | {this.props.items.map(item => (
8 | {item.text}
9 | ))}
10 |
11 | );
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/todo/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | padding: 0;
4 | font-family: sans-serif;
5 | }
6 |
--------------------------------------------------------------------------------
/todo/src/index.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import ReactDOM from 'react-dom';
3 | import App from './App';
4 | import './index.css';
5 |
6 | ReactDOM.render(
7 | ,
8 | document.getElementById('root')
9 | );
10 |
--------------------------------------------------------------------------------
/todo/src/logo.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------