+
Device list
+ { deviceNames.length === 0 &&
No devices are connected.
}
+
+ { deviceNames.map((device, index) =>
+ -
+
+
+
{ device }
+
{ deviceIPs[index] }
+
+
+
+ )
+ }
+
+
+ )
}
export default DeviceList;
\ No newline at end of file
diff --git a/src/styles/Dashboard.css b/src/styles/Dashboard.css
index 03a62b6..ed3c37d 100644
--- a/src/styles/Dashboard.css
+++ b/src/styles/Dashboard.css
@@ -1,40 +1,40 @@
-header {
+#dashboardHeader {
display: flex;
align-items: center;
justify-content: center;
max-width: 100%;
height: fit-content;
- background-color: #071e42;
+ background-color: var(--bg-color-alt);
margin-top: 20px;
border-radius: 20px;
padding: 90px 20px;
}
-ul {
+.dashboardList {
display: flex;
align-items: center;
gap: 20px;
-}
-li {
- display: inherit;
- flex-direction: column;
- text-align: center;
- list-style: none;
-
- img {
- user-select: none;
- pointer-events: none;
- }
-
- .listIcons {
- max-height: 160px;
- }
- .arrow {
- max-height: 60px;
- }
- .signal {
- max-height: 90px;
+ li {
+ display: inherit;
+ flex-direction: column;
+ text-align: center;
+ list-style: none;
+
+ img {
+ user-select: none;
+ pointer-events: none;
+ }
+
+ .listIcons {
+ max-height: 160px;
+ }
+ .arrow {
+ max-height: 60px;
+ }
+ .signal {
+ max-height: 90px;
+ }
}
}
@@ -50,7 +50,7 @@ li {
li{
display: flex;
padding: 40px;
- background-color: #071e42;
+ background-color: var(--bg-color-alt);
justify-content: center;
align-items: center;
border-radius: 20px;
diff --git a/src/styles/DeviceList.css b/src/styles/DeviceList.css
index e69de29..40d7915 100644
--- a/src/styles/DeviceList.css
+++ b/src/styles/DeviceList.css
@@ -0,0 +1,58 @@
+#deviceList {
+ background-color: var(--bg-color-alt);
+ margin-top: 20px;
+ border-radius: 20px;
+ padding: 20px;
+ height: calc(100% - 50px);
+ overflow: scroll;
+
+ h2 {
+ font-size: 2.5rem;
+ text-align: center;
+ }
+}
+
+#devices {
+ list-style: none;
+ display: flex;
+ flex-direction: column;
+ gap: 20px;
+ margin-top: 20px;
+
+ li {
+ display: inherit;
+ background-color: #071436;
+ padding: 30px 20px;
+ border-radius: 20px;
+ justify-content: space-between;
+ align-items: center;
+ }
+ h3 {
+ font-size: 1.8rem;
+ width: fit-content;
+ }
+ p {
+ font-size: 1.3rem;
+ width: fit-content;
+ }
+ div {
+ display: inherit;
+ flex-direction: column;
+ text-align: center;
+ margin: 0 20px;
+ position: relative;
+ width: 100%;
+ }
+ img {
+ max-width: 100px;
+ }
+ .close {
+ max-width: 30px;
+ cursor: pointer;
+ color: #fff;
+ transition: 0.3s color;
+ }
+ .close:hover {
+ color: #0069ff;
+ }
+}
\ No newline at end of file
diff --git a/src/styles/Main.css b/src/styles/Main.css
index 4c0ee27..2d7572d 100644
--- a/src/styles/Main.css
+++ b/src/styles/Main.css
@@ -10,6 +10,10 @@
font-weight: normal;
}
+:root {
+ --bg-color-alt: #071e42;
+}
+
* {
margin: 0;
padding: 0;