Created
June 15, 2024 16:05
-
-
Save AndyObtiva/7da3277a0016af7f965b8f8fc0f462fa to your computer and use it in GitHub Desktop.
Glimmer DSL for Web - Regular Sample - Todo MVC - Views - NewTodoForm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Source: https://github.com/AndyObtiva/glimmer-dsl-web/blob/master/lib/glimmer-dsl-web/samples/regular/todo_mvc/views/new_todo_form.rb | |
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 { | |
rule('.header h1') { | |
color '#b83f45' | |
font_size '80px' | |
font_weight '200' | |
position 'absolute' | |
text_align 'center' | |
_webkit_text_rendering 'optimizeLegibility' | |
_moz_text_rendering 'optimizeLegibility' | |
text_rendering 'optimizeLegibility' | |
top '-140px' | |
width '100%' | |
} | |
} | |
} | |
} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment