refactor: move page header to own component
This commit is contained in:
parent
6f446fd871
commit
00277741a8
3 changed files with 12 additions and 51 deletions
|
@ -4,7 +4,9 @@
|
|||
|
||||
<header>
|
||||
<h1>{title}</h1>
|
||||
<slot name="icon" />
|
||||
<div class="header-items">
|
||||
<slot/>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<style>
|
||||
|
@ -24,7 +26,7 @@
|
|||
font-size: 1.5em;
|
||||
}
|
||||
|
||||
nav {
|
||||
header .header-items {
|
||||
margin-left: auto;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue