Skip to content

Commit f6a1a6d

Browse files
authored
navbar links update (#24)
1 parent d734d31 commit f6a1a6d

File tree

5 files changed

+2991
-17
lines changed

5 files changed

+2991
-17
lines changed

packages/blog-starter-kit/themes/enterprise/components/header.tsx

Lines changed: 39 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import {
1818
ContactsSVG,
1919
EventsSVG,
2020
GitHubNavBarSVG,
21+
GiudeSVG,
2122
IntegrationsSVG,
2223
MindsCloudSVG,
2324
MindsdbLogoSVG,
@@ -37,15 +38,21 @@ const NavItem = ({
3738
icon: Icon,
3839
url,
3940
cta,
41+
newTab,
4042
}: {
4143
title: string;
4244
description: string;
4345
icon: React.ReactNode;
4446
url: string;
4547
cta?: string;
48+
newTab?: boolean;
4649
}) => {
4750
return (
48-
<a href={url} className=" flex flex-row gap-3 rounded-md px-4 py-3 hover:bg-green-50 ">
51+
<a
52+
href={url}
53+
className=" flex flex-row gap-3 rounded-md px-4 py-3 hover:bg-green-50 "
54+
target={newTab ? '_blank' : '_self'}
55+
>
4956
<div>{Icon}</div>
5057
<span>
5158
<p>{title}</p>
@@ -64,6 +71,7 @@ const mindsCloudList = [
6471
href: 'https://mdb.ai/',
6572
Icon: <MindsCloudSVG />,
6673
cta: 'Try now →',
74+
newTab: true,
6775
},
6876
];
6977
const MindsCloudPopover = () => {
@@ -96,6 +104,7 @@ const MindsCloudPopover = () => {
96104
icon={item.Icon}
97105
url={item.href}
98106
cta={item.cta}
107+
newTab={item?.newTab}
99108
/>
100109
))}
101110
</div>
@@ -112,18 +121,21 @@ const opensourceNav = [
112121
description: 'AI models, data sources, applications',
113122
href: 'https://docs.mindsdb.com/integrations/integrations',
114123
Icon: <IntegrationsSVG />,
124+
newTab: true,
115125
},
116126
{
117127
name: 'Support',
118128
description: 'Chat with experts on Slack',
119129
href: 'https://mindsdb.com/joincommunity',
120130
Icon: <SupportSVG />,
131+
newTab: true,
121132
},
122133
{
123134
name: 'GitHub',
124135
description: 'Get code, contribute, flag issues',
125-
href: 'https://docs.mindsdb.com/what-is-mindsdb',
136+
href: 'https://github.com/mindsdb/mindsdb',
126137
Icon: <GitHubNavBarSVG />,
138+
newTab: true,
127139
},
128140
{
129141
name: 'Community',
@@ -162,6 +174,7 @@ const OpenSourcePopover = () => {
162174
description={item.description}
163175
icon={item.Icon}
164176
url={item.href}
177+
newTab={item?.newTab}
165178
/>
166179
))}
167180
</div>
@@ -174,18 +187,35 @@ const OpenSourcePopover = () => {
174187

175188
const connectList = [
176189
{
177-
name: 'Connect with an Expert',
178-
description: "Let's explore AI together and solve your most pressing business challenges.",
190+
name: 'Enterprise Offerings',
191+
description:
192+
'Fully featured, fully supported, fully on prem. Explore how custom AI can benefit your business.',
179193
href: 'https://mindsdb.com/enterprise',
180194
Icon: <ConnectSVG />,
181195
cta: 'Learn more →',
182196
},
197+
{
198+
name: "CTO's Guide to AI Agents",
199+
description:
200+
'Deep dive into the world of AI agents, covering everything from fundamental concepts to advanced applications.',
201+
href: 'https://mindsdb.com/the-cto-guide-to-buiding-ai-agents',
202+
Icon: <GiudeSVG />,
203+
cta: 'Download Now →',
204+
},
205+
{
206+
name: "CTO's Guide to RAG",
207+
description:
208+
'Read more about how RAG works, and why this new approach to retrieving data makes a chatbot’s answers more accurate, relevant, and secure.',
209+
href: 'https://mindsdb.com/mindsdb-the-ctos-guide-to-rag-guide',
210+
Icon: <GiudeSVG />,
211+
cta: 'Download Now →',
212+
},
183213
];
184214
const ConnectPopover = () => {
185215
return (
186216
<Popover className="relative">
187217
<Popover.Button className="flex items-center gap-x-1 text-sm font-semibold leading-6 text-white">
188-
Connect with an Expert
218+
Enterprise
189219
<ChevronDownIcon className="h-5 w-5 flex-none text-gray-400" aria-hidden="true" />
190220
</Popover.Button>
191221

@@ -370,7 +400,8 @@ export const Header = () => {
370400
<Popover.Group className="hidden lg:flex lg:gap-x-7">
371401
<Link
372402
className="flex items-center gap-x-1 text-sm font-semibold leading-6 text-white"
373-
href="https://docs.mindsdb.com/what-is-mindsdb"
403+
href="http://docs.mindsdb.com/"
404+
target="_blank"
374405
>
375406
Docs
376407
</Link>
@@ -488,6 +519,7 @@ export const Header = () => {
488519
description={item.description}
489520
icon={item.Icon}
490521
url={item.href}
522+
newTab={item.newTab}
491523
/>
492524
))}
493525
</Disclosure.Panel>
@@ -501,6 +533,7 @@ export const Header = () => {
501533
<Link
502534
className="flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"
503535
href="https://docs.mindsdb.com/what-is-mindsdb"
536+
target="_blank"
504537
>
505538
Docs
506539
</Link>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import React from 'react';
2+
3+
export default class GuideSVG extends React.Component {
4+
render() {
5+
return (
6+
<svg
7+
className={this.props.className}
8+
width="24"
9+
height="24"
10+
viewBox="0 0 250 250"
11+
fill="none"
12+
xmlns="http://www.w3.org/2000/svg"
13+
>
14+
<path
15+
d="M30 20V195H35C83.6719 195 122.754 214.473 122.754 214.473L125 215.586L127.246 214.473C127.246 214.473 166.328 195 215 195H220V20H215C165.801 20 128.203 38.1055 125 39.6875C121.797 38.1055 84.1992 20 35 20H30ZM40 30.4492C81.2305 31.6211 113.262 45.2344 120 48.2812V202.52C109.355 197.93 79.4336 186.504 40 185.449V30.4492ZM210 30.4492V185.449C170.566 186.504 140.645 197.93 130 202.52V48.2812C136.738 45.2344 168.77 31.6211 210 30.4492ZM10 45V215H15C78.9648 215 122.969 234.57 122.969 234.57L125 235.469L127.031 234.57C127.031 234.57 171.035 215 235 215H240V45H230V205.352C169.004 206.387 127.793 223.555 125 224.766C122.207 223.555 80.9961 206.387 20 205.352V45H10Z"
16+
fill="#00A587"
17+
/>
18+
</svg>
19+
);
20+
}
21+
}

packages/blog-starter-kit/themes/enterprise/components/icons/svgs/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ import CareersSVG from './NavbarIcons/CareersSVG';
2323
import CaseStudiesSVG from './NavbarIcons/CaseStudiesSVG';
2424
import ContactsSVG from './NavbarIcons/ContactSVG';
2525
import EventsSVG from './NavbarIcons/EventsSVG';
26+
import GiudeSVG from './NavbarIcons/GuideSVG';
2627
import NewsroomSVG from './NavbarIcons/NewsroomSVG';
28+
2729
import NewsletterPlusSVG from './NewsletterPlusSVG';
2830
import PlusCircleSVG from './PlusCircleSVG';
2931
import RssSVG from './RssSVG';
@@ -44,13 +46,14 @@ export {
4446
ExternalArrowSVG,
4547
GitHubNavBarSVG,
4648
GithubSVG,
49+
GiudeSVG,
4750
HashnodeSVG,
4851
IntegrationsSVG,
4952
LinkedinSVG,
5053
MindsCloudSVG,
5154
MindsdbLogoSVG,
52-
NewsroomSVG,
5355
NewsletterPlusSVG,
56+
NewsroomSVG,
5457
PlusCircleSVG,
5558
RssSVG,
5659
SlackWhiteNavSGV,

0 commit comments

Comments
 (0)