From b936acf467b458b1283b8bb841eac7343ce048a1 Mon Sep 17 00:00:00 2001 From: Thomas Riboulet Date: Wed, 4 May 2022 15:44:34 +0200 Subject: [PATCH] split layout with the view --- lite/app/views/home/index.haml | 16 ++++++++++++++-- lite/app/views/layouts/application.haml | 15 +-------------- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/lite/app/views/home/index.haml b/lite/app/views/home/index.haml index 4225636..c73f16a 100644 --- a/lite/app/views/home/index.haml +++ b/lite/app/views/home/index.haml @@ -1,2 +1,14 @@ -- provide(:title, "Home") -%p Find me in app/views/home/index.haml \ No newline at end of file +.hero-body + .container.has-text-centered + .column.is-6.is-offset-3 + %h1.title + Welcome home + %h2.subtitle + Your application landing page + .box + .field.is-grouped + %p.control.is-expanded + %input.input{:placeholder => "Enter your email", :type => "text"}/ + %p.control + %a.button.is-info + Notify Me diff --git a/lite/app/views/layouts/application.haml b/lite/app/views/layouts/application.haml index 3225105..c484e8d 100644 --- a/lite/app/views/layouts/application.haml +++ b/lite/app/views/layouts/application.haml @@ -45,17 +45,4 @@ %span.icon %i.fa.fa-github %span View Source - .hero-body - .container.has-text-centered - .column.is-6.is-offset-3 - %h1.title - Welcome home - %h2.subtitle - Your application landing page - .box - .field.is-grouped - %p.control.is-expanded - %input.input{:placeholder => "Enter your email", :type => "text"}/ - %p.control - %a.button.is-info - Notify Me + = yield