Advertisement
Gottfrieden

Untitled

Mar 4th, 2020
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.03 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 class="last-ul-footer">
  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. form {
  133. width:100vw;
  134. }
  135. .contact-title {
  136. margin:25px 0;
  137. position:relative;
  138. padding-left:50px;
  139. }
  140. .contact-title::before {
  141. position:absolute;
  142. content:'';
  143. width:100%;
  144. height:1px;
  145. background-color:#424242;
  146. left:0;
  147. margin-top:-10px;
  148. }
  149.  
  150. /* Formulaire */
  151. input, textarea {
  152. display:block;
  153. width:80%;
  154. margin:10px auto;
  155. }
  156. textarea {
  157. height:100px;
  158. }
  159. input[type="submit"] {
  160. margin-left:85%;
  161. width:auto;
  162. }
  163.  
  164. /* FOOTER */
  165. footer {
  166. background-color:#424242;
  167. padding:20px 0;
  168. display:flex;
  169. position:relative;
  170. width:100vw;
  171. }
  172. footer a {
  173. color:white;
  174. text-decoration:none;
  175. }
  176. footer ul {
  177. list-style-type:none;
  178. }
  179. .last-ul-footer {
  180. display:flex;
  181. position:absolute;
  182. right:0;
  183. margin-right:20px;
  184. flex-direction:column;
  185.  
  186. }
  187.  
  188.  
  189.  
  190. /* RESPONSIVE DESIGN */
  191. @media all and (max-width:960px) {
  192. h2.fellows-title {
  193. font-size:2em;
  194. }
  195. h2.fellows-title span {
  196. font-size:16px;
  197. }
  198. .contact-title {
  199. text-align:center;
  200. }
  201. .flex-container-row {
  202. display:flex;
  203. flex-direction:column;
  204. }
  205. .article-section {
  206. display:flex;
  207. flex-direction:column;
  208. align-items:center;
  209. }
  210. .article-section article {
  211. width:90%;
  212. margin:20px 0;
  213. }
  214. form {
  215. display:flex;
  216. flex-direction:column;
  217. }
  218. input[type="submit"] {
  219. margin-left:84%;
  220. width:auto;
  221. }
  222. footer {
  223. display:flex;
  224. flex-direction:column;
  225. align-items:center;
  226. }
  227. footer ul {
  228. text-align:center;
  229. margin:0;
  230. padding:0;
  231. }
  232. .last-ul-footer {
  233. display:block;
  234. }
  235. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement