Skip to content

Commit

Permalink
Add support for technology descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
jmduke committed Oct 3, 2024
1 parent cc8579c commit f002fec
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
15 changes: 9 additions & 6 deletions app/technology/[identifier]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,10 @@ export default async function TechnologyPage({
<Header url={`/technology/${params.identifier}`}>
{service.name}
</Header>
{service.description && (
<div className="text-md">{service.description}</div>
)}
<div className="flex flex-col items-start">
<a
className="text-gray-400 capitalize text-sm inline-block hover:text-gray-300 hover:bg-white/10"
href={`/genre/${service.genre}`}
>
{GENRE_REGISTRY[service.genre].name}
</a>
<a
className="text-gray-400 text-sm hover:text-gray-300 hover:bg-white/10"
target="_blank"
Expand All @@ -95,6 +92,12 @@ export default async function TechnologyPage({
{service.url}
</a>
<div className="text-sm text-gray-400">
<a
className="text-gray-400 capitalize text-sm inline-block hover:text-gray-300 hover:bg-white/10 mt-4"
href={`/genre/${service.genre}`}
>
{GENRE_REGISTRY[service.genre].name}
</a> /&nbsp;
{trancoCount} notable domains (
{trancoCount > 0
? (
Expand Down
2 changes: 2 additions & 0 deletions lib/services.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ export const GENRE_REGISTRY: {
type Service = {
identifier: string;
name: string;
description?: string;
genre: Genre;
url: string;
icon?: React.ReactNode;
Expand Down Expand Up @@ -2003,6 +2004,7 @@ export const REGISTRY: { [key in string]: Service } = {
},
northbeam: {
identifier: "northbeam",
description: "The marketing intelligence platform for profitable growth.",
name: "Northbeam",
genre: "analytics",
url: "https://www.northbeam.io",
Expand Down

0 comments on commit f002fec

Please sign in to comment.