parent
f0c47705cb
commit
32673c21fb
10 changed files with 174 additions and 32 deletions
@ -0,0 +1,47 @@ |
||||
--- |
||||
import AstroIcon from './AstroIcon.astro'; |
||||
import Popup from './Popup/Popup.astro'; |
||||
--- |
||||
|
||||
<Popup id='progress-help' title='' subtitle=''> |
||||
<div class='-mt-2.5'> |
||||
<h2 class='mb-3 text-2xl font-semibold leading-5 text-gray-900'> |
||||
Track your Progress |
||||
</h2> |
||||
<p class='text-sm leading-4 text-gray-600'> |
||||
Login and use one of the options listed below. |
||||
</p> |
||||
|
||||
<div class='mt-4 flex flex-col gap-1.5'> |
||||
<div class='rounded-md border px-3 py-3 text-gray-500'> |
||||
<span class='mb-1.5 block text-xs font-medium uppercase text-green-600' |
||||
>Option 1</span |
||||
> |
||||
<p class='text-sm'> |
||||
Click the roadmap topics and use <span class='underline' |
||||
>Update Progress</span |
||||
> dropdown to update your progress. |
||||
</p> |
||||
</div> |
||||
|
||||
<div class='rounded-md border border-yellow-300 bg-yellow-50 px-3 py-3 text-gray-500'> |
||||
<span class='mb-1.5 block text-xs font-medium uppercase text-green-600' |
||||
>Option 2</span |
||||
> |
||||
<p class='text-sm'>Use the keyboard shortcuts listed below.</p> |
||||
|
||||
<ul class="flex flex-col gap-1 mt-3 mb-1.5"> |
||||
<li class='text-sm leading-loose'> |
||||
<kbd class="px-2 py-1.5 text-xs text-white bg-gray-900 rounded-md">Right Mouse Click</kbd> to mark as Done. |
||||
</li> |
||||
<li class='text-sm leading-loose'> |
||||
<kbd class="px-2 py-1.5 text-xs text-white bg-gray-900 rounded-md">Shift</kbd> + <kbd class="px-2 py-1.5 text-xs text-white bg-gray-900 rounded-md">Click</kbd> to mark as in progress. |
||||
</li> |
||||
<li class='text-sm leading-loose'> |
||||
<kbd class="px-2 py-1.5 text-xs text-white bg-gray-900 rounded-md">Option</kbd> + <kbd class="px-2 py-1.5 text-xs text-white bg-gray-900 rounded-md">Click</kbd> to mark as skipped. |
||||
</li> |
||||
</ul> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</Popup> |
After Width: | Height: | Size: 535 B |
@ -0,0 +1,14 @@ |
||||
export function showLoginPopup() { |
||||
const popupEl = document.querySelector(`#login-popup`); |
||||
if (!popupEl) { |
||||
return; |
||||
} |
||||
|
||||
popupEl.classList.remove('hidden'); |
||||
popupEl.classList.add('flex'); |
||||
|
||||
const focusEl = popupEl.querySelector<HTMLElement>('[autofocus]'); |
||||
if (focusEl) { |
||||
focusEl.focus(); |
||||
} |
||||
} |
Loading…
Reference in new issue