Skip to content

Commit

Permalink
period mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
ap-justin committed Sep 24, 2024
1 parent 65b92d8 commit 59b8504
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/pages/Admin/Charity/Dashboard/Loaded.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,15 @@ export function Loaded({ classes = "", ...props }: Props) {
<div className="w-full mt-16 h-1.5 bg-gray-l5 rounded-full shadow-inner" />

{/** div scopes when the sticky header ends */}
<div>
<h3 className="py-4 font-medium flex items-center sticky top-[4rem] bg-white z-10">
<span className="text-sm uppercase font-normal">Period</span>
<span className="ml-2 uppercase text-sm">
{period.from} - {period.to}
</span>
<p className="text-sm text-navy-l3 ml-auto">
<div className="@container/period">
<h3 className="py-4 font-medium flex flex-col @lg/period:flex-row @lg/period:justify-between gap-y-2 sticky top-[4rem] bg-white z-10">
<div className="flex items-center">
<span className="text-sm uppercase font-normal">Period</span>
<span className="ml-2 uppercase text-sm">
{period.from} - {period.to}
</span>
</div>
<p className="text-sm text-navy-l3">
<span>Ends in </span>
<span className="p-1 px-2 bg-navy-d4 text-gray-l4 text-xs rounded ml-1">
in {period.distance}
Expand Down

0 comments on commit 59b8504

Please sign in to comment.