diff --git a/apps/app/assets/static/images/infra.svg b/apps/app/assets/static/images/infra.svg new file mode 100644 index 00000000..ff58b13f --- /dev/null +++ b/apps/app/assets/static/images/infra.svg @@ -0,0 +1 @@ +server_cluster \ No newline at end of file diff --git a/apps/app/assets/static/images/power.svg b/apps/app/assets/static/images/power.svg new file mode 100644 index 00000000..ba7b4b38 --- /dev/null +++ b/apps/app/assets/static/images/power.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/app/lib/app_web/templates/layout/_menu.html.eex b/apps/app/lib/app_web/templates/layout/_menu.html.eex index fc098bf6..df3c7092 100644 --- a/apps/app/lib/app_web/templates/layout/_menu.html.eex +++ b/apps/app/lib/app_web/templates/layout/_menu.html.eex @@ -23,16 +23,6 @@ <%= link "Sign Out", to: Routes.pow_session_path(@conn, :delete), method: :delete, class: "inline-block text-white no-underline hover:text-white hover:text-underline py-2 px-4" %> <% else %> -
  • - <%= link to: Routes.pow_session_path(@conn, :new), class: "inline-block text-white no-underline hover:text-white hover:text-underline py-2 px-4" do %> - Log In - <% end %> -
  • -
  • - <%= link to: Routes.pow_registration_path(@conn, :new), class: "inline-block text-white no-underline hover:text-white hover:text-underline py-2 px-4" do %> - Sign Up - <% end %> -
  • <% end %> diff --git a/apps/content/lib/content_web/controllers/posts_controller.ex b/apps/content/lib/content_web/controllers/posts_controller.ex index fd15d79a..f8a3cebe 100644 --- a/apps/content/lib/content_web/controllers/posts_controller.ex +++ b/apps/content/lib/content_web/controllers/posts_controller.ex @@ -58,6 +58,13 @@ defmodule Content.PostsController do conn |> index_posts(%{"id" => "blog", "page" => page_string}) end + def show(conn, %{"id" => id, "page" => page_string}) when is_list(id) do + show(conn, %{ + "id" => Enum.join(id, "/"), + "page" => page_string + }) + end + def show(conn, %{"id" => id, "page" => page_string}) do post = Posts.get_post(id) diff --git a/apps/content/lib/content_web/routes.ex b/apps/content/lib/content_web/routes.ex index ef9a7341..25384d60 100644 --- a/apps/content/lib/content_web/routes.ex +++ b/apps/content/lib/content_web/routes.ex @@ -32,7 +32,7 @@ defmodule Content.Routes do post "/wp-login.php", PostPasswordController, :create get "/", PostsController, :index resources "/sitemap", SitemapController, only: [:index] - get "/:id", PostsController, :show + get "/*id", PostsController, :show get "/:id/:page", PostsController, :show, as: :paged_post end end diff --git a/apps/content/lib/content_web/templates/posts/static_pages/index.html.eex b/apps/content/lib/content_web/templates/posts/static_pages/index.html.eex index 34e5dab3..74754d21 100644 --- a/apps/content/lib/content_web/templates/posts/static_pages/index.html.eex +++ b/apps/content/lib/content_web/templates/posts/static_pages/index.html.eex @@ -9,13 +9,19 @@
    -
    +

    - The Stuff of Legend. + A Batteries-included Phoenix & Elixir Application Template.

    - Legendary makes it easy to quickly build Phoenix applications with all the bells and whistles. + Legendary makes it easy to quickly build + PETAL-stack Phoenix / Elixir + applications with all the bells and whistles. +

    +

    + Don't re-invent the + wheel— build something Legendary.

    @@ -41,8 +47,12 @@
    Batteries Included

    - We include authentication, content management, administration, Tailwind styles, - and fluid email templates so that you can build your app as quickly as possible. + We include authentication, content management, administration, + fluid email templates, + Tailwind styles, + AlpineJS, + and LiveView + so that you can build your app as quickly and easily as possible.

    @@ -59,7 +69,9 @@
    Hyper-scalable

    - Legendary is built on top of Phoenix and Elixir, so it can handle millions of connections without a problem. + Legendary is built on Phoenix and Elixir, by people with years + of experience running Phoenix and Elixir in production. That means it can + scale to handle any volume you throw at it.

    @@ -72,12 +84,13 @@
    - +
    -
    Flexible Toolbox
    +
    Built for Developer Happiness

    - We used our years of experience building Phoenix applications at scale to design Legendary with everything you need. - But we stay out of your way while you create your application. + We built Legendary so that you can focus on building cool things + with Phoenix. We don't think you should have to write yet another + auth framework or admin interface to do that.

    @@ -85,7 +98,7 @@

    - Features + Out of the Box Features

    @@ -114,7 +127,7 @@

    Admin Dashboard

    - There are plenty of tasks that don't require custom code. Legendary integrates the Kaffy admin dashboard + There are plenty of tasks that don't require custom code. Legendary integrates the Kaffy admin dashboard so that you can focus on what is unique to your application instead of churning out CRUD or editing database rows by hand.

    @@ -135,7 +148,7 @@

    -
    +

    Battle-tested Fluid Email Templates

    @@ -148,6 +161,32 @@

    +
    +
    + +
    +
    +

    Full DevOps Stack

    +

    + Legendary includes a full set of CI / CD scripts so you can immediately + test and deploy your app as a semantically-versioned Docker + container. We also provide all the configuration that you need to + deploy your app to Kubernetes. +

    +
    +
    +
    +
    +

    And More.

    +

    + A lot more. Like Background jobs, localization / internationalization, + great out-of-the-box forms, list views, and detail pages. +

    +
    +
    + +
    +