Advertisement
cornetespoir

{About:3} à propos

Feb 14th, 2018
447
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.30 KB | None | 0 0
  1. <!--
  2. // Page:About
  3.  
  4. à propos
  5.  
  6. by espoirthemes //
  7.  
  8. + edits to the code are allowed
  9. + send questions to espoirthemes.com/contact
  10. + customizing instructions are throughout code
  11. + please do not move or remove the credit
  12. -->
  13.  
  14. <!DOCTYPE html>
  15. <html>
  16. <head>
  17.  
  18. <!--
  19. ** Change font Part 1 **
  20.  
  21. go to google fonts to change the font below. Replace the line below this with the new link from google fonts
  22. -->
  23. <link href="https://fonts.googleapis.com/css?family=Quicksand" rel="stylesheet">
  24.  
  25. <!-- do not remove this line, it keeps the page responsive -->
  26. <meta name="viewport" content="width=device-width; initial-scale=1.0">
  27. <!-- you can change the favicon and title here. right now it is just the tumblr defaults -->
  28. <link rel="shortcut icon" href="{Favicon}" />
  29. <title> {Title} </title>
  30. </head>
  31.  
  32. <style type="text/css">
  33. body {
  34. margin:0;
  35. /* ** Change font Part 2 **
  36.  
  37. When using google fonts, you have 2 steps. The link, and the CSS. Below is where you need to replace the css for the font-family
  38. */
  39. font-family:Quicksand;
  40. /* background color */
  41. background:white;
  42. /* to add a background image, change it to
  43. background:url(imageurl) center center fixed;
  44. to make it full, add the next line too,
  45. background-size:cover;
  46. */
  47. line-height:160%;
  48. }
  49.  
  50. /* link in the description */
  51.  
  52. .text a {
  53. padding:2px 8px;
  54. color:crimson; /* change color */
  55. text-decoration:none; /* keep this line if you don't want the default underline */
  56. border-radius:4px; /* rounded corners */
  57. transition:.6s;
  58. border:2px solid crimson; /* border */
  59. }
  60.  
  61. /* hover effect */
  62.  
  63. .text a:hover {
  64. background:crimson;
  65. color:white;
  66. }
  67.  
  68.  
  69. /* container */
  70.  
  71. main {
  72. background:white; /* main background */
  73. width:40%; /* width is set to 40% width of the screen for larger screen sizes */
  74. overflow:hidden;
  75. position:relative;
  76. border-radius:8px; /* rounded corners */
  77. margin:100px auto; /* positioning. right now it is 100px from the top, and auto is to center it */
  78.  
  79. }
  80.  
  81. /* keeps the header image from overflowing */
  82.  
  83. main img {
  84. max-width:100%;
  85. }
  86. /* description */
  87. .text {
  88. background:#f8f8f8; /* background */
  89. padding:40px; /* spacing */
  90. margin-top:-10px;
  91. }
  92.  
  93. /* links */
  94.  
  95. nav {
  96. background:crimson;
  97. padding:20px;
  98. }
  99.  
  100. nav a {
  101. text-decoration:none;
  102. color:white;
  103. margin:10px;
  104. /* this adds the numbers to the links */
  105. counter-increment: dec;
  106.  
  107. }
  108.  
  109. /* numbers for links part 2 */
  110. nav a::before {
  111. content: counters(dec, ".",decimal-leading-zero) " ";
  112.  
  113. }
  114.  
  115. /* Heart icon */
  116. /* I would not edit this unless you know CSS */
  117.  
  118. .icon {
  119. position:absolute;
  120. width:100px;
  121. height:100px;
  122. left:50%;
  123. margin-left:-70px;
  124. width:100px;
  125. top:20%;
  126. margin-top:-50px;
  127. }
  128.  
  129. svg {
  130. height: 140px;
  131. width: 140px;
  132. }
  133. path {
  134. fill: url(#bg-image);
  135. }
  136.  
  137.  
  138. @media (max-width:800px){
  139. main {
  140. width:80%;
  141. }
  142. }
  143.  
  144. #egg { opacity:.6;right:10px; bottom:10px; position:fixed;bottom:4px;display:block; width: 14px; height: 18px; background-color:#FFFEFC; -webkit-border-radius: 63px 63px 63px 63px / 108px 108px 72px 72px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  145. border:2px solid pink; z-index:4;
  146.  
  147. }
  148. #egg:hover { animation-name: egg;
  149. animation-duration: 1s;
  150. animation-iteration-count: infinite;}
  151. @keyframes egg{
  152. 0%{}
  153. 10%{transform:rotate(20deg)}
  154. 80%{transform:rotate(-20deg)}
  155. 100%{}
  156. }
  157.  
  158.  
  159.  
  160.  
  161. </style>
  162. <body>
  163.  
  164. <!-- Content start -->
  165. <main>
  166.  
  167. <!-- Heart Icon and Header image -->
  168. <div class="im">
  169. <!-- heart icon -->
  170. <div class="icon">
  171. <svg viewBox='0 0 100 100'>
  172. <defs>
  173. <pattern id='bg-image' width='1' height='1' patternUnits='objectBoundingBox'>
  174. <image xlink:href='{PortraitURL-128}' width='72' height='72' />
  175. </pattern>
  176. </defs>
  177. <path stroke="crimson" stroke-width="5" d='M50,90 L20,60
  178. A15,15 0 0,1 50,30
  179. A15,15 0 0,1 80,60 z' />
  180. </svg>
  181.  
  182. </div>
  183. <!-- heart icon end -->
  184.  
  185. <!-- header image. replace url with the image you want -->
  186. <img src="https://images.unsplash.com/photo-1516414559093-91c1c3d7359c?ixlib=rb-0.3.5&s=708848c0c25158c5176732af5739e81f&auto=format&fit=crop&w=1350&q=80">
  187. </div>
  188.  
  189. <!-- header and icon end -->
  190.  
  191. <!-- about section -->
  192. <div class="text">
  193.  
  194. <!-- replace this text with your own -->
  195. à propos is an about page to accompany
  196. <!-- this is how you add a link to the about -->
  197. <a href="http://bectheme.tumblr.com">Bec</a>.
  198.  
  199. <!-- to create space between paragraphs, wrap your paragrpahs in <p> </p> like I did below -->
  200. <p>
  201. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi lorem tortor, blandit in finibus id, tincidunt vitae nunc. Vivamus pretium, mauris sit amet hendrerit finibus, risus felis consectetur metus, at vehicula tellus lacus non erat.
  202.  
  203. </p>
  204. </div>
  205.  
  206. <!-- about end -->
  207.  
  208. <!-- navigation -->
  209. <nav>
  210. <!-- to remove a link, remove everything between <a href=" and </a>
  211. to add a link, copy and paste
  212. <a href="url">name</a>
  213. and fill in with new information
  214. -->
  215. <a href="/">Home</a> <a href="/ask">Ask</a> <a href="/archive">Archive</a>
  216. </nav>
  217. <!-- end content-->
  218.  
  219. </main>
  220.  
  221. <a href="http://espoirthemes.tumblr.com" title="credit"><div id="egg"></div></a>
  222.  
  223. </body>
  224. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement