diff --git a/app/components/LogoCard.js b/app/components/LogoCard.js index d0ea587..e4f6731 100644 --- a/app/components/LogoCard.js +++ b/app/components/LogoCard.js @@ -10,6 +10,7 @@ export default function LogoCard({ item, onClick }) { clickable onClick={onClick} style={{ minWidth: "fit-content", padding: "2px" }} + className="logo-card hover:text-blue-500" > -

{item.name}

+

{item.name}

diff --git a/app/pages/index.tsx b/app/pages/index.tsx index 3be82ff..2d82748 100644 --- a/app/pages/index.tsx +++ b/app/pages/index.tsx @@ -49,6 +49,17 @@ export default function Home({ tools }: { tools: Array }) { } } + const cleanWebsiteUrl = (websiteUrl: string) => { + try { + return websiteUrl + .replace(/\/$/, '') + .replace('https://', '') + .replace('www.', '') + } catch (e) { + return '' + } + } + const currentItemLogoUrl = (currentItem?.logo || []).length > 0 ? currentItem?.logo[0]?.url @@ -76,15 +87,15 @@ export default function Home({ tools }: { tools: Array }) { />

{currentItem.name}

{currentItem.description}

- {currentItem.website && ( + {cleanWebsiteUrl(currentItem.website) && (

Website:{' '} - {currentItem.website.replace(/\/$/, '')} + {cleanWebsiteUrl(currentItem.website)}

)} @@ -94,7 +105,7 @@ export default function Home({ tools }: { tools: Array }) { {extractTwitterUsernameFromUrl(currentItem.twitter)} @@ -105,25 +116,29 @@ export default function Home({ tools }: { tools: Array }) {
-
+
DappCamp Logo
-
-

+
+

Ethereum Developer Tooling Landscape

-

+

{`Ethereum and EVM compatible developer tooling landscape`}

+
+ DappCamp Logo +

}) { height: 'max-content', }} > - {groupNames.map((group) => ( -
-

{group}

+ {groupNames.map((group, index) => ( +
+

{group}

{groupedTools[group].map((item: any, index: number) => ( diff --git a/app/styles/globals.css b/app/styles/globals.css index 6c901a7..7af68c8 100644 --- a/app/styles/globals.css +++ b/app/styles/globals.css @@ -16,3 +16,8 @@ main { main { box-sizing: border-box; } + +.logo-card:hover p { + text-decoration: underline; + color: rgb(59 130 246); +}