-
-
Save bitsnaps/36c8f76f8192a2a3dd99163fdbb9c023 to your computer and use it in GitHub Desktop.
Reveal.js in Vue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div id="app"> | |
<!-- <img src="./assets/logo.png"> | |
<HelloWorld msg="Welcome to Your Vue.js App"/> --> | |
<div class="reveal"> | |
<div class="slides"> | |
<section>Single Horizontal Slide</section> | |
<section> | |
<section>Vertical Slide 1</section> | |
<section>Vertical Slide 2</section> | |
</section> | |
</div> | |
</div> | |
</div> | |
</template> | |
<script> | |
// import HelloWorld from './components/HelloWorld.vue' | |
import Reveal from 'reveal.js/js/reveal' | |
export default { | |
name: 'app', | |
components: { | |
// HelloWorld | |
}, | |
mounted() { | |
Reveal.initialize() | |
} | |
} | |
</script> | |
<style> | |
@import url('../node_modules/reveal.js/css/reveal.css'); | |
@import url('../node_modules/reveal.js/css/theme/white.css'); | |
#app { | |
font-family: 'Avenir', Helvetica, Arial, sans-serif; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
text-align: center; | |
color: #2c3e50; | |
/* margin-top: 60px; */ | |
height: 100vh; | |
} | |
</style> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "reveal", | |
"version": "0.1.0", | |
"private": true, | |
"scripts": { | |
"serve": "vue-cli-service serve", | |
"build": "vue-cli-service build", | |
"lint": "vue-cli-service lint" | |
}, | |
"dependencies": { | |
"reveal.js": "^3.6.0", | |
"vue": "^2.5.13" | |
}, | |
"devDependencies": { | |
"@vue/cli-plugin-babel": "^3.0.0-beta.6", | |
"@vue/cli-plugin-eslint": "^3.0.0-beta.6", | |
"@vue/cli-service": "^3.0.0-beta.6", | |
"vue-template-compiler": "^2.5.13" | |
}, | |
"babel": { | |
"presets": [ | |
"@vue/app" | |
] | |
}, | |
"eslintConfig": { | |
"root": true, | |
"extends": [ | |
"plugin:vue/essential", | |
"eslint:recommended" | |
] | |
}, | |
"postcss": { | |
"plugins": { | |
"autoprefixer": {} | |
} | |
}, | |
"browserslist": [ | |
"> 1%", | |
"last 2 versions", | |
"not ie <= 8" | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment