Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <!----------------------------------------------------
- - fortune page by annasthms (feb 16, 2018)
- more info @ https://annasthms.tumblr.com/more/page/03
- rules:
- 1. don't remove the credit
- 2. don't steal/claim as yours
- thank you!! ♡♡♡
- ----------------------------------------------------->
- <head>
- <title>about | {Title}</title>
- <link href="https://fonts.googleapis.com/css?family=Karla" rel="stylesheet">
- <style>
- * {
- position: relative;
- }
- body {
- height: 100vh;
- margin: 0;
- font-family: 'Karla', sans-serif; /* font */
- font-size: 14px; /* font size */
- }
- a {
- text-decoration: none;
- color: #f46f6f; /* link color */
- }
- a:hover {
- color: #000000; /* link hover color */
- }
- img {
- max-width: 100%;
- height: auto;
- }
- hr {
- width: 25%;
- height: 1px;
- border: none;
- background: #000000;
- }
- blockquote {
- border-left: 1px solid #000000;
- margin: 0 0 0 1.5%;
- padding: 0 0 0 4%;
- }
- ul {
- padding: 0 0 0 4%;
- }
- p:first-child {
- margin-top: 0;
- }
- p:last-child {
- margin-bottom: 0;
- }
- .lantern {
- position: absolute;
- height: 3em;
- width: 4em;
- background: #ff0000; /* lantern background color */
- /* border: 1px solid; */
- border-color: #ffd700; /* lantern border color */
- border-width: calc(1em / 16);
- border-radius: 100%;
- }
- .lantern::before, .lantern::after {
- content: "";
- position: absolute;
- width: 50%;
- height: 0.5em;
- background: #ffda67; /* lantern top/bottom color */
- border-radius: 0.15em;
- z-index: 10;
- }
- .lantern::before {
- top: 0;
- left: 50%;
- -webkit-transform: translate(-50%, -60%);
- transform: translate(-50%, -60%);
- border-top-left-radius: 0.25em;
- border-top-right-radius: 0.25em;
- }
- .lantern::after {
- bottom: 0;
- left: 50%;
- -webkit-transform: translate(-50%, 60%);
- transform: translate(-50%, 60%);
- border-bottom-left-radius: 0.25em;
- border-bottom-right-radius: 0.25em;
- }
- .lantern div:not(.strings) {
- position: absolute;
- left: 50%;
- top: -1px;
- height: calc(100% + 2px);
- border: 1px solid;
- border-color: #ffd700; /* lantern border color */
- border-width: calc(1em / 16);
- border-radius: 100%;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- -webkit-transform: translateX(-50%);
- transform: translateX(-50%);
- }
- .lantern div:first-child {
- width: 3em;
- }
- .lantern > div:first-child::before {
- content: "";
- position: absolute;
- width: 1px;
- width: calc(1em / 16);
- height: 50vh;
- background: #ffda67; /* lantern string color */
- left: 50%;
- -webkit-transform: translateX(-50%);
- transform: translateX(-50%);
- z-index: -3;
- bottom: 3em;
- }
- .lantern div:nth-child(2) {
- width: 1.25em;
- }
- .lantern .strings {
- position: absolute;
- width: 50%;
- bottom: 0;
- left: 50%;
- -webkit-transform: translateX(-50%);
- transform: translateX(-50%);
- }
- .lantern .strings div {
- width: 1px;
- width: calc(1em / 16);
- background: #ffda67; /* lantern string color */
- }
- main {
- padding: 2em;
- width: 75%;
- max-width: 700px;
- margin: 0 auto;
- top: 50%;
- -webkit-transform: translateY(-50%);
- transform: translateY(-50%);
- }
- aside {
- position: absolute;
- width: 25%;
- height: calc(100% - 4em);
- padding-right: 1em;
- text-align: center;
- display: -webkit-box;
- display: -ms-flexbox;
- display: flex;
- -webkit-box-align: center;
- -ms-flex-align: center;
- align-items: center;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- }
- aside img {
- width: 60%;
- margin-bottom: 1.25em;
- padding: 0.5em;
- border: 0.35em solid rgba(255, 0, 0, 0.25);
- }
- div#links {
- margin-top: 0.5em;
- }
- div#links a {
- display: inline-block;
- margin: 0.15em;
- }
- section {
- margin-left: 30%;
- }
- article#description {
- overflow: auto;
- padding-right: 0.5em;
- }
- article#progress {
- column-count: 3;
- margin-top: 2em;
- }
- .progress-bar {
- margin-bottom: 1em;
- }
- .progress-bar::before, .progress-bar::after {
- content: "";
- position: absolute;
- height: 3px;
- top: 1.35em;
- left: 0;
- }
- .progress-bar::before {
- background: rgba(255, 0, 0, 0.35); /* progress bar fill color */
- }
- .progress-bar::after {
- width: 100%;
- background: #fafafa;
- background: rgba(0,0,0,0.075); /* progress bar background color */
- }
- .progress-bar span {
- float: right;
- font-size: 0.8em;
- margin-top: 0.25em;
- }
- ::-webkit-scrollbar {
- width: 3px;
- }
- ::-webkit-scrollbar-thumb {
- background: #ff0000;
- background: rgba(255, 0, 0, 0.25); /* scroll bar color */
- }
- </style>
- </head>
- <body>
- <div class="lantern one">
- <div></div>
- <div></div>
- <div class="strings"></div>
- </div>
- <div class="lantern two">
- <div></div>
- <div></div>
- <div class="strings"></div>
- </div>
- <main>
- <aside>
- <div id="aside-container">
- <img src="" /> <!-- paste icon url between the "" -->
- <div id="brief">
- brief about/description
- </div>
- <div id="links">
- <a href="/">home</a>
- <a href="/ask">ask</a>
- <a href="/archive">archive</a>
- <a href="https://www.tumblr.com">dash</a>
- <a href="https://annasthms.tumblr.com/" id="cred" title="made by annasthms">credit</a>
- <a href="url">link</a>
- <a href="url">link</a>
- <a href="url">link</a>
- </div>
- </div>
- </aside>
- <section>
- <article id="description">
- <b>bold</b>, <i>italic</i>, <u>underline</u>, <s>strike</s>, <a href="/">link</a>
- <p>some paragraph text</p>
- </article>
- <article id="progress">
- <!-- i suggest that you have multiples of the column count (default is 3, so 3 6 9 etc. progress bars or else it looks a bit funky) -->
- <div class="progress-bar" percent="10">progress bar name</div>
- <div class="progress-bar" percent="25">progress bar name</div>
- <div class="progress-bar" percent="50">progress bar name</div>
- <div class="progress-bar" percent="42">progress bar name</div>
- <div class="progress-bar" percent="96">progress bar name</div>
- <div class="progress-bar" percent="74">progress bar name</div>
- </article>
- </section>
- </main>
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
- <script src="https://static.tumblr.com/0podkko/KH2p4a6kz/annasthms.js"></script>
- <script>
- function lanterns() {
- var $nav = $('aside img'),
- navTop = $nav.offset().top,
- navLeft = $nav.offset().left;
- $('.lantern.one').css({'top': 'calc(' + navTop + 'px - 7em)', 'left': 'calc(' + navLeft + 'px + 0em)'});
- $('.lantern.two').css({'top': 'calc(' + navTop + 'px + 0em)', 'left': 'calc(' + navLeft + 'px - 6em)'});
- }
- $(document).ready(function(){
- var $strings, stringsWidth, length,
- min = 0.75,
- max = 1.25;
- $('.lantern').each(function(){
- $strings = $(this).find('.strings');
- stringsWidth = $strings.width();
- console.log(stringsWidth);
- for (var i = 1; i < (stringsWidth / 3); i++) {
- length = (Math.random() * (max - min + 1)) + min;
- $('<div></div>').appendTo($strings).css({'left':'calc(100% / ' + stringsWidth + '*' + (3 * i - 1) + ')', 'height': length + 'em'});
- console.log('hey');
- }
- });
- var progressHeight = $('article#progress').outerHeight(true);
- $('article#description').css('max-height', 'calc(50vh - ' + progressHeight + 'px)');
- lanterns();
- $(window).resize(function(){
- lanterns();
- });
- var progressBarCount = $('.progress-bar').length,
- progressBar, percent;
- for (var j = 1; j <= progressBarCount; j++) {
- $progressBar = $('.progress-bar').eq(j - 1)
- percent = $progressBar.attr('percent').split('%')[0];
- console.log(percent);
- $progressBar.append('<span>' + percent + '%</span>');
- $('head').append('<style>.progress-bar:nth-child(' + j + ')::before{width:' + percent + '%}</style>');
- }
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment