Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--
- - all in one page 'chaise longue' by skye southcodes.tumblr.com
- - modify as you please but please do not touch the credit
- - any errors? need help? have questions? let me know!
- southcodes.tumblr.com/inbox
- - fonts by google
- - tabs by https://www.w3schools.com/howto/howto_js_tabs.asp
- -->
- <!DOCTYPE html>
- <html>
- <head>
- <title>{title}</title>
- <meta charset="UTF-8">
- <meta name="description" content="{MetaDescription}"/>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link rel="shortcut icon" href="{favicon}">
- <link rel="alternate" type="application/rss+xml" href="{RSS}">
- <!-- fonts -->
- <link rel="preconnect" href="https://fonts.googleapis.com">
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
- <link href="https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600;1,700;1,800&family=Lora:ital,wght@0,400;0,500;1,400;1,500&display=swap" rel="stylesheet">
- <style>
- :root {
- --background:#fff;
- --text: #333;
- --links: lightblue;
- --links-hover: blue;
- --borders:#eee
- }
- *:not(ul,ol,li) {margin:0;padding:0;box-sizing: border-box;}
- p {margin:1rem 0}
- html{font-size: 14px}
- body {font: 1rem 'Karla', sans-serif;color:var(--text);background:var(--background);}
- a {text-decoration: none;color:var(--links);}
- a:hover {color:var(--links-hover);}
- b {font-weight: 600}
- hr {border:0;border-top:1px solid var(--borders);margin:auto;width: 100%;}
- ::-webkit-scrollbar-thumb:vertical {border-left:2px solid var(--links);}
- ::-webkit-scrollbar {width:6px;height:0;}
- ::-webkit-scrollbar-track-piece{margin:5px 0;}
- h1,h2,h3,h4,h5,h6 {
- font-family: 'Lora', serif;
- font-weight: 500;
- }
- /* containers */
- #container {
- display: flex;
- justify-content: center;
- align-items: center;
- width: 100%;
- height: 100vh;
- }
- main {
- max-width: 50rem;
- width: 90vw;
- }
- /* title and navigation links */
- header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- border:1px solid #eee;
- border-left:0;
- border-right:0;
- padding:1.7rem 2rem ;
- }
- header h2 {
- font-weight: 400;
- letter-spacing: .06rem ;
- font-size: 1.3rem;
- }
- header h2 a {color:var(--text)}
- #tab-navigation ul{
- display: flex;
- margin:0;padding:0;list-style: none;
- }
- #tab-navigation li{
- font-weight: 600;
- margin:0 1rem;
- cursor: pointer;
- }
- #tab-navigation li:hover {color: var(--links);}
- #tab-navigation li.active {color: var(--links);}
- /* tabs */
- #tab-container {
- display: flex;
- flex-direction: row;
- height: 30rem;
- }
- .tabcontent {
- display: none;
- height: 30rem;
- overflow: auto;
- width: 50%;
- padding: 2rem;
- animation: fadeEffect 1s;}
- @keyframes fadeEffect {from {opacity: 0;} to {opacity: 1;}}
- .tabcontent h2 {margin-bottom: 2rem;}
- /* tab image */
- .about-image{
- width: 100%;
- height: 30rem;
- display: block;
- object-fit: cover;
- }
- figure.about-image {width: 50%;}
- /* about tab */
- #about { padding: 0;}
- #blog-title {
- font-size: 2rem;
- margin:2rem;
- }
- #details ul{margin:0;padding:0;list-style: none;}
- #details li {
- padding: 1rem 1.3rem;
- border-top:1px solid var(--borders);
- }
- #details li:last-of-type {border-bottom:1px solid var(--borders);}
- #about-text {padding:2rem}
- /* contact tab */
- #contact .faq-question {
- list-style:none;
- font-weight: 600;
- margin-top: 2rem;
- text-decoration: underline;
- }
- #contact .faq-answer {
- list-style:none;
- margin: 1rem 0;
- padding-bottom: 2rem;
- border-bottom: 1px solid var(--borders);
- }
- /* navigation tab */
- #navigation * {list-style: none;margin: 0;padding: 0;}
- #navigation ul {margin-top: 2rem;}
- /* links */
- #navigation #navigation-links li {
- border-bottom: 1px solid var(--borders);
- padding: .6rem 0;
- margin-bottom: 1rem;
- }
- /* tags */
- #navigation-tags li{
- border:1px solid var(--borders);
- border-radius: 3px;
- padding: .4rem .6rem;
- display: inline-block;
- margin-right: 1rem;
- }
- /* MEDIA */
- @media only screen and (min-height:0px) and (max-height:420px) {
- #container {
- display: block;
- width: 100%;
- height: 100%;
- margin: 3rem 0;
- }
- main {
- margin: auto;
- }
- }
- </style>
- </head>
- <body>
- <section id="container">
- <main>
- <header>
- <h2><a href="/">@{name}</a></h2>
- <nav id="tab-navigation"><ul>
- <li id="defaultOpen" class="tablinks" onclick="openTab(event, 'about')">about</li>
- {block:AskEnabled}<li class="tablinks" onclick="openTab(event, 'contact')">contact</li>{/block:AskEnabled}
- <li class="tablinks" onclick="openTab(event, 'navigation')">navigation</li>
- </ul></nav>
- </header>
- <section id="tab-container">
- <figure class="about-image"><img src="SIDEBAR IMAGE URL" alt="" class="about-image"></figure>
- <!-- about tab -->
- <div id="about" class="tabcontent">
- <h1 id="blog-title">page title</h1>
- <article id="details"><ul>
- <li>name</li>
- <li>age</li>
- <li>location</li>
- </ul></article>
- <article id="about-text">
- <p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Non nemo odio cumque eaque distinctio adipisci voluptatibus possimus. Accusantium quibusdam deleniti recusandae nesciunt unde dolore voluptate quisquam, aliquam, similique reprehenderit labore?</p>
- <p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Non nemo odio cumque eaque distinctio adipisci voluptatibus possimus. Accusantium quibusdam deleniti recusandae nesciunt unde dolore voluptate quisquam, aliquam, similique reprehenderit labore?</p>
- </article>
- </div>
- <!-- about tab end -->
- <!-- contact tab -->
- {block:AskEnabled}<div id="contact" class="tabcontent">
- <h2>contact</h2>
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Eaque saepe, quis dolores vero minus a maxime est, ipsum, labore sed aut assumenda incidunt maiores! Doloremque saepe atque enim iusto aliquid.</p>
- <li class="faq-question">question</li>
- <li class="faq-answer">answer</li>
- <li class="faq-question">question</li>
- <li class="faq-answer">answer</li>
- <li class="faq-question">question</li>
- <li class="faq-answer">answer</li>
- <iframe id="ask-iframe" frameborder="0" scrolling="no" width="100%" height="300" src="https://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]-->
- </div>{/block:AskEnabled}
- <!-- contact tab end -->
- <!-- navigation tab -->
- <div id="navigation" class="tabcontent">
- <h2>navigation</h2>
- <ul id="navigation-links">
- <li><a href="">link</a></li>
- <li><a href="">link</a></li>
- <li><a href="">link</a></li>
- <li><a href="">link</a></li>
- </ul>
- <ul id="navigation-tags">
- <li><a href="">tag</a></li>
- <li><a href="">tag</a></li>
- <li><a href="">tag</a></li>
- </ul>
- </div>
- <!-- navigation tab end -->
- </section> <!-- tab container -->
- </main>
- </section> <!-- container -->
- <!-- do not touch -->
- <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>
- <script>
- function openTab(evt, tabName) {
- // Declare all variables
- var i, tabcontent, tablinks;
- // Get all elements with class="tabcontent" and hide them
- tabcontent = document.getElementsByClassName("tabcontent");
- for (i = 0; i < tabcontent.length; i++) {
- tabcontent[i].style.display = "none";
- }
- // Get all elements with class="tablinks" and remove the class "active"
- tablinks = document.getElementsByClassName("tablinks");
- for (i = 0; i < tablinks.length; i++) {
- tablinks[i].className = tablinks[i].className.replace(" active", "");
- }
- // Show the current tab, and add an "active" class to the button that opened the tab
- document.getElementById(tabName).style.display = "block";
- evt.currentTarget.className += " active";
- }
- document.getElementById("defaultOpen").click();
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement