mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-01 06:50:26 +02:00
Add feedback link
This commit is contained in:
@@ -4,6 +4,7 @@ import ChevronDown from '../icons/dropdown.svg';
|
||||
import { useTeamId } from '../hooks/use-team-id';
|
||||
import TeamProgress from '../icons/team-progress.svg';
|
||||
import SettingsIcon from '../icons/cog.svg';
|
||||
import ChatIcon from '../icons/chat.svg';
|
||||
import MapIcon from '../icons/map.svg';
|
||||
import GroupIcon from '../icons/group.svg';
|
||||
import { useState } from 'preact/hooks';
|
||||
@@ -19,6 +20,8 @@ export const TeamSidebar: FunctionalComponent<{
|
||||
|
||||
const { teamId } = useTeamId();
|
||||
|
||||
const feedbackFormLink = 'https://forms.gle/g9h6yEqsG4y1hQUv5';
|
||||
|
||||
const sidebarLinks = [
|
||||
{
|
||||
title: 'Progress',
|
||||
@@ -100,6 +103,21 @@ export const TeamSidebar: FunctionalComponent<{
|
||||
</li>
|
||||
);
|
||||
})}
|
||||
|
||||
<li>
|
||||
<a
|
||||
href={feedbackFormLink}
|
||||
target={'_blank'}
|
||||
class={`flex w-full items-center rounded px-3 py-1.5 text-sm text-slate-900 hover:bg-slate-200`}
|
||||
>
|
||||
<img
|
||||
alt={'menu icon'}
|
||||
src={ChatIcon}
|
||||
className="mr-2 h-4 w-4"
|
||||
/>
|
||||
Send Feedback
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
)}
|
||||
</div>
|
||||
@@ -127,7 +145,7 @@ export const TeamSidebar: FunctionalComponent<{
|
||||
<img
|
||||
alt="menu icon"
|
||||
src={sidebarLink.icon}
|
||||
className="mr-2 h-4 w-4"
|
||||
className="relative top-[2px] mr-2 h-4 w-4"
|
||||
/>
|
||||
{sidebarLink.title}
|
||||
</span>
|
||||
@@ -143,6 +161,11 @@ export const TeamSidebar: FunctionalComponent<{
|
||||
);
|
||||
})}
|
||||
</ul>
|
||||
|
||||
<a href={feedbackFormLink} target={'_blank'} className="mr-3 mt-4 flex items-center justify-center rounded-md border p-2 text-gray-500 text-sm hover:text-black transition-colors hover:border-gray-300 hover:bg-gray-50">
|
||||
<img src={ChatIcon} className="mr-2 h-4 w-4" />
|
||||
Send Feedback
|
||||
</a>
|
||||
</nav>
|
||||
</aside>
|
||||
<div className="grow px-0 py-0 md:px-10 md:py-10">{children}</div>
|
||||
|
1
src/icons/chat.svg
Normal file
1
src/icons/chat.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-message-circle"><path d="m3 21 1.9-5.7a8.5 8.5 0 1 1 3.8 3.8z"/></svg>
|
After Width: | Height: | Size: 272 B |
Reference in New Issue
Block a user