class Playa::StartupView

Public Instance Methods

show() click to toggle source
# File lib/playa/views/startup_view.rb, line 5
def show
  trigger(:_clear_)

  render do
    view 'progress' do
      line do
        stream do
          text  'Welcome to Playa.'
          align centre
          width use('progress').width
        end
      end
    end

    view 'playlist' do
      line ''
      line ''
      line 'Playa is a simple, interactive mp3 player for your terminal.'
    end

    view 'status' do
      line do
        stream do
          text  'Press `s` to begin.'
          align centre
          width use('progress').width
        end
      end
    end
  end
end