Skip to content

Commit

Permalink
Center header
Browse files Browse the repository at this point in the history
  • Loading branch information
ngsilverman committed Aug 28, 2024
1 parent 898e28e commit f6c54e6
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 27 deletions.
52 changes: 28 additions & 24 deletions _includes/page.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -51,31 +51,35 @@ scripts: []
</head>

<body>
<header>
<div class="sewi-lipu">
<a href="/">
<img src="/logo.png" alt="lipu tenpo logo" class="logo" />
</a>
<div>
<h1><a href="/">lipu tenpo</a></h1>
<div class="subtitle"><a href="/sona#faq">li alasa e jan pali sin</a></div>
<div class="poki-insa">
<header>
<div class="sewi-lipu">
<a href="/">
<img src="/logo.png" alt="lipu tenpo logo" class="logo" />
</a>
<div>
<h1><a href="/">lipu tenpo</a></h1>
<div class="subtitle"><a href="/sona#faq">li alasa e jan pali sin</a></div>
</div>
</div>
</div>
<nav>
<ul>
<!--
Conversation about menu links: https://discord.com/channels/795288348024373289/796468535672963122/1278030295211442291
-->
{{{ nav "/" "lipu" }}}
{{{ nav "/toki/" "toki ale" }}}
{{{ nav "/sona/" "ni li seme" }}}
</ul>
<!-- search bar -->
<!-- <form onsubmit="">
<input type="text" name="q" placeholder="search" />
</form> -->
</nav>
</header>
<nav>
<ul>
{{!--
Conversation about menu links: https://discord.com/channels/795288348024373289/796468535672963122/1278030295211442291
--}}
{{{ nav "/" "lipu" }}}
{{{ nav "/toki/" "toki ale" }}}
{{{ nav "/sona/" "ni li seme" }}}
</ul>
<!-- search bar -->
<!-- <form onsubmit="">
<input type="text" name="q" placeholder="search" />
</form> -->
</nav>
</header>

<hr class="anpa-sewi" />
</div>

<main>{{{ content }}}</main>

Expand Down
24 changes: 21 additions & 3 deletions public/stylesheet.css
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,23 @@ h6 {
font-family: "Bricolage Grotesque", sans-serif;
}

.poki-insa {
align-self: center;
display: flex;
flex-direction: column;
justify-content: center;
max-width: 60rem;
padding: 0 2rem;
width: 100%;
}

header {
align-items: flex-start;
border-bottom: 2px solid var(--colour-pimeja-lili);
display: flex;
flex-flow: row wrap;
font-family: "Bricolage Grotesque", sans-serif;
margin: 3rem 2rem 1rem;
justify-content: space-evenly;
margin-top: 3rem;
}
header #banner {
position: absolute;
Expand Down Expand Up @@ -145,7 +155,7 @@ header nav ul {
padding: 0;
}
header nav {
margin-top: 1rem;
margin: 1rem 0.5rem 0 0;
}
header nav li {
line-height: 1;
Expand Down Expand Up @@ -188,6 +198,14 @@ header nav a:hover .sitelen-tu {
text-decoration: underline;
}

hr.anpa-sewi {
background-color: var(--colour-pimeja-lili);
height: 4px;
border-width: 0;
border-bottom: 2px solid black;
margin: 0 0 1rem;
}

main {
padding: 0 0 1rem 0;
flex-grow: 1;
Expand Down

0 comments on commit f6c54e6

Please sign in to comment.