Skip to content

Commit

Permalink
Refactor NavProps interface and update activeNav prop in Header compo…
Browse files Browse the repository at this point in the history
…nent
  • Loading branch information
davidawad committed Aug 26, 2023
1 parent 60d9667 commit 0508069
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import LinkButton from "./LinkButton.astro";
import logoPNG from "/assets/logo.png";
import logoSVG from "/assets/logo.svg";
export interface Props {
export interface NavProps {
activeNav?: "posts" | "investing" | "engineering" | "about" | "search";
}
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const socialImageURL = new URL(
svg: {
fontCache: "global",
},
};
} ?? {};
</script>
<script
id="MathJax-script"
Expand Down
2 changes: 1 addition & 1 deletion src/pages/tags/[tag].astro
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const tagPosts = getPostsByTag(posts, tag);
---

<Layout title={`Tag:${tag} | ${SITE.title}`}>
<Header activeNav="tags" />
<Header activeNav={`${tag}`} />
<Main
pageTitle={`Tag:${tag}`}
pageDesc={`All the articles with the tag "${tag}".`}
Expand Down
4 changes: 4 additions & 0 deletions src/styles/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,13 @@
html[data-theme="dark"] #sun-svg {
display: block;
}
*::selection{
color: white !important;
}
body {
@apply flex min-h-screen flex-col bg-skin-fill font-mono text-skin-base
selection:bg-skin-accent selection:bg-opacity-70 selection:text-skin-inverted;

}
h1 {
@apply font-h1;
Expand Down

0 comments on commit 0508069

Please sign in to comment.