Skip to content

Commit

Permalink
foo
Browse files Browse the repository at this point in the history
  • Loading branch information
dadav committed Jul 20, 2024
1 parent b7c3fe2 commit a72ffd9
Show file tree
Hide file tree
Showing 10 changed files with 113 additions and 52 deletions.
6 changes: 3 additions & 3 deletions internal/v3/ui/components/author_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/v3/ui/components/head_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions internal/v3/ui/components/module_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions internal/v3/ui/components/nav.templ
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package components

templ Nav(title string) {
<nav>
<ul>
<li>
<a href="/" class="secondary">Search</a>
</li>
<li>
<a href="/statistics" class="secondary">Stats</a>
</li>
</ul>
<ul>
<li><strong>{ title }</strong></li>
</ul>
<ul>
<li>
<div class="switch">
<input type="checkbox" class="switch__input" id="theme-toggle"/>
<label class="switch__label" for="theme-toggle">
<span class="switch__indicator"></span>
<span class="switch__decoration"></span>
</label>
</div>
</li>
</ul>
</nav>
}
48 changes: 48 additions & 0 deletions internal/v3/ui/components/nav_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 1 addition & 24 deletions internal/v3/ui/components/page.templ
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,7 @@ templ Page(title string, content templ.Component) {
@Header(title)
<body>
<header class="container">
<nav>
<ul>
<li>
<a href="/" class="secondary">Search</a>
</li>
<li>
<a href="/statistics" class="secondary">Stats</a>
</li>
</ul>
<ul>
<li><strong>Gorge</strong></li>
</ul>
<ul>
<li>
<div class="switch">
<input type="checkbox" class="switch__input" id="theme-toggle"/>
<label class="switch__label" for="theme-toggle">
<span class="switch__indicator"></span>
<span class="switch__decoration"></span>
</label>
</div>
</li>
</ul>
</nav>
@Nav(title)
</header>
<main class="container">
@content
Expand Down
10 changes: 9 additions & 1 deletion internal/v3/ui/components/page_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions internal/v3/ui/components/release_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions internal/v3/ui/components/search_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a72ffd9

Please sign in to comment.