-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #117 from NetSepio/explorer-page
fix : dvpn and dwifi page ui
- Loading branch information
Showing
8 changed files
with
96 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,80 +1,84 @@ | ||
import React, { useEffect, useState} from "react"; | ||
import React, { useEffect, useState, useRef } from "react"; | ||
import Link from "next/link"; | ||
import NodeDwifiStream from "../components/nodedataDwifi"; | ||
import NodeDwifiStream from "../components/nodedataDwifi"; | ||
import { motion } from "framer-motion"; | ||
import dynamic from 'next/dynamic'; | ||
|
||
const DwifiMap = dynamic(() => import('../components/DwifiMap'), { ssr: false }); | ||
|
||
|
||
const Dwifi = () => { | ||
const mapRef = useRef(null); | ||
|
||
const scrollToMap = () => { | ||
mapRef.current?.scrollIntoView({ behavior: 'smooth' }); | ||
}; | ||
|
||
return( | ||
<div className="bg-black"> | ||
<div className="mx-auto py-20" | ||
return ( | ||
<div className="explorer-page"> | ||
<div className="mx-auto py-20 lg:h-[40vw]" | ||
style={{ | ||
backgroundImage: 'radial-gradient(circle at 0% 7%, rgba(86, 150, 255, 0.6) 4%, #0162FF80 10%, black 30%), url("/explorer2.png")', | ||
backgroundSize: 'cover', | ||
backgroundBlendMode: 'overlay', | ||
}} | ||
> | ||
<div className="flex flex-col lg:flex-row items-start justify-between lg:h-full mt-10 lg:ml-0 lg:mr-0 md:ml-0 md:mr-0 ml-4 mr-4 mb-36 lg:mb-0 px-4 lg:px-20"> | ||
<div className="flex flex-col items-start justify-start"> | ||
<motion.h1 | ||
initial={{ y: 100, opacity: 0 }} | ||
animate={{ y: 0, opacity: 1, transition: { duration: 1 } }} | ||
className="text-4xl md:text-5xl lg:text-6xl font-semibold text-gray-300 mb-8 lg:w-4/5" | ||
> | ||
Decentralized Connectivity with Erebrus ÐWi-Fi | ||
</motion.h1> | ||
<motion.h1 | ||
initial={{ y: 100, opacity: 0 }} | ||
animate={{ y: 0, opacity: 1, transition: { duration: 1 } }} | ||
className="text-xl md:text-2xl text-white mb-8 w-full" | ||
> | ||
<p>Secure and fast Wi-Fi Everywhere</p> | ||
</motion.h1> | ||
<motion.div | ||
initial={{ y: 100, opacity: 0 }} | ||
animate={{ y: 0, opacity: 1, transition: { duration: 1 } }} | ||
className="text-black font-bold py-3 px-10 rounded-full bg-white text-lg" | ||
> | ||
<Link href="https://discord.com/invite/5uaFhNpRF6" target="_blank" rel="noopener noreferrer"> | ||
Run Your Node | ||
</Link> | ||
</motion.div> | ||
backgroundImage: 'url("/explorerhero.png")', | ||
backgroundSize: 'cover', | ||
backgroundBlendMode: 'overlay', | ||
}} | ||
> | ||
<div className="flex flex-col lg:flex-row items-start justify-between lg:h-full mt-10 lg:ml-0 lg:mr-0 md:ml-0 md:mr-0 ml-4 mr-4 mb-36 lg:mb-0 px-4 lg:px-20"> | ||
<div className="flex flex-col items-start justify-start"> | ||
<motion.h1 | ||
initial={{ y: 100, opacity: 0 }} | ||
animate={{ y: 0, opacity: 1, transition: { duration: 1 } }} | ||
className="text-4xl md:text-5xl lg:text-6xl font-semibold text-gray-300 mb-8 lg:w-4/5" | ||
> | ||
Decentralized Connectivity with Erebrus ÐWi-Fi | ||
</motion.h1> | ||
<motion.h1 | ||
initial={{ y: 100, opacity: 0 }} | ||
animate={{ y: 0, opacity: 1, transition: { duration: 1 } }} | ||
className="text-xl md:text-2xl text-white mb-8 w-full" | ||
> | ||
<p>Secure and fast Wi-Fi Everywhere</p> | ||
</motion.h1> | ||
<div className="flex gap-5"> | ||
<motion.div | ||
initial={{ y: 100, opacity: 0 }} | ||
animate={{ y: 0, opacity: 1, transition: { duration: 1 } }} | ||
className="text-black font-bold py-3 px-10 rounded-full bg-white text-lg cursor-pointer" | ||
> | ||
<Link href="https://discord.com/invite/5uaFhNpRF6" target="_blank" rel="noopener noreferrer"> | ||
Run Your Node | ||
</Link> | ||
</motion.div> | ||
<motion.div | ||
initial={{ y: 100, opacity: 0 }} | ||
animate={{ y: 0, opacity: 1, transition: { duration: 1 } }} | ||
className="text-white font-bold py-3 px-10 rounded-full bg-[#5696FF] text-lg cursor-pointer" | ||
onClick={scrollToMap} | ||
> | ||
Active Node Map | ||
</motion.div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
{/* Animated Image */} | ||
<div className="hidden lg:block lg:w-1/3"> | ||
<img | ||
src="/explorerdwifi4.png" | ||
alt="Decorative GIF" | ||
className="w-full h-auto opacity-90 shadow-lg" | ||
/> | ||
</div> | ||
</div> | ||
</div> | ||
<div className=" bg-gradient-to-b from-black to-[#20253A] lg:px-20 pt-16 px-20"> | ||
<div className="text-2xl font-semibold text-gray-300 mb-8 "> | ||
<div className="bg-gradient-to-b from-[#20253A] to-[#20253A] lg:px-20 pt-16 px-20"> | ||
<div className="text-2xl font-semibold text-gray-300 mb-8"> | ||
Erebrus Decentralized Wi-Fi (ÐWi-Fi) Network Nodes Overview | ||
</div> | ||
<div className="text-white"> | ||
<p> | ||
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. </p> | ||
</div> | ||
</div> | ||
<div className="map-page" style={{ height: '100vh'}}> | ||
<div className="map-container" style={{ height: '100%', width: '100%' }}> | ||
<div className="text-white"> | ||
<p> | ||
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. | ||
</p> | ||
</div> | ||
</div> | ||
<div ref={mapRef} className="map-page" style={{ height: '100vh' }}> | ||
<div className="map-container" style={{ height: '100%', width: '100%' }}> | ||
<DwifiMap /> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<NodeDwifiStream /> | ||
|
||
{/* <img src="/mapRegions.png"/> */} | ||
</div> | ||
) | ||
</div> | ||
) | ||
} | ||
|
||
export default Dwifi; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters