Spaces:
Running
Running
add footer navigation bar with icon
Browse files- components/footer.js +35 -9
- index.html +3 -2
- settings.html +3 -2
components/footer.js
CHANGED
|
@@ -19,17 +19,31 @@ class CustomFooter extends HTMLElement {
|
|
| 19 |
}
|
| 20 |
.links {
|
| 21 |
display: flex;
|
| 22 |
-
gap:
|
| 23 |
margin-bottom: 1rem;
|
|
|
|
|
|
|
| 24 |
}
|
| 25 |
-
|
| 26 |
color: #a0aec0;
|
| 27 |
text-decoration: none;
|
| 28 |
-
transition:
|
| 29 |
-
font-size: 0.
|
|
|
|
|
|
|
| 30 |
}
|
| 31 |
a:hover {
|
| 32 |
color: white;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
}
|
| 34 |
.copyright {
|
| 35 |
color: #718096;
|
|
@@ -44,12 +58,24 @@ class CustomFooter extends HTMLElement {
|
|
| 44 |
<footer>
|
| 45 |
<div class="container">
|
| 46 |
<div class="links">
|
| 47 |
-
<a href="/about">
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
</div>
|
| 52 |
-
|
| 53 |
<p class="version">Firmware v2.1.4 | Dashboard v1.0.0</p>
|
| 54 |
</div>
|
| 55 |
</footer>
|
|
|
|
| 19 |
}
|
| 20 |
.links {
|
| 21 |
display: flex;
|
| 22 |
+
gap: 1rem;
|
| 23 |
margin-bottom: 1rem;
|
| 24 |
+
justify-content: center;
|
| 25 |
+
width: 100%;
|
| 26 |
}
|
| 27 |
+
a {
|
| 28 |
color: #a0aec0;
|
| 29 |
text-decoration: none;
|
| 30 |
+
transition: all 0.2s;
|
| 31 |
+
font-size: 0.75rem;
|
| 32 |
+
width: 60px;
|
| 33 |
+
text-align: center;
|
| 34 |
}
|
| 35 |
a:hover {
|
| 36 |
color: white;
|
| 37 |
+
transform: translateY(-2px);
|
| 38 |
+
}
|
| 39 |
+
a i {
|
| 40 |
+
transition: all 0.2s;
|
| 41 |
+
}
|
| 42 |
+
a:hover i {
|
| 43 |
+
transform: scale(1.1);
|
| 44 |
+
}
|
| 45 |
+
a:hover {
|
| 46 |
+
color: white;
|
| 47 |
}
|
| 48 |
.copyright {
|
| 49 |
color: #718096;
|
|
|
|
| 58 |
<footer>
|
| 59 |
<div class="container">
|
| 60 |
<div class="links">
|
| 61 |
+
<a href="/about" class="flex flex-col items-center">
|
| 62 |
+
<i data-feather="info" class="w-5 h-5 mb-1"></i>
|
| 63 |
+
<span>About</span>
|
| 64 |
+
</a>
|
| 65 |
+
<a href="/docs" class="flex flex-col items-center">
|
| 66 |
+
<i data-feather="book" class="w-5 h-5 mb-1"></i>
|
| 67 |
+
<span>Docs</span>
|
| 68 |
+
</a>
|
| 69 |
+
<a href="/privacy" class="flex flex-col items-center">
|
| 70 |
+
<i data-feather="shield" class="w-5 h-5 mb-1"></i>
|
| 71 |
+
<span>Privacy</span>
|
| 72 |
+
</a>
|
| 73 |
+
<a href="/contact" class="flex flex-col items-center">
|
| 74 |
+
<i data-feather="mail" class="w-5 h-5 mb-1"></i>
|
| 75 |
+
<span>Contact</span>
|
| 76 |
+
</a>
|
| 77 |
</div>
|
| 78 |
+
<p class="copyright">© ${new Date().getFullYear()} ESP32 Command Center. All rights reserved.</p>
|
| 79 |
<p class="version">Firmware v2.1.4 | Dashboard v1.0.0</p>
|
| 80 |
</div>
|
| 81 |
</footer>
|
index.html
CHANGED
|
@@ -180,10 +180,11 @@
|
|
| 180 |
</main>
|
| 181 |
|
| 182 |
<custom-footer></custom-footer>
|
| 183 |
-
|
| 184 |
<script src="components/navbar.js"></script>
|
|
|
|
| 185 |
<script src="components/footer.js"></script>
|
| 186 |
-
<script
|
|
|
|
| 187 |
<script>
|
| 188 |
feather.replace();
|
| 189 |
|
|
|
|
| 180 |
</main>
|
| 181 |
|
| 182 |
<custom-footer></custom-footer>
|
|
|
|
| 183 |
<script src="components/navbar.js"></script>
|
| 184 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 185 |
<script src="components/footer.js"></script>
|
| 186 |
+
<script>feather.replace();</script>
|
| 187 |
+
<script src="script.js"></script>
|
| 188 |
<script>
|
| 189 |
feather.replace();
|
| 190 |
|
settings.html
CHANGED
|
@@ -135,10 +135,11 @@
|
|
| 135 |
</main>
|
| 136 |
|
| 137 |
<custom-footer></custom-footer>
|
| 138 |
-
|
| 139 |
<script src="components/navbar.js"></script>
|
|
|
|
| 140 |
<script src="components/footer.js"></script>
|
| 141 |
-
<script
|
|
|
|
| 142 |
<script>feather.replace();</script>
|
| 143 |
</body>
|
| 144 |
</html>
|
|
|
|
| 135 |
</main>
|
| 136 |
|
| 137 |
<custom-footer></custom-footer>
|
|
|
|
| 138 |
<script src="components/navbar.js"></script>
|
| 139 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 140 |
<script src="components/footer.js"></script>
|
| 141 |
+
<script>feather.replace();</script>
|
| 142 |
+
<script src="script.js"></script>
|
| 143 |
<script>feather.replace();</script>
|
| 144 |
</body>
|
| 145 |
</html>
|