silbrigthemes

Kontaktaufnahme (#11) – Dark Previews

Jun 24th, 2018
398
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.36 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.  
  4. <!--
  5.  
  6. KONTAKTAUFNAHME
  7. Page #11 by @silbrigthemes
  8.  
  9. A simple contact page.
  10.  
  11. Features:
  12. Custom scrollbar, tooltips, text selection and mobile toolbar.
  13. Responsive layout.
  14. Combined ask and submit.
  15.  
  16. Rules:
  17. 1) Do not edit beyond recogniton.
  18. 2) Do not steal (parts of) the code.
  19. 3) Do not claim as your own.
  20. 4) Do not delete the credit.
  21. 5) Please like / reblog if using.
  22.  
  23. The code has been annotated to make customization easier.
  24. If you have any questions, need help or notice any oddities, please feel free to contact me:
  25.  
  26. silbrigthemes.tumblr.com/ask
  27. silbrigsupport.tumblr.com
  28.  
  29. Have fun with this page!
  30.  
  31. -->
  32.  
  33. <head>
  34.  
  35. <meta charset="utf-16">
  36. <title>Contact</title> <!-- Change title here. -->
  37. <link rel="shortcut icon" href="{Favicon}"/>
  38. <link rel="alternate" type="application/rss+xml" href="{RSS}"/>
  39. <link rel="apple-touch-icon-precomposed" href="{PortraitURL-128}">
  40.  
  41. <!-- Custom font Merriweather. -->
  42. <link href="https://fonts.googleapis.com/css?family=Merriweather:300,400,700&amp;subset=cyrillic,cyrillic-ext,latin-ext,vietnamese" rel="stylesheet">
  43.  
  44. <!-- Necessary for the theme to be responsive. -->
  45. <meta name="viewport" content="width=device-width, initial-scale=1">
  46.  
  47. <!-- Necessary for the icon font to work. -->
  48. <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous">
  49.  
  50. <!-- Tooltips Script -->
  51. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
  52. <script src="https://static.tumblr.com/rzl30kg/eAxm7a751/jquery.style-my-tooltips.js"></script>
  53. <script>
  54. (function($){
  55. $(document).ready(function(){
  56. $("[title]").style_my_tooltips({
  57. tip_follows_cursor:true,
  58. tip_delay_time:200,
  59. tip_fade_speed:300
  60. }
  61. );
  62. });
  63. })(jQuery);
  64. </script>
  65.  
  66. <!-- Changes the toolbar color on mobile. -->
  67. <meta name="theme-color" content="#29531a"/>
  68.  
  69. <style>
  70.  
  71. body{
  72. margin:0;
  73. font-size:1em; /* 1em = 16px */
  74. background-color:#367a26; /* body background */
  75. font-family:"Merriweather"; /* global font */
  76. color:#367a26; /* text color */
  77. overflow-x:hidden;
  78. }
  79.  
  80. /* Bold Text */
  81. b, strong{
  82. font-weight:700; /* bold text */
  83. }
  84.  
  85. /* Italic Text */
  86. i, em{
  87. font-style:italic;
  88. font-weight:300; /* thin text */
  89. }
  90.  
  91. /* Links */
  92. a{
  93. text-decoration:none;
  94. border-bottom:2px dotted #367a26; /* link border */
  95. color:#367a26; /* link text color */
  96. transition:0.5s;
  97. -moz-transition:0.5s;
  98. -o-transition:0.5s;
  99. -webkit-transition:0.5s;
  100. }
  101.  
  102. a:hover{
  103. text-decoration:none;
  104. border-bottom:2px solid #367a26; /* link border, hover */
  105. transition:0.5s;
  106. -moz-transition:0.5s;
  107. -o-transition:0.5s;
  108. -webkit-transition:0.5s;
  109. }
  110.  
  111. /* Marked Text */
  112. mark{
  113. background-color:#367a26; /* mark background */
  114. padding:0 0.25em;
  115. border-radius:1em; /* rounded corners */
  116. }
  117.  
  118. /* Underlined Text */
  119. u{
  120. text-decoration:none;
  121. border-bottom:2px solid #367a26; /* border color */
  122. }
  123.  
  124. /* Custom Scrollbar */
  125. ::-webkit-scrollbar{
  126. width:10px;
  127. background-color:#367a26;
  128. border:4px solid #050704;
  129. }
  130.  
  131. ::-webkit-scrollbar-thumb{
  132. width:10px;
  133. border-radius:5px;
  134. background-color:#050704;
  135. border:4px solid #367a26;
  136. }
  137.  
  138. /* Custom Text SElection */
  139. ::selection{
  140. background-color:#367a26; /* background color */
  141. color:#050704; /* text color */
  142. }
  143.  
  144. ::-moz-selection{
  145. background-color:#367a26; /* background color */
  146. color:#050704; /* text color */
  147. }
  148.  
  149. ::-o-selection{
  150. background-color:#367a26; /* background color */
  151. color:#050704; /* text color */
  152. }
  153.  
  154. ::-webkit-selection{
  155. background-color:#367a26; /* background color */
  156. color:#050704; /* text color */
  157. }
  158.  
  159. /* Custom Tooltips */
  160. #s-m-t-tooltip{
  161. max-width:300px;
  162. margin:15px;
  163. padding:0.5em;
  164. background:#367a26; /* Tooltip Background Color */
  165. color:#050704; /* Toolip Color */
  166. z-index:999999;
  167. font-size:12px;
  168. text-transform:uppercase;
  169. font-weight:500;
  170. }
  171.  
  172. /* LEFT SIDE */
  173. #left{
  174. width:50vw;
  175. height:100vh;
  176. background-color:#050704; /* background color */
  177. display:flex;
  178. align-items:center;
  179. justify-content:center;
  180. flex-direction:column;
  181. }
  182.  
  183. /* Title */
  184. #l-title{
  185. font-size:3em; /* 3em = 48px */
  186. }
  187.  
  188. /* Sidebar Image */
  189. #l-image img{
  190. width:300px;
  191. height:auto;
  192. }
  193.  
  194. /* Description */
  195. #l-desc{
  196. width:300px;
  197. text-align:justify; /* alt.: left, center, right */
  198. }
  199.  
  200. /* Navigation */
  201. #l-nav{
  202. width:300px;
  203. display:flex;
  204. align-items:center;
  205. justify-content:space-evenly;
  206. }
  207.  
  208. /* Navigation Bubbles */
  209. .icon{
  210. width:40px;
  211. height:40px;
  212. border-radius:50%; /* circle */
  213. background-color:#367a26; /* background color */
  214. border:1px solid #050704;
  215. display:flex;
  216. align-items:center;
  217. justify-content:center;
  218. transition:0.5s;
  219. -moz-transition:0.5s;
  220. -o-transition:0.5s;
  221. -webkit-transition:0.5s;
  222. }
  223.  
  224. .icon:hover{
  225. background-color:#050704; /* hover background */
  226. transform:scale(1.1); /* increases size */
  227. border:1px solid #367a26;
  228. transition:0.5s;
  229. -moz-transition:0.5s;
  230. -o-transition:0.5s;
  231. -webkit-transition:0.5s;
  232. }
  233.  
  234. a.navlink{
  235. color:#050704; /* link color */
  236. text-decoration:none;
  237. border-bottom:none;
  238. }
  239.  
  240. a.navlink:hover{
  241. color:#367a26; /* hover link color */
  242. border-bottom:none;
  243. }
  244.  
  245. /* RIGHT SIDE */
  246. #right{
  247. width:50vw;
  248. height:100vh;
  249. margin-left:50vw;
  250. margin-top:-100vh;
  251. background-color:inherit; /* same as body background */
  252. display:flex;
  253. align-items:center;
  254. justify-content:center;
  255. flex-direction:column;
  256. }
  257.  
  258. #right iframe{
  259. margin-left:-25%;
  260. }
  261.  
  262. /* Hides the tumblr app button. By @yeoli-thm */
  263. .tmblr-iframe--app-cta-button {
  264. display: none!important;
  265. }
  266.  
  267. /* Hides standard tumblr controls */
  268. body > iframe:first-child {
  269. display: none !important;
  270. }
  271.  
  272. /* Necessary for responsive layout */
  273. @media only screen and (max-width:800px){
  274. #left{
  275. width:100vw;
  276. }
  277.  
  278. #right{
  279. width:100vw;
  280. margin-top:0;
  281. margin-left:0;
  282. }
  283. }
  284.  
  285. @media only screen and (max-width:500px){
  286. #right iframe{
  287. width:300px;
  288. margin-left:calc(50% - 150px);
  289. }
  290. }
  291.  
  292. </style>
  293. </head>
  294.  
  295. <body>
  296. <div id="left">
  297. <!-- Title -->
  298. <div id="l-title">Kontakt</div>
  299. <!-- Sidebar Image -->
  300. <div id="l-image">
  301. <img src="https://mediaslide-europe.storage.googleapis.com/munichmodels/pictures/1285/1285/large-1509615037-e968754f5a4e2a4e353221a09dfffe8a.jpg"/>
  302. </div>
  303. <!-- Sidebar Description -->
  304. <div id="l-desc">
  305. <mark>Luisa Hartema</mark>. 23. Model @ IMG Models and <a href="https://www.munich-models.de/" title="munich models">Munich Models</a>.
  306. <p>It will take up to three working days for your message to be answered.</p>
  307. <!-- Navigation Links -->
  308. <div id="l-nav">
  309. <a class="navlink" href="https://www.instagram.com/luisahartema_/?hl=de" title="instagram">
  310. <div class="icon">
  311. <i class="fab fa-instagram"></i>
  312. </div>
  313. </a>
  314.  
  315. <a class="navlink" href="https://de-de.facebook.com/LuisaHartema/" title="facebook">
  316. <div class="icon">
  317. <i class="fab fa-facebook"></i>
  318. </div>
  319. </a>
  320.  
  321. <a class="navlink" href="https://twitter.com/luisa_hartema?lang=de" title="twitter">
  322. <div class="icon">
  323. <i class="fab fa-twitter"></i>
  324. </div>
  325. </a>
  326.  
  327. <a class="navlink" href="https://www.munich-models.de/find-models/1285-luisa-h/" title="munich models">
  328. <div class="icon">
  329. <i class="fas fa-user-circle"></i>
  330. </div>
  331. </a>
  332.  
  333. <a class="navlink" href="https://silbrigthemes.tumblr.com/" title="page by silbrigthemes">
  334. <div class="icon">
  335. <i class="fas fa-code"></i>
  336. </div>
  337. </a>
  338. </div>
  339. </div>
  340. </div>
  341.  
  342. <div id="right">
  343. <!-- Iframe for Askbox -->
  344. <p><iframe frameborder="0" scrolling="no" width="150%" height="150" src="http://www.tumblr.com/ask_form/{Name}.tumblr.com" style="background-color:transparent; overflow:hidden;" id="ask_form"></iframe><!--[if IE]><script type="text/javascript">document.getElementById('ask_form').allowTransparency=true;</script><![endif]--></p>
  345.  
  346. <!-- Iframe for submitbox -->
  347. <p><iframe frameborder="0" scrolling="no" width="150%" height="400" id="submit_form" src="http://www.tumblr.com/submit_form/{Name}.tumblr.com" style="background-color:transparent; overflow:hidden;"></iframe><!--[if IE]><script type="text/javascript">document.getElementById('submit_form').allowTransparency=true;</script><![endif]--></p>
  348. </div>
  349. </body>
  350. </html>
Advertisement
Add Comment
Please, Sign In to add comment