Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html lang="en">
- <head>
- <link rel="shortcut icon" href="https://puu.sh/ApEgU/276a3329c4.ico" />
- <meta charset="UTF-8">
- <meta name="viewport"
- content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
- <title>Purple Blep | Art, dragons, bleps!</title>
- <meta name="description" content="Purple Blep">
- <meta name="author" content="Purple Blep">
- <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous">
- <style>
- @import url('https://fonts.googleapis.com/css?family=Cabin');
- body > iframe:first-child {
- display: none !important;
- }
- body, html {
- height: 100%;
- margin: 0;
- padding: 0;
- }
- body {
- background-color: #393939;
- height: 100%;
- position: absolute;
- left: 0;
- right: 0;
- font-family: 'Cabin', sans-serif;
- }
- .logo{
- position: absolute;
- top: 10%;
- z-index: 1;
- }
- .logo p{
- font-size: 200px;
- }
- .background {
- position: absolute;
- top: 0;
- z-index: -2;
- height: 100%;
- width: 100%;
- background-position: center;
- background-repeat: no-repeat;
- background-size: cover;
- }
- .overlay {
- display: none;
- background: url(img/overlay.png);
- width: 100%;
- height: 100%;
- position: fixed;
- top: 0;
- opacity: 1;
- left: 0;
- z-index: -1;
- }
- main {
- position: absolute;
- z-index: 1;
- left: 0;
- right: 0;
- top: 69%;
- }
- .cbp-bicontrols {
- position: fixed;
- top: 50%;
- width: 100%;
- }
- header {
- width: 550px;
- height: 65%;
- position: relative;
- z-index: 500;
- margin: 0px auto;
- left: 0;
- position: absolute;
- right: 0;
- }
- header .headerTrans {
- top: 0;
- width: 100%;
- position: absolute;
- height: 100%;
- background-color: black;
- opacity: 0.4;
- }
- header .headerText {
- color: white;
- }
- .purple{
- margin: 0;
- margin-left: -166px;
- }
- .fas {
- font-size: 40px;
- color: white;
- }
- .fa-chevron-left {
- font-size: 40px;
- color: white;
- margin-left: 20px;
- }
- .fa-chevron-right{
- font-size: 40px;
- color: white;
- margin-right: 20px;
- float: right;
- }
- .headerText h2{
- position: absolute;
- bottom: 0;
- margin: 0;
- left: 0;
- right: 0;
- white-space: nowrap;
- font-size: 76px;
- margin-left: -29px;
- margin-bottom: 20px;
- z-index: 1;
- /* margin: 0px auto; */
- /* margin: 0; */
- }
- .footer p{
- position: absolute;
- bottom: 0;
- margin: 0;
- left: 0;
- right: 0;
- white-space: nowrap;
- font-size: 76px;
- margin-left: -29px;
- margin-bottom: 20px;
- }
- .blep {
- margin: 0;
- margin-top: -60px;
- margin-left: 250px;
- }
- footer {
- width: 550px;
- height: 20%;
- left: 0;
- right: 0;
- position: absolute;
- bottom: 0;
- margin: 0px auto;
- }
- footer .footerTrans {
- bottom: 0;
- width: 100%;
- position: absolute;
- height: 100%;
- background-color: black;
- opacity: 0.4;
- }
- footer p{
- margin: 0;
- margin-left: 5px;
- bottom: 0;
- color: white;
- position: absolute;
- z-index: 1;
- }
- nav a:first-of-type {
- margin-left: 0;
- }
- .button {
- margin-left: 20px;
- position: relative;
- display: inline-block;
- text-decoration: none;
- padding: 10px 40px;
- }
- .button .buttonBg{
- -webkit-transition: background-color 0.5s;
- transition: background-color 0.5s;
- }
- .button:hover .buttonBg{
- background-color: white;
- opacity: 0.5
- }
- .button:hover .text{
- color: black;
- }
- .buttonBg{
- background-color: black;
- width: 100%;
- height: 100%;
- position: absolute;
- top: 0;
- left: 0;
- opacity: 0.4;
- }
- .button .text {
- z-index: 1;
- font-size: 40px;
- color: white;
- position: relative;
- }
- nav {
- margin: 0px auto;
- position: relative;
- display: table;
- }
- .cbp-bislideshow {
- list-style: none;
- width: 100%;
- height: 100%;
- position: fixed;
- top: 0;
- left: 0;
- z-index: -1;
- padding: 0;
- margin: 0;
- }
- .cbp-bislideshow li {
- position: absolute;
- width: 101%;
- height: 101%;
- top: -0.5%;
- left: -0.5%;
- opacity: 0;
- -webkit-transition: opacity 1s;
- -moz-transition: opacity 1s;
- transition: opacity 1s;
- }
- /* If background-size supported we'll add the images to the background of the li */
- .backgroundsize .cbp-bislideshow li {
- -webkit-background-size: cover;
- -moz-background-size: cover;
- background-size: cover;
- background-position: center center;
- }
- /* ...and hide the images */
- .backgroundsize .cbp-bislideshow li img {
- display: none;
- }
- .cbp-bislideshow li img {
- display: block;
- width: 100%;
- }
- .cbp-bicontrols span {
- float: left;
- width: 100px;
- height: 100px;
- position: relative;
- cursor: pointer;
- }
- .cbp-bicontrols span:before {
- position: absolute;
- width: 100%;
- height: 100%;
- top: 0;
- left: 0;
- text-align: center;
- font-family:'Font Awesome\ 5 Free';
- speak: none;
- font-style: normal;
- font-weight: normal;
- font-variant: normal;
- text-transform: none;
- line-height: 100px;
- font-size: 80px;
- color: #fff;
- -webkit-font-smoothing: antialiased;
- opacity: 0.7;
- }
- .cbp-bicontrols span:hover:before {
- opacity: 1;
- }
- .cbp-bicontrols span:active:before {
- top: 2px;
- }
- span.cbp-biplay:before {
- content: "\e002";
- }
- span.cbp-bipause:before {
- content: "\e003";
- }
- .cbp-bicontrols span.cbp-binext {
- float: right;
- }
- /* Fallback */
- .no-js.no-backgroundsize .cbp-bislideshow li:first-child {
- opacity: 1;
- }
- .no-js.backgroundsize .cbp-bislideshow li:first-child img {
- display: block;
- }
- @media screen and (max-height: 920px){
- .logo {
- top: 0;
- }
- main {
- top: 67%;
- }
- .logo p{
- font-size: 150px;
- }
- .purple {
- margin-left: -86px;
- }
- header, footer{
- width: 460px;
- }
- .headerText h2 {
- margin-left: -79px;
- }
- }
- @media screen and (max-height: 630px){
- .logo p{
- margin: 0;
- position: relative;
- font-size: 40px;
- display: block;
- text-align: center;
- }
- .logo {
- position: relative;
- margin-top: 20px;
- }
- .headerText h2{
- position: relative;
- white-space: inherit;
- margin: 0;
- text-align: center;
- font-size: 30px;
- margin-top: 10px;
- }
- header{
- height: 200px;
- width: 100%;
- }
- footer{
- display: none;
- }
- main {
- top: 230px;
- }
- }
- @media screen and (max-width: 1200px){
- nav{
- width: 290px;
- display: block;
- }
- .logo p{
- margin: 0;
- position: relative;
- font-size: 40px;
- display: block;
- text-align: center;
- }
- .logo {
- position: relative;
- margin-top: 20px;
- }
- .headerText h2{
- position: relative;
- white-space: inherit;
- margin: 0;
- text-align: center;
- font-size: 30px;
- margin-top: 10px;
- }
- header{
- height: 200px;
- width: 100%;
- }
- footer{
- display: none;
- }
- main {
- top: 230px;
- }
- #cbp-bicontrols{
- display: none;
- }
- .button{
- display: block;
- margin-bottom: 20px;
- margin-left: 0;
- }
- .button .text {
- text-align: center;
- font-size: 30px;
- }
- }
- </style>
- <!--[if lt IE 9]>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.js"></script>
- <![endif]-->
- </head>
- <body>
- <ul id="cbp-bislideshow" class="cbp-bislideshow">
- <li><img src="https://static.tumblr.com/1j9hcx2/zB5p911bc/bg1.jpg" alt="image01"/></li>
- <li><img src="https://i.imgur.com/MWrd323.png" alt="image02"/></li>
- <li><img src="https://i.imgur.com/Luxavau.png" alt="image03"/></li>
- <li><img src="https://orig00.deviantart.net/9175/f/2017/351/3/c/baby_cammie_by_purple_blep-dbwz14h.png" alt="image04"/></li>
- </ul>
- <div class="overlay"></div>
- <div id="cbp-bicontrols" class="cbp-bicontrols">
- <span class="cbp-biprev"><i class="fas fa-chevron-left"></i></span>
- <span class="cbp-binext"><i class="fas fa-chevron-right"></i></span>
- </div>
- <div class="page">
- <header>
- <div class="headerText">
- <div class="logo">
- <p class="purple">Purple</p>
- <p class="blep">Blep</p>
- </div>
- <h2>Art, Dragons, Bleps!</h2>
- </div>
- <div class="headerTrans"></div>
- </header>
- <main>
- <nav>
- <a href="https://twitter.com/purple_blep/" class="button">
- <div class="buttonBg"></div>
- <div class="text">Twitter</div>
- </a>
- <a href="https://purple-blep.deviantart.com/" class="button">
- <div class="buttonBg"></div>
- <div class="text">Deviantart</div>
- </a>
- <a href="https://artstation.com/lupintine/" class="button">
- <div class="buttonBg"></div>
- <div class="text">Artstation</div>
- </a>
- <a href="mailto:purps@purpleblep.com" class="button">
- <div class="buttonBg"></div>
- <div class="text">Contact</div>
- </a>
- </nav>
- </main>
- <footer>
- <div class="footerText"><p> © Emma Young, 2018</p></div>
- <div class="footerTrans"></div>
- </footer>
- <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
- <script src="https://puu.sh/ApCcB/5f5c46c495.js"></script>
- <!-- imagesLoaded jQuery plugin by @desandro : https://github.com/desandro/imagesloaded -->
- <script src="https://puu.sh/ApCh0/e82c480e78.js"></script>
- <script>
- /**
- * cbpBGSlideshow.js v1.0.0
- * http://www.codrops.com
- *
- * Licensed under the MIT license.
- * http://www.opensource.org/licenses/mit-license.php
- *
- * Copyright 2013, Codrops
- * http://www.codrops.com
- */
- var cbpBGSlideshow = (function() {
- var $slideshow = $( '#cbp-bislideshow' ),
- $items = $slideshow.children( 'li' ),
- itemsCount = $items.length,
- $controls = $( '#cbp-bicontrols' ),
- navigation = {
- $navPrev : $controls.find( 'span.cbp-biprev' ),
- $navNext : $controls.find( 'span.cbp-binext' ),
- $navPlayPause : $controls.find( 'span.cbp-bipause' )
- },
- // current item´s index
- current = 0,
- // timeout
- slideshowtime,
- // true if the slideshow is active
- isSlideshowActive = true,
- // it takes 3.5 seconds to change the background image
- interval = 7000;
- function init( config ) {
- // preload the images
- $slideshow.imagesLoaded( function() {
- if( Modernizr.backgroundsize ) {
- $items.each( function() {
- var $item = $( this );
- $item.css( 'background-image', 'url(' + $item.find( 'img' ).attr( 'src' ) + ')' );
- } );
- }
- else {
- $slideshow.find( 'img' ).show();
- // for older browsers add fallback here (image size and centering)
- }
- // show first item
- $items.eq( current ).css( 'opacity', 1 );
- // initialize/bind the events
- initEvents();
- // start the slideshow
- startSlideshow();
- } );
- }
- function initEvents() {
- navigation.$navPlayPause.on( 'click', function() {
- var $control = $( this );
- if( $control.hasClass( 'cbp-biplay' ) ) {
- $control.removeClass( 'cbp-biplay' ).addClass( 'cbp-bipause' );
- startSlideshow();
- }
- else {
- $control.removeClass( 'cbp-bipause' ).addClass( 'cbp-biplay' );
- stopSlideshow();
- }
- } );
- navigation.$navPrev.on( 'click', function() {
- navigate( 'prev' );
- if( isSlideshowActive ) {
- startSlideshow();
- }
- } );
- navigation.$navNext.on( 'click', function() {
- navigate( 'next' );
- if( isSlideshowActive ) {
- startSlideshow();
- }
- } );
- }
- function navigate( direction ) {
- // current item
- var $oldItem = $items.eq( current );
- if( direction === 'next' ) {
- current = current < itemsCount - 1 ? ++current : 0;
- }
- else if( direction === 'prev' ) {
- current = current > 0 ? --current : itemsCount - 1;
- }
- // new item
- var $newItem = $items.eq( current );
- // show / hide items
- $oldItem.css( 'opacity', 0 );
- $newItem.css( 'opacity', 1 );
- }
- function startSlideshow() {
- isSlideshowActive = true;
- clearTimeout( slideshowtime );
- slideshowtime = setTimeout( function() {
- navigate( 'next' );
- startSlideshow();
- }, interval );
- }
- function stopSlideshow() {
- isSlideshowActive = false;
- clearTimeout( slideshowtime );
- }
- return { init : init };
- })();
- </script>
- <script>
- $(function () {
- cbpBGSlideshow.init();
- });
- </script>
- <noscript>
- <style>
- .cbp-bislideshow {
- display: none;
- }
- </style>
- </noscript>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement