Created
August 30, 2024 06:06
-
-
Save AndyObtiva/84c020c46d5c4ce6829f76c7bf1747df to your computer and use it in GitHub Desktop.
This file contains hidden or 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 { | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment