Sha256: 80cd55d58c0ed524dd8d8cb086a4f236a93785c85618c6cb89d70fbfeb60426e

Contents?: true

Size: 229 Bytes

Versions: 1

Compression:

Stored size: 229 Bytes

Contents

# frozen_string_literal: true

module Views
	class Card < Phlex::View
		def template(&block)
			article class: "drop-shadow p-5 rounded", &block
		end

		def title(text)
			h3 class: "font-bold" do
				text
			end
		end
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
phlex-0.4.0 fixtures/dummy/app/views/card.rb