Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--
- hide read chapter here with {select:O}
- add disable right click
- book theme commission for artsbyannz by skye southcodes.tumblr.com
- - normalize css by https://github.com/necolas
- - fonts:
- google fonts
- https://www.tunera.xyz/fonts/nyght-serif/
- -isotope filters by https://isotope.metafizzy.co/
- -->
- <!DOCTYPE html>
- <html lang="en" data-theme="light">
- <head>
- <title>{title}</title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <script>
- const storedTheme = localStorage.getItem("theme") || (window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light");
- if (storedTheme) {
- document.documentElement.setAttribute("data-theme", storedTheme);
- }
- </script>
- <link rel="shortcut icon" href="{favicon}">
- <meta name="description" content="{MetaDescription}"/>
- <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=Quicksand:wght@300..700&display=swap" rel="stylesheet">
- <!-- normalize -->
- <link href="https://necolas.github.io/normalize.css/7.0.0/normalize.css" rel="stylesheet">
- <!-- cappuccicons icons -->
- <link href="https://icons.cappuccicons.com/cpf.css" rel="stylesheet">
- <script src="http://pull.cappuccicons.com/cpf.js"></script>
- <style>
- /* colors for light mode */
- :root, html[data-theme='light'] {
- --text: #333;
- --background:white;
- --titles: #b88f80;
- --links: #b88f80;
- --links-hover: #9b6b59;
- --icons: #b88f80;
- --accents: #d1a990;
- --alternating-background:#d3aa88;
- --alternating-text:#f7f2ea;
- --alternating-text-title:#806132;
- --alternating-accents: #97613f;
- --alternating-link: #8a6631;
- --toggle-button-icon:rgb(218, 215, 215);
- --toggle-button-background:rgb(51, 49, 49);
- --light-on: block;
- --light-off: none;
- }
- /* colors for dark mode */
- :root, html[data-theme='dark'] {
- --light-on: none;
- --light-off: block;
- --text: #b9b7b7;
- --background:rgb(60, 60, 61);
- --titles: #b88f80;
- --links: #b88f80;
- --links-hover: #9b6b59;
- --icons: #776660;
- --accents: #795738;
- --alternating-background:#917660;
- --alternating-text:#d1d0ce;
- --alternating-text-title:#523e21;
- --alternating-accents: #915d3d;
- --alternating-link: #5e431a;
- --toggle-button-icon:rgb(218, 215, 215);
- --toggle-button-background:rgb(51, 49, 49);
- --light-on: none;
- --light-off: block;
- }
- .tmblr-iframe {margin:.7rem;opacity:.6;-ms-transform: scale(0.85);-webkit-transform: scale(0.85); /* Safari */transform: scale(0.85);}
- .tmblr-iframe:hover {opacity:.8;}
- ::-webkit-scrollbar-thumb:vertical {border-left:2px solid var(--borders);}
- ::-webkit-scrollbar {width:6px}
- ::-webkit-scrollbar-track-piece{margin:5px 0;}
- pre {font-family:consolas;
- white-space: pre-wrap; /* css-3 */
- white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
- white-space: -pre-wrap; /* Opera 4- */
- white-space: -o-pre-wrap; /* Opera 7 */
- word-wrap: break-word;} /* Internet Explorer 5.5+ */
- * {margin: 0;padding: 0; box-sizing: border-box;}
- p {margin:1rem 0}
- body, figure{margin:0;padding:0}
- html{font: 14px 'quicksand', sans-serif;}
- body {font-size:17px;color:var(--text);background:var(--background);font-family: 'quicksand', serif;line-height: 170%;}
- a {text-decoration: none;color:var(--links);word-break:break-word;}
- a:hover {color:var(--links-hover);}
- blockquote {margin:0;padding:0;}
- img {max-width:100%;height: auto;display: block;margin:0}
- hr {border:0;border-top:1px solid var(--borders);margin:0;}
- ol,ul,li {list-style-type: none;padding: 0;margin: 0;}
- @font-face {
- font-family: nygth-regular;
- src: url(https://static.tumblr.com/p5i0ib5/i1sspt31d/nyghtserif-regular.ttf);
- }
- @font-face {
- font-family: nygth-regular-italic;
- src: url(https://static.tumblr.com/p5i0ib5/wGispt31j/nyghtserif-regularitalic.ttf);
- }
- /* dark mode */
- html.theme-transition,
- html.theme-transition *,
- html.theme-transition *:before,
- html.theme-transition *:after {
- transition: 0s !important;
- transition-delay: 0 !important;
- }
- button.theme-toggle {
- position: fixed;
- inset:1.5rem auto auto 2rem;
- padding: .5rem;
- border: 0;
- border-radius: 100%;
- outline: none;
- cursor: pointer;
- font-size: 25px;
- color: var(--text);
- background: var(--toggle-button-background);
- }
- .theme-toggle .ph{color: var(--toggle-button-icon)}
- .light-on {display: var(--light-on);}
- .light-off {display: var(--light-off);}
- .cp-stars {
- color: var(--icons);
- margin-right: 2rem;
- }
- /* global navigation */
- #global-navigation {
- padding: 4.5rem 4rem 2.5rem;
- text-align: center;
- font-family: nygth-regular;
- font-weight: 500;
- font-size: 1.4rem;
- letter-spacing: .08rem;
- }
- #global-navigation ul li {
- display: inline-block;
- margin-right: 6rem;
- text-transform: uppercase;
- }
- #global-navigation ul li:last-of-type {margin-right: 0;}
- /* updates tab */
- #updates-button {
- border: 0;
- padding: 0;
- font: inherit;
- cursor:pointer;
- letter-spacing: inherit;
- text-transform: uppercase;
- color: var(--links);
- outline: none;
- background-color: transparent;
- }
- #updates-button:hover {color: var(--links-hover);}
- #updates-tab {
- display: none;
- position: absolute;
- inset: 5.2rem auto auto 50%;
- -ms-transform: translate(-50%, -50%);
- transform: translateX(-50%);
- width: 90vw;
- max-width: 20rem;
- padding: 1.5rem;
- border: 2px solid var(--accents);
- border-radius: 4px;
- font: 400 1.1rem 'quicksand', serif;
- text-transform: none;
- line-height: 140%;
- background-color: var(--background);
- }
- #updates-tab h4 {
- margin-top: 1rem;
- font: 500 1.7rem nygth-regular-italic;
- letter-spacing: .1rem;
- color:var(--titles);
- }
- #updates-tab span {
- padding: 0 .5rem;
- box-shadow: inset 0 -7px var(--accents);
- }
- #updates-tab hr {
- width: .8rem;
- height: .8rem;
- margin: 2rem auto;
- border: 0;
- border-radius: 100%;
- background-color: var(--accents);
- }
- #updates-tab a {font-weight: 600;}
- /* container */
- #container {
- width: 90vw;
- max-width: 70rem;
- margin: 16rem auto;
- display: flex;
- justify-content: space-between;
- flex-flow: wrap;
- }
- #read-link {
- font-weight: 400;
- font-family: 'quicksand', serif;
- }
- .chapter-span{
- margin-left: 1rem;
- }
- .read-span,.chapter-span{
- box-shadow: inset 0 -8px var(--accents);
- padding: 0 .4rem ;
- font-weight: 500;
- }
- #read-link a {
- margin-top: 1rem;
- display: block;
- }
- #misc,#characters {
- width: 100%;
- flex-shrink: 0;
- }
- /* page title */
- h1 {
- font-family: nygth-regular-italic;
- font-size: 6rem;
- color: var(--titles);
- font-weight: 400;
- line-height: 100%;
- }
- header {
- width: 100%;
- display: flex;
- margin-bottom: 12rem;
- justify-content: space-between;
- }
- header section {width: 47%;}
- /* header image */
- figure.book-image {
- width:47%;}
- img.book-image {
- width: 100%;
- }
- /* page summary */
- #summary {margin-top: 6rem;}
- #left,#right {width: 45%;}
- .page-box {
- width: 100%;
- margin-bottom: 10rem;
- font-family: 'quicksand', serif;
- }
- /* titles */
- .box-title {
- margin-bottom: 2.5rem;
- font-family: nygth-regular;
- font-size: 1.8rem;
- font-weight: 400;
- line-height: 200%;
- }
- .box-title .box-title-span {font-size: 2.5rem;}
- .page-box ul li span {
- margin-right: 1rem;
- padding: 0 .3rem;
- border-bottom: 2px solid var(--accents);
- font-weight: 600;
- letter-spacing: .02rem;
- }
- .page-box li {margin-bottom: 1rem;}
- /* navigation */
- #navigation {font-size: 1.1rem;}
- #navigation li {
- margin: 0 2rem 2rem 0;
- display: inline-block;
- }
- #navigation li a{
- padding:.5rem .7rem;
- background-color: var(--accents);
- color: var(--text);
- }
- /* progress bars */
- .progress-bar-wrapper {
- display: flex;
- justify-content: space-between;
- align-items: center;
- }
- .progress-bar-wrapper h4 {
- margin-right: 2rem;
- flex-shrink: 0;
- max-width: 35%;
- font-size: 1.4rem;
- letter-spacing: .04rem;
- font-weight: 500;
- }
- .progress-bar {
- width: 100%;
- height: 5px;
- border-radius: 4px;
- position: relative;
- border-radius: 4px;
- }
- .progress-bar-filling {
- position: absolute;
- inset: 0;
- background:var(--accents);
- border-radius: 4px;
- }
- /* characters */
- #characters {
- display: flex;
- justify-content: space-between;
- flex-flow: wrap;
- max-width: 65rem;
- margin: 5rem auto;
- }
- .character {
- width: 47%;
- margin-bottom: 7rem;
- }
- figcaption h4{
- margin-top: 1rem;
- font-size: 1.7rem;
- font-weight: 400;
- text-align: center;
- }
- figcaption h4 span{box-shadow: inset 0 -8px var(--accents);}
- #misc {margin-bottom: 0;}
- #spotify-player {
- margin-top: 15rem;
- }
- /* MEDIA */
- @media only screen and (min-width:0) and (max-width:450px) {
- #characters {
- display: block;
- width: 100%;
- }
- }
- @media only screen and (min-width:0) and (max-width:850px) {
- header {display: block;}
- figure.book-image {width:100%;}
- header section {width: 100%;}
- #left,#right {width: 100%;}
- .character {width: 100%;}
- #book-title {margin:5rem 0}
- }
- @media only screen and (min-width:0) and (max-width:1400px) {
- #global-navigation ul {
- display: flex;
- justify-content: space-evenly;
- flex-wrap:wrap;
- max-width: 75rem;
- margin: 0 auto;
- padding: 2.5rem 1.5rem 2.5rem;
- }
- #global-navigation ul li {
- margin: 0 1rem 1rem;
- }
- }
- @media only screen and (min-width:0) and (max-width:400px) {
- #global-navigation ul li {
- display:block;
- margin-right: 0;
- }
- }
- </style>
- </head>
- <body>
- <button class="theme-toggle" aria-label="toggle dark or light mode" type="button"><i class="ph ph-moon light-on" title="toggle dark mode"></i><i class="ph ph-sun light-off" title="toggle light mode"></i></button>
- <!-- global navigation -->
- <nav id="global-navigation"><ul>
- <li><a href="/">home</a></li>
- <li><a href="/ask">inbox</a></li>
- <li><a href="/archive">archive</a></li>
- <li><a href="LINK URL">books</a></li>
- <!-- open updates tab -->
- <li style="position: relative;"><button id="updates-button">updates</button>
- <!-- updates tab content -->
- <div id="updates-tab">
- <h4><span>RAIN ON FIRE</span></h4>
- <p>chapter 10 is updated. <a href="#">read the new chapter here.</a></p>
- <!-- updates divider -->
- <hr>
- <h4><span>rain on fire</span></h4>
- <p>chapter 10 is updated. <a href="#">read the new chapter here.</a></p>
- </div>
- </li>
- </ul></nav>
- <main id="container">
- <header>
- <!-- book image -->
- <figure class="book-image"><img src="https://mail.google.com/mail/u/0?ui=2&ik=b5020bf892&attid=0.13&permmsgid=msg-f:1821410995498506444&th=1946f3a670add8cc&view=fimg&fur=ip&permmsgid=msg-f:1821410995498506444&sz=s0-l75-ft&attbid=ANGjdJ-E7ae0AJkP3eCXPZ1Ov2CTfgF8g0sVaawWi7H6d8VXoDRS_vxVs92ldP4V0LJzsAUu1ICpccb6R8_7dwJ9wwRoqGNApihWuZFwEfKmD_85f5lDd7EJ6Xe0Gi0&disp=emb&realattid=3056BC86-BA37-4F19-8135-0935FB242C24&zw" alt="" class="book-image"></figure>
- <section>
- <!-- book title -->
- <h1 id="book-title">book title</h1>
- <!-- read update link -->
- <h2 id="read-link">
- new update: <span class="chapter-span">chapter one</span>
- <a href=""><span class="read-span">read here</span></a>
- </h2>
- <!-- book summary -->
- <article id="summary" class="page-box">
- <p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Ducimus sint doloremque accusamus vero adipisci ex quae voluptatibus tenetur ut id modi ratione, distinctio quis veniam molestias eum animi inventore provident.</p>
- <p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Ducimus sint doloremque accusamus vero adipisci ex quae voluptatibus tenetur ut id modi ratione, distinctio quis veniam molestias eum animi inventore provident.</p>
- </article>
- </section>
- </header>
- <section id="left">
- <!-- tags and ratings -->
- <section id="tags-ratings">
- <!-- details start -->
- <article class="page-box" class="tags-and-tropes">
- <h3 class="box-title"><span class="box-title-span"><i class="cp cp-stars"></i>
- details
- </span></h3>
- <ul>
- <li><span>genre</span> genre</li>
- <li><span>tropes</span> tropes</li>
- <li><span>trigger warnings</span> trigger warnings</li>
- </ul>
- </article>
- <!-- details end-->
- <!-- ratings start -->
- <article class="page-box">
- <h3 class="box-title"><span class="box-title-span"><i class="cp cp-stars"></i>
- ratings
- </span></h3>
- <!-- progress bar start -->
- <li class="progress-bar-wrapper"><h4>title</h4>
- <div class="progress-bar">
- <!-- change number to fill the bar -->
- <div class="progress-bar-filling" style="width:50%"></div>
- </div></li>
- <!-- progress bar end -->
- <!-- progress bar start -->
- <li class="progress-bar-wrapper"><h4>title</h4>
- <div class="progress-bar">
- <!-- change number to fill the bar -->
- <div class="progress-bar-filling" style="width:50%"></div>
- </div></li>
- <!-- progress bar end -->
- <!-- progress bar start -->
- <li class="progress-bar-wrapper"><h4>title</h4>
- <div class="progress-bar">
- <!-- change number to fill the bar -->
- <div class="progress-bar-filling" style="width:100%"></div>
- </div></li>
- <!-- progress bar end -->
- </article>
- </section>
- <!-- tags-ratings column end -->
- </section>
- <section id="right">
- <!-- tags and tropes start -->
- <article class="page-box" class="tags-and-tropes">
- <h3 class="box-title"><span class="box-title-span"><i class="cp cp-stars"></i>
- tags and tropes
- </span></h3>
- <ul>
- <li><span>genre</span> genre</li>
- <li><span>tropes</span> tropes</li>
- <li><span>trigger warnings</span> trigger warnings</li>
- </ul>
- </article>
- <!-- tags and tropes end -->
- <!-- navigation -->
- <article id="navigation" class="page-box">
- <h3 class="box-title"><span class="box-title-span">
- <i class="cp cp-stars"></i>navigation</span></h3>
- <ul>
- <li><a href="">link</a></li>
- <li><a href="">link lorem</a></li>
- <li><a href="">link</a></li>
- <li><a href="">link</a></li>
- </ul>
- </article>
- </section>
- <!-- right end -->
- <!-- characters start -->
- <article id="characters" class="page-box">
- <!-- character image -->
- <figure class="character"><img src="https://images.unsplash.com/photo-1610050062210-afc2df76cb55?q=80&w=1470&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" alt="" class="character-image">
- <figcaption><h4><span>character name</span></h4></figcaption>
- </figure>
- <!-- character image -->
- <figure class="character"><img src="https://images.unsplash.com/photo-1610050062210-afc2df76cb55?q=80&w=1470&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" alt="" class="character-image">
- <figcaption><h4><span>character name</span></h4></figcaption>
- </figure>
- <!-- character image -->
- <figure class="character"><img src="https://images.unsplash.com/photo-1610050062210-afc2df76cb55?q=80&w=1470&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" alt="" class="character-image">
- <figcaption><h4><span>character name</span></h4></figcaption>
- </figure>
- </article>
- <!-- characters end -->
- <!-- misc content -->
- <article id="misc" class="page-box">
- <h3 class="box-title"><span class="box-title-span">
- <i class="cp cp-stars"></i>
- misc
- </span></h3>
- <ul>
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Nostrum similique veniam accusantium minus, corrupti eveniet consequuntur! Laboriosam, placeat omnis? Sequi impedit temporibus vel, officiis explicabo excepturi. Eius velit rem distinctio.</p>
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Nostrum similique veniam accusantium minus, corrupti eveniet consequuntur! Laboriosam, placeat omnis? Sequi impedit temporibus vel, officiis explicabo excepturi. Eius velit rem distinctio.</p>
- </article>
- <!-- spotify iframe -->
- <iframe id="spotify-player" style="border-radius:12px" src="https://open.spotify.com/embed/track/3JoNcUUiRmDHMXmvNilMu4?utm_source=generator" width="100%" height="352" frameBorder="0" allowfullscreen="" allow="autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture" loading="lazy"></iframe>
- </main>
- <!-- 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 src='https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.2/jquery.min.js'></script>
- <!-- icons font -->
- <script src="https://unpkg.com/@phosphor-icons/web"></script>
- <!-- isotope filters -->
- <script src='https://npmcdn.com/isotope-layout@3/dist/isotope.pkgd.js'></script>
- <script>
- $(window).load(function(){
- var $container = $('#main-wrapper');
- $container.isotope({
- filter: '*',
- animationOptions: {
- duration: 750,
- easing: 'linear',
- queue: false
- }
- });
- $('#header a').click(function(){
- $('#header .current').removeClass('current');
- $(this).addClass('current');
- var selector = $(this).attr('data-filter');
- $container.isotope({
- filter: selector,
- animationOptions: {
- duration: 750,
- easing: 'linear',
- queue: false
- }
- });
- return false;
- });
- });
- // updates tab popup
- $("#updates-button").click(function(){
- $("#updates-tab").fadeToggle();
- });
- </script>
- <script>
- const themeToggleButtons = document.querySelectorAll(".theme-toggle");
- themeToggleButtons.forEach((btn) => {
- btn.addEventListener("click", function () {
- // Add theme-transition class for smooth transitions
- document.documentElement.classList.add("theme-transition");
- // Retrieve the current theme and determine the target theme
- let currentTheme = document.documentElement.getAttribute("data-theme");
- let targetTheme = (currentTheme === "light") ? "dark" : "light";
- // Remove theme-transition class after a short delay
- window.setTimeout(function () {
- document.documentElement.classList.remove("theme-transition");
- }, 50);
- // Set the data-theme attribute and store in local storage
- document.documentElement.setAttribute("data-theme", targetTheme);
- localStorage.setItem("theme", targetTheme);
- });
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement