generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: clean up layout and side bar components (#412)
<img width="1582" alt="Screenshot 2023-09-20 at 11 15 26 AM" src="https://github.com/TBD54566975/ftl/assets/51647/7e38ea2d-6186-436f-872a-83ae14429f07"> <img width="1582" alt="Screenshot 2023-09-20 at 11 15 30 AM" src="https://github.com/TBD54566975/ftl/assets/51647/41352905-a149-43dc-b383-223437e270da"> <img width="1582" alt="Screenshot 2023-09-20 at 11 15 40 AM" src="https://github.com/TBD54566975/ftl/assets/51647/650d1e46-f665-488b-8846-2b9595cd1677"> <img width="1582" alt="Screenshot 2023-09-20 at 11 15 37 AM" src="https://github.com/TBD54566975/ftl/assets/51647/fced1ec0-cdb7-4fd9-8b96-314dba1c3e61"> <img width="1582" alt="Screenshot 2023-09-20 at 11 15 48 AM" src="https://github.com/TBD54566975/ftl/assets/51647/7b36fa39-68dd-4c8d-a327-c95e9830bc6a"> <img width="1582" alt="Screenshot 2023-09-20 at 11 15 53 AM" src="https://github.com/TBD54566975/ftl/assets/51647/632dd4e1-6df8-4d96-a522-8343e4913c7f">
- Loading branch information
1 parent
4bf4378
commit 901c5e7
Showing
9 changed files
with
169 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
interface Props { | ||
name: string | ||
value: string | ||
} | ||
|
||
export const AttributeBadge = ({ name, value }: Props) => { | ||
return ( | ||
<span className='inline-flex items-center px-2 py-0.5 space-x-1 rounded-md text-sm bg-gray-100 dark:bg-slate-700'> | ||
<span className='text-gray-500 dark:text-gray-400'>{name}</span> | ||
<span>:</span> | ||
<span className='text-gray-900 dark:text-gray-100 font-medium'>{value}</span> | ||
</span> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
interface Props { | ||
children: React.ReactNode | ||
} | ||
export const Card = ({ children }: Props) => { | ||
return <div className='p-2 rounded-md border border-gray-500'>{children}</div> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { XMarkIcon } from '@heroicons/react/24/outline' | ||
|
||
interface Props { | ||
onClick: () => void | ||
} | ||
|
||
export const CloseButton = ({ onClick }: Props) => { | ||
return ( | ||
<button onClick={onClick} className='rounded-sm hover:bg-gray-200 dark:hover:bg-slate-500'> | ||
<XMarkIcon className={`h-5 w-5`} /> | ||
</button> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
console/client/src/features/timeline/details/TimelineTimestamp.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.