Current section

Files

Jump to
surface priv templates surface.init demo demo.ex
Raw

priv/templates/surface.init/demo/demo.ex

defmodule <%= inspect(web_module) %>.Demo do
use <%= inspect(web_module) %>, :surface_live_view
alias <%= inspect(web_module) %>.Components.Card
def render(assigns) do
~F"""
<style>
.tag {
@apply bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700 mr-2;
}
</style>
<div class="flex justify-center mt-12">
<Card max_width="lg" rounded>
<:header>
Surface UI
</:header>
Start building rich interactive user-interfaces, writing minimal custom Javascript.
Built on top of Phoenix LiveView, <strong>Surface</strong> leverages the amazing
<strong>Phoenix Framework</strong> to provide a fast and productive solution to
build modern web applications.
<:footer>
<span class="tag">#surface</span>
<span class="tag">#phoenix</span>
<span class="tag">#tailwindcss</span>
</:footer>
</Card>
</div>
"""
end
end