Advertisement
Guest User

Untitled

a guest
Jul 17th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.55 KB | None | 0 0
  1. <!DOCTYPE HTML>
  2. <html lang="en-US">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title></title>
  6. <link href='http://fonts.googleapis.com/css?family=Josefin+Sans:100,400' rel='stylesheet' type='text/css'>
  7. <style>
  8.  
  9. body {
  10. font-family:arial;
  11. font-size:12px;
  12. background: #f6f7f0;
  13. margin:0;
  14. padding:0;
  15. }
  16. .container-hexagon {
  17. width:700px;
  18. height:100%;
  19. position:absolute;
  20. top:50px;
  21. left:50%;
  22. margin-left:-350px;
  23. }
  24.  
  25. /* HEXAGON STARTS HERE */
  26. .hex {
  27. width:150px;
  28. height:86px;
  29. background-color: #ccc;
  30. background-repeat: no-repeat;
  31. background-position: 50% 50%;
  32. -webkit-background-size: auto 173px;
  33. -moz-background-size: auto 173px;
  34. -ms-background-size: auto 173px;
  35. -o-background-size: auto 173px;
  36. position: relative;
  37. float:left;
  38. margin:25px 5px;
  39. text-align:center;
  40. zoom:1;
  41. }
  42.  
  43. .hex.hex-gap {
  44. margin-left: 86px;
  45. }
  46.  
  47. .hex a {
  48. display:block;
  49. width: 100%;
  50. height:100%;
  51. text-indent:-9999em;
  52. position:absolute;
  53. top:0;
  54. left:0;
  55. }
  56.  
  57. .hex .corner-1,
  58. .hex .corner-2 {
  59. position: absolute;
  60. top:0;
  61. left:0;
  62. width:100%;
  63. height:100%;
  64. background: inherit;
  65. z-index:-2;
  66. overflow:hidden;
  67. -webkit-backface-visibility: hidden;
  68. -moz-backface-visibility: hidden;
  69. -ms-backface-visibility: hidden;
  70. -o-backface-visibility: hidden;
  71. backface-visibility: hidden;
  72. }
  73.  
  74. .hex .corner-1 {
  75. z-index:-1;
  76. -webkit-transform: rotate(60deg);
  77. -moz-transform: rotate(60deg);
  78. -ms-transform: rotate(60deg);
  79. -o-transform: rotate(60deg);
  80. transform: rotate(60deg);
  81. }
  82.  
  83. .hex .corner-2 {
  84. -webkit-transform: rotate(-60deg);
  85. -moz-transform: rotate(-60deg);
  86. -ms-transform: rotate(-60deg);
  87. -o-transform: rotate(-60deg);
  88. transform: rotate(-60deg);
  89. }
  90.  
  91. .hex .corner-1:before,
  92. .hex .corner-2:before {
  93. width: 173px;
  94. height: 173px;
  95. content: '';
  96. position: absolute;
  97. background: inherit;
  98. top:0;
  99. left: 0;
  100. z-index: 1;
  101. background: inherit;
  102. background-repeat:no-repeat;
  103. -webkit-backface-visibility: hidden;
  104. -moz-backface-visibility: hidden;
  105. -ms-backface-visibility: hidden;
  106. -o-backface-visibility: hidden;
  107. backface-visibility: hidden;
  108. }
  109. .hex .corner-1:before {
  110. -webkit-transform: rotate(-60deg) translate(-87px, 0px);
  111. -moz-transform: rotate(-60deg) translate(-87px, 0px);
  112. -ms-transform: rotate(-60deg) translate(-87px, 0px);
  113. -o-transform: rotate(-60deg) translate(-87px, 0px);
  114. transform: rotate(-60deg) translate(-87px, 0px);
  115. -webkit-transform-origin: 0 0;
  116. -moz-transform-origin: 0 0;
  117. -ms-transform-origin: 0 0;
  118. -o-transform-origin: 0 0;
  119. transform-origin: 0 0;
  120. }
  121. .hex .corner-2:before {
  122. -webkit-transform: rotate(60deg) translate(-48px, -11px);
  123. -moz-transform: rotate(60deg) translate(-48px, -11px);
  124. -ms-transform: rotate(60deg) translate(-48px, -11px);
  125. -o-transform: rotate(60deg) translate(-48px, -11px);
  126. transform: rotate(60deg) translate(-48px, -11px);
  127. bottom:0;
  128. }
  129.  
  130. /* Custom styles*/
  131. .hex .inner {
  132. color:#eee;
  133. }
  134.  
  135. .hex h4 {
  136. font-family: 'Josefin Sans', sans-serif;
  137. margin:0;
  138. }
  139.  
  140. .hex hr {
  141. border:0;
  142. border-top:1px solid #eee;
  143. width:60%;
  144. margin:15px auto;
  145. }
  146.  
  147. .hex p {
  148. font-size:16px;
  149. font-family: 'Kotta One', serif;
  150. width:80%;
  151. margin:0 auto;
  152. }
  153.  
  154. .hex.hex-1 {
  155. background: #74cddb;
  156. }
  157.  
  158. .hex.hex-2 {
  159. background: #f5c53c;
  160. }
  161.  
  162. .hex.hex-3 {
  163. background: #80b971;
  164. }
  165. </style>
  166. </head>
  167. <body>
  168. <div class="container-hexagon">
  169. <div class="hex hex-1 hex-gap">
  170. <div class="inner">
  171. <h4>Intern</h4>
  172. <hr />
  173. <p>Home Sweet Home</p>
  174. </div>
  175. <a href="https://www.smartrecruiters.com/Intertec1/743999672994568-intern-general-" target="_blank"></a>
  176. <div class="corner-1"></div>
  177. <div class="corner-2"></div>
  178. </div>
  179. <div class="hex hex-2">
  180. <div class="inner">
  181. <h4>Senior AngularJS Developer</h4>
  182. <hr />
  183. <p>We Are The Experts</p>
  184. </div>
  185. <a href="https://www.smartrecruiters.com/Intertec1/743999672994568-intern-general-" target="_blank"></a>
  186. <div class="corner-1"></div>
  187. <div class="corner-2"></div>
  188. </div>
  189. <div class="hex hex-3">
  190. <div class="inner">
  191. <h4>Senior AngularJS Developer</h4>
  192. <hr />
  193. <p>We Open Everyday</p>
  194. </div>
  195. <a href="https://www.smartrecruiters.com/Intertec1/743999672994568-intern-general-" target="_blank"></a>
  196. <div class="corner-1"></div>
  197. <div class="corner-2"></div>
  198. </div>
  199. </div>
  200. </body>
  201. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement