Skip to content

Commit 0d32b34

Browse files
committed
fix header logo & navbar
1 parent 6a31f80 commit 0d32b34

File tree

6 files changed

+599
-47
lines changed

6 files changed

+599
-47
lines changed

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

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ import {
1313
BlogNavSGV,
1414
CareersSVG,
1515
CaseStudiesSVG,
16-
CloudNavBarSVG,
1716
CommunitySVG,
1817
ContactSVG,
1918
DocsNavSVG,
2019
EnterpriseSVG,
2120
EventsSVG,
2221
GithubSVG,
22+
HashnodeBlueSVG,
2323
MindsdbLogoSVG,
2424
NewsroomSVG,
2525
ProductUpdatesSVG,
@@ -36,11 +36,17 @@ function hasUrl(
3636
}
3737

3838
const product1 = [
39+
// {
40+
// name: 'MindsDB Pro',
41+
// description: 'Try our managed service',
42+
// href: 'https://cloud.mindsdb.com/',
43+
// Icon: <CloudNavBarSVG />,
44+
// },
3945
{
40-
name: 'MindsDB Pro',
41-
description: 'Try our managed service',
42-
href: 'https://cloud.mindsdb.com/',
43-
Icon: <CloudNavBarSVG />,
46+
name: 'Github',
47+
description: 'Visit our Repo',
48+
href: 'https://github.com/mindsdb/mindsdb/',
49+
Icon: <GithubSVG />,
4450
},
4551
{
4652
name: 'MindsDB Enterprise',
@@ -120,35 +126,41 @@ const company1 = [
120126
{
121127
name: 'About Us',
122128
description: 'Our vision and team',
123-
href: 'https://mindsdb.com/joincommunity',
129+
href: 'https://mindsdb.com/about',
124130
Icon: <AboutUsNavSVG />,
125131
},
126132
{
127133
name: 'Events',
128134
description: 'Archive of past and upcoming events',
129-
href: 'https://docs.mindsdb.com/',
135+
href: 'https://mindsdb.com/events',
130136
Icon: <EventsSVG />,
131137
},
132138
{
133139
name: 'Newsroom',
134140
description: 'Read the latest news about MindsDB',
135-
href: 'https://mindsdb.com/case-studies',
141+
href: 'https://mindsdb.com/newsroom',
136142
Icon: <NewsroomSVG />,
137143
},
138144
];
139145
const company2 = [
140146
{
141147
name: 'Careers',
142148
description: 'Learn about open roles at MindsDB',
143-
href: 'https://mindsdb.com/machine-learning-use-cases',
149+
href: 'https://mindsdb.com/careers',
144150
Icon: <CareersSVG />,
145151
},
146152
{
147153
name: 'Contacts',
148154
description: 'Find the right channel to get in touch',
149-
href: 'https://mindsdb.com/blog-categories/product-updates',
155+
href: 'https://mindsdb.com/contact',
150156
Icon: <ContactSVG />,
151157
},
158+
{
159+
name: 'Contests',
160+
description: 'Build Your Own AI Agent Online Hackathon',
161+
href: 'https://hashnode.com/hackathons/mindsdb',
162+
Icon: <HashnodeBlueSVG />,
163+
},
152164
];
153165

154166
const NavItem = ({
@@ -190,10 +202,10 @@ const ProductPopover = () => {
190202
leaveFrom="opacity-100 translate-y-0"
191203
leaveTo="opacity-0 translate-y-1"
192204
>
193-
<Popover.Panel className="absolute -left-8 top-full z-10 mt-3 w-screen max-w-2xl overflow-hidden rounded-3xl bg-white shadow-lg ring-1 ring-gray-900/5">
205+
<Popover.Panel className="absolute -left-8 top-full z-10 mt-3 w-96 max-w-2xl overflow-hidden rounded-3xl bg-white shadow-lg ring-1 ring-gray-900/5">
194206
<div className="flex flex-row p-4 text-black ">
195207
<div className="w-full">
196-
<p className="mb-4 border-b px-4 pb-3 text-black">CLOUD</p>
208+
{/* <p className="mb-4 border-b px-4 pb-3 text-black">CLOUD</p> */}
197209

198210
{product1.map((item) => (
199211
<NavItem
@@ -205,7 +217,8 @@ const ProductPopover = () => {
205217
/>
206218
))}
207219
</div>
208-
<div className="w-full">
220+
221+
{/* <div className="w-full">
209222
<p className="mb-4 border-b px-4 pb-3 text-black">OPEN-SOURCE</p>
210223
211224
{product2.map((item) => (
@@ -217,7 +230,7 @@ const ProductPopover = () => {
217230
url={item.href}
218231
/>
219232
))}
220-
</div>
233+
</div> */}
221234
</div>
222235
</Popover.Panel>
223236
</Transition>
@@ -342,7 +355,7 @@ export const Header = () => {
342355
aria-label={`${publication.title} blog home page`}
343356
className="flex flex-row items-center gap-3"
344357
>
345-
{!PUBLICATION_LOGO ? (
358+
{PUBLICATION_LOGO ? (
346359
<>
347360
<MindsdbLogoSVG className="block w-32 shrink-0 md:w-40" alt={publication.title} />
348361
<span className="text-xl font-semibold text-white md:text-3xl"></span>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React from 'react';
33
export default class HashnodeSVG extends React.Component {
44
render() {
55
return (
6-
<svg className={this.props.className} fill="none" viewBox="0 0 24 24">
6+
<svg className={this.props.className} fill="none" width="24" height="24" viewBox="0 0 24 24">
77
<path
88
stroke="currentColor"
99
strokeWidth="1.5"
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import React from 'react';
2+
3+
export default class HashnodeBlueSVG extends React.Component {
4+
render() {
5+
return (
6+
<svg
7+
width={24}
8+
height={24}
9+
viewBox="0 0 337 337"
10+
fill="none"
11+
xmlns="http://www.w3.org/2000/svg"
12+
>
13+
<g clip-path="url(#clip0_303_2)">
14+
<g mask="url(#mask0_303_2)">
15+
<path
16+
d="M224 168.5C224 137.848 199.152 113 168.5 113C137.848 113 113 137.848 113 168.5C113 199.152 137.848 224 168.5 224C199.152 224 224 199.152 224 168.5Z"
17+
fill="white"
18+
/>
19+
<path
20+
fill-rule="evenodd"
21+
clip-rule="evenodd"
22+
d="M23.1548 112.598C-7.71825 143.472 -7.71825 193.528 23.1548 224.402L112.598 313.845C143.472 344.718 193.528 344.718 224.402 313.845L313.845 224.402C344.718 193.528 344.718 143.472 313.845 112.598L224.402 23.1548C193.528 -7.71825 143.472 -7.71825 112.598 23.1548L23.1548 112.598ZM207.631 207.631C229.243 186.02 229.243 150.98 207.631 129.369C186.02 107.757 150.98 107.757 129.369 129.369C107.757 150.98 107.757 186.02 129.369 207.631C150.98 229.243 186.02 229.243 207.631 207.631Z"
23+
fill="#2962FF"
24+
/>
25+
</g>
26+
</g>
27+
<defs>
28+
<clipPath id="clip0_303_2">
29+
<rect width="337" height="337" fill="white" />
30+
</clipPath>
31+
</defs>
32+
</svg>
33+
);
34+
}
35+
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import ContactSVG from './NavbarIcons/ContactSVG';
1515
import DocsNavSVG from './NavbarIcons/DocsNavSVG';
1616
import EnterpriseSVG from './NavbarIcons/EnterpriseSVG';
1717
import EventsSVG from './NavbarIcons/EventsSVG';
18+
import HashnodeBlueSVG from './NavbarIcons/HashnodeSVG';
1819
import NewsroomSVG from './NavbarIcons/NewsroomSVG';
1920
import ProductUpdatesSVG from './NavbarIcons/ProductUpdatesSVG';
2021
import SlackNavSGV from './NavbarIcons/SlackNavSGV';
@@ -41,6 +42,7 @@ export {
4142
EventsSVG,
4243
ExternalArrowSVG,
4344
GithubSVG,
45+
HashnodeBlueSVG,
4446
HashnodeSVG,
4547
LinkedinSVG,
4648
MindsdbLogoSVG,

0 commit comments

Comments
 (0)