Skip to content

Commit

Permalink
Merge pull request #14 from shakacode/use-full-title
Browse files Browse the repository at this point in the history
Use full title
  • Loading branch information
ahangarha authored Nov 19, 2023
2 parents 945f196 + 78fd9b3 commit 326e416
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion app/assets/stylesheets/welcome.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,20 @@ nav {
overflow: hidden;

& a {
padding: .5rem 3rem;
background-color: #eee;
text-align: center;
padding: 1rem;
@media(min-width: 640px) {
padding: .5rem 3rem;
}

&:hover {
background-color: #edd;
}

&.active {
background-color: #edd;
}
}
}

4 changes: 2 additions & 2 deletions app/views/welcome/_nav.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<nav >
<%= link_to "CSR", '/welcome/csr' %>
<%= link_to "SSR", '/welcome/ssr' %>
<%= link_to "Client Side Rendering", '/welcome/csr', class: current_page?(welcome_csr_path) ? "active" : "" %>
<%= link_to "Server Side Rendering", '/welcome/ssr', class: current_page?(welcome_ssr_path) ? "active" : "" %>
</nav>

0 comments on commit 326e416

Please sign in to comment.