Skip to content

Commit

Permalink
Webslides code added
Browse files Browse the repository at this point in the history
  • Loading branch information
roshannoronha committed Apr 29, 2023
1 parent dbdc915 commit 6a8f300
Show file tree
Hide file tree
Showing 10 changed files with 322 additions and 0 deletions.
Binary file modified .DS_Store
Binary file not shown.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "themes/hugo-webslides"]
path = themes/hugo-webslides
url = https://github.com/rcjach/hugo-webslides.git
Empty file added .hugo_build.lock
Empty file.
6 changes: 6 additions & 0 deletions archetypes/default.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
---

24 changes: 24 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
baseurl = "/"
theme = "hugo-webslides"
languageCode = "en-us"
title = "A Hugo theme for creating Webslides.js presentations"

[params]
author = "RCJacH"
homepage = "RCJacH.github.io"

[params.webslides]
banner = false
slideshow = true
vertical = false
autoslide = false
changeOnClick = false
disableLoop = false
minWheelDelta = 40
disableNavigateOnScroll = false
scrollWait = 450
slideOffset = 50
hideIndex = false

[blackfriday]
extensionsmask = ["autoHeaderIds"]
154 changes: 154 additions & 0 deletions content/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
+++
title = "Hugo-Webslides"
+++
<!--: .wrap .size-70 ..aligncenter bgimage=images/pencil.jpg -->


## **Hugo-Webslides**

