Advertisement
Guest User

Untitled

a guest
Mar 18th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.25 KB | None | 0 0
  1. <DOCTYPE! html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <link rel="stylesheet" href="main.css" />
  7. <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous"/>
  8. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.css" />
  9. <title>Hot Beans Official</title>
  10. </head>
  11. <body>
  12. <div id="header-wrap" class="animated fadeInDownBig">
  13. <div id="header-content">
  14. <header>
  15. <h1> Hot Beans </h1>
  16. <h2> Experts when it come to web development </h2>
  17. </header>
  18. </div>
  19. </div>
  20.  
  21. <div id="navbar-wrap" class="animated fadeInLeftBig">
  22. <nav>
  23. <ul>
  24. <li><button> N/A </button></li>
  25. <li><button> N/A </button></li>
  26. <li><button> N/A </button></li>
  27. <li><button> N/A </button></li>
  28. <div class="dropdown">
  29. <li><button class="dropbtn">Recruitment</button></li>
  30. <div class="drop-content">
  31. <a href="#"> Apply Now! </a>
  32. <a href="#"> Our Team </a>
  33. <a href="#"> About Us </a>
  34. <a href="#"> Contact Us </a>
  35. </div>
  36. </div>
  37. </ul>
  38. </nav>
  39. </div>
  40.  
  41. <div id="main-wrap" class="animated fadeIn">
  42. <main>
  43. <h1 id="title-one"> Recruitment <h1>
  44. <center>
  45. <p>Hot Beans is a website development company, located in
  46. the UK. Currently, we're looking for 3 talented and passionate
  47. Junior Web Developers, who'll fit in and help out in a team of
  48. 5. This is a great opportunity to expand on knowledge, and learn
  49. new things! If your interested in kick starting your career as a
  50. Web Developer, we'd love to hear from you! Have a look through
  51. the Recruitment section of the website to learn more!</p>
  52. </center>
  53. <img src="interview.jpeg" alt="recruitment" id="img-one"/>
  54. </main>
  55. </div>
  56.  
  57. </body>
  58. </html>
  59.  
  60. -----------------styling----------------------------
  61. *{
  62. padding:0;
  63. font-family:Helvetica;
  64. margin: 0 auto;
  65. }
  66.  
  67. html{
  68. background-color:#F5F5F5;
  69. }
  70.  
  71. #header-wrap {
  72. top:0;
  73. position:absolute;
  74. background-color:#151515;
  75. width:100%;
  76. height:160px;
  77. animation-duration:1.5s;
  78. }
  79.  
  80. h2 {
  81. font-size:20px;
  82. }
  83.  
  84. h1 {
  85. font-size:46px;
  86. }
  87.  
  88. header {
  89. color:F5F5F5;
  90. text-align:center;
  91. }
  92.  
  93. #header-content {
  94. position: relative;
  95. top: 50%;
  96. transform: translateY(-53%);
  97. }
  98.  
  99. #navbar-wrap {
  100. align-items:center;
  101. position:fixed;
  102. font-size:20px;
  103. bottom: 452px;
  104. width:100%;
  105. height:50px;
  106. text-align:center;
  107. animation-delay:1.7s;
  108. background-color:#3D9970;
  109. z-index:5;
  110. }
  111.  
  112. nav, li, button {
  113. align-items:center;
  114. margin-right: 8px;
  115. display: inline;
  116. text-align: center;
  117. }
  118.  
  119. nav, ul {
  120. align-items:center;
  121. position: relative;
  122. transform: translateY(30%);
  123. list-style: none;
  124. }
  125.  
  126. li, button {
  127. border: none;
  128. font-size: 18px;
  129. background-color: #3D9970;
  130. align-items: center;
  131. font-weight: bold;
  132. cursor: pointer;
  133. color: #323232;
  134. padding: 5px;
  135. margin-right: 16px;
  136. text-align: center;
  137.  
  138. }
  139.  
  140. button:hover{
  141. border-bottom:2px solid black;
  142. color:black;
  143. }
  144.  
  145.  
  146. #main-wrap {
  147. animation-delay:3s;
  148. width:600px;
  149. height:385px;
  150. background-color:#F5F5F5;
  151. border:4px solid #A9A9A9;
  152. position:fixed;
  153. left:0;
  154. right:0;
  155. margin-left:auto;
  156. margin-right:auto;
  157. bottom:25px;
  158. }
  159.  
  160. #img-one{
  161. width:246px;
  162. height:166px;
  163. position:fixed;
  164. margin-left:180px;
  165. bottom:35px;
  166.  
  167. }
  168.  
  169. #title-one {
  170. font-size:22px;
  171. text-decoration:underline;
  172. padding:10px;
  173. }
  174.  
  175. p {
  176. font-weight:normal;
  177. font-size:18px;
  178. padding-left:10px;
  179. line-height:1.3;
  180. }
  181.  
  182. .dropdown {
  183. position: relative;
  184. display: inline-block;
  185. }
  186.  
  187. .drop-content {
  188. display: none;
  189. position: absolute;
  190. background-color: #3D9970;
  191. width: 146px;
  192. }
  193.  
  194. .drop-content a {
  195. font-size:15px;
  196. font-weight:bold;
  197. color: black;
  198. padding: 12px 16px;
  199. text-decoration: none;
  200. display: block;
  201. }
  202.  
  203. .drop-content a:hover {
  204. background-color:#AAAAAA;
  205.  
  206. }
  207.  
  208. .dropdown:hover .drop-content {
  209. display: block;
  210. }
  211.  
  212. .dropdown:hover .dropbtn {
  213. background-color:;
  214. }
  215.  
  216. /* ------------------------------------- RESPOSIVE ------------------------------------- */
  217.  
  218. /* MAX WIDTH 630px */
  219. @media (max-width:630px){
  220.  
  221. .drop-content {
  222. width: 122px;
  223. }
  224.  
  225. .drop-content a {
  226. font-size:13px;
  227. padding: 10px 14px;
  228. }
  229.  
  230. li, button {
  231. font-size: 16px;
  232. margin-right: 7px;
  233. }
  234.  
  235. nav, ul {
  236. transform: translateY(18%);
  237. }
  238.  
  239. #navbar-wrap {
  240. bottom: 462px;
  241. height:40px;
  242. position:fixed;
  243. }
  244.  
  245. #img-one{
  246. bottom:63px;
  247. margin-left:78px;
  248. }
  249.  
  250. #title-one{
  251. font-size:19px;
  252. }
  253.  
  254. p {
  255. padding-left:2px;
  256. font-size:14px;
  257. }
  258.  
  259. #main-wrap{
  260. bottom:55px;
  261. width:400px;
  262. }
  263.  
  264. }
  265.  
  266.  
  267. /* MAX WIDTH 450px */
  268. @media (max-width:450px){
  269.  
  270. #img-one{
  271. bottom:59px;
  272. margin-left:69px;
  273. }
  274.  
  275. #title-one{
  276. font-size:18px;
  277. }
  278.  
  279. p{
  280. padding-left:1px;
  281. font-size:14px;
  282. }
  283.  
  284. #main-wrap{
  285. bottom:50px;
  286. width:370px;
  287. }
  288.  
  289. h2 {
  290. font-size:16px;
  291. }
  292.  
  293. h1 {
  294. font-size:38px;
  295. }
  296. }
  297.  
  298.  
  299. /* MAX WIDTH 400px */
  300. @media (max-width:400px){
  301.  
  302. #navbar-wrap {
  303. bottom: 303px;
  304. height:30%;
  305. text-align:center;
  306. }
  307.  
  308. nav, li, button {
  309. bottom:60px;
  310. align-items:center;
  311. display: block;
  312. text-align: center;
  313. left:0;
  314. right:0;
  315. margin-left:auto;
  316. margin-right:auto;
  317. }
  318.  
  319. #main-wrap{
  320. border:1px solid #A9A9A9;
  321. height:200px;
  322. bottom:75px;
  323. }
  324.  
  325. .drop-content {
  326. width:114px;
  327. }
  328.  
  329. #img-one{
  330. display:none;
  331. }
  332.  
  333. #title-one{
  334. font-size:17px;
  335. }
  336.  
  337. li, button {
  338. font-size: 15px;
  339. }
  340.  
  341. .drop-content {
  342. width:113px;
  343. }
  344.  
  345. button:hover{
  346. border:none;
  347. background-color:#AAAAAA;
  348. }
  349.  
  350. }
  351.  
  352.  
  353. /* MAX WIDTH 390px */
  354. @media (max-width:390px){
  355. #main-wrap{
  356. bottom:50px;
  357. height:240px;
  358. width:300px;
  359. }
  360.  
  361. p{
  362. line-height:1.4;
  363. }
  364.  
  365. li, button {
  366. font-size: 15px;
  367. }
  368.  
  369. .drop-content {
  370. width:104px;
  371. }
  372.  
  373. button:hover{
  374. border:none;
  375. background-color:#AAAAAA;
  376. }
  377.  
  378. h1{
  379. font-size:30px;
  380. }
  381.  
  382. h2{
  383. font-size:15px;
  384. }
  385. }
  386.  
  387. /* MAX HEIGHT 642PX */
  388. @media (max-height:642px){
  389.  
  390. #header-content {
  391. position: relative;
  392. top: 50%;
  393. transform: translateY(-65%);
  394. }
  395. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement