Browse Source

add theme and template

pull/1/head
Cian Butler 5 years ago
commit
d6af62ca7f
8 changed files with 179 additions and 0 deletions
  1. +43
    -0
      .gitignore
  2. +19
    -0
      LICENSE.md
  3. +7
    -0
      README.md
  4. +15
    -0
      gulpfile.js
  5. +30
    -0
      package.json
  6. +25
    -0
      slides/template.html
  7. BIN
      theme/images/redbrick.png
  8. +40
    -0
      theme/redbrick.scss

+ 43
- 0
.gitignore View File

@@ -0,0 +1,43 @@
# Logs
logs
*.log
npm-debug.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules
jspm_packages

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

dist

+ 19
- 0
LICENSE.md View File

@@ -0,0 +1,19 @@
The MIT License (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

+ 7
- 0
README.md View File

@@ -0,0 +1,7 @@
# revial.js slide deck
Reveal.js slide decks for Redbrick

## To Use
- `npm install`
- make slides in `/slides` by copying index.html
- do presentaion

+ 15
- 0
gulpfile.js View File

@@ -0,0 +1,15 @@
var gulp = require('gulp');
var sass = require('gulp-sass');

gulp.task('copy-images', function () {
return gulp.src('./theme/images/*')
.pipe(gulp.dest('./dist/images/'));
});

gulp.task('sass', function () {
return gulp.src('./theme/redbrick.scss')
.pipe(sass().on('error', sass.logError))
.pipe(gulp.dest('./dist/'));
});

gulp.task('default', ['copy-images', 'sass']);

+ 30
- 0
package.json View File

@@ -0,0 +1,30 @@
{
"name": "reveal-slides",
"version": "1.0.0",
"description": "A Reveal.js slides for redbrick",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"postinstall": "node_modules/gulp/bin/gulp.js"
},
"repository": {
"type": "git",
"url": "git://github.com/redbrick/reveal-slides.git"
},
"keywords": [
"reveal",
"Redbrick",
"theme"
],
"author": "",
"license": "MIT",
"bugs": {
"url": "https://github.com/redbrick/reveal-slides/issues"
},
"homepage": "https://github.com/redbrick/reveal-slides#readme",
"devDependencies": {
"gulp": "^3.9.1",
"gulp-sass": "^2.3.2",
"reveal.js": "^3.3.0"
}
}

+ 25
- 0
slides/template.html View File

@@ -0,0 +1,25 @@
<html>
<head>
<link rel="stylesheet" href="../node_modules/reveal.js/css/reveal.css">
<link rel="stylesheet" href="../dist/redbrick.css">
</head>
<body>
<div class="reveal">
<div class="slides">
<section>
<h1>Slide 1</h1>
<p>Some text</p>
</section>
<section>
<h1>Slide 2</h1>
</section>
</div>
</div>
<script src="../node_modules/reveal.js/js/reveal.js"></script>
<script type="text/javascript" src="//use.typekit.net/nts0xzw.js"></script>
<script> Reveal.initialize({
controls: false,
mouseWheel: true,
});</script>
</body>
</html>

BIN
theme/images/redbrick.png View File

Before After
Width: 1100  |  Height: 258  |  Size: 47 KiB

+ 40
- 0
theme/redbrick.scss View File

@@ -0,0 +1,40 @@
// Default mixins and settings -----------------
@import "../node_modules/reveal.js/css/theme/template/mixins";
@import "../node_modules/reveal.js/css/theme/template/settings";
// ---------------------------------------------

// Override theme settings (see ../template/settings.scss)
$backgroundColor: #fff;
// Background generator
@mixin bodyBackground() {
background: url(images/redbrick.png) bottom 32px left 32px/256px no-repeat, linear-gradient(to bottom, #f0ebe7 20px, #f0ebe7 100%);
}

$mainColor: #000;
$headingColor: #000;

$mainFontSize: 38px;
$mainFont: 'myriad-pro', Helvetica, sans-serif;
$headingFont: 'myriad-pro', Helvetica, sans-serif;
$headingTextShadow: none;
$headingLetterSpacing: normal;
$headingTextTransform: uppercase;
$headingFontWeight: 600;
$linkColor: #0093D5;
$linkColorHover: lighten( $linkColor, 15% );
$selectionBackgroundColor: lighten( $linkColor, 25% );

$heading1Size: 2.5em;
$heading2Size: 1.6em;
$heading3Size: 1.3em;
$heading4Size: 1.0em;

section.has-dark-background {
&, h1, h2, h3, h4, h5, h6 {
color: #fff;
}
}

// Theme template ------------------------------
@import "../node_modules/reveal.js/css/theme/template/theme";
// ---------------------------------------------

Loading…
Cancel
Save