Skip to content

Commit 7f853d5

Browse files
committed
1 parent bc78584 commit 7f853d5

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

src/components/DiscordLogo.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
export function DiscordLogo() {
2+
return <svg xmlns="http://www.w3.org/2000/svg"
3+
viewBox="0 0 126.644 96"
4+
width={24} height={24}
5+
>
6+
<path
7+
fill="currentColor"
8+
d="M81.15,0c-1.2376,2.1973-2.3489,4.4704-3.3591,6.794-9.5975-1.4396-19.3718-1.4396-28.9945,0-.985-2.3236-2.1216-4.5967-3.3591-6.794-9.0166,1.5407-17.8059,4.2431-26.1405,8.0568C2.779,32.5304-1.6914,56.3725.5312,79.8863c9.6732,7.1476,20.5083,12.603,32.0505,16.0884,2.6014-3.4854,4.8998-7.1981,6.8698-11.0623-3.738-1.3891-7.3497-3.1318-10.8098-5.1523.9092-.6567,1.7932-1.3386,2.6519-1.9953,20.281,9.547,43.7696,9.547,64.0758,0,.8587.7072,1.7427,1.3891,2.6519,1.9953-3.4601,2.0457-7.0718,3.7632-10.835,5.1776,1.97,3.8642,4.2683,7.5769,6.8698,11.0623,11.5419-3.4854,22.3769-8.9156,32.0509-16.0631,2.626-27.2771-4.496-50.9172-18.817-71.8548C98.9811,4.2684,90.1918,1.5659,81.1752.0505l-.0252-.0505ZM42.2802,65.4144c-6.2383,0-11.4159-5.6575-11.4159-12.6535s4.9755-12.6788,11.3907-12.6788,11.5169,5.708,11.4159,12.6788c-.101,6.9708-5.026,12.6535-11.3907,12.6535ZM84.3576,65.4144c-6.2637,0-11.3907-5.6575-11.3907-12.6535s4.9755-12.6788,11.3907-12.6788,11.4917,5.708,11.3906,12.6788c-.101,6.9708-5.026,12.6535-11.3906,12.6535Z"
9+
/>
10+
</svg>;
11+
}

src/components/Navbar.tsx

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { DiscordLogo } from '@/components/DiscordLogo';
12
import { MainLogo } from '@/components/MainLogo';
23
import { NavigationMenu } from '@/components/ui/navigation/NavigationMenu';
34
import { NavigationMenuItem } from '@/components/ui/navigation/NavigationMenuItem';
@@ -13,6 +14,7 @@ import { getDefaultSignedInCloudRouteForUser } from '@/lib/urls/getDefaultSigned
1314
import { Link, useNavigate, useParams, useRouter } from '@tanstack/react-router';
1415
import {
1516
BookOpenTextIcon,
17+
BugIcon,
1618
BuildingIcon,
1719
HandshakeIcon,
1820
LogInIcon,
@@ -98,6 +100,20 @@ export function Navbar() {
98100
text: 'Docs',
99101
textBreakpoint: isLocalStudio ? 'md' : 'xl',
100102
},
103+
{
104+
to: 'https://github.com/HarperFast/studio/issues',
105+
target: '_blank',
106+
icon: <BugIcon />,
107+
text: 'Report an Issue',
108+
textBreakpoint: isLocalStudio ? 'lg' : 'xl',
109+
},
110+
{
111+
to: 'https://discord.gg/VzZuaw3Xay',
112+
target: '_blank',
113+
icon: <DiscordLogo />,
114+
text: 'Discord',
115+
textBreakpoint: isLocalStudio ? 'lg' : 'xl',
116+
},
101117
{
102118
onClick: handleSignOut,
103119
icon: <LogOutIcon />,
@@ -129,6 +145,7 @@ interface MenuItem {
129145
onClick?: () => void;
130146
icon: ReactNode;
131147
text: string;
148+
target?: string;
132149
textBreakpoint?: string;
133150
}
134151

@@ -213,6 +230,7 @@ function DesktopNavItem({ menuItem }: { menuItem: MenuItem }) {
213230
to={menuItem.to}
214231
onClick={menuItem.onClick}
215232
className="flex-row items-center"
233+
target={menuItem.target}
216234
activeProps={menuItem.to ? activeLinkProps : undefined}
217235
>
218236
{menuItem.icon}
@@ -278,6 +296,7 @@ function MobileNavItem({ menuItem, onClick }: { menuItem: MenuItem, onClick: ()
278296
<Link
279297
to={menuItem.to}
280298
onClick={linkOnClick}
299+
target={menuItem.target}
281300
className="flex flex-row px-3 py-2 text-base font-medium rounded-md text-gray-400 hover:text-white"
282301
activeProps={menuItem.to ? activeLinkProps : undefined}
283302
>
@@ -288,4 +307,3 @@ function MobileNavItem({ menuItem, onClick }: { menuItem: MenuItem, onClick: ()
288307
</Link>
289308
);
290309
}
291-

0 commit comments

Comments
 (0)