Sha256: e4afc32ee9471a394c03e74f76c7df5908f8c0b8602282aa32e0a965f0df8e02

Contents?: true

Size: 1.46 KB

Versions: 2

Compression:

Stored size: 1.46 KB

Contents

# You can write multiple files with slides or just put them all in one file

class Hello < Wingtips::Slide
  def content
    centered_huge_text 'Welcome to Wingtips!'
  end
end

class Bullets < Wingtips::Slide
  def content
    headline 'Use bullet points, would you?'

    bullet "It's easy isn't it?"
    bullet 'Just keep on'
    bullet 'with ease!'
  end
end

slide 'DSLSlide' do
  headline 'Using the fancier DSL'
end

class Images < Wingtips::Slide
  def content
    headline 'Embed images and shoes easily!'

    image 'shoes-icon.png'
    para 'standard shoes methods like para are of course okay as well!'
    subtitle 'Or some drawing'
    rect 300, 400, 200, 300, fill: lime
  end
end

class FullScreenImage < Wingtips::Slide
  def content
    # learning photo - Creative Commons Attribution-ShareAlike 2.0 http://www.flickr.com/photos/83633410@N07/7658165122/in/photostream/
    fullscreen_image 'learning.jpg'
  end
end

class FullyShownImage < Wingtips::Slide
  def content
    # learning photo - Creative Commons Attribution-ShareAlike 2.0 http://www.flickr.com/photos/83633410@N07/7658165122/in/photostream/
    fully_shown_image 'learning.jpg'
  end
end

class Code < Wingtips::Slide
  def content
    subtitle 'Show code from a string...'
    code 'puts "Hello wingtips!"'
    empty_line
    subtitle 'Or a file'
    code 'demo_code.rb'
  end
end

class CodeExecute < Wingtips::Slide
  def content
    headline 'Code and execute'

    code 'alert "Surprse!"', true
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wingtips-0.2.0 samples/wingtips_introduction/slides/my_slides.rb
wingtips-0.1.0 samples/wingtips_introduction/slides/my_slides.rb