Skip to content

Commit

Permalink
add ip-adress list
Browse files Browse the repository at this point in the history
  • Loading branch information
maaaathis committed Feb 8, 2024
1 parent 0181ab8 commit f78f4f6
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions app/lookup/[domain]/map/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,17 @@ const MapResultsPage: FC<MapResultsPageProps> = async ({
})
);

const regionList = markers.map((marker) => (
<div key={marker.code}>
<h3 className="mb-2 font-semibold">{marker.name}</h3>
<ul>
{marker.results.A.map((ip, index) => (
<li key={index}>{ip}</li>
))}
</ul>
</div>
));

let hasDifferentRecords = false;
for (let i = 1; i < markers.length; i++) {
const previous = markers[i - 1].results;
Expand Down Expand Up @@ -112,9 +123,8 @@ const MapResultsPage: FC<MapResultsPageProps> = async ({
</Alert>
<div className="flex flex-row">
<div className="basis-1/4">
<div className="mt-12 flex justify-center">
<div className="bg-skeleton my-36 aspect-square w-3/5 rounded-full" />
</div>
<h2 className="mb-4 text-lg font-semibold">IP-Adressen je Region</h2>
<div className="flex flex-wrap gap-4">{regionList}</div>
</div>
<div className="basis-3/4">
<ResultsGlobe domain={domain} markers={markers} />
Expand Down

0 comments on commit f78f4f6

Please sign in to comment.