Skip to content

Commit b6c5ca6

Browse files
committed
Rename /web -> /web-standards
1 parent 115d4d2 commit b6c5ca6

File tree

13 files changed

+17
-17
lines changed

13 files changed

+17
-17
lines changed

apps/components_guide_web/lib/components_guide_web/controllers/web_controller.ex renamed to apps/components_guide_web/lib/components_guide_web/controllers/web_standards_controller.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
defmodule ComponentsGuideWeb.WebController do
1+
defmodule ComponentsGuideWeb.WebStandardsController do
22
use ComponentsGuideWeb, :controller
33
require Logger
44

@@ -17,7 +17,7 @@ defmodule ComponentsGuideWeb.WebController do
1717
end
1818
end
1919

20-
defmodule ComponentsGuideWeb.WebView do
20+
defmodule ComponentsGuideWeb.WebStandardsView do
2121
use ComponentsGuideWeb, :view
2222

2323
use ComponentsGuideWeb.Snippets

apps/components_guide_web/lib/components_guide_web/router.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ defmodule ComponentsGuideWeb.Router do
3333
ComposableSystemsController,
3434
only: [:index, :show]
3535

36-
resources "/web",
37-
WebController,
36+
resources "/web-standards",
37+
WebStandardsController,
3838
only: [:index, :show]
3939

4040
live "/color", ColorLive, :index

apps/components_guide_web/lib/components_guide_web/templates/landing/index.html.eex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ subhead = "Learn about accessibility, TDD, BDD, naming, performance, and the lat
5555
</article>
5656

5757
<article class="text-white text-shadow py-6" style="<%= sections_styles(:other) %>">
58-
<%= render ComponentsGuideWeb.WebView, "_top.html" %>
58+
<%= render ComponentsGuideWeb.WebStandardsView, "_top.html" %>
5959
</article>
6060

6161
<article class="text-white text-shadow py-6" style="<%= sections_styles(:orange) %>">

apps/components_guide_web/lib/components_guide_web/templates/web/_header.html.eex

Lines changed: 0 additions & 3 deletions
This file was deleted.

apps/components_guide_web/lib/components_guide_web/templates/web/_nav.html.eex

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<header style="<%= header_styles() %>">
2+
<%= render ComponentsGuideWeb.WebStandardsView, "_top.html" %>
3+
</header>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<nav class="pt-6 pb-4">
2+
<ul y-y x-x=md class="text-lg font-bold text-shadow" style="--link-padding: 0.75em">
3+
<li><%= link("Why?", to: '/web-standards') %>
4+
<li><%= link("URL", to: '/web-standards/url') %>
5+
<li><%= link("Promise", to: '/web-standards/promise') %>
6+
<li><%= link("HTTP Caching", to: '/web-standards/http-caching') %>
7+
</ul>
8+
</nav>

apps/components_guide_web/lib/components_guide_web/templates/web/_top.html.eex renamed to apps/components_guide_web/lib/components_guide_web/templates/web_standards/_top.html.eex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
<span class="mr-1 text-5xl">🧶💝</span>
44
<span><%= "Web Standards" %></span>
55
</h1>
6-
<%= render ComponentsGuideWeb.WebView, "_nav.html" %>
6+
<%= render ComponentsGuideWeb.WebStandardsView, "_nav.html" %>
77
</div>

0 commit comments

Comments
 (0)