Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--
- - book page 'lyoko' [revamp of 'garage kids'] 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
- - normalize css by https://github.com/necolas
- - fonts by google
- - icon font by https://fontawesome.com/icons
- - pop ups by http://jsfiddle.net/WGPhG/1123/
- -->
- <!DOCTYPE html>
- <html>
- <head>
- <title>{title}</title>
- <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}">
- <meta name="description" content="{MetaDescription}"/>
- <meta charset="UTF-8">
- <!-- 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,500;0,600;1,400;1,500;1,600&family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap" rel="stylesheet">
- <!-- normalize css -->
- <link rel="stylesheet" type="text/css" href="https://necolas.github.io/normalize.css/8.0.1/normalize.css">
- <style>
- :root {
- --background:#fafafa;
- --inner-background: #fff;
- --text:#333;
- --links:rgb(230, 173, 216);
- --links-hover:rgb(148, 19, 148);
- --borders: #eee;
- --lighter-text: #999;
- --icons: pink
- }
- .tmblr-iframe {z-index:9999999999999999!important;margin:8rem .7rem .7rem;opacity:.6;-ms-transform: scale(0.85); /* IE 9 */-webkit-transform: scale(0.85); /* Safari */transform: scale(0.85);}
- .tmblr-iframe:hover {opacity:.8;}
- ::-webkit-scrollbar-thumb:vertical {border-left:2px solid var(--links)}
- ::-webkit-scrollbar {width:6px;height:0;}
- ::-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+ */
- background:#fafafa;
- border:1px solid var(--borders);
- padding:1rem;
- }
- body, figure{margin:0;padding:0}
- html{font: 14px 'Karla', sans-serif;}
- body {font-size:1rem;color:var(--text);background:var(--background)}
- a {text-decoration: none;color:var(--links);word-break:break-word;}
- a:hover {color:var(--links-hover);}
- blockquote {margin:0;padding:0;}
- blockquote blockquote {border-left:1px solid var(--borders);padding:.1rem 0 .1rem .7rem;}
- img {max-width:100%;height: auto;display: block;margin: 0}
- hr {border:0;border-top:1px solid var(--borders);margin:1rem 0;}
- video { max-width:100%;}
- /* global */
- * {box-sizing: border-box;}
- nav * {list-style-type:none;margin:0;padding:0;}
- /* top bar */
- #topbar {
- position: sticky;top:0;left:0;right:0;
- background-color: var(--inner-background);
- border-bottom: 1px solid var(--borders);
- padding: 1rem 3rem;
- display: flex;
- flex-flow: row wrap;
- align-items: center;
- justify-content: space-between;
- z-index: 99999;
- }
- #topbar-inside {
- display: flex;
- flex-flow: row wrap;
- align-items: center;
- }
- /* icon image */
- figure.icon-image {
- width: 5rem;
- height: 5rem;
- margin-right: 3rem;
- border: 7px solid var(--inner-background);
- outline: 1px solid var(--borders);
- border-radius: 100%;
- }
- img.icon-image {
- width: 100%;
- height: 100%;
- object-fit: cover;
- border-radius: 100%;
- }
- /* page title */
- #page-title {
- font: 600 1.5rem 'Montserrat', sans-serif;
- margin-right: 1rem;
- text-transform: uppercase;
- }
- /* header username */
- #username {
- font: 400 .9rem 'Montserrat', sans-serif;
- font-style: italic;
- letter-spacing: .05rem;
- color:var(--lighter-text)
- }
- /* header navigation */
- #topbar-navigation {
- text-align: right;
- margin:1rem 0 ;
- font-weight: 600;
- }
- #topbar-navigation li{
- display: inline-block;
- margin:0;
- font-size: 1rem;
- text-transform: uppercase;
- line-height: 170%;
- letter-spacing: .05rem;
- }
- #topbar-navigation li::after {
- vertical-align: middle;
- font-family: 'Font Awesome 5 Free';
- content:'\f111';
- font-size: .4rem;
- margin:0 1.5rem;
- font-weight: 900;
- color: var(--icons);
- border: 2px solid var(--inner-background);
- outline: 1px solid var(--borders);
- border-radius: 100%;
- }
- #topbar-navigation li:last-of-type:after {display: none;}
- /* book content */
- main {
- width: 90vw;
- max-width: 45rem;
- margin:5rem auto
- }
- /* book header images */
- .book-image{
- width: 100%;
- object-fit: cover;
- object-position: 50% 90%;
- }
- #book-icon {
- width: 13rem;
- height: 13rem;
- object-fit: cover;
- border-radius: 100%;
- margin-top: -7rem;
- margin-right: 2rem;
- position: relative;
- z-index: 9999;
- border:10px solid var(--inner-background);
- outline: 1px solid var(--borders);
- }
- /* characters */
- #characters-wrapper {margin:2rem 0}
- /* character icon */
- figure.character-icon {
- width: 8rem;
- aspect-ratio: 1 / 1;
- display: inline-block;
- margin:1.5rem 1rem;
- cursor: pointer;
- vertical-align: bottom;
- position: relative;
- transition-duration: .2s;
- }
- img.character-icon {
- width: 8rem;
- aspect-ratio: 1 / 1;
- border:8px solid var(--inner-background);
- outline: 1px solid var(--borders);
- }
- /* character icon name */
- .icon-character-name {
- font:600 .85rem 'Montserrat', sans-serif;
- margin:0;
- text-align: center;
- position: absolute;
- left:0;bottom:8px;right:0;
- background-color: rgba(255,255,255,.7);
- padding:8px 10px;
- overflow: auto;
- max-height: 7.5rem;
- text-transform: uppercase;
- line-height: 140%;
- transition-duration: .2s;
- }
- figure.character-icon:hover .icon-character-name{
- opacity: 0;
- transition-duration: .2s;
- }
- /* characters pop ups */
- .character-popup {
- display: none;
- position:fixed;top:0px;left:0px;bottom:0px;right:0px;
- margin:auto;
- background-color: var(--inner-background);
- border:1px solid var(--borders);
- z-index:100000000000000000;
- width:90vw;
- max-width: 45rem;
- height:80vh;
- max-width: 45rem;
- box-shadow: 7px 7px 7px #eee;
- }
- .character-wrapper {
- width:90vw;
- max-width: 45rem;
- height:80vh;
- max-width: 45rem;
- overflow: auto;
- padding: 2rem;
- }
- .close-popup {
- position: absolute;top:1rem;right:1rem;
- cursor:pointer;
- margin:0;
- font-size: 1.6rem;
- color:var(--icons)
- }
- /* pop up character name */
- .character-name {
- margin:0 0;
- vertical-align: middle;
- font-family: 'Montserrat', sans-serif;
- font-weight: 600;
- }
- .character-name:before {
- content: '\f111';
- font-family: 'Font Awesome 5 Free';
- font-weight: 900;
- margin:0 1rem 0 0;
- font-size: 1rem;
- border:3px solid var(--inner-background);
- outline:1px solid var(--borders);
- border-radius: 100%;
- color:var(--icons);
- vertical-align: middle;
- }
- /* pop up character subtitle */
- .character-subtitle {
- margin:.7rem 0 1rem;
- font:400 1.1rem 'Karla', sans-serif;
- font-style: italic;
- color:var(--lighter-text);
- letter-spacing: .07rem;
- padding-left: 2.2rem;
- position: relative;
- }
- .character-subtitle:before {
- content: '';
- position: absolute;left:0;top:50%;
- width:1.5rem;
- height:1px;
- background:var(--lighter-text);
- }
- .character-image-details-wrapper {
- display: flex;
- flex-flow: row wrap;
- justify-content: space-between;
- margin-top: 4rem;
- }
- /* pop up character image */
- figure.character-image{
- width:18rem;
- height: 18rem;
- border:12px solid var(--inner-background);
- outline: 1px solid var(--borders);
- }
- img.character-image{
- width: 100%;
- height: 100%;
- object-fit: cover;
- }
- /* character details */
- .character-details {
- width: calc(100% - 20rem);
- height:18rem;
- padding: 1rem;
- overflow:auto;
- list-style: none;
- }
- .character-details li{
- margin-bottom:1.3rem
- }
- .character-details li:before {
- content: '\f111';
- font-family: 'Font Awesome 5 Free';
- font-weight: 900;
- margin-right: 1rem;
- font-size: .4rem;
- border:3px solid var(--inner-background);
- outline:1px solid var(--borders);
- border-radius: 100%;
- color:var(--icons);
- vertical-align: middle;
- }
- /* character about */
- .character-about {
- margin:3rem 2rem;
- /* letter-spacing: .02rem; */
- line-height: 145%;
- }
- /* progress bars and stats */
- .links-and-stats-wrapper {
- display: flex;
- flex-flow: row wrap;
- justify-content:space-between;
- }
- .nav-stats-divider {
- width:1px;
- background-color: var(--borders);
- height:12rem
- }
- /* character navigation */
- .character-navigation {
- width:49%;
- flex-grow: 1;
- height:12rem;
- overflow: auto;
- padding: 1rem;
- }
- /* tags */
- .character-tags {
- margin-top: 1.5rem;
- }
- .character-tags li{
- display: inline-block;
- margin:1rem 1rem 1rem 0;
- padding:.5rem;
- border:1px solid #eee;
- }
- /* links */
- .character-links {
- margin-bottom: 1.5rem;
- }
- .character-links li{
- margin:1rem 0;
- border-bottom: 1px solid #eee;
- padding-bottom: 1rem;
- }
- .character-links li:before{
- content: '\f111';
- font-family: 'Font Awesome 5 Free';
- font-weight: 900;
- margin-right: 1rem;
- font-size: .4rem;
- border:2px solid var(--inner-background);
- outline:1px solid var(--borders);
- color: var(--icons);
- border-radius: 100%;
- font-style: normal;
- }
- /* stats */
- .stats-wrapper {
- width:49%;
- flex-grow: 1;
- height:12rem;
- overflow: auto;
- list-style: none;
- padding: 0 2rem;
- }
- .stat-container {
- margin: 2rem 0;
- }
- .stats-name {
- font:600 .9rem 'Montserrat', sans-serif;
- text-transform: uppercase;
- margin-bottom: 1rem;
- }
- .stat-square {
- border-radius: 100%;
- width:1.1rem;
- max-width: 10%;
- background-color: #eee;
- aspect-ratio: 1 / 1;
- border:2px solid white;
- display: inline-block;}
- .stat-fill-1 .stat-square:nth-of-type(1),
- .stat-fill-2 .stat-square:nth-of-type(-n+2),
- .stat-fill-3 .stat-square:nth-of-type(-n+3),
- .stat-fill-4 .stat-square:nth-of-type(-n+4),
- .stat-fill-5 .stat-square:nth-of-type(-n+5),
- .stat-fill-6 .stat-square:nth-of-type(-n+6),
- .stat-fill-7 .stat-square:nth-of-type(-n+7),
- .stat-fill-8 .stat-square:nth-of-type(-n+8),
- .stat-fill-9 .stat-square:nth-of-type(-n+9),
- .stat-fill-10 .stat-square:nth-of-type(-n+10)
- {background:var(--icons);}
- /* gallery */
- .gallery {
- margin-top:2rem;
- display: flex;
- flex-flow: row nowrap;
- justify-content: space-between;
- }
- /* gallery images */
- figure.gallery-image {
- margin:1rem 2rem;
- border:7px solid var(--inner-background);
- outline:1px solid var(--borders);
- aspect-ratio: 1 / 1;
- width: 8rem;
- }
- img.gallery-image {
- width: 100%;
- object-fit: cover;
- aspect-ratio: 1 / 1;
- }
- /* music */
- .music-section {
- margin-top: 4rem;
- padding:0 2rem 2rem;
- }
- .music-section .song-image{
- width:6rem;
- height:6rem;
- object-fit: cover;
- border-radius: 100%;
- margin-right: 2rem;
- }
- .music-section div {margin:1rem 0}
- .song-name {
- font:700 1.2rem 'Montserrat', sans-serif;
- text-transform: uppercase;
- letter-spacing: .03rem;
- }
- .song-name:after {
- content: ' — ';
- font-weight: 400;
- color: var(--lighter-text);
- }
- .song-artist {
- text-transform: uppercase;
- font:600 .9rem 'Montserrat', sans-serif;
- letter-spacing: .04rem;
- font-style: italic;
- }
- .song-album {
- font-size: .9rem;
- color: var(--lighter-text);
- font-style: italic;
- letter-spacing: .03rem;
- }
- /* info wrapper */
- #info-wrapper {
- list-style: none;
- background-color: white;
- padding: 1rem;
- border: 1px solid #eee;
- }
- #info-wrapper li {
- margin:1.3rem;
- display: inline-block;
- color: var(--lighter-text);
- font-style: italic;
- letter-spacing: .04rem;
- }
- #info-wrapper li:before {
- content: '\f111';
- font-family: 'Font Awesome 5 Free';
- font-weight: 900;
- margin-right: 1rem;
- font-size: .4rem;
- border:2px solid var(--inner-background);
- outline:1px solid var(--borders);
- color: var(--icons);
- border-radius: 100%;
- font-style: normal;
- }
- .info-title {
- font-weight: 600;
- position: relative;
- margin-right: 4rem;
- color: var(--text);
- font-style: normal;
- letter-spacing: 0;
- text-transform: uppercase;
- }
- .info-title:after {
- content: '';
- position: absolute;right:-3rem;top:50%;
- width:2rem;
- height: 1px;
- vertical-align: middle;
- background-color: var(--borders);
- }
- /* book content */
- #book-content {
- border: 1px solid var(--borders);
- padding: 1rem 2rem;
- background-color: var(--inner-background);
- margin:2rem auto
- }
- .chapter-divider {
- width:80%;
- max-width: 25rem;
- margin:5rem auto
- }
- /* book title */
- #book-title {
- font-size: 2.3rem;
- text-align: center;
- text-transform: uppercase;
- font-family: 'Montserrat', sans-serif;
- margin:3rem 0 0rem;
- line-height: 175%;
- font-weight: 600;
- }
- #book-title span{
- box-shadow: inset 0 -15px pink;
- padding:0 .6rem 0
- }
- /* author */
- #author {
- text-align: center;
- font-style: italic;
- letter-spacing: .04rem;
- font-weight: 500;
- }
- #author:before {
- content:'— ';
- }
- #author:after {
- content:' —';
- }
- /* book subtitle */
- #book-subtitle {
- text-align: center;
- color:var(--lighter-text);
- font-size: .9rem;
- letter-spacing: .04rem;
- margin-top: 2rem;
- }
- /* book chapter */
- .book-chapter {
- margin:7rem 0 5rem;
- font-size:1.1rem;
- letter-spacing:.03rem;
- line-height:130%;
- }
- /* chapter title */
- .chapter-title{
- text-align: center;
- font-size: 1.3rem;
- margin-bottom: 2rem;
- font-family: 'Montserrat', sans-serif;
- text-transform: uppercase;
- letter-spacing: .04rem;
- font-weight: 600;
- }
- /* chapter subtitle */
- .chapter-subtitle {
- font-size: 1rem;
- font-style: italic;
- color:var(--lighter-text);
- letter-spacing: .05rem;
- margin:0 0 3rem;
- }
- /* faq */
- #faq-wrapper {
- width: 90vw;
- max-width: 45rem;
- margin:5rem auto;
- background-color: var(--inner-background);
- border: 1px solid var(--borders);
- padding: 1rem 2rem;
- line-height:130%;
- }
- #faq-wrapper p {
- margin:0;
- padding:1rem 0
- }
- .faq-divider {
- width: 85%;
- max-width: 25rem;
- margin:3rem auto
- }
- /* faq note */
- #faq-note {
- margin-bottom: 2rem;
- }
- #faq-note li,#faq-note ul{list-style: none;margin:0;padding:0}
- #faq-note li {margin:1rem}
- #faq-note li:before {
- vertical-align: middle;
- font-family: 'Font Awesome 5 Free';
- content:'\f111';
- font-size: .4rem;
- margin:0 1rem 0 0;
- font-weight: 900;
- color: var(--icons);
- border: 2px solid var(--inner-background);
- outline: 1px solid var(--borders);
- border-radius: 100%;
- }
- /* faq accordion */
- /* faq question */
- .ui-accordion-header {
- margin-bottom: 1rem;
- font-weight: 600;
- font-size: 1.1rem;
- cursor: pointer;
- padding:1rem ;
- border: 1px solid var(--borders);
- background-color: var(--background);
- }
- /* faq answer */
- .ui-accordion-content {
- padding:.5rem 1rem 3rem;
- }
- .ui-accordion-content:last-of-type {
- border:0
- }
- #accordion .fa-envelope,#accordion .fa-share {
- color: var(--icons);
- font-size: 1.4rem;
- font-weight: 900;
- margin-right: 1rem;
- }
- /* other */
- #go-to-top {
- position: fixed;right:2rem;bottom:4rem;
- display: none;
- font-size: 1.3rem;
- }
- .responsive-divider {
- display: none;
- }
- /* MEDIA */
- @media only screen and (min-width:0px) and (max-width:600px) {
- .responsive-divider {
- display: block;
- }
- .character-name {
- margin-bottom: 1rem;
- }
- .character-subtitle {
- margin-bottom: 2rem;
- }
- figure.character-image{
- width:18rem;
- height: 18rem;
- border:12px solid var(--inner-background);
- outline: 1px solid var(--borders);
- margin-bottom: 2rem;
- margin-top:1rem;
- }
- img.character-image{
- width: 100%;
- height: 100%;
- object-fit: cover;
- }
- .character-image-details-wrapper {
- display: flex;
- flex-flow: row wrap;
- justify-content: space-between;
- margin-top: 0rem;
- }
- .character-details {
- width: 100%;
- height:100%;
- padding: 1rem;
- overflow:auto;
- list-style: none;
- margin-bottom: 0;
- }
- .character-about {
- margin:3rem 0 2rem;
- }
- .links-and-stats-wrapper {
- display: block;
- }
- .stats-wrapper {
- width:100%;
- flex-grow: 1;
- height:100%;
- overflow: auto;
- list-style: none;
- padding: 0 2rem;
- }
- .nav-stats-divider {
- display: none;
- }
- .character-navigation {
- width:100%;
- flex-grow: 1;
- height:100%;
- overflow: auto;
- padding: 1rem;
- }
- }
- </style>
- </head>
- <body id="top">
- <header id="topbar">
- <div id="topbar-inside">
- <!-- topbar icon -->
- <figure class="icon-image"><img src="topbar icon image url" alt="" class="icon-image"></figure>
- <!-- page title -->
- <h1 id="page-title">{title}</h1>
- <!-- username -->
- <h2 id="username">@{name}</h2>
- </div>
- <!-- topbar navigation -->
- <nav id="topbar-navigation">
- <!-- this link will scroll down to the faq section -->
- <li><a class="anchor-link" href="#faq-wrapper">faq</a></li>
- <li><a href="">link</a></li>
- <li><a href="">link</a></li>
- <li><a href="">link</a></li>
- </nav>
- </header>
- <main>
- <!-- main header image -->
- <figure class="book-image"><img src="header image" alt="" class="book-image"/></figure>
- <!-- header icon -->
- <img src="header icon image url" id="book-icon" align="right"/>
- <!-- characters wrapper start -->
- <section id="characters-wrapper">
- <!-- character start -->
- <!-- character icon start -->
- <figure class="character-icon" onClick="openPopup(this);">
- <h3 class="icon-character-name">
- <!-- character icon name -->
- character name
- </h3>
- <!-- character icon image -->
- <img src="character icon image" alt="" class="character-icon">
- </figure>
- <!-- character icon end -->
- <!-- character pop up start-->
- <div class="character-popup"><i onclick="closePopup();" class="fa-solid fa-xmark close-popup"></i><div class="character-wrapper">
- <!-- character pop up name -->
- <h1 class="character-name">character name</h1>
- <!-- character pop up subtitle -->
- <h2 class="character-subtitle">character subtitle</h2>
- <!-- image and details start -->
- <div class="character-image-details-wrapper">
- <!-- character image -->
- <figure class="character-image"><img src="character image" alt="" class="character-image"></figure>
- <!-- character details start -->
- <article class="character-details">
- <li>item</li>
- <li>item</li>
- <li>item</li>
- </article>
- <!-- character details end -->
- </div>
- <!-- image and details end -->
- <!-- show a divider in responsive layout -->
- <hr class="responsive-divider">
- <!-- character about start -->
- <article class="character-about">
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorum porro harum impedit accusamus explicabo quas. Consequatur, magni minus! Sunt quam eum ea incidunt accusamus quia consequatur! Error architecto laudantium quas?</p>
- </article>
- <!-- character about end -->
- <!-- links and stats wrapper start -->
- <section class="links-and-stats-wrapper">
- <!-- character links and tags start -->
- <article class="character-navigation">
- <nav class="character-links">
- <!-- character links -->
- <li><a href="">link</a></li>
- <li><a href="">link</a></li>
- <li><a href="">link</a></li>
- </nav>
- <nav class="character-tags">
- <!-- character tags -->
- <li><a href="">tag </a></li>
- <li><a href="">tag</a></li>
- <li><a href="">tag</a></li>
- </nav>
- </article>
- <!-- character links and tags end -->
- <!-- divider between the navigation and the stats -->
- <hr class="nav-stats-divider">
- <!-- stats start -->
- <article class="stats-wrapper">
- <li class="stat-container">
- <!-- stat name -->
- <div class="stats-name">stat name 1</div>
- <!-- change number of 'stat-fill-2' to fill the bar-->
- <div class="stats-value stat-fill-2"><div class="stat-square"></div><div class="stat-square"></div><div class="stat-square"></div><div class="stat-square"></div><div class="stat-square"></div><div class="stat-square"></div><div class="stat-square"></div><div class="stat-square"></div><div class="stat-square"></div><div class="stat-square"></div></div>
- </li>
- <li class="stat-container">
- <!-- stat name -->
- <div class="stats-name">stat name 2</div>
- <!-- change number of 'stat-fill-4' to fill the bar-->
- <div class="stats-value stat-fill-4"><div class="stat-square"></div><div class="stat-square"></div><div class="stat-square"></div><div class="stat-square"></div><div class="stat-square"></div><div class="stat-square"></div><div class="stat-square"></div><div class="stat-square"></div><div class="stat-square"></div><div class="stat-square"></div></div>
- </li>
- </article>
- <!-- stats end -->
- </section>
- <!-- progress bar and stats wrapper end -->
- <!-- gallery start -->
- <article class="gallery">
- <figure class="gallery-image"><img src="gallery image url" alt="" class="gallery-image"></figure>
- <figure class="gallery-image"><img src="gallery image url" alt="" class="gallery-image"></figure>
- <figure class="gallery-image"><img src="gallery image url" alt="" class="gallery-image"></figure>
- </article>
- <!-- gallery end -->
- <!-- music section start -->
- <article class="music-section">
- <!-- song image -->
- <img class="song-image" src="music cover image url" align="left"></img>
- <!-- song name -->
- <span class="song-name">song name</span>
- <!-- song artist -->
- <div class="song-artist">artist</div>
- <!-- song album -->
- <div class="song-album">album</div>
- </article>
- <!-- music section end -->
- </div></div>
- <!-- character pop up end -->
- <!-- character end -->
- <!-- character start -->
- <!-- character icon start -->
- <figure class="character-icon" onClick="openPopup(this);">
- <h3 class="icon-character-name">
- <!-- character icon name -->
- character name
- </h3>
- <!-- character icon image -->
- <img src="character icon image" alt="" class="character-icon">
- </figure>
- <!-- character icon end -->
- <!-- character pop up start-->
- <div class="character-popup"><i onclick="closePopup();" class="fa-solid fa-xmark close-popup"></i><div class="character-wrapper">
- <!-- character pop up name -->
- <h1 class="character-name">character name</h1>
- <!-- character pop up subtitle -->
- <h2 class="character-subtitle">character subtitle</h2>
- <!-- image and details start -->
- <div class="character-image-details-wrapper">
- <!-- character image -->
- <figure class="character-image"><img src="character image" alt="" class="character-image"></figure>
- <!-- character details start -->
- <article class="character-details">
- <li>item</li>
- <li>item</li>
- <li>item</li>
- </article>
- <!-- character details end -->
- </div>
- <!-- image and details end -->
- <!-- show a divider in responsive layout -->
- <hr class="responsive-divider">
- <!-- character about start -->
- <article class="character-about">
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorum porro harum impedit accusamus explicabo quas. Consequatur, magni minus! Sunt quam eum ea incidunt accusamus quia consequatur! Error architecto laudantium quas?</p>
- </article>
- <!-- character about end -->
- <!-- links and stats wrapper start -->
- <section class="links-and-stats-wrapper">
- <!-- character links and tags start -->
- <article class="character-navigation">
- <nav class="character-links">
- <!-- character links -->
- <li><a href="">link</a></li>
- <li><a href="">link</a></li>
- <li><a href="">link</a></li>
- </nav>
- <nav class="character-tags">
- <!-- character tags -->
- <li><a href="">tag </a></li>
- <li><a href="">tag</a></li>
- <li><a href="">tag</a></li>
- </nav>
- </article>
- <!-- character links and tags end -->
- <!-- divider between the navigation and the stats -->
- <hr class="nav-stats-divider">
- <!-- stats start -->
- <article class="stats-wrapper">
- <li class="stat-container">
- <!-- stat name -->
- <div class="stats-name">stat name 1</div>
- <!-- change number of 'stat-fill-2' to fill the bar-->
- <div class="stats-value stat-fill-2"><div class="stat-square"></div><div class="stat-square"></div><div class="stat-square"></div><div class="stat-square"></div><div class="stat-square"></div><div class="stat-square"></div><div class="stat-square"></div><div class="stat-square"></div><div class="stat-square"></div><div class="stat-square"></div></div>
- </li>
- <li class="stat-container">
- <!-- stat name -->
- <div class="stats-name">stat name 2</div>
- <!-- change number of 'stat-fill-4' to fill the bar-->
- <div class="stats-value stat-fill-4"><div class="stat-square"></div><div class="stat-square"></div><div class="stat-square"></div><div class="stat-square"></div><div class="stat-square"></div><div class="stat-square"></div><div class="stat-square"></div><div class="stat-square"></div><div class="stat-square"></div><div class="stat-square"></div></div>
- </li>
- </article>
- <!-- stats end -->
- </section>
- <!-- progress bar and stats wrapper end -->
- <!-- gallery start -->
- <article class="gallery">
- <figure class="gallery-image"><img src="gallery image url" alt="" class="gallery-image"></figure>
- <figure class="gallery-image"><img src="gallery image url" alt="" class="gallery-image"></figure>
- <figure class="gallery-image"><img src="gallery image url" alt="" class="gallery-image"></figure>
- </article>
- <!-- gallery end -->
- <!-- music section start -->
- <article class="music-section">
- <!-- song image -->
- <img class="song-image" src="music cover image url" align="left"></img>
- <!-- song name -->
- <span class="song-name">song name</span>
- <!-- song artist -->
- <div class="song-artist">artist</div>
- <!-- song album -->
- <div class="song-album">album</div>
- </article>
- <!-- music section end -->
- </div></div>
- <!-- character pop up end -->
- <!-- character end -->
- </section>
- <!-- characters wrapper end -->
- <div id="info-wrapper">
- <!-- book info -->
- <li><span class="info-title">title</span> value</li>
- <li><span class="info-title">title</span> value</li>
- <li><span class="info-title">title</span> value</li>
- <li><span class="info-title">title</span> value</li>
- <li><span class="info-title">triggers</span> violence, substance abuse, death, sex</li>
- </div>
- <!-- book start -->
- <section id="book-content">
- <!-- book title -->
- <h1 id="book-title"><span>book title</span></h1>
- <!-- book author -->
- <p id="author">author</p>
- <!-- book subtitle -->
- <div id="book-subtitle">
- <p>subtitle</p>
- </div>
- <!-- start book chapter -->
- <article class="book-chapter">
- <!-- chapter title -->
- <h1 class="chapter-title">chapter title 1</h1>
- <!-- chapter subtitle -->
- <div class="chapter-subtitle">
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Illo voluptatum nemo inventore veritatis.
- </p>
- </div>
- <!-- book content -->
- <div class="chapter-content">
- <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Debitis possimus quam beatae illum aspernatur, incidunt excepturi obcaecati quis officia ipsum, natus necessitatibus velit ab. Neque, beatae quis. Iste, ea eligendi!</p>
- <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Debitis possimus quam beatae illum aspernatur, incidunt excepturi obcaecati quis officia ipsum, natus necessitatibus velit ab. Neque, beatae quis. Iste, ea eligendi!</p>
- </div>
- </article>
- <!-- line dividing chapters -->
- <hr class="chapter-divider">
- <article class="book-chapter">
- <!-- chapter title -->
- <h1 class="chapter-title">chapter title 2</h1>
- <!-- chapter subtitle -->
- <div class="chapter-subtitle">
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Illo voluptatum nemo inventore veritatis.
- </p>
- </div>
- <!-- book content -->
- <div class="chapter-content">
- <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Debitis possimus quam beatae illum aspernatur, incidunt excepturi obcaecati quis officia ipsum, natus necessitatibus velit ab. Neque, beatae quis. Iste, ea eligendi!</p>
- <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Debitis possimus quam beatae illum aspernatur, incidunt excepturi obcaecati quis officia ipsum, natus necessitatibus velit ab. Neque, beatae quis. Iste, ea eligendi!</p>
- </div>
- </article>
- <!-- end book chapter -->
- </section>
- <!-- book end -->
- </main>
- <!-- faq wrapper start -->
- <section id="faq-wrapper">
- <!-- faq title -->
- <h2 id="faq-title">F.A.Q.</h2>
- <article id="faq-note">
- <!-- faq text -->
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Porro, ipsam enim obcaecati nam, culpa tempora, exercitationem eum provident illo asperiores sequi ipsa quos nulla eos sunt dolore deleniti corrupti necessitatibus.</p>
- <ul>
- <li>item 1</li>
- <li>item 2</li>
- <li>item 3</li>
- </ul>
- </article>
- <hr class="faq-divider">
- <!-- start faq -->
- <div id="accordion">
- <!-- start faq questions & answers -->
- <!-- if you need to add paragraphs please use <br> instead of <p> -->
- <!-- question start -->
- <div class="ui-accordion-header">
- <i class="fa-solid fa-envelope"></i>
- question
- </div>
- <div class="ui-accordion-content">
- <i class="fa-solid fa-share"></i>
- answer
- </div>
- <!-- question end -->
- <!-- question start -->
- <div class="ui-accordion-header">
- <i class="fa-solid fa-envelope"></i>
- question
- </div>
- <div class="ui-accordion-content">
- <i class="fa-solid fa-share"></i>
- answer
- </div>
- <!-- question end -->
- </div> <!-- #accordion -->
- </section>
- <!-- faq wrapper end -->
- <footer>
- <a href="#top" class="anchor-link" id="go-to-top"><i class="fa-solid fa-chevron-up"></i></a>
- <!-- do not touch -->
- <div style="position:fixed;bottom:2rem;right:2rem;z-index:999999999999999999999!important;font-size:.9rem;letter-spacing:.03rem;font-weight: 600;"><a href="https://southcodes.tumblr.com" title="coded by southcodes" target="_blank">SC</a></div>
- </footer>
- <!-- icons font -->
- <script src="https://kit.fontawesome.com/0993e30c04.js" crossorigin="anonymous"></script>
- <!-- jquery -->
- <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js'></script>
- <!-- jquery ui accordion -->
- <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
- <script>
- $(document).ready(function(){
- // disable scroll when popup is open
- $("figure.character-icon").click(function(){
- $("body").css("overflow", "hidden");
- });
- $(".close-popup").click(function(){
- $("body").css("overflow", "auto");
- });
- // accordion faq
- $( function() {
- $( "#accordion" ).accordion({
- heightStyle: "content"
- });
- });
- // go to top button
- $(document).scroll(function() {
- var y = $(this).scrollTop();
- if (y > 500) {$('#go-to-top').fadeIn();}
- else {$('#go-to-top').fadeOut();}});
- // animated anchor links
- $('.anchor-link').click(function(){
- $('html, body').animate({
- scrollTop: $( $(this).attr('href') ).offset().top
- }, 450); return false;});
- });
- // pop ups
- function openPopup(elem) {
- $(elem).next().fadeIn(200);
- $(elem).next().siblings('.character-popup').hide();
- }
- function closePopup() {
- $('.character-popup').fadeOut(300);
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement