Skip to content

Commit 8e04d95

Browse files
committed
Update deps and latest erlang/elixir
1 parent b412f0b commit 8e04d95

File tree

6 files changed

+66
-37
lines changed

6 files changed

+66
-37
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ erl_crash.dump
2222
.elixir_ls/
2323

2424
.DS_Store
25+
.vscode/*.log

.tool-versions

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
nodejs 12.21.0
2-
elixir 1.11.4-otp-23
3-
erlang 23.3
1+
nodejs 16.13.0
2+
elixir 1.12.3-otp-24
3+
erlang 24.1.7
44
python 3.9.1
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
defmodule ComponentsGuideWeb.EncodingController do
2+
use ComponentsGuideWeb, :controller
3+
require Logger
4+
5+
def index(conn, _params) do
6+
render(conn, "index.html", article: "intro")
7+
end
8+
9+
@articles ["base64", "utf8"]
10+
11+
def show(conn, %{"id" => article}) when article in @articles do
12+
render(conn, "index.html", article: article)
13+
end
14+
15+
def show(conn, _), do: raise Phoenix.Router.NoRouteError, conn: conn, router: ComponentsGuideWeb.Router
16+
end
17+
18+
defmodule ComponentsGuideWeb.EncodingView do
19+
use ComponentsGuideWeb, :view
20+
use ComponentsGuideWeb.Snippets
21+
alias ComponentsGuideWeb.ThemeView
22+
23+
def header_styles() do
24+
ThemeView.banner_styles(:encoding)
25+
end
26+
end

apps/components_guide_web/lib/components_guide_web/templates/layout/_banner.html.eex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</div>
1010
<hr class="mx-auto">
1111
<details class="relative" data-links="block p-3 underline-on-hover">
12-
<summary>Quick links</summary>
12+
<summary>Menu</summary>
1313
<details-menu role="menu" class="absolute z-menu top-full right-0 flex flex-col text-sm whitespace-nowrap bg-gray-900 rounded shadow-lg">
1414
<%= link("Accessibility First", to: '/accessibility-first') %>
1515
<%= link("React + TypeScript", to: '/react+typescript') %>

apps/components_guide_web/lib/components_guide_web/views/theme_view.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,5 @@ defmodule ComponentsGuideWeb.ThemeView do
9292
def banner_styles(:react_typescript), do: gradient_styles(:blue)
9393
def banner_styles(:graphics), do: gradient_styles(:purple)
9494
def banner_styles(:cheatsheets), do: gradient_styles(:purple)
95+
def banner_styles(:encoding), do: gradient_styles(:purple)
9596
end

0 commit comments

Comments
 (0)