Sha256: f24581c7c2f8728d8c58a71afbb9244bf0811958190401d9c2e43df6d6aec18c

Contents?: true

Size: 533 Bytes

Versions: 3

Compression:

Stored size: 533 Bytes

Contents

# frozen_string_literal: true

module Pages
  class Home < Page
    include Protos::Typography

    def view_template
      render Protos::Hero.new(
        class: "h-96",
        style: "background-image: url(#{asset_path("images/hero.jpg")})"
      ) do |hero|
        hero.overlay(class: "opacity-90")
        hero.content(class: "flex-col text-white") do
          h1 { "Ruby maximalism" }
          p(margin: false) { "Zen vibes only" }

          link_to("Learn more", Errors::NotFound)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
staticky-0.2.0 site_template/app/views/pages/home.rb
staticky-0.1.1 site_template/app/views/pages/home.rb
staticky-0.1.0 site_template/app/views/pages/home.rb