Lechars

Untitled

Mar 5th, 2020
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.38 KB | None | 0 0
  1. HTML
  2.  
  3.  
  4. <!DOCTYPE html>
  5. <html lang="en">
  6. <head>
  7. <meta charset="UTF-8">
  8. <title>Find the precious!</title>
  9. <link rel="stylesheet" href="style.css">
  10. </head>
  11.  
  12. <body>
  13.  
  14. <nav>
  15. <ul>
  16. <li>FindThePrecious.com</li>
  17. <li>Fellows</li>
  18. <li>Contact us</li>
  19. </ul>
  20. </nav>
  21.  
  22.  
  23. <section>
  24. <div class="carousel"></div>
  25. </section>
  26.  
  27. <section>
  28. <h2> <span>Fellows wanted dead</span> (or alive if you want to eat them later)</h2>
  29. </section>
  30. <section class='portrait'>
  31. <article></article>
  32. <article></article>
  33. <article></article>
  34. </section>
  35. <hr>
  36. <form>
  37. <h2>Contact us</h2>
  38. <input type="email" placeholder="@">
  39. <input type="text" placeholder="&#8962;">
  40. <input type="text" placeholder="I have seen one of them">
  41. <textarea placeholder="Your message"></textarea>
  42. </form>
  43. <footer>
  44. <div class="wrapper">
  45. <div>
  46. <p>About us</p>
  47. <p>Fellows</p>
  48. <p>Join our army</p>
  49. </div>
  50. <div>
  51. <p>FAQ</p>
  52. <p>Reward conditions</p>
  53. <p>Legal mentions</p>
  54. </div>
  55. </div>
  56. <div class="moitier">
  57. <p>Sauron4Ever.com</p>
  58. <p>Follow him also on twitter</p>
  59. </div>
  60. </footer>
  61. </body>
  62. </html>
  63.  
  64.  
  65. css
  66.  
  67. body{
  68. max-width: 1180px;
  69. margin-left:auto;
  70. margin-right:auto;
  71. }
  72.  
  73. /*header*/
  74.  
  75. nav{
  76. height: 50px;
  77. background-color:black;
  78.  
  79. }
  80.  
  81. nav ul{
  82.  
  83. color:#ece8e8;
  84. max-width: 50%;
  85. display:flex;
  86. list-style-type: none;
  87. margin: 0;
  88. padding: 0;
  89. justify-content:space-around;
  90. align-items: center;
  91. height: 100%;
  92.  
  93. }
  94.  
  95. ul li{
  96. font-weight:bold;
  97. font-size: 1.5em;
  98. margin:0;
  99. }
  100.  
  101.  
  102. ul li:nth-child(2){
  103. font-size:1em;
  104. padding-top: 5px;
  105. }
  106.  
  107.  
  108. ul li:nth-child(3){
  109. font-size:1em;
  110. padding-top:5px;
  111. }
  112.  
  113.  
  114. /*caroussel*/
  115.  
  116. .carousel{
  117. background-color: #ece8e8;
  118. min-height:300px;
  119. }
  120.  
  121. /*wanted*/
  122.  
  123. section h2{
  124. min-height: 100px;
  125. color:grey;
  126. text-align:center;
  127. padding-top:40px;
  128. font-size:1.3em;
  129.  
  130. }
  131.  
  132. h2 span {
  133. font-size: 1.5em;
  134. }
  135.  
  136. /*portrait*/
  137.  
  138. .portrait{
  139. display: flex;
  140. justify-content:space-around;
  141. align-items: center;
  142.  
  143. }
  144.  
  145. section > article{
  146. height:370px;
  147. width:370px;
  148. background-color:#ece8e8;
  149. margin:10px;
  150. }
  151.  
  152. hr {
  153. margin-top: 100px;
  154. }
  155.  
  156. /*form*/
  157.  
  158. input{
  159. min-width: 900px;
  160. margin-bottom:10px;
  161. margin-left:10%;
  162. margin-right:10%;
  163. }
  164.  
  165. textarea{
  166. min-width: 900px;
  167. margin-bottom:10px;
  168. margin-left:10%;
  169. margin-right:10%;
  170. }
  171.  
  172. /*footer*/
  173.  
  174. footer{
  175. background-color: black;
  176. display:flex;
  177. flex-direction: row;
  178. }
  179.  
  180. footer .wrapper{
  181. display:flex;
  182. color:#ece8e8;
  183. min-width: 50%;
  184. flex-direction: row;
  185. justify-content: center;
  186. align-items: center;
  187. justify-content: space-around;
  188. }
  189.  
  190. footer .moitier{
  191. color:white;
  192. font-weight: bolder;
  193. display:flex;
  194. flex-direction: column;
  195. justify-content: center;
  196. align-items: center;
  197. min-width: 50%;
  198. }
  199.  
  200.  
  201. MEDIA QUERIE POUR EXO 7 (8 PLUS BAS)
  202.  
  203.  
  204. @media (max-width:961px){
  205.  
  206. body{
  207. max-width: 961px;
  208. margin-left:auto;
  209. margin-right:auto;
  210. }
  211.  
  212. /*header*/
  213.  
  214. ul li{
  215. font-size: 1em;
  216. margin:0;
  217. }
  218.  
  219.  
  220. ul li:nth-child(2){
  221. font-size:0.8em;
  222. }
  223.  
  224.  
  225. ul li:nth-child(3){
  226. font-size:0.8em;
  227. }
  228.  
  229. /*section*/
  230.  
  231. .carousel{
  232. display: none;
  233. }
  234.  
  235. .portrait{
  236. display: none;
  237. }
  238.  
  239. /*form*/
  240.  
  241. input{
  242. min-width:600px;
  243. margin-left:7%;
  244. margin-right:7%;
  245. }
  246.  
  247. textarea{
  248. min-width:600px;
  249. margin-left:7%;
  250. margin-right:7%;
  251. }
  252. }
  253.  
  254. MEDIA QUERIE POUR EXO 8
  255.  
  256. @media (max-width:500px){
  257.  
  258. body{
  259. max-width: 500px;
  260. margin-left:auto;
  261. margin-right:auto;
  262. }
  263.  
  264. /*header*/
  265.  
  266. nav ul{
  267. max-width: 90%;
  268. }
  269.  
  270. /*caroussel*/
  271.  
  272. .carousel{
  273. min-height:300px;
  274. }
  275.  
  276. /*portrait*/
  277.  
  278. .portrait{
  279. display: flex;
  280. flex-direction: column;
  281. justify-content:space-around;
  282. align-items: center;
  283. }
  284.  
  285. section > article{
  286. height:150px;
  287. width:320px;
  288. }
  289.  
  290. /*form*/
  291.  
  292. input{
  293. min-width: 300px;
  294. margin-bottom:10px;
  295. margin-left:3%;
  296. margin-right:3%;
  297. }
  298.  
  299. textarea{
  300. min-width: 300px;
  301. margin-bottom:10px;
  302. margin-left:3%;
  303. margin-right:3%;
  304. }
  305.  
  306. /*footer*/
  307.  
  308. footer{
  309. background-color: black;
  310. display:flex;
  311. flex-direction: column;
  312. }
  313.  
  314. footer .wrapper{
  315. display:flex;
  316. color:#ece8e8;
  317. min-width: 50%;
  318. flex-direction: column;
  319. justify-content: center;
  320. align-items: center;
  321.  
  322. }
  323.  
  324. footer .wrapper div{
  325. display: flex;
  326. justify-content: center;
  327. align-items: center;
  328. flex-direction: column;
  329.  
  330. }
  331.  
  332. footer .moitier{
  333. color:#ece8e8;
  334. font-weight: normal;
  335. display:flex;
  336. flex-direction: column;
  337. justify-content: center;
  338. align-items: center;
  339. min-width: 50%;
  340. }
  341.  
  342.  
  343.  
  344.  
  345. }
Add Comment
Please, Sign In to add comment