From b34b1456163d612326aebf0d960b28d94c382608 Mon Sep 17 00:00:00 2001 From: karemarsy Date: Mon, 13 Apr 2020 19:10:56 +0200 Subject: [PATCH] Implement form design --- app/assets/stylesheets/application.css.scss | 10 ++++++ app/views/forms/new.html.erb | 36 ++++++++++++--------- 2 files changed, 31 insertions(+), 15 deletions(-) diff --git a/app/assets/stylesheets/application.css.scss b/app/assets/stylesheets/application.css.scss index 0045e6f..e292b0e 100644 --- a/app/assets/stylesheets/application.css.scss +++ b/app/assets/stylesheets/application.css.scss @@ -48,6 +48,16 @@ $light: #fff; height: 100%; } +.content { + padding: 30px 60px 50px; + + &>h1 { + margin-bottom: 40px; + } +} + + + body { min-height: 100vh; } \ No newline at end of file diff --git a/app/views/forms/new.html.erb b/app/views/forms/new.html.erb index 39cb894..6baa484 100644 --- a/app/views/forms/new.html.erb +++ b/app/views/forms/new.html.erb @@ -1,21 +1,27 @@
-
-
- <%= form_for @form do |f| %> -
-
- <%= f.text_field :title, class: 'input', placeholder: 'Title' %> +
+
+
+
+

Create a new form

+ <%= form_for @form do |f| %> +
+
+ <%= f.text_field :title, class: 'input', placeholder: 'Title' %> +
+
+
+
+ <%= f.text_field :thank_you_url, class: 'input', placeholder: 'Thank you url' %> +
+

+
+ <%= f.submit class: 'button is-primary' %> + <% end %> +
-
-
- <%= f.text_field :thank_you_url, class: 'input', placeholder: 'Thank you url' %> -
-
-
- <%= f.submit class: 'button is-primary' %> - <% end %> -
\ No newline at end of file