Просмотр исходного кода

Add links to the header on the landing page

Lee Morgan 5 лет назад
Родитель
Сommit
6e51a02deb
2 измененных файлов с 7 добавлено и 3 удалено
  1. 5 2
      views/landingPage/landing.ejs
  2. 2 1
      views/shared/shared.css

+ 5 - 2
views/landingPage/landing.ejs

@@ -127,8 +127,11 @@
         <script src="/landingPage/register.js"></script>
         <script src="/landingPage/controller.js"></script>
         <script>
-            document.getElementById("logInButton").classList.remove("headerHide");
-            document.getElementById("joinButton").classList.remove("headerHide");
+            let links = document.querySelector(".headerEnd").children;
+
+            for(let i = 0; i < links.length; i++){
+                links[i].classList.remove("headerHide");
+            }
         </script>
     </body>
 </html>

+ 2 - 1
views/shared/shared.css

@@ -259,6 +259,7 @@ form{
         align-items: center;
         justify-content: flex-end;
         margin-right: 25px;
+        
     }
 
         .headerEnd > *{
@@ -266,7 +267,7 @@ form{
         }
 
         .headerEnd a{
-            color: white;
+            color: rgb(255, 99, 107);
         }
 
 /* Banner partial */