diff --git a/components/DvpnMap.js b/components/DvpnMap.js index 06e8539..5978468 100644 --- a/components/DvpnMap.js +++ b/components/DvpnMap.js @@ -50,7 +50,6 @@ const DvpnMap = ({ nodes }) => { offsetMap[key].push(node); }); - // Apply circular offsets const finalOffsets = {}; for (const key in offsetMap) { const nodesAtLocation = offsetMap[key]; @@ -66,17 +65,16 @@ const DvpnMap = ({ nodes }) => { return null; } - // Function to style each country based on the node count const getCountryStyle = (feature) => { const country = feature.properties.ISO_A2; const count = nodes.filter(node => node.ipinfocountry === country).length; return { fillColor: count > 3 ? '#0e038c' : - count > 2 ? '#1500ff' : - count > 1 ? '#007bff' : - count > 0 ? '#7fd0f5' : - '#f7f7f7', // Default color for zero nodes + count > 2 ? '#1500ff' : + count > 1 ? '#007bff' : + count > 0 ? '#7fd0f5' : + '#f7f7f7', weight: 2, opacity: 1, color: 'white', @@ -85,7 +83,6 @@ const DvpnMap = ({ nodes }) => { }; }; - // Function to create a tooltip with the node count only for countries with nodes const onEachCountry = (feature, layer) => { const country = feature.properties.ISO_A2; const count = nodes.filter(node => node.ipinfocountry === country).length; @@ -107,16 +104,13 @@ const DvpnMap = ({ nodes }) => { zoom={2} minZoom={2} maxZoom={10} - style={{ height: '100%', width: '100%', padding: '20px', borderRadius: '20px', border: '2px solid gray', boxShadow: '0 0px 25px black'}} - // className="leaflet-container" - // maxBounds={[[-90, -180], [90, 180]]} - // maxBoundsViscosity={1.0} + style={{ height: '100%', width: '100%', padding: '20px', borderRadius: '20px', border: '2px solid gray', boxShadow: '0 0px 25px black' }} > - {/* { noWrap={true} /> */} - {/* Add GeoJSON layer for the choropleth */} { ); })} + + + -
+
Erebrus Decentralized Wi-Fi (ÐWi-Fi) Network Nodes Overview
@@ -58,10 +82,7 @@ const Dwifi = () => { Discover the Erebrus decentralized Wi-Fi network with our interactive map. View real-time details about Wi-Fi hotspots, including their location, performance, and usage stats. This dashboard helps you find secure and fast Wi-Fi connections globally.

-
- -
-
+
diff --git a/pages/explorer.js b/pages/explorer.js index 1610241..70b4180 100644 --- a/pages/explorer.js +++ b/pages/explorer.js @@ -1,4 +1,4 @@ -import React, { useEffect, useState} from "react"; +import React, { useEffect, useState } from "react"; import Link from "next/link"; import NodesData from "../components/NodesData"; import dynamic from 'next/dynamic'; @@ -13,75 +13,108 @@ const Explorer = () => { useEffect(() => { async function fetchNodes() { - const response = await fetch(`${EREBRUS_GATEWAY_URL}api/v1.0/nodes/all`); - const data = await response.json(); - setNodes(data.payload); + try { + const response = await fetch(`${EREBRUS_GATEWAY_URL}api/v1.0/nodes/all`); + const data = await response.json(); + if (data && Array.isArray(data.payload)) { + setNodes(data.payload); + } else { + setNodes([]); + console.warn("Received invalid data payload from API."); + } + } catch (error) { + console.error("Error fetching nodes data:", error); + setNodes([]); + } } fetchNodes(); }, []); - return ( -
-
-
+ return ( +
+
+
Decentralized Access with +
Erebrus ÐVPN

- Unrestricted Uncensored Web Access + Unrestricted Uncensored Web Access

- + Run Your Node
+ +
+ Decorative GIF +
- {/* */} -
-
- Erebrus Decentralized VPN (ÐVPN) Network Nodes Overview -
-
-

- Explore the Erebrus decentralized VPN network with our interactive map. View detailed information on active nodes, including their location, network performance, and status. This map provides real-time insights into the global distribution and operation of our secure and private VPN infrastructure. -

-
+ +
+
+ Erebrus Decentralized VPN (ÐVPN) Network Nodes Overview
-
-
- -
+
+

+ Explore the Erebrus decentralized VPN network with our interactive map. View detailed information on active nodes, including their location, network performance, and status. This map provides real-time insights into the global distribution and operation of our secure and private VPN infrastructure. +

+
- +
+
+ +
- ) + + + + +
+ ); } export default Explorer; diff --git a/public/gradient-vpn-illustration.png b/public/gradient-vpn-illustration.png new file mode 100644 index 0000000..bd1939c Binary files /dev/null and b/public/gradient-vpn-illustration.png differ