Finished dashboard, fixed images
|
@ -1,10 +1,10 @@
|
||||||
import { useState, useEffect } from 'react'
|
import { useState, useEffect } from 'react'
|
||||||
import { Routes, Route, useNavigate } from 'react-router-dom';
|
import { Routes, Route, useNavigate } from 'react-router-dom';
|
||||||
import Dashboard from './pages/Dashboard'
|
import Dashboard from './pages/Dashboard'
|
||||||
import Devices from './pages/DeviceList.tsx'
|
import Devices from './pages/DeviceList'
|
||||||
import Extend from './pages/ExtendWirelessNetwork.tsx'
|
import Extend from './pages/ExtendWirelessNetwork'
|
||||||
import WirelessSettings from './pages/SystemSettings.tsx'
|
import WirelessSettings from './pages/SystemSettings'
|
||||||
import SystemSettings from './pages/WirelessSettings.tsx'
|
import SystemSettings from './pages/WirelessSettings'
|
||||||
import Login from './pages/Login'
|
import Login from './pages/Login'
|
||||||
import Register from './pages/Register'
|
import Register from './pages/Register'
|
||||||
import Navbar from './components/Navbar'
|
import Navbar from './components/Navbar'
|
||||||
|
@ -32,7 +32,6 @@ function Index() {
|
||||||
|
|
||||||
return(
|
return(
|
||||||
<>
|
<>
|
||||||
<p>{ loginState }</p>
|
|
||||||
<Navbar LoggedUser={ loggedUser } />
|
<Navbar LoggedUser={ loggedUser } />
|
||||||
<Routes>
|
<Routes>
|
||||||
<Route path="/" element={<Dashboard RouterName={ routerName } TwoGExtendedName={ twoGExtendedName } FiveGExtendedName={ fiveGExtendedName } DevicesOnline={ devicesOnline } />} />
|
<Route path="/" element={<Dashboard RouterName={ routerName } TwoGExtendedName={ twoGExtendedName } FiveGExtendedName={ fiveGExtendedName } DevicesOnline={ devicesOnline } />} />
|
||||||
|
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 18 KiB |
BIN
src/assets/backups/arrow.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
src/assets/backups/device.png
Normal file
After Width: | Height: | Size: 8.2 KiB |
BIN
src/assets/backups/extender.png
Normal file
After Width: | Height: | Size: 9.1 KiB |
BIN
src/assets/backups/gear.png
Normal file
After Width: | Height: | Size: 74 KiB |
BIN
src/assets/backups/globe.png
Normal file
After Width: | Height: | Size: 95 KiB |
BIN
src/assets/backups/high_signal.png
Normal file
After Width: | Height: | Size: 76 KiB |
BIN
src/assets/backups/logo.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
src/assets/backups/low_signal.png
Normal file
After Width: | Height: | Size: 66 KiB |
BIN
src/assets/backups/medium_signal.png
Normal file
After Width: | Height: | Size: 74 KiB |
BIN
src/assets/backups/router.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
src/assets/backups/signal.png
Normal file
After Width: | Height: | Size: 54 KiB |
BIN
src/assets/backups/very_low_signal.png
Normal file
After Width: | Height: | Size: 56 KiB |
Before Width: | Height: | Size: 8.2 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 77 KiB |
Before Width: | Height: | Size: 95 KiB After Width: | Height: | Size: 98 KiB |
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 78 KiB |
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 68 KiB |
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 76 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 56 KiB |
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 60 KiB |
|
@ -1,3 +1,4 @@
|
||||||
|
import { Link } from 'react-router-dom'
|
||||||
import '../styles/Dashboard.css'
|
import '../styles/Dashboard.css'
|
||||||
import Globe from '../assets/globe.png'
|
import Globe from '../assets/globe.png'
|
||||||
import Arrow from '../assets/arrow.png'
|
import Arrow from '../assets/arrow.png'
|
||||||
|
@ -55,26 +56,34 @@ function Dashboard({ RouterName, TwoGExtendedName, FiveGExtendedName, DevicesOnl
|
||||||
</header>
|
</header>
|
||||||
<nav id="lowerNav">
|
<nav id="lowerNav">
|
||||||
<ul>
|
<ul>
|
||||||
|
<Link to="/devices">
|
||||||
<li>
|
<li>
|
||||||
<img src={ Devices } />
|
<img src={ Devices } />
|
||||||
<h2>Device List</h2>
|
<h2>Device List</h2>
|
||||||
<p>{ DevicesOnline } Devices Online</p>
|
<p>{ DevicesOnline } Devices Online</p>
|
||||||
</li>
|
</li>
|
||||||
|
</Link>
|
||||||
|
<Link to="/extend">
|
||||||
<li>
|
<li>
|
||||||
<img src={ Globe } />
|
<img src={ Globe } />
|
||||||
<h2>Extend Network</h2>
|
<h2>Extend Network</h2>
|
||||||
<p>Amplify Network</p>
|
<p>Amplify Network</p>
|
||||||
</li>
|
</li>
|
||||||
|
</Link>
|
||||||
|
<Link to="/wireless">
|
||||||
<li>
|
<li>
|
||||||
<img src={ Signal } />
|
<img src={ Signal } />
|
||||||
<h2>Wireless Settings</h2>
|
<h2>Wireless Settings</h2>
|
||||||
<p>Set Extender Network Up</p>
|
<p>Set Extender Network Up</p>
|
||||||
</li>
|
</li>
|
||||||
|
</Link>
|
||||||
|
<Link to="/settings">
|
||||||
<li>
|
<li>
|
||||||
<img src={ Gear } />
|
<img src={ Gear } />
|
||||||
<h2>System Settings</h2>
|
<h2>System Settings</h2>
|
||||||
<p>Change Extender Settings</p>
|
<p>Change Extender Settings</p>
|
||||||
</li>
|
</li>
|
||||||
|
</Link>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
</>
|
</>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
function WirelessName() {
|
function WirelessName() {
|
||||||
return <p>Wireless Name</p>
|
return <p>Wireless Name??????????</p>
|
||||||
}
|
}
|
||||||
|
|
||||||
export default WirelessName;
|
export default WirelessName;
|
|
@ -40,11 +40,15 @@ li {
|
||||||
|
|
||||||
#lowerNav {
|
#lowerNav {
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
|
max-width: fit-content;
|
||||||
}
|
}
|
||||||
li{
|
li{
|
||||||
|
display: flex;
|
||||||
padding: 40px;
|
padding: 40px;
|
||||||
background-color: #071e42;
|
background-color: #071e42;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|