Advertisement
zerosensitivity

html project909

Nov 28th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.62 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  4. <meta charset="utf-8">
  5. <title>Golds Gym</title>
  6. <style>
  7.  
  8. body {
  9. background-image: url("https://www.datocms-assets.com/7389/1537379200-intro-background.jpg?w=2560&lossless=0&q=85");
  10. background-repeat: repeat-x;
  11.  
  12. }
  13.  
  14.  
  15.  
  16. .navbar {
  17. width: 100%;
  18. background-color: #555;
  19. overflow: auto;
  20. opacity: 0.8; /*made opacity so it's a bit transparent */
  21. border: 2px solid #d4af37; /*gave it a outline*/
  22. border-radius: 25px; /*rounded corners*/
  23. }
  24.  
  25. .navbar a {
  26. float: left;
  27. padding: 12px;
  28. color: white;
  29. text-decoration: none;
  30. font-size: 17px;
  31. }
  32.  
  33. .navbar a:hover {
  34. background-color: #d4af37;
  35. }
  36.  
  37.  
  38.  
  39. @media screen and (max-width: 500px)
  40. {
  41. .navbar a {
  42. float: none;
  43. display: block;
  44. }
  45. }
  46.  
  47. /* the socials style */
  48. .socials {
  49. margin-top:30px;
  50. height: 3px;
  51. float: right;
  52. width: 3%; }
  53.  
  54. .socials li
  55. { display: inline;}
  56.  
  57.  
  58.  
  59.  
  60. #logo-main {
  61. display: block;
  62. margin: 2px auto;
  63. }
  64.  
  65. section { /*this is section*/
  66. width: 30%;
  67. float: left;
  68. margin: 1% 1%;
  69. text-align: center;
  70. color:aliceblue
  71. }
  72.  
  73. #mobiletext {
  74. style="font-size:4vw;
  75. font-family: "Times New Roman", Times, serif;
  76.  
  77.  
  78. }
  79.  
  80.  
  81. #shadowtext{
  82. text-shadow: 0 0 40px #e7bd42;
  83. color:white;
  84. style="font-size:4vw;
  85. font-family: "Times New Roman", Times, serif;
  86. }
  87.  
  88.  
  89. ol {
  90. background: #e7bd42;
  91. padding: 20px;
  92. color: white;
  93. border: 2px solid #d4af37; /*gave it a outline*/
  94. border-radius: 25px; /*rounded corners*/
  95.  
  96. }
  97. ol li {
  98. background: #555;
  99. padding: 5px;
  100. margin-left: 35px;
  101. opacity: 0.8;
  102. border: 2px solid #d4af37; /*gave it a outline*/
  103. border-radius: 25px; /*rounded corners*/
  104. }
  105.  
  106. .footer {
  107. position: fixed;
  108. left: 0;
  109. bottom: 0;
  110. color: white;
  111. width: 100%;
  112. text-align: center;
  113. background-color: #d4af37;
  114. opacity: 0.8;
  115. }
  116.  
  117.  
  118.  
  119. </style>
  120. <body>
  121.  
  122.  
  123. <img id="logo-main" src="https://upload.wikimedia.org/wikipedia/en/thumb/3/3f/Gold%27s_Gym_logo.svg/1200px-Gold%27s_Gym_logo.svg.png" width="150" alt="GYM LOGO">
  124.  
  125.  
  126. <nav>
  127. <div class="navbar">
  128. <a href="#"></i> Home</a>
  129. <a href="1"></i> Search</a>
  130. <a href="2"></i> Contact</a>
  131. <a href="3"></i> Login</a>
  132. </div>
  133. </nav>
  134.  
  135.  
  136. <section>
  137. <img src="https://i.imgur.com/6zE8giP.png" style="width:30%;height:auto;">
  138. <h1 id="mobiletext">Open 24/7</h1>
  139. <p>Open 24/7 we are never closed come any time of the day</p>
  140.  
  141. </section>
  142.  
  143. <section>
  144. <img src="https://i.imgur.com/Xxk5O0M.png" style="max-width:30%;height:auto;">
  145. <h1 id="mobiletext">Open to everyone</h1>
  146. <p>Beginner freindly, dont be afraid to ask for help!</p>
  147. </section>
  148.  
  149. <section>
  150. <img src="https://i.imgur.com/CBP8EDK.png" style="max-width:30%;height:auto;">
  151. <h1 id="mobiletext">Free diet help</h1>
  152. <p>We have dietologists in the gym who are willing to help you with your diet</p>
  153. </section>
  154.  
  155.  
  156. <h1 id="shadowtext">Rules of the gym:</h1>
  157.  
  158. <ol>
  159. <li>Bring towels</li>
  160. <li>Rerack weights</li>
  161. <li>Ask before taking a machine</li>
  162. <li>Be polite</li>
  163. <li>Be respectful toward other members</li>
  164. <li>Be respectful towards staff</li>
  165.  
  166. </ol>
  167.  
  168. <footer>
  169. <div class="footer">
  170. <p>Golds Gym©</p>
  171. </div>
  172. </footer>
  173.  
  174.  
  175. </body>
  176. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement