From 11ec6c176e70ae6737bbc0c45847c7f82546ae18 Mon Sep 17 00:00:00 2001 From: Haris Shah Date: Sat, 23 Mar 2024 21:55:52 +0500 Subject: [PATCH] feat: pill and tag --- .../public/assets/icons/icon-remove.svg | 1 + apps/frontend/src/components/Card.tsx | 4 +-- apps/frontend/src/components/Pill.tsx | 27 ++++++++++++++++--- 3 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 apps/frontend/public/assets/icons/icon-remove.svg diff --git a/apps/frontend/public/assets/icons/icon-remove.svg b/apps/frontend/public/assets/icons/icon-remove.svg new file mode 100644 index 0000000..80a7bed --- /dev/null +++ b/apps/frontend/public/assets/icons/icon-remove.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/frontend/src/components/Card.tsx b/apps/frontend/src/components/Card.tsx index 3c949ec..3fb6d15 100644 --- a/apps/frontend/src/components/Card.tsx +++ b/apps/frontend/src/components/Card.tsx @@ -44,8 +44,8 @@ export function Card({ job }: { job: Job }) {
-
- {job.role} +
+ {job.role} {job.level} {job.languages.map((language) => ( {language} diff --git a/apps/frontend/src/components/Pill.tsx b/apps/frontend/src/components/Pill.tsx index 74e5f07..afb4ca0 100644 --- a/apps/frontend/src/components/Pill.tsx +++ b/apps/frontend/src/components/Pill.tsx @@ -1,7 +1,28 @@ -export function Pill({ children }: { children: React.ReactNode }) { +export function Pill({ + children, + tag, +}: { + children: React.ReactNode + tag?: boolean +}) { return ( -
- {children} +
+
+ {children} +
+ {tag && ( + + )}
) }