Skip to content

Commit

Permalink
added text
Browse files Browse the repository at this point in the history
need to work on spacing
  • Loading branch information
jmill-16 committed Nov 12, 2024
1 parent 4555c11 commit 070664b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/private/volunteer/home/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const VolunteerHomePage = () => {
return (
<div>
<h1> Volunteer Home</h1>
<DashboardAlert Title="hello" Subtext="subtext"/>
<DashboardAlert Title="Importance: change to Saturday (10/12) schedule" Subtext="bla blo ble bla blo ble haha hihi hoho ..."/>
</div>
);
};
Expand Down
14 changes: 12 additions & 2 deletions src/components/DashboardAlert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,22 @@ const DashboardAlert = ({ Title, Subtext }: DashboardAlertProps) => {
return (
<div className="ml-8 flex items-start shadow-[0px_4px_8px_-2px_rgba(16,24,40,0.10),_0px_2px_4px_-2px_rgba(16,24,40,0.06)">
<div className="flex w-[40px] py-0 px-[8px] items-center gap-[10px] self-stretch rounded-tl-[8px] rounded-bl-[8px] bg-[#FF8B14]">
{/* orange tab thingy */}
<div>
<Icon icon="lucide:info" width="24" height="24" />
<Icon icon="lucide:info" width="24" height="24" style={{ color: 'white' }} />
</div>
</div>
{/* big orange box */}
<div className="flex w-[1094px] h-[116px] p-[24px] px-[28px] items-start gap-[16px] rounded-tr-[8px] rounded-br-[8px] border border-[#FF8B14] bg-[#FFF]">
{/* Hello*/}
<div className="flex flex-col justify-start items-start gap-2">
<div className="grow shrink basis-0 text-[#101828] text-lg font-bold font-['Sofia Pro'] leading-normal">
{Title}
</div>
<div className="grow shrink basis-0 text-[#344054] text-base font-normal font-['Sofia Pro'] leading-normal">
{Subtext}
</div>
</div>

</div>
</div>
);
Expand Down

0 comments on commit 070664b

Please sign in to comment.