Use markdown to write contents and render with [**WebSlides**](https://webslides.tv) to HTML.
{ .text-intro }

[{{< svg fa-github >}}Github](https://github.com/RCJacH/hugo-webslides)

---

<!--: .wrap -->

## **WebSlides Demos**
Here's what you can do with [WebSlides](https://webslides.tv).

- {{< gallery title="Why WebSlides" href="#slide=10" src="https://webslides.tv/static/images/demos-why.png" >}}Why WebSlides{{< /gallery >}}
- {{< gallery title="Landings" href="https://webslides.tv/demos/landings" src="https://webslides.tv/static/images/demos-landings.png" >}}Landings{{< /gallery >}}
- {{< gallery title="Portfolios" href="https://webslides.tv/demos/portfolios" src="https://webslides.tv/static/images/demos-portfolios.png" >}}Portfolios{{< /gallery >}}
- {{< gallery title="Keynote" href="https://webslides.tv/demos/apple" src="https://webslides.tv/static/images/demos-apple.png" >}}Keynote{{< /gallery >}}
{ .flexblock .gallery }

---
<!--: .wrap -->

## **More Examples**
<small>Note. None of these slides are currently ported to Hugo-Webslides...YET.</small>

- {{< gallery title="Netflix's Culture" href="https://webslides.tv/demos/netflix-culture" src="https://webslides.tv/static/images/demos-netflix.png" >}}Netflix{{< /gallery >}}
- {{< gallery title="Longform Articles" href="https://webslides.tv/demos/longforms" src="https://webslides.tv/static/images/demos-longforms.png" >}}Longforms{{< /gallery >}}
- {{< gallery title="Interviews" href="https://webslides.tv/demos/interviews" src="https://webslides.tv/static/images/demos-interviews.png" >}}Interviews{{< /gallery >}}
{ .flexblock .gallery }


---
<!-- : .wrap .size-40 -->

### **Configuration**

You can modify WebSlides settings directly from your project config.toml.
{ .text-intro }

~~~toml
[params.webslides]
banner = false
slideshow = true
vertical = false
autoslide = false
changeOnClick = false
disableLoop = false
minWheelDelta = 40
disableNavigateOnScroll = false
scrollWait = 450
slideOffset = 50
hideIndex = false
~~~


---
<!-- : .wrap -->

|||v

### **All from one markdown file**

Use three dashes "<code>-</code>" to create a separate slide page.

|||

~~~md

Slide1

---

Slide2

~~~

---
<!-- : .wrap -->


|||

~~~
content
├── home
│ ├── home1.md (weight: 1)
│ └── home2.md (weight: 2)
└── _index.md (initial page)
~~~

|||

### Or not.

You can combine and arrange files with the weight parameter in front matter, and categorize .md files into different folders.

---
<!-- : .aligncenter -->

## Slide Attributes

Assign attributes to a slide by using the following notation.

~~~
---
<!-- : .class .class2 ..sub-class bg=bg-class bgimage=(frame|dark|light)|http://image-url/ bgpos=POSITION -->
~~~

~~~html
<section id="section-x" class="bg-class slide current" style="">
<span class="background-POSITION" style="background-image:url('http://image-url/')"></span>
<span class="background frame"></span>
<div class="class class2">
<div class="sub-class">
CONTENT
</div>
</div>
</section>
~~~
---
<!-- : .wrap -->

### Assign class to elements

note: ***depreciated*** with the introduction of [Hugo's native block attribute](https://gohugo.io/news/0.81.0-relnotes#attribute-lists-after-markdown-blocks)

- {{< flexblock "Headers and Paragraphs" 6 >}}
<span># <!-</span>- : .hClass -<span>-></span>Header<br>
<span><!-</span>- : .pClass -<span>-></span>Paragraph
~~~html
<h1 class="hClass">Header</h1>
<p class="pClass">Paragraph</p>
~~~
{{< /flexblock >}}

- {{< flexblock "Lists" 6 >}}
<span><!-</span>- : .listClass -<span>-></span><br>
<span>-</span> list1<br>
<span>-</span> list2
~~~
<ul class="listClass">
<li>list1</li>
<li>list2</li>
</ul>
~~~
{{< /flexblock >}}
{ .flexblock }
14 changes: 14 additions & 0 deletions content/home/install.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
+++
title = "Install Now"
weight = 1
bg = "bg-gradient-h"
+++
<!-- : .wrap -->

### **Install Now**
Run from the root of your Hugo site:
{.text-intro}

~~~
$ git clone https://github.com/RCJacH/hugo-webslides.git themes/hugo-webslides
~~~
120 changes: 120 additions & 0 deletions content/why.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
+++
weight = 2
+++
<!--: .wrap .aligncenter -->

# Good Karma {.text-landing}

[**WebSlides**](http://webslides.tv) &mdash; HTML presentations made easy. <br>
{.text-intro}
Hypertext and beauty as narrative elements.

[Twitter](https://twitter.com/webslides)
[Dribble](https://dribbble.com/tags/webslides)
[Github](https://github.com/webslides/webslides)

---
<!--: .wrap .fadeInUp bg=bg-black bg=aligncenter bgimage=frame|https://source.unsplash.com/OkAAx4mI2Hc/ -->

# Everyone {{< svg fa-heart-o >}} Stories

---
<!--: .wrap ..content-center -->

## **Why WebSlides?**

<blockquote>
<p>"I feel guilty as a web designer when I have to use PowerPoint and Keynote. So I made <a href="https://twitter.com/search?q=%23webslides&amp;src=typd">#WebSlides</a>."</p>
<p><cite> <img class="avatar-40" src="https://raw.githubusercontent.com/webslides/WebSlides/master/static/images/avatar.jpg" alt="Avatar"> <a href="http://twitter.com/jlantunez/">@jlantunez</a>.</cite></p>
</blockquote>

---
<!--: .wrap -->

|||v

### **WebSlides is really easy**
Each parent <code>&lt;section&gt;</code> in the #webslides element is an individual slide.
{.text-intro}

Code is clean, scalable, and well documented. It uses **intuitive markup** with popular naming conventions. There's no need to overuse classes or nesting. **Based on [SimpleSlides](https://github.com/jennschiffer/SimpleSlides), by [Jenn Schiffer](http://jennmoney.biz)** :)

|||

<pre>&lt;article id="webslides"&gt;
<span class="code-comment">&lt;!-- Slide 1 --&gt;</span>
&lt;section&gt;
&lt;h1&gt;Design for trust&lt;/h1&gt;
&lt;/section&gt;
<span class="code-comment">&lt;!-- Slide 2 --&gt;</span>
&lt;section class="bg-primary"&gt;
&lt;div class="wrap"&gt;
&lt;h2&gt;.wrap = container (width: 90%)&lt;/h2&gt;
&lt;/div&gt;
&lt;/section&gt;
&lt;/article&gt;
</pre>

---
<!--: .wrap -->

{{< div class="content-left" >}}
## WebSlides was made to inspire people.
{{< /div >}}

{{< div class="content-left" >}}
There are excellent presentation tools out there. WebSlides is **an open source solution** for telling stories. Hypertext and beauty as narrative elements.
{{< /div >}}

- {{< flexblock "<span>&rarr;</span> Keyboard navigation" >}}with arrow keys.{{< /flexblock >}}
- <div><h2>{{< svg fa-link >}}Go to a specific slide</h2>URL: #slide=number</div>
- <div><h2>{{< svg fa-clock-o >}}Slide counter</h2>Current/Total number.</div>
{.flexblock .features}

---
<!--: .wrap -->

- {{< flexblock "<span>100<sup>%</sup></span> customizable" >}}Well documented.{{< /flexblock >}}
- {{< flexblock "<span>40<sup>+</sup></span> Beautiful Components" >}}Covers, cards, quotes...{{< /flexblock >}}
- <div><h2>{{< svg fa-list >}}Flexible blocks</h2>with auto-fill and equal height.</div>
- <div><h2>{{< svg fa-text-height >}}Vertical rhythm</h2>Use multiples of 8.</div>
- <div><h2>{{< svg fa-language >}}Fade transition</h2>to all slides.</div>
- {{< flexblock "<span>500<sup>+</sup></span>SVG Icons" >}}Font Awesome Kit.{{< /flexblock >}}
{.flexblock .features}

---
<!--: .wrap -->

|||v

### Support

Making a beautiful HTML presentation has never been so rewarding.

- **Demos:** [Landings](https://webslides.tv/demos/landings) &middot; [Portfolios](https://webslides.tv/demos/portfolios.html)
- **Docs:** [Components](https://webslides.tv/demos/components.html) &middot; [Classes](https://webslides.tv/demos/classes.html)
- **Tags:** [Dribble](https://dribbble.com/tags/webslides) &middot; [Instagram](https://instagram.com/webslides)
{.description}

|||

[<img class="aligncenter" src="https://raw.githubusercontent.com/webslides/WebSlides/master/static/images/setup.png" alt="WebSlides Files">](https://github.com/webslides/webslides")

|||

### Extensible

The best way to inspire with your content is to connect on a personal level:

- **Animations:** [Animate.css](https://github.com/daneden/animate.css/).
- **Images:** [Unsplash](http://unsplash.com).
- **Videos:** [Pixabay](https://pixabay.com/en/videos).
{.description}

---
<!--: bg=bg-apple bg=aligncenter .wrap bgimage=https://webslides.tv/static/images/tim-cook.png bgpos=right-bottom -->

## One more thing...

[Make your keynote &mdash; <code>.bg-apple</code>](https://webslides.tv/demos/keynote.html)
{.fadeInUp}
Binary file added themes/.DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions themes/hugo-webslides
Submodule hugo-webslides added at 86ef38

0 comments on commit 6a8f300

Please sign in to comment.