Skip to content

Commit 983770f

Browse files
committed
♻️ refactor: footer border to separator
1 parent 422cf44 commit 983770f

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

src/components/Footer.astro

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
---
22
export interface Props {
3-
border?: false | "thick" | "thin" | "none";
3+
separator?: false | "thick" | "thin" | "none";
44
}
55
6-
const { border = "thick" } = Astro.props;
6+
const { separator = "thick" } = Astro.props;
7+
8+
const shouldDisplaySeparator = separator && separator !== "none";
79
---
810

911
<footer data-pagefind-ignore>
1012
<slot />
11-
{border && border !== "none" && <hr data-type={border} />}
13+
{shouldDisplaySeparator && <hr data-type={separator} />}
1214
<span class="ff-pixelated"
1315
>Created with <span class="heart">♥</span> by Tanishq Manuja</span
1416
>

src/pages/[project]/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const ogImage = {
6969
)
7070
}
7171
</main>
72-
<Footer border="thin">
72+
<Footer separator="thin">
7373
<ProjectTags class="tags" tags={tags} />
7474
<nav class="ff-pixelated fs-small | navigation">
7575
<a class="hoverable" href={url.prev} aria-disabled={!url.prev}>

src/pages/search.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const description = `Search projects`;
1818
<main data-pagefind-ignore>
1919
<PageFindSearch />
2020
</main>
21-
<Footer border="thin" />
21+
<Footer separator="thin" />
2222
</Layout>
2323

2424
<style>

0 commit comments

Comments
 (0)