Przeglądaj źródła

Update links for information pages

Lee Morgan 5 lat temu
rodzic
commit
cbbda730af

+ 0 - 10
views/informationPage/help.js

@@ -1,10 +0,0 @@
-window.helpObj = {
-    display: function(){
-        document.getElementById("legalStrand").style.display = "none";
-        document.getElementById("helpStrand").style.display = "flex";
-
-        let button = document.getElementById("logInButton");
-        button.innerText="LEGAL";
-        button.onclick = ()=>{legalObj.display()};
-    }
-}

+ 0 - 48
views/informationPage/information.css

@@ -1,48 +0,0 @@
-.strand{
-    justify-content: center;
-}
-
-    .strand{
-        margin: 50px;
-    }
-
-.content{
-    display: flex;
-    flex-direction: column;
-    align-items: center;
-    border: 2px solid black;
-    box-shadow: -5px -5px 5px rgb(0, 27, 45) inset;
-    padding: 30px;
-    text-align: justify;
-    max-width: 800px;
-    max-height: 65vh;
-    overflow-y: auto;
-}
-
-.content > *{
-    margin: 15px;
-    padding-bottom: 25px;
-}
-
-ol{
-    list-style: decimal inside none;
-}
-
-    ol > *{
-        margin: 10px;
-    }
-
-/* Legal Strand */
-#legalStrand > *{
-    margin: 15px;
-}
-
-/* Help Strand */
-#helpStrand{
-    flex-direction: column;
-    align-items: center;
-}
-
-    #helpStrand > *{
-        margin: 15px;
-    }

+ 0 - 27
views/informationPage/information.ejs

@@ -1,27 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-    <head>
-        <meta charset="utf-8">
-        <title>The Subline</title>
-        <link rel="icon" type="img/png" href="/shared/images/logo.png">
-        <link rel="stylesheet" href="/informationPage/information.css">
-        <link rel="stylesheet" href="/shared/shared.css">
-    </head>
-    <body>
-        <% include ../shared/header %>
-
-        <strand-selector></strand-selector>
-
-        <div id="legalStrand" class="strand">
-            
-
-        <div id="helpStrand" class="strand">
-            <h1>Found a bug?  Need help?  Have a suggestion? Need to resest your Password?</h1>
-
-            <h1>Send us an email at <a href="mailto:lee@thesubline.com">lee@thesubline.com</a></h1>
-        </div>
-        
-        <script src="/informationPage/help.js"></script>
-        <script src="/informationPage/legal.js"></script>
-    </body>
-</html>

+ 0 - 13
views/informationPage/legal.js

@@ -1,13 +0,0 @@
-window.legalObj = {
-    display: function(){
-        document.getElementById("legalStrand").style.display = "flex";
-        document.getElementById("helpStrand").style.display = "none";
-
-        document.getElementById("joinButton").style.display = "none";
-        let button = document.getElementById("logInButton");
-        button.innerText="HELP";
-        button.onclick = ()=>{helpObj.display()};
-    }
-}
-
-legalObj.display();

+ 6 - 2
views/landingPage/landing.ejs

@@ -71,8 +71,8 @@
                         <span class="checkmark"></span>
         
                         <p style="padding-top: 5px; padding-left: 7px;">I agree to the 
-                            <a class="link" href="/information">Privacy Policy</a> and the 
-                            <a class="link" href="/information">Terms and Conditions</a>
+                            <a class="link" href="/privacy">Privacy Policy</a> and the 
+                            <a class="link" href="/terms">Terms and Conditions</a>
                         </p>
                     </label>   
                 </div>
@@ -126,5 +126,9 @@
         <script src="/landingPage/login.js"></script>
         <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");
+        </script>
     </body>
 </html>

+ 3 - 4
views/shared/footer.ejs

@@ -3,9 +3,8 @@
 <div class="footer">
     <p>The Subline</p>
     <div>
-        <a href="/information">Privacy Policy</a>
-        <a href="/information">Terms and Conditions</a>
-        <a href="/information">Help</a>
-        <a href="/information">Contact us</a>
+        <a href="/privacy">Privacy Policy</a>
+        <a href="/terms">Terms and Conditions</a>
+        <a href="/help">Help</a>
     </div>
 </div>