Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions lib/gallium_web.ex
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,15 @@ defmodule GalliumWeb do
end
end

def landing_view do
quote do
use Phoenix.LiveView,
layout: {GalliumWeb.Layouts, :landing}

unquote(html_helpers())
end
end

def component do
quote do
use Phoenix.Component
Expand Down
8 changes: 8 additions & 0 deletions lib/gallium_web/components/layouts/landing.html.heex
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<div class="flex flex-col min-h-screen bg-beige">
<.navbar current_scope={@current_scope} />
<main>
<.flash_group flash={@flash} />
{@inner_content}
</main>
<.footer />
</div>
4 changes: 3 additions & 1 deletion lib/gallium_web/live/landing/index.ex
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
defmodule GalliumWeb.LandingLive.Index do
use GalliumWeb, :app_view
use GalliumWeb, :landing_view

import GalliumWeb.Components.{AboutSection, Forecast, Hero}

@impl true
def mount(_params, _session, socket) do
Expand Down
16 changes: 12 additions & 4 deletions lib/gallium_web/live/landing/index.html.heex
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<div class="h-screen">
<div class="h-full w-full flex items-center justify-center" )>
<p class="text-5xl font-amarante">Gallium</p>
</div>
<div class="">
<.hero
date_info="30 | 05 • Quinta da Aldeia"
ticket_url="/bilhetes/comprar"
/>

<.about_section
title="Uma Noite\nInesquecível"
description="Junta-te aos teus colegas para uma noite de elegancia, conexao e celebracao. O Jantar de Gala do CeSIUM reune a nossa comunidade num ambiente formal para honrar conquistas e criar memorias inesqueciveis."
/>

<.forecast />
</div>
Loading