From 2f432b249112d6aacd1dee337b6408be27b607b1 Mon Sep 17 00:00:00 2001 From: David Levai Date: Mon, 3 Jul 2023 13:43:43 +0200 Subject: [PATCH 1/3] chore: updated changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f5c76f1..9791769 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Copy button component - Scroll-aware table of contets - Minimal hero variant +- Work availability status ### Changed From c3b7fb4b0989aaca913b85dd53e8db01d17c6b86 Mon Sep 17 00:00:00 2001 From: David Levai Date: Mon, 3 Jul 2023 14:21:26 +0200 Subject: [PATCH 2/3] feat: added work availability badge --- components/navigation.tsx | 35 ++++++++++++++++++------- components/ui/badge.tsx | 36 ++++++++++++++++++++++++++ components/work-availability-badge.tsx | 12 +++++++++ lib/metadata.ts | 1 + 4 files changed, 74 insertions(+), 10 deletions(-) create mode 100644 components/ui/badge.tsx create mode 100644 components/work-availability-badge.tsx diff --git a/components/navigation.tsx b/components/navigation.tsx index 025db6b..934d0b5 100644 --- a/components/navigation.tsx +++ b/components/navigation.tsx @@ -10,6 +10,7 @@ import { CommandDialogComponent } from "@/components/command-dialog"; import { MobileNav } from "@/components/mobile-nav"; import { ModeToggle } from "@/components/mode-toggle"; import { Navbar } from "@/components/navbar"; +import { WorkAvailabilityBadge } from "@/components/work-availability-badge"; export function Navigation() { const [prevScrollPos, setPrevScrollPos] = useState(0); @@ -37,20 +38,34 @@ export function Navigation() { <>
+ {defaultAuthor.availableForWork && ( +
+ + + +
+ )}
- - {defaultAuthor.name} - +
+ + {defaultAuthor.name} + + {defaultAuthor.availableForWork && ( + + + + )} +