Sha256: c05121fb25f5d3dd81537470e4e3aa69258831e39c2cdc2f03116c700c981af9

Contents?: true

Size: 565 Bytes

Versions: 5

Compression:

Stored size: 565 Bytes

Contents

require_relative 'new_todo_input'

class NewTodoForm
  include Glimmer::Web::Component
  
  option :presenter
  
  markup {
    header(class: 'header') {
      h1('todos')
      
      new_todo_input(presenter: presenter)
    }
  }
  
  style {
    r('.header h1') {
      color '#b83f45'
      font_size 80
      font_weight '200'
      position :absolute
      text_align :center
      _webkit_text_rendering :optimizeLegibility
      _moz_text_rendering :optimizeLegibility
      text_rendering :optimizeLegibility
      top -140
      width 100.%
    }
  }
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
glimmer-dsl-web-0.6.5 lib/glimmer-dsl-web/samples/regular/todo_mvc/views/new_todo_form.rb
glimmer-dsl-web-0.6.4 lib/glimmer-dsl-web/samples/regular/todo_mvc/views/new_todo_form.rb
glimmer-dsl-web-0.6.3 lib/glimmer-dsl-web/samples/regular/todo_mvc/views/new_todo_form.rb
glimmer-dsl-web-0.6.2 lib/glimmer-dsl-web/samples/regular/todo_mvc/views/new_todo_form.rb
glimmer-dsl-web-0.6.1 lib/glimmer-dsl-web/samples/regular/todo_mvc/views/new_todo_form.rb