Skip to content

Commit 081fe45

Browse files
committed
Center header nav.
1 parent 3cd3c3b commit 081fe45

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

src/components/header/header-actions.astro

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const { mobile = false }: Props = Astro.props;
1313
const IS_LIVE = false;
1414
---
1515

16-
<div class="ml-auto flex items-center space-x-4">
16+
<div class="flex items-center justify-end gap-2 w-1/3">
1717
<Search
1818
id="search"
1919
className="pagefind-ui"
@@ -116,7 +116,8 @@ const IS_LIVE = false;
116116
--pagefind-ui-border: #d8d8d8;
117117
--pagefind-ui-border-width: 2px;
118118
--pagefind-ui-border-radius: 0;
119-
width: 50%;
119+
width:50%;
120+
min-width: 10vw;
120121
}
121122
.pagefind-ui.yellow {
122123
--pagefind-ui-background: #efc302;

src/components/header/header.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import HeaderLogo from "./header-logo.astro";
77
const links = JSON.parse(await fs.readFile("./src/data/links.json", "utf-8"));
88
---
99

10-
<header class="p-6 flex items-center relative z-40">
10+
<header class="p-6 flex items-center justify-between relative z-40">
1111
<input
1212
type="checkbox"
1313
name="mobile-controls"
@@ -18,7 +18,7 @@ const links = JSON.parse(await fs.readFile("./src/data/links.json", "utf-8"));
1818

1919
<HeaderLogo />
2020

21-
<nav class="mr-auto hidden xl:block">
21+
<nav class="hidden xl:block">
2222
<NavItems items={links.header} />
2323
</nav>
2424

src/pages/test_components.astro

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ import Icon from "@ui/Icon.astro"
1111
description=""
1212
>
1313

14+
<head>
15+
<meta name="robots" content="noindex, nofollow" />
16+
</head>
17+
18+
1419
<Headline as="h1" id="components" title="Example components" />
1520
<section class="prose-xl my-10">
1621
<Headline id="button" title="Button" />

0 commit comments

Comments
 (0)