Advertisement
Gottfrieden

Untitled

Mar 4th, 2020
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.60 KB | None | 0 0
  1. HTML :
  2.  
  3. <!DOCTYPE html>
  4. <html lang="en">
  5. <head>
  6. <meta charset="UTF-8">
  7. <title>Find the precious!</title>
  8. <link rel="stylesheet" href="style.css">
  9. </head>
  10. <body>
  11. <nav>
  12. <ul>
  13. <li>FindThePrecious.com</li>
  14. <li>Fellows</li>
  15. <li>Contact us</li>
  16. </ul>
  17. </nav>
  18. <section>
  19. <div class="carousel"></div>
  20. </section>
  21. <div class="flex-container-row">
  22. <section>
  23. <h2 class="fellows-title">Fellows wanted dead <span>(or alive if you want to eat them later)</span></h2>
  24. </section>
  25. <section class="article-section">
  26. <article></article>
  27. <article></article>
  28. <article></article>
  29. </section>
  30. </div>
  31. <form>
  32. <h2 class="contact-title">Contact us</h2>
  33. <input type="email" placeholder="@">
  34. <input type="text" placeholder="&#8962;">
  35. <input type="text" placeholder="I have seen one of them">
  36. <textarea placeholder="Your message"></textarea>
  37. <input type="submit" value="Send!">
  38. </form>
  39.  
  40. <footer>
  41.  
  42. <ul>
  43. <li><a href="https://www.findtheprecious.com/about">About us</a></li>
  44. <li><a href="https://www.findtheprecious.com/fellows">Fellows</a></li>
  45. <li><a href="https://www.findtheprecious.com/join">Join our army</a></li>
  46. </ul>
  47.  
  48. <ul>
  49. <li><a href="https://www.findtheprecious.com/faq">FAQ</a></li>
  50. <li><a href="https://www.findtheprecious.com/rewards-conditions">Reward conditions</a></li>
  51. <li><a href="https://www.findtheprecious.com/legal-mentions">Legal mentions</a></li>
  52. </ul>
  53.  
  54. <ul>
  55. <li><a href="https://www.sauron4ever.com">Sauron4ever.com</a></li>
  56. <li><a href="https://www.twitter.com/sauron4ever">Follow him</a></li>
  57. </ul>
  58.  
  59. </footer>
  60.  
  61. </body>
  62. </html>
  63.  
  64. CSS :
  65.  
  66. h2, p {
  67. color:#424242;
  68. }
  69.  
  70. /* Navigation */
  71. nav {
  72. background-color:#424242;
  73. width:100vw;
  74. height:30px;
  75. }
  76. nav ul {
  77. display:inline-block;
  78. color:#bbbbbb;
  79. padding-left:0px;
  80. margin-top:0px;
  81. margin-bottom:0px;
  82. }
  83. nav ul li {
  84. display:inline;
  85. transition:all 0.2s ease-in-out;
  86. padding-left:10px;
  87. padding-right:10px;
  88. line-height:30px;
  89. height:30px;
  90. position:absolute;
  91. top:8px;
  92. }
  93. nav ul li:hover {
  94. background-color:#bbbbbb;
  95. color:#424242;
  96. }
  97. nav ul li:nth-child(2) {
  98. left:168.88px;
  99. }
  100. nav ul li:nth-child(3) {
  101. left:227px;
  102. }
  103. nav ul li:nth-child(2), nav ul li:nth-child(3) {
  104. font-size:12px;
  105. }
  106.  
  107. /* Carousel */
  108. .carousel {
  109. width:100%;
  110. height:150px;
  111. background-color: #efefef;
  112. }
  113.  
  114. /* Fellows wanted */
  115. .fellows-title {
  116. text-align:center;
  117. margin:25px 0;
  118. }
  119. .fellows-title span {
  120. font-size:12px;
  121. }
  122. article {
  123. width:calc(33% - 11px);
  124. height:250px;
  125. display:inline-block;
  126. margin-left:5px;
  127. margin-right:5px;
  128. background-color:#efefef;
  129. }
  130.  
  131. /* Contact */
  132. .contact-title {
  133. margin:25px 0;
  134. position:relative;
  135. }
  136. .contact-title::before {
  137. position:absolute;
  138. content:'';
  139. width:100%;
  140. height:1px;
  141. background-color:#424242;
  142. left:0;
  143. margin-top:-10px;
  144. }
  145.  
  146. /* Formulaire */
  147. input, textarea {
  148. display:block;
  149. width:80%;
  150. margin:10px auto;
  151. }
  152. textarea {
  153. height:100px;
  154. }
  155.  
  156. /* FOOTER */
  157. footer {
  158. background-color:#424242;
  159. padding:20px 0;
  160. }
  161. footer a {
  162. color:white;
  163. text-decoration:none;
  164. }
  165. footer ul {
  166. list-style-type:none;
  167. text-align:center;
  168. margin:0;
  169. padding:0;
  170. }
  171.  
  172.  
  173. /* RESPONSIVE DESIGN */
  174. @media all and (max-width:960px) {
  175. h2.fellows-title {
  176. font-size:2em;
  177. }
  178. h2.fellows-title span {
  179. font-size:16px;
  180. }
  181. .contact-title {
  182. text-align:center;
  183. }
  184. .flex-container-row {
  185. display:flex;
  186. flex-direction:column;
  187. }
  188. .article-section {
  189. display:flex;
  190. flex-direction:column;
  191. align-items:center;
  192. }
  193. .article-section article {
  194. width:90%;
  195. margin:20px 0;
  196. }
  197. form {
  198. display:flex;
  199. flex-direction:column;
  200. }
  201. input[type="submit"] {
  202. margin-left:84%;
  203. width:auto;
  204. }
  205. footer {
  206. display:flex;
  207. flex-direction:column;
  208. align-items:center;
  209. }
  210. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement