Class: Playa::StartupView

Inherits:
Object
  • Object
show all
Includes:
Vedeu
Defined in:
lib/playa/views/startup_view.rb

Instance Method Summary collapse

Instance Method Details

#showObject



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# 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