mirror of
https://github.com/fazo96/tesina.git
synced 2025-01-25 13:54:19 +01:00
aggiunta presentazione bespoke
This commit is contained in:
parent
8f545f6001
commit
1b42bad55c
3
presentazione/.bowerrc
Normal file
3
presentazione/.bowerrc
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"directory": "bower_components"
|
||||
}
|
24
presentazione/.editorconfig
Normal file
24
presentazione/.editorconfig
Normal file
@ -0,0 +1,24 @@
|
||||
# EditorConfig helps developers define and maintain consistent
|
||||
# coding styles between different editors and IDEs
|
||||
# editorconfig.org
|
||||
|
||||
root = true
|
||||
|
||||
|
||||
[*]
|
||||
|
||||
# Change these settings to your own preference
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
# It's recommended to keep these unchanged
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
|
||||
[*.jade]
|
||||
trim_trailing_whitespace = false
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
4
presentazione/.gitignore
vendored
Normal file
4
presentazione/.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
node_modules
|
||||
bower_components
|
||||
dist
|
||||
bespoke-theme-*
|
17
presentazione/README.md
Normal file
17
presentazione/README.md
Normal file
@ -0,0 +1,17 @@
|
||||
# Anonimato nella rete Internet
|
||||
> A [Bespoke.js](http://markdalgleish.com/projects/bespoke.js) presentation, built with [generator-bespoke](https://github.com/markdalgleish/generator-bespoke)
|
||||
|
||||
## View slides locally
|
||||
|
||||
First, ensure you have the following installed:
|
||||
|
||||
1. [Node.js](http://nodejs.org)
|
||||
2. [Bower](http://bower.io): `$ npm install -g bower`
|
||||
3. [Gulp](http://gulpjs.com): `$ npm install -g gulp`
|
||||
|
||||
Then, install dependencies and run the preview server:
|
||||
|
||||
```bash
|
||||
$ npm install && bower install
|
||||
$ gulp serve
|
||||
```
|
7
presentazione/bower.json
Normal file
7
presentazione/bower.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "presentation-anonimato-nella-rete-internet",
|
||||
"version": "0.0.0",
|
||||
"dependencies": {
|
||||
"prism": "gh-pages"
|
||||
}
|
||||
}
|
111
presentazione/gulpfile.js
Normal file
111
presentazione/gulpfile.js
Normal file
@ -0,0 +1,111 @@
|
||||
'use strict';
|
||||
|
||||
var pkg = require('./package.json'),
|
||||
gulp = require('gulp'),
|
||||
gutil = require('gulp-util'),
|
||||
plumber = require('gulp-plumber'),
|
||||
rename = require('gulp-rename'),
|
||||
connect = require('gulp-connect'),
|
||||
browserify = require('gulp-browserify'),
|
||||
uglify = require('gulp-uglify'),
|
||||
jade = require('gulp-jade'),
|
||||
stylus = require('gulp-stylus'),
|
||||
autoprefixer = require('gulp-autoprefixer'),
|
||||
csso = require('gulp-csso'),
|
||||
del = require('del'),
|
||||
through = require('through'),
|
||||
opn = require('opn'),
|
||||
ghpages = require('gh-pages'),
|
||||
path = require('path'),
|
||||
isDist = process.argv.indexOf('serve') === -1;
|
||||
|
||||
gulp.task('js', ['clean:js'], function() {
|
||||
return gulp.src('src/scripts/main.js')
|
||||
.pipe(isDist ? through() : plumber())
|
||||
.pipe(browserify({ transform: ['debowerify'], debug: !isDist }))
|
||||
.pipe(isDist ? uglify() : through())
|
||||
.pipe(rename('build.js'))
|
||||
.pipe(gulp.dest('dist/build'))
|
||||
.pipe(connect.reload());
|
||||
});
|
||||
|
||||
gulp.task('html', ['clean:html'], function() {
|
||||
return gulp.src('src/index.jade')
|
||||
.pipe(isDist ? through() : plumber())
|
||||
.pipe(jade({ pretty: true }))
|
||||
.pipe(rename('index.html'))
|
||||
.pipe(gulp.dest('dist'))
|
||||
.pipe(connect.reload());
|
||||
});
|
||||
|
||||
gulp.task('css', ['clean:css'], function() {
|
||||
return gulp.src('src/styles/main.styl')
|
||||
.pipe(isDist ? through() : plumber())
|
||||
.pipe(stylus({
|
||||
// Allow CSS to be imported from node_modules and bower_components
|
||||
'include css': true,
|
||||
'paths': ['./node_modules', './bower_components']
|
||||
}))
|
||||
.pipe(autoprefixer('last 2 versions', { map: false }))
|
||||
.pipe(isDist ? csso() : through())
|
||||
.pipe(rename('build.css'))
|
||||
.pipe(gulp.dest('dist/build'))
|
||||
.pipe(connect.reload());
|
||||
});
|
||||
|
||||
gulp.task('images', ['clean:images'], function() {
|
||||
return gulp.src('src/images/**/*')
|
||||
.pipe(gulp.dest('dist/images'))
|
||||
.pipe(connect.reload());
|
||||
});
|
||||
|
||||
gulp.task('clean', function(done) {
|
||||
del('dist', done);
|
||||
});
|
||||
|
||||
gulp.task('clean:html', function(done) {
|
||||
del('dist/index.html', done);
|
||||
});
|
||||
|
||||
gulp.task('clean:js', function(done) {
|
||||
del('dist/build/build.js', done);
|
||||
});
|
||||
|
||||
gulp.task('clean:css', function(done) {
|
||||
del('dist/build/build.css', done);
|
||||
});
|
||||
|
||||
gulp.task('clean:images', function(done) {
|
||||
del('dist/images', done);
|
||||
});
|
||||
|
||||
gulp.task('connect', ['build'], function() {
|
||||
connect.server({
|
||||
root: 'dist',
|
||||
livereload: true
|
||||
});
|
||||
});
|
||||
|
||||
gulp.task('open', ['connect'], function (done) {
|
||||
opn('http://localhost:8080', done);
|
||||
});
|
||||
|
||||
gulp.task('watch', function() {
|
||||
gulp.watch('src/**/*.jade', ['html']);
|
||||
gulp.watch('src/styles/**/*.styl', ['css']);
|
||||
gulp.watch('src/images/**/*', ['images']);
|
||||
gulp.watch([
|
||||
'src/scripts/**/*.js',
|
||||
'bespoke-theme-*/dist/*.js' // Allow themes to be developed in parallel
|
||||
], ['js']);
|
||||
});
|
||||
|
||||
gulp.task('deploy', ['build'], function(done) {
|
||||
ghpages.publish(path.join(__dirname, 'dist'), { logger: gutil.log }, done);
|
||||
});
|
||||
|
||||
gulp.task('build', ['js', 'html', 'css', 'images']);
|
||||
|
||||
gulp.task('serve', ['open', 'watch']);
|
||||
|
||||
gulp.task('default', ['build']);
|
37
presentazione/package.json
Normal file
37
presentazione/package.json
Normal file
@ -0,0 +1,37 @@
|
||||
{
|
||||
"name": "presentation-anonimato-nella-rete-internet",
|
||||
"version": "0.0.0",
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"bespoke": "^1.0.0",
|
||||
"bespoke-backdrop": "^1.0.0",
|
||||
"bespoke-bullets": "^1.0.0",
|
||||
"bespoke-forms": "^1.0.0",
|
||||
"bespoke-hash": "^1.0.0",
|
||||
"bespoke-keys": "^1.0.0",
|
||||
"bespoke-progress": "^1.0.0",
|
||||
"bespoke-scale": "^1.0.0",
|
||||
"bespoke-theme-cube": "^2.0.0",
|
||||
"bespoke-touch": "^1.0.0",
|
||||
"debowerify": "^0.7.1",
|
||||
"del": "^1.1.1",
|
||||
"gh-pages": "^0.2.0",
|
||||
"gulp": "^3.8.1",
|
||||
"gulp-autoprefixer": "0.0.7",
|
||||
"gulp-browserify": "^0.5.0",
|
||||
"gulp-connect": "^2.0.5",
|
||||
"gulp-csso": "^0.2.9",
|
||||
"gulp-jade": "^0.6.0",
|
||||
"gulp-plumber": "^0.6.3",
|
||||
"gulp-rename": "^1.2.0",
|
||||
"gulp-stylus": "^1.0.2",
|
||||
"gulp-uglify": "^0.3.1",
|
||||
"gulp-util": "^2.2.17",
|
||||
"insert-css": "^0.2.0",
|
||||
"opn": "^0.1.2",
|
||||
"through": "^2.3.4"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
}
|
71
presentazione/src/index.jade
Normal file
71
presentazione/src/index.jade
Normal file
@ -0,0 +1,71 @@
|
||||
doctype html
|
||||
html
|
||||
head
|
||||
meta(charset='utf-8')
|
||||
meta(name='viewport', content='width=device-width, initial-scale=1, maximum-scale=1')
|
||||
title Anonimato nella rete Internet
|
||||
|
||||
link(rel='stylesheet', type='text/css', href='build/build.css')
|
||||
|
||||
body
|
||||
|
||||
article
|
||||
|
||||
section
|
||||
h1 Anonimato nella rete Internet
|
||||
|
||||
section
|
||||
h2 Keyboard Interaction
|
||||
h3 Powered by <a href="https://github.com/markdalgleish/bespoke-keys">bespoke-keys</a>
|
||||
|
||||
section
|
||||
h2 Touch Interaction
|
||||
h3 Powered by <a href="https://github.com/markdalgleish/bespoke-touch">bespoke-touch</a>
|
||||
|
||||
section
|
||||
h2 Responsive Slides
|
||||
h3 Powered by <a href="https://github.com/markdalgleish/bespoke-scale">bespoke-scale</a>
|
||||
|
||||
section
|
||||
h2 Bullet List
|
||||
h3.bullet Powered by <a href="https://github.com/markdalgleish/bespoke-bullets">bespoke-bullets</a>
|
||||
ul
|
||||
li Bullet 1
|
||||
li Bullet 2
|
||||
li Bullet 3
|
||||
|
||||
section
|
||||
h2 Syntax Highlighting
|
||||
h3 Powered by <a href="http://twitter.com/LeaVerou">Lea Verou</a>'s <a href="https://github.com/LeaVerou/prism">Prism</a>
|
||||
pre
|
||||
code.language-javascript.
|
||||
bespoke.from('article', [
|
||||
classes(),
|
||||
keys(),
|
||||
touch(),
|
||||
bullets('li, .bullet')
|
||||
]);
|
||||
|
||||
section(data-bespoke-hash='named-route')
|
||||
h2 Named Route
|
||||
h3 Powered by <a href="https://github.com/markdalgleish/bespoke-hash">bespoke-hash</a>
|
||||
p Look up! This route has been named with a <em>'data-bespoke-hash'</em> attribute.
|
||||
|
||||
section.emphatic-text(data-bespoke-backdrop='emphatic')
|
||||
h2 Emphatic Slide!
|
||||
h3 Powered by <a href="https://github.com/markdalgleish/bespoke-backdrop">bespoke-backdrop</a>
|
||||
|
||||
section
|
||||
h2.bullet Just the beginning...
|
||||
br
|
||||
ul
|
||||
li Edit <a href="http://jade-lang.com/">Jade</a> markup in <em>'src/index.jade'</em>
|
||||
li Edit <a href="http://learnboost.github.io/stylus/">Stylus</a> styles in <em>'src/styles/main.styl'</em>
|
||||
li Edit JavaScript in <em>'src/scripts/main.js'</em>
|
||||
br
|
||||
ul
|
||||
li
|
||||
strong Enjoy! :)
|
||||
a(href='http://twitter.com/markdalgleish') -@markdalgleish
|
||||
|
||||
script(src='build/build.js')
|
30
presentazione/src/scripts/main.js
Normal file
30
presentazione/src/scripts/main.js
Normal file
@ -0,0 +1,30 @@
|
||||
// Require Node modules in the browser thanks to Browserify: http://browserify.org
|
||||
var bespoke = require('bespoke'),
|
||||
cube = require('bespoke-theme-cube'),
|
||||
keys = require('bespoke-keys'),
|
||||
touch = require('bespoke-touch'),
|
||||
bullets = require('bespoke-bullets'),
|
||||
backdrop = require('bespoke-backdrop'),
|
||||
scale = require('bespoke-scale'),
|
||||
hash = require('bespoke-hash'),
|
||||
progress = require('bespoke-progress'),
|
||||
forms = require('bespoke-forms');
|
||||
|
||||
// Bespoke.js
|
||||
bespoke.from('article', [
|
||||
cube(),
|
||||
keys(),
|
||||
touch(),
|
||||
bullets('li, .bullet'),
|
||||
backdrop(),
|
||||
scale(),
|
||||
hash(),
|
||||
progress(),
|
||||
forms()
|
||||
]);
|
||||
|
||||
// Prism syntax highlighting
|
||||
// This is actually loaded from "bower_components" thanks to
|
||||
// debowerify: https://github.com/eugeneware/debowerify
|
||||
require('prism');
|
||||
|
8
presentazione/src/styles/main.styl
Normal file
8
presentazione/src/styles/main.styl
Normal file
@ -0,0 +1,8 @@
|
||||
// New to Stylus? Check out http://learnboost.github.io/stylus
|
||||
// Use modern CSS thanks to Autoprefixer: https://github.com/ai/autoprefixer
|
||||
|
||||
// Import CSS from "node_modules" and "bower_components"
|
||||
// thanks to Stylus' "import css" and "paths" options
|
||||
|
||||
@import 'prism/themes/prism-okaidia.css'
|
||||
// Check out "bower_components/prism/themes/" for available themes
|
Loading…
Reference in New Issue
Block a user