diff --git a/www/components/Nav/Company.tsx b/www/components/Nav/Company.tsx index d6d82f103c0..7dcdb917277 100644 --- a/www/components/Nav/Company.tsx +++ b/www/components/Nav/Company.tsx @@ -2,9 +2,16 @@ import React from 'react' import CompanyData from 'data/Company.json' import BlogPostsData from 'data/BlogPosts.json' +type Props = { + text: string + description? : string + url? : string + icon? : string +} + const Company = () => { - const iconSections = Object.values(CompanyData).map((company) => { - const { text, description, url } = company + const iconSections = Object.values(CompanyData).map((company : Props) => { + const { text, description, url, icon } = company const content = ( { stroke-linecap="round" stroke-linejoin="round" stroke-width="2" - d="M18.364 5.636l-3.536 3.536m0 5.656l3.536 3.536M9.172 9.172L5.636 5.636m3.536 9.192l-3.536 3.536M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-5 0a4 4 0 11-8 0 4 4 0 018 0z" + d={icon} />
diff --git a/www/components/Nav/Developers.tsx b/www/components/Nav/Developers.tsx index cb8c6a397a5..1e77ccbaf14 100644 --- a/www/components/Nav/Developers.tsx +++ b/www/components/Nav/Developers.tsx @@ -2,9 +2,17 @@ import React from 'react' import DevelopersData from 'data/Developers.json' import AnnouncementsData from 'data/Announcements.json' +type Props = { + text: string + description? : string + url? : string + icon? : string +} + + const Developers = () => { - const iconSections = Object.values(DevelopersData).map((company) => { - const { text, description, url } = company + const iconSections = Object.values(DevelopersData).map((company : Props) => { + const { text, description, url, icon } = company const content = ( { stroke-linecap="round" stroke-linejoin="round" stroke-width="2" - d="M18.364 5.636l-3.536 3.536m0 5.656l3.536 3.536M9.172 9.172L5.636 5.636m3.536 9.192l-3.536 3.536M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-5 0a4 4 0 11-8 0 4 4 0 018 0z" + d={icon} />
diff --git a/www/components/Nav/Product.tsx b/www/components/Nav/Product.tsx index 10f5bb9096f..b8e3979dbbb 100644 --- a/www/components/Nav/Product.tsx +++ b/www/components/Nav/Product.tsx @@ -66,7 +66,7 @@ const Product = () => {

- Latest news + Latest case studies

    {CaseStudiesData.map((caseStudy: any, idx: number) => ( @@ -95,14 +95,14 @@ const Product = () => { ))}
-
+ {/*
View all posts -
+
*/}
) diff --git a/www/components/Nav/index.tsx b/www/components/Nav/index.tsx index b5692ee14f2..3a3647928ea 100644 --- a/www/components/Nav/index.tsx +++ b/www/components/Nav/index.tsx @@ -153,7 +153,7 @@ const Nav = (props: Props) => { className={` inline-flex items-center px-1 border-b-2 border-transparent text-sm font-medium text-gray-500 hover:text-gray-700 dark:text-dark-100 cursor-pointer - `} + ` + (props.active )} onClick={props.onClick} > <> @@ -208,11 +208,11 @@ const Nav = (props: Props) => { onClick={() => handleToggle(() => setOpenDevelopers(!openDevelopers))} active={openDevelopers} /> - handleToggle(() => setOpenCompany(!openCompany))} active={openCompany} - /> + /> */} @@ -220,9 +220,19 @@ const Nav = (props: Props) => { - + {/* - + */} + + Beta +