Finished dashboard, fixed images

This commit is contained in:
Patrick Hatsune 2024-08-04 22:48:50 -07:00
parent 956ab13ff9
commit 75eeda0bd8
Signed by: keyemail
GPG key ID: 6FD1A0FDB0D914C2
27 changed files with 38 additions and 26 deletions

View file

@ -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 } />} />

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

BIN
src/assets/backups/gear.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

BIN
src/assets/backups/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.2 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 KiB

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 95 KiB

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 KiB

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 60 KiB

View file

@ -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>
</> </>

View file

@ -1,5 +1,5 @@
function WirelessName() { function WirelessName() {
return <p>Wireless Name</p> return <p>Wireless Name??????????</p>
} }
export default WirelessName; export default WirelessName;

View file

@ -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;