mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-21 00:21:35 +02:00
Member progress modal
This commit is contained in:
@@ -279,8 +279,35 @@ export function MemberProgressModal(props: ProgressMapProps) {
|
|||||||
<div class="relative mx-auto h-full w-full max-w-4xl p-4 md:h-auto">
|
<div class="relative mx-auto h-full w-full max-w-4xl p-4 md:h-auto">
|
||||||
<div
|
<div
|
||||||
ref={popupBodyEl}
|
ref={popupBodyEl}
|
||||||
class="popup-body relative rounded-lg bg-white shadow"
|
class="popup-body relative rounded-lg bg-white shadow pt-[1px]"
|
||||||
>
|
>
|
||||||
|
{isCurrentUser && (
|
||||||
|
<div className="sticky top-1 mx-1 mt-1 mb-0 rounded-xl bg-gray-900 p-4 text-gray-300">
|
||||||
|
<h2 className={'text-base mb-1.5'}>
|
||||||
|
Follow the Instructions below to update your progress
|
||||||
|
</h2>
|
||||||
|
<ul className="flex flex-col gap-1">
|
||||||
|
<li className="leading-loose">
|
||||||
|
<kbd className="rounded-md bg-yellow-200 px-2 py-1.5 text-xs text-gray-900">
|
||||||
|
Right Mouse Click
|
||||||
|
</kbd>{' '}
|
||||||
|
on a topic to mark as{' '}
|
||||||
|
<span className={'font-medium text-white'}>Done</span>.
|
||||||
|
</li>
|
||||||
|
<li className="leading-loose">
|
||||||
|
<kbd className="rounded-md bg-yellow-200 px-2 py-1.5 text-xs text-gray-900">
|
||||||
|
Shift
|
||||||
|
</kbd>{' '}
|
||||||
|
+{' '}
|
||||||
|
<kbd className="rounded-md bg-yellow-200 px-2 py-1.5 text-xs text-gray-900">
|
||||||
|
Click
|
||||||
|
</kbd>{' '}
|
||||||
|
on a topic to mark as{' '}
|
||||||
|
<span className="font-medium text-white">In progress</span>.
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
{showProgressHint && (
|
{showProgressHint && (
|
||||||
<ProgressHint
|
<ProgressHint
|
||||||
onClose={() => {
|
onClose={() => {
|
||||||
@@ -289,24 +316,7 @@ export function MemberProgressModal(props: ProgressMapProps) {
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<div className="p-4">
|
<div className="p-4">
|
||||||
{isCurrentUser ? (
|
{!isCurrentUser && (
|
||||||
<div className="mb-5 mt-0 text-left md:mt-4 md:text-center">
|
|
||||||
<h2 className={'mb-1 text-lg font-bold md:text-2xl'}>
|
|
||||||
Update Your Progress
|
|
||||||
</h2>
|
|
||||||
<p className={'text-gray-500'}>
|
|
||||||
Follow the{' '}
|
|
||||||
<button
|
|
||||||
className="inline-flex items-center text-blue-600 underline"
|
|
||||||
onClick={() => {
|
|
||||||
setShowProgressHint(true);
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
instructions to update your progress
|
|
||||||
</button>{' '}
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
) : (
|
|
||||||
<div className="mb-5 mt-0 text-left md:mt-4 md:text-center">
|
<div className="mb-5 mt-0 text-left md:mt-4 md:text-center">
|
||||||
<h2 className={'mb-1 text-lg font-bold md:text-2xl'}>
|
<h2 className={'mb-1 text-lg font-bold md:text-2xl'}>
|
||||||
{member.name}'s Progress
|
{member.name}'s Progress
|
||||||
@@ -396,7 +406,7 @@ export function MemberProgressModal(props: ProgressMapProps) {
|
|||||||
|
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className="popup-close absolute right-2.5 top-3 ml-auto inline-flex items-center rounded-lg bg-transparent p-1.5 text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 sm:hidden"
|
className={`absolute right-2.5 top-3 ml-auto inline-flex items-center rounded-lg bg-transparent p-1.5 text-sm text-gray-400 hover:text-gray-900 lg:hidden ${isCurrentUser ? 'hover:bg-gray-800' : 'hover:bg-gray-100'}`}
|
||||||
onClick={onClose}
|
onClick={onClose}
|
||||||
>
|
>
|
||||||
<img alt={'close'} src={CloseIcon} className="h-4 w-4" />
|
<img alt={'close'} src={CloseIcon} className="h-4 w-4" />
|
||||||
|
Reference in New Issue
Block a user