Skip to content

Commit

Permalink
fix: placement of home link on subpages in mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
believer committed Jan 30, 2025
1 parent 83b927c commit 62763c8
Show file tree
Hide file tree
Showing 16 changed files with 323 additions and 463 deletions.
11 changes: 11 additions & 0 deletions components/linkHome.templ
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package components

templ LinkHome() {
<nav>
<div class="left-5 top-5 md:absolute">
@Link(LinkProps{Href: "/"}) {
Home
}
</div>
</nav>
}
66 changes: 66 additions & 0 deletions components/linkHome_templ.go

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

9 changes: 1 addition & 8 deletions views/genre.templ
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,7 @@ type GenreProps struct {

templ Genre(props GenreProps) {
@Layout(LayoutProps{Title: props.Name}) {
<nav>
<div class="left-5 top-5 md:absolute">
@c.Link(c.LinkProps{Href: "/"}) {
Home
}
</div>
</nav>
@StandardBody(props.Name) {
@StandardBody(props.Name, true) {
if len(props.Movies) > 0 {
@c.Ol() {
for _, movie := range props.Movies {
Expand Down
82 changes: 26 additions & 56 deletions views/genre_templ.go

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

9 changes: 1 addition & 8 deletions views/language.templ
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,7 @@ type LanguageProps struct {

templ Language(props LanguageProps) {
@Layout(LayoutProps{Title: props.Name}) {
<nav>
<div class="left-5 top-5 md:absolute">
@c.Link(c.LinkProps{Href: "/"}) {
Home
}
</div>
</nav>
@StandardBody(props.Name) {
@StandardBody(props.Name, true) {
if len(props.Movies) > 0 {
@c.Ol() {
for _, movie := range props.Movies {
Expand Down
Loading

0 comments on commit 62763c8

Please # to comment.