diff --git a/lib/comfycamp_web/components/layouts/app.html.heex b/lib/comfycamp_web/components/layouts/app.html.heex index e23bfc8..3892ff8 100644 --- a/lib/comfycamp_web/components/layouts/app.html.heex +++ b/lib/comfycamp_web/components/layouts/app.html.heex @@ -1,32 +1,45 @@
-
-
- - - -

- v<%= Application.spec(:phoenix, :vsn) %> -

-
- +
+
<.flash_group flash={@flash} /> <%= @inner_content %>
+ + diff --git a/lib/comfycamp_web/components/layouts/root.html.heex b/lib/comfycamp_web/components/layouts/root.html.heex index 2012358..4b77f7e 100644 --- a/lib/comfycamp_web/components/layouts/root.html.heex +++ b/lib/comfycamp_web/components/layouts/root.html.heex @@ -1,15 +1,27 @@ - + - <.live_title suffix=" · Phoenix Framework"> + <.live_title suffix=" - Comfycamp"> <%= assigns[:page_title] || "Comfycamp" %> + + @conn.request_path} + /> <%= @inner_content %> diff --git a/lib/comfycamp_web/controllers/page_controller.ex b/lib/comfycamp_web/controllers/page_controller.ex index e8d830f..60aedff 100644 --- a/lib/comfycamp_web/controllers/page_controller.ex +++ b/lib/comfycamp_web/controllers/page_controller.ex @@ -2,8 +2,6 @@ defmodule ComfycampWeb.PageController do use ComfycampWeb, :controller def home(conn, _params) do - # The home page is often custom made, - # so skip the default app layout. - render(conn, :home, layout: false) + render(conn, :home, page_title: "Главная") end end diff --git a/lib/comfycamp_web/controllers/page_html/home.html.heex b/lib/comfycamp_web/controllers/page_html/home.html.heex index dc1820b..8e732f7 100644 --- a/lib/comfycamp_web/controllers/page_html/home.html.heex +++ b/lib/comfycamp_web/controllers/page_html/home.html.heex @@ -1,222 +1,12 @@ <.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. -

- -
+
+

Уютный домик

+ +

+ Добро пожаловать на мой личный сайт. +

+ +

+ Я Иван. Скорее всего, я буду рассказывать что-нибудь про компьютеры и интернет, такой уж я человек. +