Skip to content

Commit ea85c71

Browse files
committed
initial commit
0 parents  commit ea85c71

File tree

150 files changed

+40730
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+40730
-0
lines changed

.github/CONTRIBUTING.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
## Contributing
2+
Please keep the [issue tracker](https://github.com/hakimel/reveal.js/issues) limited to **bug reports**.
3+
4+
5+
### General Questions and Support
6+
If you have questions about how to use reveal.js the best place to ask is in the [Discussions](https://github.com/hakimel/reveal.js/discussions). Anything that isn't a bug report should be posted as a dicussion instead.
7+
8+
9+
### Bug Reports
10+
When reporting a bug make sure to include information about which browser and operating system you are on as well as the necessary steps to reproduce the issue. If possible please include a link to a sample presentation where the bug can be tested.
11+
12+
13+
### Pull Requests
14+
- Should be submitted from a feature/topic branch (not your master)
15+
- Should follow the coding style of the file you work in, most importantly:
16+
- Tabs to indent
17+
- Single-quoted strings
18+
19+
20+
### Plugins
21+
Please do not submit plugins as pull requests. They should be maintained in their own separate repository. More information here: https://github.com/hakimel/reveal.js/wiki/Plugin-Guidelines

.github/FUNDING.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: [hakimel]

.github/workflows/js.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: tests
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
strategy:
11+
matrix:
12+
node-version: [10.x, 14.x, 16.x]
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Use Node.js ${{ matrix.node-version }}
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: ${{ matrix.node-version }}
20+
- run: npm install
21+
- run: npm run build --if-present
22+
- run: npm test
23+
env:
24+
CI: true

.gitignore

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.idea/
2+
*.iml
3+
*.iws
4+
*.eml
5+
out/
6+
.DS_Store
7+
.svn
8+
log/*.log
9+
tmp/**
10+
node_modules/
11+
.sass-cache

.npmignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/test
2+
/examples
3+
.github
4+
.gulpfile
5+
.sass-cache
6+
gulpfile.js
7+
CONTRIBUTING.md

.vscode/snipsnap.code-snippets

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<html>
2+
<head><title>404 Not Found</title></head>
3+
<body>
4+
<center><h1>404 Not Found</h1></center>
5+
<hr><center>nginx</center>
6+
</body>
7+
</html>

LICENSE

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (C) 2011-2022 Hakim El Hattab, http://hakim.se, and reveal.js contributors
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in
11+
all copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
THE SOFTWARE.

README.md

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
<p align="center">
2+
<a href="https://revealjs.com">
3+
<img src="https://hakim-static.s3.amazonaws.com/reveal-js/logo/v1/reveal-black-text-sticker.png" alt="reveal.js" width="500">
4+
</a>
5+
<br><br>
6+
<a href="https://github.com/hakimel/reveal.js/actions"><img src="https://github.com/hakimel/reveal.js/workflows/tests/badge.svg"></a>
7+
<a href="https://slides.com/"><img src="https://s3.amazonaws.com/static.slid.es/images/slides-github-banner-320x40.png?1" alt="Slides" width="160" height="20"></a>
8+
</p>
9+
10+
reveal.js is an open source HTML presentation framework. It enables anyone with a web browser to create beautiful presentations for free. Check out the live demo at [revealjs.com](https://revealjs.com/).
11+
12+
The framework comes with a powerful feature set including [nested slides](https://revealjs.com/vertical-slides/), [Markdown support](https://revealjs.com/markdown/), [Auto-Animate](https://revealjs.com/auto-animate/), [PDF export](https://revealjs.com/pdf-export/), [speaker notes](https://revealjs.com/speaker-view/), [LaTeX typesetting](https://revealjs.com/math/), [syntax highlighted code](https://revealjs.com/code/) and an [extensive API](https://revealjs.com/api/).
13+
14+
---
15+
16+
Want to create reveal.js presentation in a graphical editor? Try <https://slides.com>. It's made by the same people behind reveal.js.
17+
18+
---
19+
20+
### Sponsors
21+
Hakim's open source work is supported by <a href="https://github.com/sponsors/hakimel">GitHub sponsors</a>. Special thanks to:
22+
<div align="center">
23+
<table>
24+
<td align="center">
25+
<a href="https://workos.com/?utm_campaign=github_repo&utm_medium=referral&utm_content=revealjs&utm_source=github">
26+
<div>
27+
<img src="https://user-images.githubusercontent.com/629429/151508669-efb4c3b3-8fe3-45eb-8e47-e9510b5f0af1.svg" width="290" alt="WorkOS">
28+
</div>
29+
<b>Your app, enterprise-ready.</b>
30+
<div>
31+
<sub>Start selling to enterprise customers with just a few lines of code. Add Single Sign-On (and more) in minutes instead of months.</sup>
32+
</div>
33+
</a>
34+
</td>
35+
<td align="center">
36+
<a href="https://www.doppler.com/?utm_campaign=github_repo&utm_medium=referral&utm_content=revealjs&utm_source=github">
37+
<div>
38+
<img src="https://user-images.githubusercontent.com/629429/151510865-9fd454f1-fd8c-4df4-b227-a54b87313db4.png" width="290" alt="Doppler">
39+
</div>
40+
<b>All your environment variables, in one place</b>
41+
<div>
42+
<sub>Stop struggling with scattered API keys, hacking together home-brewed tools, and avoiding access controls. Keep your team and servers in sync with Doppler.</sup>
43+
</div>
44+
</a>
45+
</td>
46+
</table>
47+
</div>
48+
49+
---
50+
51+
### Getting started
52+
- 🚀 [Install reveal.js](https://revealjs.com/installation)
53+
- 👀 [View the demo presentation](https://revealjs.com/demo)
54+
- 📖 [Read the documentation](https://revealjs.com/markup/)
55+
- 🖌 [Try the visual editor for reveal.js at Slides.com](https://slides.com/)
56+
- 🎬 [Watch the reveal.js video course (paid)](https://revealjs.com/course)
57+
58+
---
59+
<div align="center">
60+
MIT licensed | Copyright © 2011-2022 Hakim El Hattab, https://hakim.se
61+
</div>

css/layout.scss

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
/**
2+
* Layout helpers.
3+
*/
4+
5+
// Stretch an element vertically based on available space
6+
.reveal .stretch,
7+
.reveal .r-stretch {
8+
max-width: none;
9+
max-height: none;
10+
}
11+
12+
.reveal pre.stretch code,
13+
.reveal pre.r-stretch code {
14+
height: 100%;
15+
max-height: 100%;
16+
box-sizing: border-box;
17+
}
18+
19+
// Text that auto-fits its container
20+
.reveal .r-fit-text {
21+
display: inline-block; // https://github.com/rikschennink/fitty#performance
22+
white-space: nowrap;
23+
}
24+
25+
// Stack multiple elements on top of each other
26+
.reveal .r-stack {
27+
display: grid;
28+
}
29+
30+
.reveal .r-stack > * {
31+
grid-area: 1/1;
32+
margin: auto;
33+
}
34+
35+
// Horizontal and vertical stacks
36+
.reveal .r-vstack,
37+
.reveal .r-hstack {
38+
display: flex;
39+
40+
img, video {
41+
min-width: 0;
42+
min-height: 0;
43+
object-fit: contain;
44+
}
45+
}
46+
47+
.reveal .r-vstack {
48+
flex-direction: column;
49+
align-items: center;
50+
justify-content: center;
51+
}
52+
53+
.reveal .r-hstack {
54+
flex-direction: row;
55+
align-items: center;
56+
justify-content: center;
57+
}
58+
59+
// Naming based on tailwindcss
60+
.reveal .items-stretch { align-items: stretch; }
61+
.reveal .items-start { align-items: flex-start; }
62+
.reveal .items-center { align-items: center; }
63+
.reveal .items-end { align-items: flex-end; }
64+
65+
.reveal .justify-between { justify-content: space-between; }
66+
.reveal .justify-around { justify-content: space-around; }
67+
.reveal .justify-start { justify-content: flex-start; }
68+
.reveal .justify-center { justify-content: center; }
69+
.reveal .justify-end { justify-content: flex-end; }

0 commit comments

Comments
 (0)