parent
90f3ffe270
commit
e5e0a7c8c5
10 changed files with 97 additions and 48 deletions
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 33 KiB |
@ -1,23 +1,30 @@ |
|||||||
import { CheckIcon } from '../ReactIcons/CheckIcon'; |
import { CheckIcon } from '../ReactIcons/CheckIcon'; |
||||||
|
import { TeamAnnouncement } from '../TeamAnnouncement'; |
||||||
|
|
||||||
type EmptyProgressProps = { |
type EmptyProgressProps = { |
||||||
title?: string; |
title?: string; |
||||||
message?: string; |
message?: string; |
||||||
}; |
}; |
||||||
|
|
||||||
export function EmptyProgress(props: EmptyProgressProps) { |
export function EmptyProgress(props: EmptyProgressProps) { |
||||||
const { |
const { |
||||||
title = 'Start learning ..', |
title = 'Start learning ..', |
||||||
message = 'Your progress and favorite roadmaps will show up here.', |
message = 'Your progress and favorite roadmaps will show up here.', |
||||||
} = props; |
} = props; |
||||||
|
|
||||||
return ( |
return ( |
||||||
<div className="relative flex min-h-full flex-col items-start sm:items-center justify-center py-6"> |
<div className="relative flex min-h-full flex-col items-start justify-center py-6 sm:items-center"> |
||||||
<h2 className={'mb-1 flex items-center text-lg sm:text-2xl text-gray-200'}> |
<h2 |
||||||
<CheckIcon additionalClasses='mr-2 top-[0.5px] w-[16px] h-[16px] sm:w-[20px] sm:h-[20px]' /> |
className={'mb-1.5 flex items-center text-lg text-gray-200 sm:text-2xl'} |
||||||
Start learning .. |
> |
||||||
</h2> |
<CheckIcon additionalClasses="mr-2 top-[0.5px] w-[16px] h-[16px] sm:w-[20px] sm:h-[20px]" /> |
||||||
<p className={'text-gray-400 text-sm sm:text-base'}>{message}</p> |
{title} |
||||||
</div> |
</h2> |
||||||
); |
<p className={'text-sm text-gray-400 sm:text-base'}>{message}</p> |
||||||
|
|
||||||
|
<p className="mt-5"> |
||||||
|
<TeamAnnouncement /> |
||||||
|
</p> |
||||||
|
</div> |
||||||
|
); |
||||||
} |
} |
||||||
|
@ -0,0 +1,16 @@ |
|||||||
|
type TeamAnnouncementProps = {}; |
||||||
|
|
||||||
|
export function TeamAnnouncement(props: TeamAnnouncementProps) { |
||||||
|
return ( |
||||||
|
<a |
||||||
|
className="rounded-md border border-dashed border-purple-700 px-3 py-1.5 text-purple-400 transition-colors hover:border-gray-700 hover:text-white" |
||||||
|
href="/teams" |
||||||
|
> |
||||||
|
<span className="relative -top-[0.5px] mr-1 text-xs font-semibold uppercase text-white"> |
||||||
|
New |
||||||
|
</span>{' '} |
||||||
|
<span className={'hidden sm:inline'}>Announcing roadmaps for teams. <span className='font-semibold'>Learn more!</span></span> |
||||||
|
<span className={'inline sm:hidden'}>Announcing roadmaps for teams!</span> |
||||||
|
</a> |
||||||
|
); |
||||||
|
} |
Loading…
Reference in new issue