Skip to content

Commit 9c506e7

Browse files
committed
feat: landing page
1 parent 7023f39 commit 9c506e7

4 files changed

Lines changed: 34 additions & 5 deletions

File tree

lib/gallium_web.ex

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,15 @@ defmodule GalliumWeb do
7474
end
7575
end
7676

77+
def landing_view do
78+
quote do
79+
use Phoenix.LiveView,
80+
layout: {GalliumWeb.Layouts, :landing}
81+
82+
unquote(html_helpers())
83+
end
84+
end
85+
7786
def component do
7887
quote do
7988
use Phoenix.Component
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<div class="flex flex-col min-h-screen bg-beige">
2+
<.navbar current_scope={@current_scope} />
3+
<main>
4+
<.flash_group flash={@flash} />
5+
{@inner_content}
6+
</main>
7+
<.footer />
8+
</div>

lib/gallium_web/live/landing/index.ex

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
defmodule GalliumWeb.LandingLive.Index do
2-
use GalliumWeb, :app_view
2+
use GalliumWeb, :landing_view
3+
4+
import GalliumWeb.Components.Hero
5+
import GalliumWeb.Components.AboutSection
6+
import GalliumWeb.Components.Forecast
37

48
@impl true
59
def mount(_params, _session, socket) do
Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1-
<div class="h-screen">
2-
<div class="h-full w-full flex items-center justify-center" )>
3-
<p class="text-5xl font-amarante">Gallium</p>
4-
</div>
1+
<div class="">
2+
<.hero
3+
date_info="30 | 05 • Quinta da Aldeia"
4+
ticket_url="/bilhetes/comprar"
5+
/>
6+
7+
<.about_section
8+
title="Uma Noite\nInesquecível"
9+
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."
10+
/>
11+
12+
<.forecast />
513
</div>

0 commit comments

Comments
 (0)