Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

zekena / Unit-calculator

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • Unit-calculator
  • home.html
Find file
BlameHistoryPermalink
  • zekena's avatar
    styling · 247ddbb8
    zekena committed 6 years ago
    247ddbb8
home.html 6.47 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161
<!DOCTYPE html>
<!--
This is the front page of the unit calculator,
the user can choose between three themes:
Simple, Fancy and Currency conversion    
-->
<html lang="en">
  <head>
    <title>Unit Calc.</title>
    <meta charset="utf-8">
    <meta name="description" content="Unit Calc.">
    <meta name="author" content="Yusef,Zeyad">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    
<!--Browsing for Tablet or Phone dimensions-->
<link rel="stylesheet" href="css/style.css"/>
     <style>
            @import url('https://fonts.googleapis.com/css?family=Passion+One|Roboto+Slab');
            #myBtn {
              display: none;
              position: fixed;
              bottom: 20px;
              right: 30px;
              z-index: 99;
              font-size: 18px;
              border: none;
              outline: none;
              background-color: rgb(108, 53, 176);
              color: white;
              cursor: pointer;
              padding: 15px;
              border-radius: 4px;
            }
            
            #myBtn:hover {
              background-color: #555;
            }
     </style>
 </head>
 <body>
     <button onclick="topFunction()" id="myBtn" title="Go to top">Top</button>
     <script>
            // When the user scrolls down 20px from the top of the document, show the button
            window.onscroll = function() {scrollFunction()};
            
            function scrollFunction() {
              if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
                document.getElementById("myBtn").style.display = "block";
              } else {
                document.getElementById("myBtn").style.display = "none";
              }
            }
            
            // When the user clicks on the button, scroll to the top of the document
            function topFunction() {
              document.body.scrollTop = 0;
              document.documentElement.scrollTop = 0;
            }
    </script>
     <nav class="navbar">
         <span class ="open-slide">
            <a href="#" onclick="openSlideMenu()">
                <svg width="30" height="30">
                    <path d="M0,5 30,5" stroke="#000" stroke-width="5"/>
                    <path d="M0,14 30,14" stroke="#000" stroke-width="5"/>
                    <path d="M0,23 30,23" stroke="#000" stroke-width="5"/>
                </svg>
            </a>
         </span>
     </nav>
     <div id="side-menu" class="side-nav">
            <a href="#" class="btn-close" onclick="closeSlideMenu()">&times;</a>
            <a href ="#">About Us</a>
            <a href="categories/length.php">Length</a>
            <a href="categories/temperature.php">Temperature</a>
            <a href="categories/area.php">Area</a>
            <a href="categories/volume.php">Volume</a>
            <a href="categories/weight.php">Weight</a>
            <a href="categories/speed.php">Speed</a>
            <a href="login">Log in</a>
            <a href="login/signup.php">Sign up</a>

     </div>
     
     <script src="js/frontSide.js"></script>
    
    <section id="banner">
        <div class="inner"> 
                <header>
                    <h1>Unit Calc.</h1>
                    <p> An interactive Unit Calculator for all your needs. </p>
                    <a href="#main" class="more">Choose Conversion</a>
                </header>
        </div>
    </section> 
    <div id="main">
        <div class="inner">
            <div class ="categories">

                    <div class="box">
                            <a href="" class="image fit"><img src="icons/length.png" width="400" height="355" alt="Length" /></a>
                            <div class="inner">
                                <h2>Length</h2>
                                <a href="categories/length.php" class="button fit" style="cursor: pointer;outline: 0px;background-color: #271010;color: black;">Select</a>
                            </div>
                        </div>

                    <div class="box">
                            <a href="" class="image fit"><img src="icons/area.png" width="400" height="355" alt="Area" /></a>
                            <div class="inner">
                                <h2>Area</h2>
                                <a href="categories/area.php" class="button style2 fit">Select</a>
                            </div>
                    </div>

                    <div class="box">
                            <a href="" class="image fit"><img src="icons/temperature.png" width="400" height="355" alt="Temperature" /></a>
                            <div class="inner">
                                <h2>Temperature</h2>
                                <a href="categories/temperature.php" class="button style3 fit">Select</a>
                            </div>
                    </div>
                    <div class="box">
                            <a href="" class="image fit"><img src="icons/volume.png" width="400" height="355" alt="Volume" /></a>
                            <div class="inner">
                                <h2>Volume</h2>
                                <a href="categories/volume.php" class="button style3 fit">Select</a>
                            </div>
                    </div>
                    
                    <div class="box">
                            <a href="" class="image fit"><img src="icons/weight.png" width="400" height="355" alt="Weight" /></a>
                            <div class="inner">
                              <h2>Weight</h2>
                                <a href="categories/weight.php" class="button style3 fit">Select</a>
                            </div>
                    </div>
            </div>
        </div>

    </div>
    <footer id="footer">
            <div class="inner">
                <section>
                    <h3>Contact Us</h3>
                    <form method="POST" action="">
                     <div class="entry">
                      <input  id="Input" class="Input-text" name="name" placeholder="Name"> 
                      <input  id="Input" class="Input-text" type="email" name="email" placeholder="Email">
                      <input  id="Input" class="Input-text" name="message" placeholder="Message">
                     </div>
                     <div class="registerSubmit">
                         <input type="submit" name="submit" value="Submit"> 
                     </div>
                    </form>

                </section>
    </footer>
 </body>

 </html>