Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.43 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta name="viewport" content="width=device-width, initial-scale=1">
  5. <meta charset="utf-8">
  6. <meta name="description" content="Descrição da página">
  7. <meta name="author" content="Amarildo">
  8. <link rel="stylesheet" href="css/estilo.css">
  9. <link rel="icon" href="diretório favicon">
  10. <title>Menu Amburg</title>
  11. </head>
  12. <body>
  13. <div class="wrapper">
  14. <div class="nav" id="nav">
  15. <a href="javascript:void(0)" class="close" onclick="closeNav()">&times;</a>
  16. <a href="#">HOME</a>
  17. <a href="#">SOBRE MIM</a>
  18. <a href="#">BLOG</a>
  19. <a href="#">DONWLOAD</a>
  20. <a href="#footer">CONTATO</a>
  21. </div>
  22. <span id="open" class="open" onclick="openNav()">&#9776;</span>
  23. <h1>Tecnologia a meus poderes</h1>
  24. <a href="#" class="btn_one">Play</a>
  25.  
  26. <main>
  27. <div class="container">
  28. <section id="sessao" class="organisaitem">
  29. <img src="../img1.png">
  30. <p>Sistemas de grid incluem dois componentes principais: linhas e colunas. Linhas são usadas para acomodar as colunas. Colunas compõem a estrutura final e envolvem o conteúdo real.</p>
  31. <img src="../img2.png">
  32. </section>
  33. </div>
  34. </main>
  35. </div>
  36.  
  37. <script>
  38. function openNav() {
  39. document.getElementById("open").style.display = "none";
  40. document.getElementById("nav").style.width = "100%";
  41. }
  42. function closeNav() {
  43. document.getElementById("nav").style.width = "0";
  44. document.getElementById("open").style.display = "block";
  45. }
  46. </script>
  47.  
  48. <footer id="footer">
  49. <div class="container">
  50. <p>Desenvolvido Por Amarildo Lima</p>
  51. </div>
  52. </footer>
  53. </body>
  54. </html>
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. ============================css=============================
  64.  
  65.  
  66. body{
  67. padding: 0;
  68. margin: 0;
  69. width: 100%;
  70. }
  71.  
  72. .container {
  73. width: 100%
  74. margin: auto;
  75. }
  76.  
  77. .organisaitem {
  78. display: flex;
  79. flex-direction: column;
  80. align-items: center;
  81. text-align: center;
  82. }
  83.  
  84. .wrapper {
  85. height: 100vh;
  86. width: 100%;
  87. background-image: url('../img/Bg.jpg');
  88. background-position: center;
  89. background-size: cover;
  90. background-repeat: no-repeat;
  91. text-align: center;
  92. }
  93.  
  94. h1 {
  95. margin: 0;
  96. padding: 7em 0 1em 0;
  97. color: white;
  98. text-align: center;
  99. }
  100.  
  101. .btn_one {
  102. color: white;
  103. text-decoration: none;
  104. font-size: 15px;
  105. background-color: #f7941d;
  106. padding: 1em 7em;
  107. border-radius: 5px;
  108. opacity: 1.0;
  109. }
  110.  
  111. .btn_one:hover {
  112. opacity: 0.8;
  113. }
  114.  
  115. .open {
  116. color: white;
  117. font-size: 35px;
  118. float: left;
  119. margin: 1em 0 0 1em;
  120. display: block;
  121. cursor: pointer;
  122. }
  123.  
  124. .nav {
  125. width: 0%;
  126. overflow-x: hidden;
  127. height: 100vh;
  128. z-index: 1;
  129. position: fixed;
  130. background-color: rgba(34,65,93,0.9);
  131. transition: 0.5s;
  132. display: block;
  133. }
  134.  
  135. .nav a {
  136. clear: left;
  137. color: white;
  138. font-size: 22px;
  139. display: block;
  140. text-decoration: none;
  141. padding: 1em 0;
  142. transition: 0.3s;
  143. }
  144.  
  145. .close {
  146. float: left;
  147. margin: 1em 0 0 1em;
  148. font-size: 35px;
  149. }
  150.  
  151. .nav a:not(:first-child):hover{
  152. background-color: #f7941d;
  153. }
  154.  
  155. #sessao {
  156. padding-top: 1em;
  157. text-align: center;
  158. background: #FFE4E1;
  159. color: #000;
  160. }
  161.  
  162. #sessao img {
  163. width: 80%;
  164. }
  165.  
  166. footer {
  167. background: #000;
  168. text-align: center;
  169. color: #fff;
  170. padding: 2.1em;
  171. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement