Skip to content

Commit

Permalink
publish: Navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbruce committed Feb 3, 2024
1 parent c0f5948 commit b31f3c3
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
6 changes: 6 additions & 0 deletions site-root/public/foot.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<nav>
<ul>
<li><a href="/">Home</a></li>
<li><a href="/booking/">Book now</a></li>
</ul>
</nav>
<footer>
<p>Copyright © 2023–<?php date('Y'); ?> Mastering the Mundane.</p>
</footer>
Expand Down
32 changes: 30 additions & 2 deletions site-root/public/head.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@
text-align: center;
}

section a {
section a,
nav a {
color: hsla(0, 0%, 0%, 1);
text-decoration-color: hsla(10, 98%, 26%, 1);
text-decoration-thickness: 0.1rem;
Expand All @@ -118,7 +119,8 @@
text-decoration-thickness 0.3s;
}

section a:hover {
section a:hover,
nav a:hover {
text-decoration-thickness: 0rem;
}

Expand Down Expand Up @@ -184,6 +186,32 @@
article[is="book-details"] {
grid-template-columns: auto auto;
}

nav {
text-align: center;
}

nav > ul {
margin: 0 auto;
padding: 0;
display: flex;
/* grid-template-columns: min-content; */
/* display: inline; */
list-style: none;
}

nav a {
display: inline-block;
padding: 1rem;
}

/* nav > ul > li {
float: left;
} */

nav > ul > li:first-of-type:after {
content: '|';
}
}
</style>
</head>
Expand Down

0 comments on commit b31f3c3

Please sign in to comment.