Advertisement
southcodes

the news | about page

Mar 3rd, 2023 (edited)
1,210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 7.20 KB | None | 0 0
  1. <!--
  2.     - page 'the news' by skye southcodes.tumblr.com
  3.     - modify as you please but please do not touch the credit
  4.     - any errors? need help? have questions? let me know!
  5.     southcodes.tumblr.com/inbox
  6.    
  7.     - normalize css by https://github.com/necolas
  8.     - fonts by google
  9.     - icon font by http://fontawesome.io/icons/
  10.  
  11.  -->
  12. <!DOCTYPE html>
  13. <html>
  14. <head>
  15.     <title>{title}</title>
  16.    
  17.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  18.  
  19.     <link rel="shortcut icon" href="{favicon}">
  20.     <meta name="description" content="{MetaDescription}"/>
  21.  
  22.     <!-- fonts -->
  23.     <link rel="preconnect" href="https://fonts.googleapis.com">
  24.     <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  25.     <link href="https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800&family=Lora:ital,wght@0,400;0,500;1,400;1,500&display=swap" rel="stylesheet">
  26.  
  27.    
  28.     <!-- normalize -->
  29.     <link href="https://necolas.github.io/normalize.css/7.0.0/normalize.css" rel="stylesheet">
  30.    
  31.  
  32. <style>
  33. :root {
  34.     --background:#ffffff;
  35.     --text:#333;
  36.     --links: #ae8cdb;
  37.     --links-hover: #7b368c;
  38.     --borders:#eee;
  39.     --icons: #e991bd;
  40.   }
  41.  
  42. .tmblr-iframe {margin:.7rem;opacity:.6;-ms-transform: scale(0.85);-webkit-transform: scale(0.85); /* Safari */transform: scale(0.85);}
  43. .tmblr-iframe:hover {opacity:.8;}
  44.  
  45. ::-webkit-scrollbar-thumb:vertical {border-left:2px solid var(--borders);}
  46. ::-webkit-scrollbar {width:6px}
  47. ::-webkit-scrollbar-track-piece{margin:5px 0;}
  48.  
  49. pre {font-family:consolas;
  50.     white-space: pre-wrap;       /* css-3 */
  51.     white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
  52.     white-space: -pre-wrap;      /* Opera 4- */
  53.     white-space: -o-pre-wrap;    /* Opera 7 */
  54.     word-wrap: break-word;}      /* Internet Explorer 5.5+ */
  55.  
  56. body, figure{margin:0;padding:0}
  57. html{font: 14px 'Karla', sans-serif;}
  58. body {font-size:14px;color:var(--text);background:var(--background);}
  59. a {text-decoration: none;color:var(--links);word-break:break-word;}
  60. a:hover {color:var(--links-hover);}
  61. blockquote {margin:0;padding:0;}
  62. img {max-width:100%;height: auto;display: block;margin:0}
  63. hr {border:0;border-top:1px solid var(--borders);margin:0;}
  64.  
  65. * {
  66.   box-sizing: border-box;
  67. }
  68.  
  69. .divider {
  70.   width: 70%;
  71.   margin:4rem auto 0;
  72.   position: relative;
  73. }
  74.  
  75. .divider:after {
  76.   content: '\f111';
  77.   font-family: 'Font Awesome 5 Free';
  78.   color: var(--icons);
  79.   font-weight: 900;
  80.   font-size: 10px;
  81.   position: absolute;
  82.   left:calc(50% - 5px);top:calc(-5px - 5px);
  83.   border:5px solid var(--background);
  84.   border-radius: 100%;
  85. }
  86.  
  87. /* container */
  88.  
  89. main {
  90.   width: 90vw;
  91.   margin:5rem auto;
  92.   max-width: 30rem;
  93. }
  94.  
  95. /*  header  */
  96.  
  97. header {
  98.   text-align: center;
  99. }
  100.  
  101. /* icon navigation */
  102.  
  103. #icon-navigation {
  104.   margin:2rem 0;
  105.   font-size: 1.2rem;
  106. }
  107.  
  108. #icon-navigation a {color: var(--icons );}
  109.  
  110. #icon-navigation * {
  111.   margin:0;
  112.   padding: 0;
  113. }
  114.  
  115. #icon-navigation ul,#navigation-links, #navigation-tags, #social-navigation{
  116.   list-style: none;
  117.   display: flex;
  118.   justify-content: space-around;
  119.   flex-wrap: wrap;
  120. }
  121.  
  122. #navigation-links li, #navigation-tags li, #social-navigation li{
  123.   margin:1rem
  124. }
  125.  
  126. /* header image */
  127.  
  128. #header-image img{
  129.   border-radius: 5px;
  130. }
  131.  
  132. /* header icon */
  133.  
  134. #header-icon img{
  135.   width: 90%;
  136.   max-width: 10rem;
  137.   margin:-15% auto 0;
  138.   aspect-ratio: 1 / 1;
  139.   border-radius: 100%;
  140.   border:10px solid var(--background);
  141.   z-index: 10;
  142.   position: relative;
  143. }
  144.  
  145. /* title */
  146.  
  147. h1{
  148.   font-weight: 400;
  149.   font-family: 'Lora', serif;
  150.   margin-bottom: 0;
  151. }
  152.  
  153. /* username */
  154.  
  155. h2{
  156.   font-weight: 400;
  157.   margin:0;
  158.   font-size: 1rem;
  159.   color: #999;
  160. }
  161.  
  162. /* about section */
  163.  
  164. #details-section {
  165.   margin-top: 2rem;
  166.   text-align: center;
  167.   font-weight: 500;
  168. }
  169.  
  170. #details-section .fa-circle {
  171.   font-size: .4rem;
  172.   vertical-align: middle;
  173.   margin:0 .7rem;
  174.   color: var(--icons);
  175. }
  176.  
  177. #about-text {
  178.   margin-top: 4rem;
  179. }
  180.  
  181. /* navigation sections */
  182.  
  183. #navigation-links,#navigation-tags {
  184.   margin-top: 4rem;
  185. }
  186.  
  187. #navigation-links li {
  188.   border:1px solid var(--icons);
  189.   padding: .7rem;
  190.   border-radius: 3px;
  191. }
  192.  
  193. #social-navigation {
  194.   margin-top: 4rem;
  195.   font-size: 1.4rem;
  196. }
  197.  
  198. </style>    
  199. </head>
  200. <body>
  201.  
  202. <main>
  203.  
  204. <header>
  205.  
  206.     <nav id="icon-navigation"><ul>
  207.  
  208.             <!-- home button -->
  209.             <li><a title="home" href="/"><i class="fa-solid fa-home"></i></a></li>
  210.  
  211.             <!-- inbox button -->
  212.             <li><a title="inbox" href="/ask"><i class="fa-solid fa-envelope"></i></a></li>
  213.  
  214.             <!-- follow button -->
  215.             <li><a title="follow" href="https://www.tumblr.com/follow/{user}"><i class="fa-solid fa-plus"></i></a></li>
  216.  
  217.             <!-- dashboard -->
  218.             <li><a title="dashboard" href="https://www.tumblr.com/dashboard"><i class="fa-brands fa-tumblr"></i></a></li>
  219.  
  220.     </ul></nav>
  221.  
  222.     <figure id="header-image"><img src="HEADER IMAGE URL" alt=""></figure>
  223.  
  224.     <figure id="header-icon"><img src="ICON IMAGE URL" alt=""></figure>
  225.  
  226.     <h1>title</h1>
  227.  
  228.     <h2>@{user}</h2>
  229.  
  230. </header>
  231.  
  232. <section id="about-section">
  233.  
  234.     <article id="details-section">
  235.        name
  236.        
  237.        <i class="fa-solid fa-circle"></i>
  238.        
  239.        age
  240.        
  241.        <i class="fa-solid fa-circle"></i>
  242.        
  243.        pronouns
  244.     </article>
  245.  
  246.     <article id="about-text">
  247.  
  248.         <!-- please wrap your paragraphs around <p></p> -->
  249.        
  250.         <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Ipsam assumenda ut nostrum ratione adipisci porro ab reprehenderit nulla nesciunt. Earum illum eveniet doloribus possimus eaque at reiciendis quis velit amet.</p>
  251.        
  252.         <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Ipsam assumenda ut nostrum ratione adipisci porro ab reprehenderit nulla nesciunt. Earum illum eveniet doloribus possimus eaque at reiciendis quis velit amet.</p>
  253.  
  254.     </article>
  255.    
  256. </section>
  257.  
  258. <hr class="divider">
  259.  
  260. <section id="navigation-section">
  261.  
  262.     <nav id="navigation-links">
  263.         <li><a href="">link</a></li>
  264.         <li><a href="">link</a></li>
  265.         <li><a href="">link</a></li>
  266.     </nav>
  267.  
  268. <hr class="divider">
  269.  
  270. <nav id="navigation-tags">
  271.     <li><a href="">#tag</a></li>
  272.     <li><a href="">#tag</a></li>
  273.     <li><a href="">#tag</a></li>
  274. </nav>
  275.  
  276. <hr class="divider">
  277.  
  278. <nav id="social-navigation">
  279.    
  280.     <!-- find more icons at https://fontawesome.com/icons -->
  281.  
  282.     <li><a href=""><i class="fa-brands fa-instagram"></i></a></li>
  283.     <li><a href=""><i class="fa-brands fa-twitter"></i></a></li>
  284.     <li><a href=""><i class="fa-brands fa-facebook"></i></a></li>
  285.     <li><a href=""><i class="fa-brands fa-snapchat"></i></a></li>
  286.     <li><a href=""><i class="fa-brands fa-tiktok"></i></a></li>
  287.  
  288. </nav>
  289.  
  290. </section>
  291.  
  292. </main>
  293.  
  294. <!-- do not touch -->
  295. <div style="position:fixed;bottom:2rem;right:2rem;z-index:999999999999999999999!important;font-size:.7rem;letter-spacing:.03rem;"><a href="https://southcodes.tumblr.com" title="coded by southcodes" target="_blank">SC</a></div>
  296.  
  297. <!-- icons font -->
  298. <script src="https://kit.fontawesome.com/0993e30c04.js" crossorigin="anonymous"></script>
  299.  
  300. </body>
  301. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement