• Stars
    star
    164
  • Rank 228,906 (Top 5 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 8 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Terminal component that can be used in a spectacle slide deck

spectacle-terminal

Terminal component that can be used in a spectacle slide deck

Install

$ npm install --save spectacle
$ npm install --save spectacle-terminal

Demo

Interactive Demo

Usage

import React from "react";
import { Spectacle, Deck, Slide, Heading } from "spectacle";
import createTheme from "spectacle/lib/themes/default";
import Terminal from "spectacle-terminal";

const theme = createTheme({ primary: "#ff4081" });

export default class Presentation extends React.Component {
  render() {
    return (
      <Spectacle theme={ theme }>
        <Deck transition={ [] } transitionDuration={ 0 } progress="bar">
          <Slide transition={[ "spin", "slide" ]} bgColor="primary">
            <Heading size={ 2 } caps fit textColor="tertiary">Terminal</Heading>
            <Terminal title="1. elijahm@elijahm: ~(zsh)" output={[
              "npm test",
              <div style={{ color: "#33B969"}}>TOTAL: 174 SUCCESS</div>,
              <div>
                <div>=============================== Coverage summary ===============================</div>
                <div style={{ color: "#DEC612"}}>Statements   : 51.29% ( 278/542 )</div>
                <div style={{ color: "#EE5057"}}>Branches     : 38.78% ( 95/245 )</div>
                <div style={{ color: "#EE5057"}}>Functions    : 46.21% ( 61/132 )</div>
                <div style={{ color: "#DEC612"}}>Lines        : 52.69% ( 274/520 )</div>
                <div>================================================================================</div>
              </div>]}
            />
          </Slide>
        </Deck>
      </Spectacle>
    );
  }
}

More Repositories

1

eslint-plugin-smells

ESLint rules for JavaScript Smells
JavaScript
169
star
2

dotfiles

Lua
160
star
3

cross-var

JavaScript
117
star
4

react-file-size

http://elijahmanor.com/react-file-size
JavaScript
48
star
5

youtube-lazyvim

Lua
36
star
6

devpun

A collection of developer jokes
JavaScript
33
star
7

elijahmanor.github.com

Elijah Manor's Blog
JavaScript
17
star
8

egghead-course-react-hooks

This contains the code for the egghead.io course “State and Effects in Function Components with React Hooks”
JavaScript
17
star
9

jqGridAddEditDelete

jQuery jqGrid Plugin: Add, Edit, Delete with ASP.NET MVC
JavaScript
16
star
10

export-to-vscode.nvim

Neovim plugin to export active buffers to VS Code
Lua
14
star
11

amplify-request-deferred

Adding jQuery Deferred support to the amplify.request component
JavaScript
12
star
12

elijahmanor

Information about Elijah Manor
JavaScript
11
star
13

egghead-playlist-react-blessed

JavaScript
11
star
14

gruntify-fed

Bootstrap for a Grunt Front-End Dev Project
JavaScript
8
star
15

youtube-lazyvim-tailwind

Lua
7
star
16

egghead-speech-recognition

JavaScript
7
star
17

jWatermark

jQuery Watermark Plugin
JavaScript
7
star
18

framework-independent-javascript-components

JavaScript
7
star
19

scss-lint-loader

scss-lint loader for Webpack
JavaScript
5
star
20

jQueryUnitTestingFormValidation

Unit Testing the ASP.NET MVC Validation
JavaScript
5
star
21

egghead-lesson-16.7-hooks-convert-class-to-function

This contains the code for the egghead.io lesson “Use React Hooks to Convert a Class Component to a Function Component”
HTML
4
star
22

picasaWebViewer

Sample Project Used to Demonstrate using Test Driven jQuery Development
JavaScript
4
star
23

cmd-fun

JavaScript
4
star
24

mockjax-mockjson-prototype-testing

JavaScript
3
star
25

toast.js

Simple toast notifications
3
star
26

jquery-free

Helper scripts for a jQuery-free JavaScript experience
JavaScript
3
star
27

greeting-time

Get a greeting by the time of day
JavaScript
3
star
28

react-fun

React Fundamentals Workshop: Hooks Edition
JavaScript
2
star
29

jQueryAjaxErrorHandling

Intro to Error Handling in Ajax Apps
JavaScript
2
star
30

ScriptJunkie-Amplify

ScriptJunkie article source code to exercise appendTo's Amplify JavaScript Components
2
star
31

recording

Setup your computer environment into a recording mode
JavaScript
1
star
32

try_git

1
star
33

react-fundamentals-workshop

Workshop for React Fundamentals
JavaScript
1
star
34

github-conventional-comments

JavaScript
1
star
35

egghead-npx

This contains the code from the egghead.io npx course
JavaScript
1
star
36

reaction-gifs

1
star
37

overreact

A React email application for a workshop
JavaScript
1
star
38

webpack-starter

JavaScript
1
star