<.flash_group flash={@flash} />
diff --git a/lib/nights_web/components/layouts/root.html.heex b/lib/nights_web/components/layouts/root.html.heex
index 216e07f..2d45f65 100644
--- a/lib/nights_web/components/layouts/root.html.heex
+++ b/lib/nights_web/components/layouts/root.html.heex
@@ -4,14 +4,14 @@
- <.live_title suffix=" · Phoenix Framework">
- <%= assigns[:page_title] || "Nights" %>
+ <.live_title suffix=" · Canady Nights">
+ <%= assigns[:page_title] || "lol Jess forgot to title this page" %>
-
+
<%= @inner_content %>
diff --git a/lib/nights_web/controllers/event_controller.ex b/lib/nights_web/controllers/event_controller.ex
new file mode 100644
index 0000000..ecdce84
--- /dev/null
+++ b/lib/nights_web/controllers/event_controller.ex
@@ -0,0 +1,7 @@
+defmodule NightsWeb.EventController do
+ use NightsWeb, :controller
+
+ def index(conn, _params) do
+ render(conn, :index, page_title: "Welcome!")
+ end
+end
diff --git a/lib/nights_web/controllers/event_html.ex b/lib/nights_web/controllers/event_html.ex
new file mode 100644
index 0000000..ff3d718
--- /dev/null
+++ b/lib/nights_web/controllers/event_html.ex
@@ -0,0 +1,10 @@
+defmodule NightsWeb.EventHTML do
+ @moduledoc """
+ This module is invoked by your endpoint in case of errors on HTML requests.
+
+ See config/config.exs.
+ """
+ use NightsWeb, :html
+
+ embed_templates "event_html/*"
+end
diff --git a/lib/nights_web/controllers/event_html/index.html.heex b/lib/nights_web/controllers/event_html/index.html.heex
new file mode 100644
index 0000000..5109d60
--- /dev/null
+++ b/lib/nights_web/controllers/event_html/index.html.heex
@@ -0,0 +1,3 @@
+
+
+
diff --git a/lib/nights_web/controllers/page_controller.ex b/lib/nights_web/controllers/page_controller.ex
deleted file mode 100644
index ad72fa5..0000000
--- a/lib/nights_web/controllers/page_controller.ex
+++ /dev/null
@@ -1,9 +0,0 @@
-defmodule NightsWeb.PageController do
- use NightsWeb, :controller
-
- def home(conn, _params) do
- # The home page is often custom made,
- # so skip the default app layout.
- render(conn, :home, layout: false)
- end
-end
diff --git a/lib/nights_web/controllers/page_html.ex b/lib/nights_web/controllers/page_html.ex
deleted file mode 100644
index 59060f9..0000000
--- a/lib/nights_web/controllers/page_html.ex
+++ /dev/null
@@ -1,10 +0,0 @@
-defmodule NightsWeb.PageHTML do
- @moduledoc """
- This module contains pages rendered by PageController.
-
- See the `page_html` directory for all templates available.
- """
- use NightsWeb, :html
-
- embed_templates "page_html/*"
-end
diff --git a/lib/nights_web/controllers/page_html/home.html.heex b/lib/nights_web/controllers/page_html/home.html.heex
deleted file mode 100644
index dc1820b..0000000
--- a/lib/nights_web/controllers/page_html/home.html.heex
+++ /dev/null
@@ -1,222 +0,0 @@
-<.flash_group flash={@flash} />
-
-
-
-
-
-
-
- Phoenix Framework
-
- v<%= Application.spec(:phoenix, :vsn) %>
-
-
-
- Peace of mind from prototype to production.
-
-
- Build rich, interactive web applications quickly, with less code and fewer moving parts. Join our growing community of developers using Phoenix to craft APIs, HTML5 apps and more, for fun or at scale.
-
-
-
-
diff --git a/lib/nights_web/router.ex b/lib/nights_web/router.ex
index 2600a74..3d04300 100644
--- a/lib/nights_web/router.ex
+++ b/lib/nights_web/router.ex
@@ -17,7 +17,7 @@ defmodule NightsWeb.Router do
scope "/", NightsWeb do
pipe_through :browser
- get "/", PageController, :home
+ get "/", EventController, :index
end
# Other scopes may use custom stacks.
diff --git a/priv/repo/migrations/20240915165631_create_events.exs b/priv/repo/migrations/20240915165631_create_events.exs
new file mode 100644
index 0000000..d3d86ea
--- /dev/null
+++ b/priv/repo/migrations/20240915165631_create_events.exs
@@ -0,0 +1,12 @@
+defmodule Nights.Repo.Migrations.CreateEvents do
+ use Ecto.Migration
+
+ def change do
+ create table(:events) do
+ add :description, :text
+ add :starts_at, :utc_datetime
+
+ timestamps(type: :utc_datetime)
+ end
+ end
+end
diff --git a/test/nights_web/controllers/events_controller_test.exs b/test/nights_web/controllers/events_controller_test.exs
new file mode 100644
index 0000000..4d49bc5
--- /dev/null
+++ b/test/nights_web/controllers/events_controller_test.exs
@@ -0,0 +1,8 @@
+defmodule NightsWeb.EventsControllerTest do
+ use NightsWeb.ConnCase
+
+ test "GET /", %{conn: conn} do
+ conn = get(conn, ~p"/")
+ assert html_response(conn, 200) =~ "Upcoming Events"
+ end
+end
diff --git a/test/nights_web/controllers/page_controller_test.exs b/test/nights_web/controllers/page_controller_test.exs
deleted file mode 100644
index 02292f3..0000000
--- a/test/nights_web/controllers/page_controller_test.exs
+++ /dev/null
@@ -1,8 +0,0 @@
-defmodule NightsWeb.PageControllerTest do
- use NightsWeb.ConnCase
-
- test "GET /", %{conn: conn} do
- conn = get(conn, ~p"/")
- assert html_response(conn, 200) =~ "Peace of mind from prototype to production"
- end
-end