Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-----
- ;; characters one: tangerine ;;
- character/muse page by ebrothemes
- TERMS OF USE:
- - do not remove or edit the credit.
- (it will automatically change color
- along with your color customizations.)
- - do not repost/redistribute.
- - do not take parts of the code and use it as your own.
- - do not use as a base code.
- CREDITS:
- honeybee icons by suiomi
- INSTRUCTIONS:
- this page is designed so that the only customization you need to make in the css is the colors, and with variables theres only one place where you'll need to change them.
- the instructions for how to set up the tabs and fill in the information are where the rest of the content is
- COLORS:
- if you want to change the colors, ONLY mess with the colors in the ::root section which will change the colors across the code
- as long as you ensure that for white, grey, black, the colors are in order from light to dark and that the black value can be read over the accent value, it should all work.
- (ex. if you switch black and white you'll get a dark version, but because the white isn't legible on the accent yellow, you'll want to find a darker accent color.)
- x camila
- ----->
- <!DOCTYPE html>
- <html>
- <html lang="en-US">
- <head>
- <title>characters</title>
- <link rel="shortcut icon" href="{Favicon}">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <!-- honeybee icons by suiomi -->
- <link href="//solrainha.github.io/honeybee/honeybee.css" rel="stylesheet">
- <link rel="preconnect" href="https://fonts.gstatic.com">
- <link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap" rel="stylesheet">
- <link href="https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap" rel="stylesheet">
- <style type="text/css">
- /*body > iframe:first-child { display: none !important; }*/
- /* if you want to remove the 'follow' button and stuff from the top of the page, uncomment this bit ^ */
- :root {
- --black: #000000;
- --white: #ffffff;
- --grey: #939597;
- --accent: #F5DF4D;
- }
- ::-webkit-scrollbar {
- width: 5px;
- }
- ::-webkit-scrollbar-track {
- background: var(--white);
- border-left: 2px solid var(--black);
- }
- ::-webkit-scrollbar-thumb {
- background: var(--black);
- }
- /* BODY */
- body {
- color: var(--black);
- font-family: 'Fira Sans', sans-serif;
- background: var(--white);
- }
- .credit {
- position: fixed;
- border: 2px solid var(--grey);
- bottom: 20px;
- right: 20px;
- height: 25px;
- width: 25px;
- display: flex;
- justify-content: center;
- align-items: center;
- font-family: 'Roboto Mono', monospace;
- font-size:17.5px;
- border-radius: 100%;
- background: var(--white);
- font-weight: 400;
- opacity: 0.5;
- box-shadow: 0px 0px 10px -2px rgba(0,0,0,0.5);
- transition: 200ms;
- }
- .credit a {
- text-decoration: none;
- color: var(--grey);
- }
- .credit:hover {
- opacity: 1;
- }
- .tabcontainer {
- width: 750px;
- height: 500px;
- position: fixed;
- top: calc(50% - 252px);
- left: calc(50% - 377px);
- background: var(--white);
- border: 2px solid var(--black);
- display: flex;
- z-index: 5;
- }
- .tabcontents {
- width: 500px;
- height: 500px;
- }
- /* TITLE PAGE */
- #title-page {
- position: absolute;
- top: 0;
- left: 250px;
- z-index: 1;
- height: 500px;
- width: 500px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- background: var(--accent);
- transition: 0.5s;
- }
- .title {
- font-family: 'Roboto Mono', monospace;
- font-size: 2.5em;
- font-weight: 800;
- }
- .author {
- font-family: 'Roboto Mono', monospace;
- font-size: 1.3em;
- }
- .t-desc {
- font-size: 0.9em;
- padding: 15px 50px;
- }
- .t-links {
- display: flex;
- margin: 0 50px;
- flex-flow: row wrap;
- justify-content: center;
- }
- .t-links a {
- color: var(--black);
- text-decoration: none;
- font-family: 'Roboto Mono', monospace;
- font-size: 0.8em;
- border: 2px solid var(--black);
- padding: 5px 7px;
- margin: 5px 5px;
- transition: 0.3s;
- }
- .t-links a:hover {
- background: var(--white);
- font-weight: 800;
- }
- /* TABS */
- .tab {
- width: 248px;
- height: 500px;
- border-right: 2px solid var(--black);
- overflow: auto;
- z-index: 1;
- }
- .tab button {
- background-color: inherit;
- width: 100%;
- height: 110px;
- border: 0px;
- border-bottom: 2px solid var(--black);
- padding: 0px;
- outline: none;
- cursor: pointer;
- transition: 0.3s;
- display: flex;
- justify-content: space-between;
- align-items: center;
- }
- .tab button:last-child {
- border-bottom: 0px;
- }
- .tab button:hover {
- background-color: var(--accent);
- }
- .tab button.active {
- background-color: var(--accent);
- }
- .num {
- font-family: 'Roboto Mono', monospace;
- font-weight: 300;
- color: var(--grey);
- padding: 10px;
- }
- .char-pic {
- width: 70px!important;
- height: 70px;
- border-radius: 50px;
- overflow: hidden;
- }
- .char-pic img {
- display: block;
- filter: grayscale(100%);
- width: 100%;
- height: auto;
- }
- .tab button.active > .char-pic img {
- filter: grayscale(0%);
- }
- .char-info {
- width: 115px;
- padding: 10px;
- flex-shrink: 3;
- }
- .char-info name {
- display: block;
- color: var(--black);
- font-weight: 700;
- font-size: 1.3em;
- }
- .char-info info {
- display: block;
- font-family: 'Roboto Mono', monospace;
- color: var(--black);
- font-size: 0.8em;
- }
- /* TAB PAGES*/
- .tabcontent {
- position: relative;
- top: 0;
- background: var(--white);
- width: 500px;
- height: 500px;
- display: none;
- z-index: 10;
- animation: fadeEffect 1s;
- }
- .content-wrapper {
- width: 500px;
- height: 500px;
- overflow: auto;
- position: relative;
- top: -22px;
- }
- .row {
- border-bottom: 2px solid var(--black);
- }
- .row:last-child {
- border-bottom: 0px;
- }
- .x-button {
- position: sticky;
- float: right;
- cursor: pointer;
- font-family: 'Roboto Mono', monospace;
- text-transform: uppercase;
- height: 20px;
- width: 20px;
- top: 0;
- right: 0;
- display: flex;
- justify-content: center;
- align-items: center;
- border-left: 2px solid var(--black);
- border-bottom: 2px solid var(--black);
- transition: 0.3s;
- background: var(--white);
- z-index: 9999;
- }
- .x-button:hover {
- background: var(--accent);
- }
- @keyframes fadeEffect {
- 0% {opacity: 0;}
- 100% {opacity: 1;}
- }
- /* UPPER ROW */
- .toprow {
- display: flex;
- }
- .bigimg {
- width: 248px;
- height: 373px;
- border-right: 2px solid var(--black);
- overflow: hidden;
- text-align: center;
- }
- .img-inner {
- display: flex;
- justify-content: center;
- width: 248px;
- height: 373px;
- }
- .img-inner img {
- width: auto;
- height: 373px;
- display: block;
- }
- .toptext {
- width: 250px;
- }
- .charname {
- background: var(--accent);
- border-bottom: 2px solid var(--black);
- width: 100%;
- display: flex;
- justify-content: center;
- align-items: center;
- height: 110px;
- font-family: 'Roboto Mono', monospace;
- font-weight: 500;
- font-size: 1.2em;
- }
- .stats {
- display: flex;
- flex-flow: row wrap;
- }
- .fact {
- border-bottom: 2px solid var(--black);
- height: 40px;
- width: calc(50% - 1px);
- display: flex;
- justify-content: space-between;
- align-items: center;
- }
- .left {
- border-right: 2px solid var(--black);
- }
- .staticon {
- width: 40px;
- height: 40px;
- background: var(--grey);
- border-right: 2px solid var(--black);
- display: flex;
- justify-content: center;
- align-items: center;
- color: var(--white);
- }
- .stattext {
- padding: 10px;
- font-family: 'Roboto Mono', monospace;
- font-weight: 400;
- font-size: 0.7em;
- }
- .charquote {
- height: 177px;
- display: flex;
- justify-content: center;
- align-items: center;
- font-weight: 400;
- font-size: 1.2em;
- padding: 0px 25px;
- text-align: center;
- font-style: italic;
- }
- /* TAG ROW */
- .midrow {
- min-height: 75px;
- display: flex;
- flex-flow: row wrap;
- justify-content: center;
- align-items: center;
- padding: 25px;
- }
- .midrow a {
- color: var(--black);
- background: var(--white);
- text-decoration: none;
- font-family: 'Roboto Mono', monospace;
- font-size: 0.8em;
- border: 2px solid var(--black);
- padding: 5px 7px;
- margin: 3px 5px;
- transition: 0.3s;
- }
- .midrow a:hover {
- background: var(--accent);
- font-weight: 800;
- }
- /* TEXT ROW */
- .lowerrow {
- padding: 25px;
- padding-bottom: 25px;
- }
- .lowerrow > *:last-child {
- margin-bottom: 0;
- padding-bottom: 0;
- }
- .lowerrow > table:last-child {
- margin-bottom: 0;
- padding-bottom: 0;
- }
- .lowerrow > *:first-child {
- margin-top: 0;
- padding-top: 0;
- }
- .lowerrow h1, .lowerrow h2, .lowerrow h3, .lowerrow h4, .lowerrow h5, .lowerrow h6 {
- font-family: 'Roboto Mono', monospace;
- margin: 0;
- padding: 10px 0;
- border-left: 4px solid var(--black);
- padding-left: 10px;
- background: var(--accent);
- width: calc(100% - 14px);
- }
- .lowerrow a {
- text-decoration: none;
- padding: 1px 3px;
- margin: -1px -3px;
- background: var(--accent);
- color: var(--black);
- transition: 500ms;
- }
- .lowerrow a:hover {
- background: var(--grey);
- }
- .lowerrow hr {
- margin: 0.5em 70px;
- border: 1px solid var(--black);
- }
- hr.full {
- margin: 25px -25px;
- border: 1px solid var(--black);
- }
- .lowerrow ol, .lowerrow li {
- margin: 1em 0;
- padding: 0 0 0 25px;
- }
- .lowerrow li {
- margin: 0;
- padding: 0;
- }
- .lowerrow blockquote {
- border-left: 2px solid var(--black);
- padding: 10px 20px;
- background: var(--accent);
- font-style: italic;
- }
- .lowerrow dt {
- font-weight: 500;
- background: var(--accent);
- padding: 2px 5px;
- margin: -2px 0;
- }
- .lowerrow dd {
- font-family: 'Roboto Mono', monospace;
- font-size: 0.8em;
- padding: 10px 0px;
- }
- .lowerrow table, .lowerrow th, .lowerrow td {
- border: 2px solid var(--black);
- text-align: center;
- vertical-align: center;
- }
- .lowerrow table {
- margin: 16px 0px;
- width: 100%;
- border-collapse: collapse;
- }
- .lowerrow th {
- background: var(--accent);
- font-family: 'Roboto Mono', monospace;
- font-weight: 700;
- }
- .lowerrow td, .lowerrow th {
- padding: 5px;
- }
- </style>
- </head>
- <!--
- INSTRUCTIONS
- There's two main parts to this
- 1. The tabs' structure and function
- 2. The content of the tabs
- When you install this, there's five tabs already set up. This will give you instructison on how to add more or remove them, and below, you'll find how to customize the content of the tabs.
- Each tab is a button with a function that ties it to a tab div. You can copy or delete the buttons as many times as you want and the tab will scroll. You'll need to update the number next to the photo along with the content.
- <button class="tablinks" onclick="openChar(event, 'ID')">
- <div class="num">01</div>
- <div class="char-pic"><img src="IMG URL"></div>
- <div class="char-info">
- <name>name here</name>
- <info>age - fc - other</info>
- </div>
- </button>
- Additionally, in the button's info, you'll see
- onclick="openChar(event, '###')
- The only thing you should change for each button is the ### part (which probably looks like c1, c2, c3 etc. or ID if you copy it from here)
- I would suggest renaming all of these to the character whose button it is to keep track of things. Remember to keep it within the quotation marks.
- Then, below, there's the tab content. Each button is linked to one section, and you must rename the id (and NOT the class) to match what you put on the button.
- For example, if your character's name is Alex, your button will look like
- <button class="tablinks" onclick="openChar(event, 'alex')">
- and your div will look like
- <div id="alex" class="tabcontent">
- -->
- <body>
- <div class="tabcontainer">
- <!-- TITLE PAGE -->
- <div id="title-page">
- <div class="title">characters</div>
- <div class="author">by @username</div>
- <div class="t-desc">Fill in here with whatever description you want, it will fill up the box while remaining centered. Just don't add to much or it will overflow. You can also just remove this whole div if you don't want it</div>
- <div class="t-links">
- <a href="/">home</a>
- <a href="/ask">ask</a>
- <a href="#">link 1</a>
- <a href="#">link 2</a> <!-- You can add more links and they'll format themselves-->
- </div>
- </div>
- <!-- TABS -->
- <div class="tab">
- <button class="tablinks" onclick="openChar(event, 'c1')">
- <div class="num">01</div>
- <div class="char-pic"><img src="https://via.placeholder.com/70"></div>
- <div class="char-info">
- <name>name here</name>
- <info>age - fc - other</info>
- </div>
- </button>
- <button class="tablinks" onclick="openChar(event, 'c2')">
- <div class="num">02</div>
- <div class="char-pic"><img src="https://via.placeholder.com/70"></div>
- <div class="char-info">
- <name>name here</name>
- <info>age - fc - other</info>
- </div>
- </button>
- <button class="tablinks" onclick="openChar(event, 'c3')">
- <div class="num">03</div>
- <div class="char-pic"><img src="https://via.placeholder.com/70"></div>
- <div class="char-info">
- <name>name here</name>
- <info>age - fc - other</info>
- </div>
- </button>
- <button class="tablinks" onclick="openChar(event, 'c4')">
- <div class="num">04</div>
- <div class="char-pic"><img src="https://via.placeholder.com/70"></div>
- <div class="char-info">
- <name>name here</name>
- <info>age - fc - other</info>
- </div>
- </button>
- <button class="tablinks" onclick="openChar(event, 'c5')">
- <div class="num">05</div>
- <div class="char-pic"><img src="https://via.placeholder.com/70"></div>
- <div class="char-info">
- <name>name here</name>
- <info>age - fc - other</info>
- </div>
- </button>
- </div>
- <!--
- TAB DIRECTIONS
- There's three (and a half) parts to the tab.
- 1. The 'toprow' with the photo, name, info, and quotes
- 2. The 'midrow' with the tags
- 3. The 'lowerrow' with the text.
- (the half is the x button. Don't touch it unless you want to change the x to a different symbol.)
- These three rows are essentially modular, but the page is designed for the toprow and midrow to take up the entirety of a tab, and the lowerrow is optional and will cause the content to scroll.
- If you move them around or duplicate them, they will stay pretty well formatted, but I do recommend keeping the toprow at the top.
- The tumblr preview will likely scroll on tabs that shouldn't scroll, please check the live page, it should be fixed there. if it's not, feel free to contact me.
- As for each row...
- TOPROW
- Image -
- The image is actually 248px x 373px, but 250x375 will work.
- It will also crop, resize, and center your image if it is wider than the aspect ratio (i.e. if your image is longer horizontally, a square, or even a few pixels wider than 250px)
- Icons -
- You can change the icons for the stats by going to @suiomi's honeybee icon page, https://honeybee.suiomi.com/
- Choose an icon, and then replace
- <span class="th th-moon"></span> (or whatever the existing icon is)
- with
- <span class="th th-icon-name"></span>
- MIDROW
- This row is only formatted for links. You can add as many links as you want, and it will format them. The number of links it will fit without scrolling depending on the text of your links, but any more than two rows will scroll.
- LOWERROW
- This row is fully formatted for text. Please wrap everything in the appropriate tags for the full effect. Below is a list of all the tags that you can use...
- (headings)
- <h1></h1>
- <h2></h2>
- <h3></h3>
- <h4></h4>
- <h5></h5>
- <h6></h6>
- (text)
- <p></p> -wrap all paragraphs in this
- <i></i> -italics
- <b></b> -bold
- <a href="link"></a> -hyperlink
- <blockquote></blockquote>
- (lists)
- --unordered list--
- <ul>
- <li>list item</li>
- <li>list item</li>
- <li>list item</li>
- </ul>
- --ordered list--
- <ol>
- <li>list item</li>
- <li>list item</li>
- <li>list item</li>
- </ol>
- (horizontal lines)
- <hr> -regular line break
- <hr class="full"> -line that spans entire div
- (definition list)
- <dl>
- <dt>term</dt>
- <dd>definition</dd>
- <dt>term</dt>
- <dd>definition</dd>
- </dl>
- (table)
- - this is an empty 2 x 3 table
- with a heading row like in the preview,
- add/remove rows, columns, and the heading row as you please
- <table>
- <thead>
- <tr>
- <th></th>
- <th></th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td></td>
- <td></td>
- </tr>
- <tr>
- <td></td>
- <td></td>
- </tr>
- </tbody>
- </table>
- -->
- <!-- TAB CONTENT -->
- <!-- start content -->
- <div id="c1" class="tabcontent"> <!-- remember to match the id to the button -->
- <div class="x-button" onclick="closeTab()">X</div>
- <div class="content-wrapper">
- <div class="toprow row">
- <!-- image...
- replace the placeholder link with the link to your image
- the dimensions are actually 248x373, but 250x375 will work.
- It will also crop, resize, and center your image if it is wider than the aspect ratio (i.e. if your image is longer horizontally, a square, or even a few pixels wider than 250px) -->
- <div class="bigimg"><div class="img-inner"><img src="https://via.placeholder.com/250x375"></div></div>
- <div class="toptext">
- <!-- name here -->
- <div class="charname">tab one</div>
- <!-- info section...
- You can change the icons for the stats by going to @suiomi's honeybee icon page, https://honeybee.suiomi.com/
- Choose an icon, and then replace
- <span class="th th-moon"></span> (or whatever the existing icon is)
- with
- <span class="th th-icon-name"></span>
- -->
- <div class="stats">
- <div class="fact left">
- <div class="staticon"><span class="th th-moon"></span></div>
- <div class="stattext">age</div>
- </div>
- <div class="fact">
- <div class="staticon"><span class="th th-constellation"></span></div>
- <div class="stattext">birthday</div>
- </div>
- <div class="fact left">
- <div class="staticon"><span class="th th-planet-1"></span></div>
- <div class="stattext">mbti</div>
- </div>
- <div class="fact">
- <div class="staticon"><span class="th th-sun"></span></div>
- <div class="stattext">status</div>
- </div>
- </div>
- <!-- quote here -->
- <div class="charquote">quote here</div>
- </div>
- </div>
- <!-- tags row, feel free to add more tags. if you add more than two rows, it will scroll. -->
- <div class="midrow row">
- <a href="#">tag one</a>
- <a href="#">tag two</a>
- <a href="#">tag three</a>
- <a href="#">tag four</a>
- </div>
- <!-- lower row - remove this if you don't want the text section -->
- <div class="lowerrow row">
- <p>sample text<p>
- <h1>heading one</h1>
- <p>paragraph tag</p>
- <h2>heading two</h2>
- <p>paragraph tag</p>
- <h3>heading three</h3>
- <p>paragraph tag</p>
- <h4>heading four</h4>
- <p>paragraph tag</p>
- <h5>heading five</h5>
- <p>paragraph tag</p>
- <h6>heading six</h6>
- <p>paragraph tag</p>
- <i>italics</i>
- <b>bold</b>
- <a href="#">link</a>
- <blockquote>blockquote</blockquote>
- <ul>
- <li>unordered list item</li>
- <li>list item</li>
- <li>list item</li>
- </ul>
- <ol>
- <li>ordered list item</li>
- <li>list item</li>
- <li>list item</li>
- </ol>
- <p>horizontal line</p>
- <hr>
- <p>full horizontal line</p>
- <hr class="full">
- <dl>
- <dt>term</dt>
- <dd>definition</dd>
- <dt>term</dt>
- <dd>definition</dd>
- </dl>
- <table>
- <thead>
- <tr>
- <th>table</th>
- <th>heading</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>row</td>
- <td>2</td>
- </tr>
- <tr>
- <td>1</td>
- <td>2</td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- <!-- end content -->
- <!-- start content -->
- <div id="c2" class="tabcontent"> <!-- remember to match the id to the button -->
- <div class="x-button" onclick="closeTab()">X</div>
- <div class="content-wrapper">
- <div class="toprow row">
- <!-- image...
- replace the placeholder link with the link to your image
- the dimensions are actually 248x373, but 250x375 will work.
- It will also crop, resize, and center your image if it is wider than the aspect ratio (i.e. if your image is longer horizontally, a square, or even a few pixels wider than 250px) -->
- <div class="bigimg"><div class="img-inner"><img src="https://via.placeholder.com/250x375"></div></div>
- <div class="toptext">
- <!-- name here -->
- <div class="charname">tab two</div>
- <!-- info section...
- You can change the icons for the stats by going to @suiomi's honeybee icon page, https://honeybee.suiomi.com/
- Choose an icon, and then replace
- <span class="th th-moon"></span> (or whatever the existing icon is)
- with
- <span class="th th-icon-name"></span>
- -->
- <div class="stats">
- <div class="fact left">
- <div class="staticon"><span class="th th-moon"></span></div>
- <div class="stattext">age</div>
- </div>
- <div class="fact">
- <div class="staticon"><span class="th th-constellation"></span></div>
- <div class="stattext">birthday</div>
- </div>
- <div class="fact left">
- <div class="staticon"><span class="th th-planet-1"></span></div>
- <div class="stattext">mbti</div>
- </div>
- <div class="fact">
- <div class="staticon"><span class="th th-sun"></span></div>
- <div class="stattext">status</div>
- </div>
- </div>
- <!-- quote here -->
- <div class="charquote">quote here</div>
- </div>
- </div>
- <!-- tags row, feel free to add more tags. if you add more than two rows, it will scroll. -->
- <div class="midrow row">
- <a href="#">tag one</a>
- <a href="#">tag two</a>
- <a href="#">tag three</a>
- <a href="#">tag four</a>
- </div>
- <!-- lower row - remove this if you don't want the text section -->
- <div class="lowerrow row">
- <p>text goes here</p>
- </div>
- </div>
- </div>
- <!-- end content -->
- <!-- start content -->
- <div id="c3" class="tabcontent"> <!-- remember to match the id to the button -->
- <div class="x-button" onclick="closeTab()">X</div>
- <div class="content-wrapper">
- <div class="toprow row">
- <!-- image...
- replace the placeholder link with the link to your image
- the dimensions are actually 248x373, but 250x375 will work.
- It will also crop, resize, and center your image if it is wider than the aspect ratio (i.e. if your image is longer horizontally, a square, or even a few pixels wider than 250px) -->
- <div class="bigimg"><div class="img-inner"><img src="https://via.placeholder.com/250x375"></div></div>
- <div class="toptext">
- <!-- name here -->
- <div class="charname">tab three</div>
- <!-- info section...
- You can change the icons for the stats by going to @suiomi's honeybee icon page, https://honeybee.suiomi.com/
- Choose an icon, and then replace
- <span class="th th-moon"></span> (or whatever the existing icon is)
- with
- <span class="th th-icon-name"></span>
- -->
- <div class="stats">
- <div class="fact left">
- <div class="staticon"><span class="th th-moon"></span></div>
- <div class="stattext">age</div>
- </div>
- <div class="fact">
- <div class="staticon"><span class="th th-constellation"></span></div>
- <div class="stattext">birthday</div>
- </div>
- <div class="fact left">
- <div class="staticon"><span class="th th-planet-1"></span></div>
- <div class="stattext">mbti</div>
- </div>
- <div class="fact">
- <div class="staticon"><span class="th th-sun"></span></div>
- <div class="stattext">status</div>
- </div>
- </div>
- <!-- quote here -->
- <div class="charquote">quote here</div>
- </div>
- </div>
- <!-- tags row, feel free to add more tags. if you add more than two rows, it will scroll. -->
- <div class="midrow row">
- <a href="#">tag one</a>
- <a href="#">tag two</a>
- <a href="#">tag three</a>
- <a href="#">tag four</a>
- </div>
- <!-- lower row - remove this if you don't want the text section -->
- <div class="lowerrow row">
- <p>text goes here</p>
- </div>
- </div>
- </div>
- <!-- end content -->
- <!-- start content -->
- <div id="c4" class="tabcontent"> <!-- remember to match the id to the button -->
- <div class="x-button" onclick="closeTab()">X</div>
- <div class="content-wrapper">
- <div class="toprow row">
- <!-- image...
- replace the placeholder link with the link to your image
- the dimensions are actually 248x373, but 250x375 will work.
- It will also crop, resize, and center your image if it is wider than the aspect ratio (i.e. if your image is longer horizontally, a square, or even a few pixels wider than 250px) -->
- <div class="bigimg"><div class="img-inner"><img src="https://via.placeholder.com/250x375"></div></div>
- <div class="toptext">
- <!-- name here -->
- <div class="charname">tab four</div>
- <!-- info section...
- You can change the icons for the stats by going to @suiomi's honeybee icon page, https://honeybee.suiomi.com/
- Choose an icon, and then replace
- <span class="th th-moon"></span> (or whatever the existing icon is)
- with
- <span class="th th-icon-name"></span>
- -->
- <div class="stats">
- <div class="fact left">
- <div class="staticon"><span class="th th-moon"></span></div>
- <div class="stattext">age</div>
- </div>
- <div class="fact">
- <div class="staticon"><span class="th th-constellation"></span></div>
- <div class="stattext">birthday</div>
- </div>
- <div class="fact left">
- <div class="staticon"><span class="th th-planet-1"></span></div>
- <div class="stattext">mbti</div>
- </div>
- <div class="fact">
- <div class="staticon"><span class="th th-sun"></span></div>
- <div class="stattext">status</div>
- </div>
- </div>
- <!-- quote here -->
- <div class="charquote">quote here</div>
- </div>
- </div>
- <!-- tags row, feel free to add more tags. if you add more than two rows, it will scroll. -->
- <div class="midrow row">
- <a href="#">tag one</a>
- <a href="#">tag two</a>
- <a href="#">tag three</a>
- <a href="#">tag four</a>
- </div>
- <!-- lower row - remove this if you don't want the text section -->
- <div class="lowerrow row">
- <p>text goes here</p>
- </div>
- </div>
- </div>
- <!-- end content -->
- <!-- start content -->
- <div id="c5" class="tabcontent"> <!-- remember to match the id to the button -->
- <div class="x-button" onclick="closeTab()">X</div>
- <div class="content-wrapper">
- <div class="toprow row">
- <!-- image...
- replace the placeholder link with the link to your image
- the dimensions are actually 248x373, but 250x375 will work.
- It will also crop, resize, and center your image if it is wider than the aspect ratio (i.e. if your image is longer horizontally, a square, or even a few pixels wider than 250px) -->
- <div class="bigimg"><div class="img-inner"><img src="https://via.placeholder.com/250x375"></div></div>
- <div class="toptext">
- <!-- name here -->
- <div class="charname">tab five</div>
- <!-- info section...
- You can change the icons for the stats by going to @suiomi's honeybee icon page, https://honeybee.suiomi.com/
- Choose an icon, and then replace
- <span class="th th-moon"></span> (or whatever the existing icon is)
- with
- <span class="th th-icon-name"></span>
- -->
- <div class="stats">
- <div class="fact left">
- <div class="staticon"><span class="th th-moon"></span></div>
- <div class="stattext">age</div>
- </div>
- <div class="fact">
- <div class="staticon"><span class="th th-constellation"></span></div>
- <div class="stattext">birthday</div>
- </div>
- <div class="fact left">
- <div class="staticon"><span class="th th-planet-1"></span></div>
- <div class="stattext">mbti</div>
- </div>
- <div class="fact">
- <div class="staticon"><span class="th th-sun"></span></div>
- <div class="stattext">status</div>
- </div>
- </div>
- <!-- quote here -->
- <div class="charquote">quote here</div>
- </div>
- </div>
- <!-- tags row, feel free to add more tags. if you add more than two rows, it will scroll. -->
- <div class="midrow row">
- <a href="#">tag one</a>
- <a href="#">tag two</a>
- <a href="#">tag three</a>
- <a href="#">tag four</a>
- </div>
- <!-- lower row - remove this if you don't want the text section -->
- <div class="lowerrow row">
- <p>text goes here</p>
- </div>
- </div>
- </div>
- <!-- end content -->
- </div>
- <div class="credit"><a href="https://ebrothemes.tumblr.com" title="ebrothemes" style="color:var(--grey);">E</a></div>
- <script>
- function openChar(evt, charNum) {
- var i, tabcontent, tablinks;
- tabcontent = document.getElementsByClassName("tabcontent");
- for (i = 0; i < tabcontent.length; i++) {
- tabcontent[i].style.display = "none";
- }
- tablinks = document.getElementsByClassName("tablinks");
- for (i = 0; i < tablinks.length; i++) {
- tablinks[i].className = tablinks[i].className.replace(" active", "");
- }
- document.getElementById(charNum).style.display = "block";
- evt.currentTarget.className += " active";
- document.getElementById('title-page').style.opacity = "0";
- }
- </script>
- <script>
- function closeTab() {
- tabs = document.getElementsByClassName("tablinks");
- for (i = 0; i < tabs.length; i++) {
- if (tabs[i].classList.contains('active')) {
- tabs[i].classList.remove('active')
- }
- }
- content = document.getElementsByClassName("tabcontent");
- for (i = 0; i < content.length; i++) {
- content[i].style.display = "none";
- }
- document.getElementById('title-page').style.opacity = "1"
- }
- </script>
- </body>
- </html>
Add Comment
Please, Sign In to add comment