diff --git a/lib/nulla_web/controllers/page_controller.ex b/lib/nulla_web/controllers/page_controller.ex index 3daa035..76dd567 100644 --- a/lib/nulla_web/controllers/page_controller.ex +++ b/lib/nulla_web/controllers/page_controller.ex @@ -2,8 +2,10 @@ defmodule NullaWeb.PageController do use NullaWeb, :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 + + def profile(conn, %{"username" => _username}) do + render(conn, :profile, layout: false) + end end diff --git a/lib/nulla_web/controllers/page_html/home.html.heex b/lib/nulla_web/controllers/page_html/home.html.heex index d72b03c..6bcfbd1 100644 --- a/lib/nulla_web/controllers/page_html/home.html.heex +++ b/lib/nulla_web/controllers/page_html/home.html.heex @@ -1,222 +1,20 @@ <.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/nulla_web/controllers/page_html/profile.html.heex b/lib/nulla_web/controllers/page_html/profile.html.heex new file mode 100644 index 0000000..9f771d6 --- /dev/null +++ b/lib/nulla_web/controllers/page_html/profile.html.heex @@ -0,0 +1,68 @@ +
+
+ +
+ +
+ +
+
+
+
+
+ + +
+
+ Mirai Kumiko + @miraikumiko@nulla.social +
+

Cryptopunk in the past.

+

Silent girl now and admin of this instance.

+
+

Grew up on hacker culture, philosophy, good old movies and anime. That's why I love cyberpunk — modern philosophy and technolization in one bottle. I also use Linux on a first-name basis and can program.

+
+

Can play shooters, chess and other games where strategy and psychological analysis of opponents are important.

+
+

Bunnies and rabbits are superior!

+
+
+
+
<.icon name="hero-map-pin" class="mt-0.5 h-5 w-5 flex-none" />
+
Catalonia, Spain
+
+
+
<.icon name="hero-cake" class="mt-0.5 h-5 w-5 flex-none" />
+
2005/02/25 (20 years old)
+
+
+
<.icon name="hero-calendar" class="mt-0.5 h-5 w-5 flex-none" />
+
03/20/2025 (2mo ago)
+
+
+
+
+
Website
+
+ miraikumiko.com +
+
+
+ +
+
+
Posts
+
Posts and replies
+
Media
+
+
+
+
+ +
+
+
diff --git a/lib/nulla_web/router.ex b/lib/nulla_web/router.ex index 95706c9..5fb2edb 100644 --- a/lib/nulla_web/router.ex +++ b/lib/nulla_web/router.ex @@ -18,6 +18,7 @@ defmodule NullaWeb.Router do pipe_through :browser get "/", PageController, :home + get "/@:username", PageController, :profile end # Other scopes may use custom stacks. diff --git a/priv/static/images/avatar.jpg b/priv/static/images/avatar.jpg new file mode 100644 index 0000000..3df25a7 Binary files /dev/null and b/priv/static/images/avatar.jpg differ diff --git a/priv/static/images/banner.jpg b/priv/static/images/banner.jpg new file mode 100644 index 0000000..df9b751 Binary files /dev/null and b/priv/static/images/banner.jpg differ