title: nodeppt - 这可能是迄今为止最好的网页版演示库 speaker: 三水清 url: https://github.com/ksky521/nodeppt js: - https://www.echartsjs.com/asset/theme/infographic.js plugins: - echarts: {theme: infographic} - mermaid: {theme: forest} - katex
这可能是迄今为止最好的网页版演示库 {.text-intro.animated.fadeInUp.delay-500}
:fa-github: Github{.button.ghost.animated.flipInX.delay-1200}
npm install -g nodeppt
{.animated.fadeInUp}
# create a new slide with an official template
$ nodeppt new slide.md
# create a new slide straight from a github template
$ nodeppt new slide.md -t username/repo
# start local sever show slide
$ nodeppt serve slide.md
# to build a slide
$ nodeppt build slide.md
- Keyboard Shortcuts {.animated.fadeInUp}
- CSS Syntax {.animated.fadeInUp.delay-400}
- Background {.animated.fadeInUp.delay-800}
- Animation {.animated.fadeInUp.delay-1200}
- Content Position {.animated.fadeInUp.delay-1600}
- Quotes {.animated.fadeInUp.delay-2s}
- Plugins: echarts/mermaid/ketax {.animated.fadeInUp.delay-2400}
- Others: Button/Table.. {.animated.fadeInUp.delay-2800}
- Speaker mode.. {.animated.fadeInUp.delay-3200}
- Page: ↑/↓/←/→ Space Home End
- Fullscreen: F
- Overview: -/+
- Speaker Note: N
- Grid Background: Enter
:::note
:::
WebSlides is so easy to understand and love. Baseline: 8. {.text-intro}
- :Typography::{.text-label} .text-landing, .text-subtitle, .text-data, .text-intro...
- :BG Colors::{.text-label} .bg-primary, .bg-blue,.bg-apple...
- :BG Images::{.text-label} .background, .background-center-bottom...
- :Sizes::{.text-label} .size-50, .size-40...
- :Component::{.text-label} card, flexblock, gallery...
- :Animation::{.text-label} autoplay, animate.css... {.description}
.text-landing
Create a simple web presence. {.text-intro}
.text-intro
POWERED BY #WEBSLIDES .text-subtitle
{.text-subtitle}
Create a simple web presence. {.text-intro}
.text-intro
.text-shadow
{.text-intro}
.text-data
Why WebSlides? .text-context {.text-content}
.text-cols (2 columns)
:::div {.text-cols}
Why WebSlides? There are excellent presentation tools out there. WebSlides is about sharing content, essential features, and clean markup. Each parent <slide> in the #webslides element is an individual slide.
WebSlides help you build a culture of innovation and excellence. When you're really passionate about your job, you can change the world. How to manage a design-driven organization? Leadership through usefulness, openness, empathy, and good taste.
:::
:::flexblock {.metrics}
:fa-phone:
Call us at 555.345.6789
:fa-twitter:
@username
:fa-envelope: Send us an email :::
## Corporate Backgrounds :::flexblock {.blink.border}#44d
#67d
#edf2f7
#f7f9fb
:::
:::flexblock {.blink.border}
#111
#123
#fff :::
:::flexblock {.border.blink}
#c23
#077
#346
#62b
:::
:::flexblock {.border.blink}
rgba(0, 0, 0, 0.5)
rgba(255, 255, 255, 0.2)
:::
# Gradients:::flexblock {.border}
Horizontal
.bg-gradient-h
Radial
.bg-gradient-r
Vertical
.bg-gradient-v
:::
.bg-gradient-v
.bg-gradient-r
.background-video
<slide class="bg-blue aligncenter" video="https://webslides.tv/static/videos/working.mp4 poster='https://webslides.tv/static/images/working.jpg' .dark">
or .light
<slide youtube=".dark id='_m67JbGjWnc' autoplay loop">
:::{.content-left}
:::flexblock {.specs} ::fa-wifi::
Simple and secure file sharing.
::fa-battery-full::
Your battery worries may be over.
::fa-life-ring::
We'll fix it or if we can't, we'll replace it.
:::
:::shadowbox
:::shadowbox
There're excellent presentation tools out there. WebSlides is about telling the story, and sharing it in a beautiful way. Hypertext and clean code as narrative elements.
Designers, marketers, and journalists can now focus on the content. Simply choose a demo and customize it in minutes.
:::
:::card
.card-50.bg-white
Unsplash is a really cool resource. It is a collection of Creative Commons Zero licensed photos that are really great. {.text-intro}
- :Role::{.text-label} Frontend
- :client::{.text-label} Acme
- :year::{.text-label} 2018 {.description}
:::
:::card
Bonsai is a Japanese art form using trees grown in containers — .fullscreen > .card-50. {.text-intro}
Similar practices exist in other cultures, including the Chinese tradition of penjing from which the art originated, and the miniature living landscapes of Vietnamese hòn non bộ.
:::
:::flexblock
= Flexible blocks with auto-fill and equal height.
:::flexblock
Businesses that people love5
Businesses that people love6
Businesses that people love7
Businesses that people love8
:::
:::flexblock {.blink.border}
Businesses that people love1
Businesses that people love2
Businesses that people love3
Businesses that people love4
:::
{.clients}
:::flexblock {.clients}
Collaboration with the Acme team to design their mobile apps.
Collaboration with the Acme team to design their mobile apps.
Collaboration with the Acme team to design their mobile apps.
Collaboration with the Acme team to design their mobile apps.
:::
### Gallery:::gallery
:::gallery
Founder & CEO
Master of nothing
VP of Design
:::
### Gallery overlay `:::gallery-overlay`:::gallery-overlay
Founder & CEO
CTO
VP of Design
:::
:::cta
::^$^40::
.frame.bg-red
:::
## Grid Columns :::column ### **:fa-line-chart: Design**Design for growth. We've built a team of world-class designers, developers, and managers.
We connect your audience needs, business goals, and brand values into a strategy.
We offer personalized services with deep expertise in design and technology.
We train teams to help organizations succeed in the digital age. :::
.animated.lightSpeedIn.slow
{.lightSpeedIn.animated.slow}
- fadeIn{.bounce}
- swing{.swing}
- flash{.flash}
- pulse{.pulse}
- shake{.shake}
- bounceIn{.bounceIn}
- wobble{.wobble}
- fadeInLeft{.fadeInLeft}
- flipInX{.flipInX}
- tada{.tada}
- slideInUp{.slideInUp}
- jello{.jello}
- heartBeat{.heartBeat}
- fadeInUp{.fadeInUp}
- lightSpeedIn{.lightSpeedIn} {.text-cols.build}
.slide-top and .content-left
.slide-top and .content-center
.slide-top and .content-right
.content-left
.content-center
.content-right
.slide-bottom
and .content-left
.slide-bottom
and .content-center
.slide-bottom
and .content-right
:::div {.content-left} :fa-tree large:
:::
Beauty overdose. .text-pull-right
{.text-intro}
Imagine that you are in Florence. If you suddenly start to feel that you literally cannot breathe, you may be experiencing Stendhal Syndrome.
Psychiatrists have long debated whether it really exists. {.text-pull-right}
The syndrome is not only associated with viewing a beautiful place, but also good art.
The beauty of Italian art has a concentrated perfection and transcendent sensuality that is incredibly addictive.
:::{.aligncenter}
Put content wherever you want. :::
:::footer Footer: logo, credits... (.alignleft) {.alignleft}
:fa-twitter: @username .alignright{.alignright}
:::
:::header Header (logo) :.alignright:{.alignright} :::
:::column {.vertical-align}
Each parent <section>
in the #webslides element is an individual slide. {.text-intro}
Code is neat, scalable, and well documented. It uses intuitive markup with popular naming conventions. There's no need to overuse classes or nesting. Based on SimpleSlides , by Jenn Schiffer :)
<article id="webslides">
<!-- Slide 1 -->
<section>
<h1>Design for trust</h1>
</section>
<!-- Slide 2 -->
<section class="bg-primary">
<div class="wrap">
<h2>.wrap = container (width: 90%) with fadein</h2>
</div>
</section>
</article>
:::
Vertical sliding? <article id="webslides" class="vertical">
{.aligncenter}
Optional · 500+ icons {.text-subtitle}
:fa-flag: Font Awesome as SVG icons {.animated.bounceIn}
:fa-flag:
:::div {.content-right}
:::card {.quote}"There is something only a CEO uniquely can do, which is set that tone, which can then capture the soul of the collective." ==Satya Nadella, CEO of Microsoft.== :::
## echarts {.aligncenter}“WebSlides helped us build a culture of innovation and excellence.” ==Leonardo da Vinci==
{
tooltip: {
trigger: 'item',
formatter: "{a} <br/>{b}: {c} ({d}%)"
},
legend: {
orient: 'vertical',
x: 'left',
data:['直达','营销广告','搜索引擎','邮件营销','联盟广告','视频广告','百度','谷歌','必应','其他']
},
series: [
{
name:'访问来源',
type:'pie',
selectedMode: 'single',
radius: [0, '30%'],
label: {
normal: {
position: 'inner'
}
},
labelLine: {
normal: {
show: false
}
},
data:[
{value:335, name:'直达', selected:true},
{value:679, name:'营销广告'},
{value:1548, name:'搜索引擎'}
]
},
{
name:'访问来源',
type:'pie',
radius: ['40%', '55%'],
label: {
normal: {
formatter: '{a|{a}}{abg|}\n{hr|}\n {b|{b}:}{c} {per|{d}%} ',
backgroundColor: '#eee',
borderColor: '#aaa',
borderWidth: 1,
borderRadius: 4,
// shadowBlur:3,
// shadowOffsetX: 2,
// shadowOffsetY: 2,
// shadowColor: '#999',
// padding: [0, 7],
rich: {
a: {
color: '#999',
lineHeight: 22,
align: 'center'
},
// abg: {
// backgroundColor: '#333',
// width: '100%',
// align: 'right',
// height: 22,
// borderRadius: [4, 4, 0, 0]
// },
hr: {
borderColor: '#aaa',
width: '100%',
borderWidth: 0.5,
height: 0
},
b: {
fontSize: 16,
lineHeight: 33
},
per: {
color: '#eee',
backgroundColor: '#334455',
padding: [2, 4],
borderRadius: 2
}
}
}
},
data:[
{value:335, name:'直达'},
{value:310, name:'邮件营销'},
{value:234, name:'联盟广告'},
{value:135, name:'视频广告'},
{value:1048, name:'百度'},
{value:251, name:'谷歌'},
{value:147, name:'必应'},
{value:102, name:'其他'}
]
}
]
}
sequenceDiagram
Alice ->> Bob: Hello Bob, how are you?
Bob-->>John: How about you John?
Bob--x Alice: I am good thanks!
Bob-x John: I am good thanks!
Note right of John: Bob thinks a long<br/>long time, so long<br/>that the text does<br/>not fit on a row.
Bob-->Alice: Checking with John...
Alice->John: Yes... John, how are you?
sequenceDiagram
participant Alice
participant Bob
Alice->>John: Hello John, how are you?
loop Healthcheck
John->>John: Fight against hypochondria
end
Note right of John: Rational thoughts<br/>prevail...
John-->>Alice: Great!
John->>Bob: How about you?
Bob-->>John: Jolly good!
gantt
dateFormat YYYY-MM-DD
title Adding GANTT diagram functionality to mermaid
section A section
Completed task :done, des1, 2014-01-06,2014-01-08
Active task :active, des2, 2014-01-09, 3d
Future task : des3, after des2, 5d
Future task2 : des4, after des3, 5d
section Critical tasks
Completed task in the critical line :crit, done, 2014-01-06,24h
Implement parser and jison :crit, done, after des1, 2d
Create tests for parser :crit, active, 3d
Future task in critical line :crit, 5d
Create tests for renderer :2d
Add to mermaid :1d
section Documentation
Describe gantt syntax :active, a1, after des1, 3d
Add gantt diagram to demo page :after a1 , 20h
Add another diagram to demo page :doc1, after a1 , 48h
section Last section
Describe gantt syntax :after doc1, 3d
Add gantt diagram to demo page :20h
Add another diagram to demo page :48h
graph TD
B["fa:fa-twitter for peace"]
B-->C[fa:fa-ban forbidden]
B-->D(fa:fa-spinner);
B-->E(A fa:fa-camera-retro perhaps?);
equation | description |
---|---|
divergence of |
|
curl of |
|
wha? |
::: {.content-left}
.button{.button} .button.radius{.button.radius}
.button.ghost{.button.ghost} :fa-github: svg-icon{.button} :::
::: {.content-left}
{.avatar-40} {.avatar-48} {.avatar-56} {.avatar-64} {.avatar-72} {.avatar-80}
(80, 72, 64, 56, 48, and 40). :::
- Niubility!
- WebSlides
- Webpack build in
- Markdown-it
- Posthtml
- Prismjs
Left-aligned | Center-aligned | Right-aligned |
---|---|---|
git status | git status | git status |
git diff | git diff | git diff |
git status | git status | git status |
Click Url + ?mode=speaker{.bg-primary style="font-size:120%"} to show Speaker Mode.
* * * {.text-symbols}
* [:fa-th-large: Layout](./layout.html) * [:fa-tv: Background](./background.html) * [:fa-magic: Animation](./animation.html) * [:fa-cube: Component](./component.html) * [:fa-youtube: Media](./media.html) {.no-list-style}快使用 nodeppt 轻松搞定高大上 PPT
nodeppt 助力你的人生逆袭之路! {.text-into.animated.delay-800.fadeIn}
:fa-cloud-download: Github{.button.animated.delay-1s.fadeInUp}