Spaces:
Running
Running
Commit ·
884dfd1
1
Parent(s): 6103c33
Update index.html
Browse files2 unmodified lines34567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631642 unmodified lines<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Random User Data</title><style>body {display: flex;flex-direction: row;justify-content: center;align-items: center;overflow: hidden;height: 100vh;font-family: 'Roboto', sans-serif;transition: .25s;}.credit {position: absolute;bottom: 20px;left: 20px;color: inherit;}.options {display: flex;flex-direction: row;align-items: stretch;overflow: hidden;min-width: 600px;max-width: 900px;width: calc(100% - 100px);height: 400px;}.option {position: relative;overflow: hidden;min-width: 60px;margin: 10px;background: var(--optionBackground, var(--defaultBackground, #E6E9ED));background-size: auto 120%;background-position: center;cursor: pointer;transition: .5s cubic-bezier(0.05, 0.61, 0.41, 0.95);}.option:not(.active) {flex-grow: 1;border-radius: 30px;}.active {flex-grow: 10000;transform: scale(1);max-width: 600px;margin: 0px;border-radius: 40px;background-size: auto 100%;}.option .shadow {position: absolute;bottom: 0px;left: 0px;right: 0px;height: 120px;transition: .5s cubic-bezier(0.05, 0.61, 0.41, 0.95);}.option .label {display: flex;position: absolute;right: 0px;height: 40px;transition: .5s cubic-bezier(0.05, 0.61, 0.41, 0.95);}.option .icon {display: flex;flex-direction: row;justify-content: center;align-items: center;min-width: 40px;max-width: 40px;height: 40px;border-radius: 100%;background-color: white;color: var(--defaultBackground);}.option .info {display: flex;flex-direction: column;justify-content: center;margin-left: 10px;color: white;white-space: pre;}.option .info > div {position: relative;transition: .5s cubic-bezier(0.05, 0.61, 0.41, 0.95), opacity .5s ease-out;}.option .info .main {font-weight: bold;font-size: 1.2rem;}.option .info .sub {transition-delay: .1s;}/* Animation */.option.active .shadow {box-shadow: inset 0 -120px 120px -120px black, inset 0 -120px 120px -100px black;}.option.active .label {bottom: 20px;left: 20px;}.option.active .info > div {left: 0;opacity: 1;}.option:not(.active) .shadow {bottom: -40px;box-shadow: inset 0 -120px 0px -120px black, inset 0 -120px 0px -100px black;}</style></head><body><div class="options"><div class="option active" style="--optionBackground:url(https://66.media.tumblr.com/6fb397d822f4f9f4596dff2085b18f2e/tumblr_nzsvb4p6xS1qho82wo1_1280.jpg);" onclick="selectOption(this)"><div class="shadow"></div><div class="label"><div class="icon"><i class="fas fa-walking"></i></div><div class="info"><div class="main">Blonkisoaz</div><div class="sub">Omuke trughte a otufta</div></div></div></div><!-- Add more .option elements with different data --></div><a href="http://victorofvalencia-blog.tumblr.com" target="_blank" class="credit">Photos from Victor of Valencia on tumblr</a><script>function selectOption(option) {const options = document.querySelectorAll('.option');options.forEach(opt => opt.classList.remove('active'));option.classList.add('active');}</script></body></html>2 unmodified lines34567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841852 unmodified lines<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Asperion</title><style>/* Variables */$red: #ad0000;$lightBlack: #333;$darkGrey: #a9a9a9;$ghostWhite: #f8f8ff;$lightGrey: #d3d3d3;/* Mixins */@mixin transition($property) {transition: $property .25s;}/* Typography */html {font: 16px 'Open Sans Condensed', 'Roboto Condensed', Verdana, sans-serif;}h1 {font-size: 2.25em;}h2 {font-size: 2em;}h3 {font-size: 1.75em;}h4 {font-size: 1.5em;}p {font-size: 1.25em;}/* Layout */html, body {width: 100%; height: 100%;}body {color: #333;}*, *:before, *:after {box-sizing: border-box;}.line {float: left; width: 100%; border-top: .25em solid $lightBlack;}.wrapper {margin: auto; width: 60em;}header, nav, section, footer {float: left; width: 100%;}a {text-decoration: none; transition: color .25s;}.button {display: block; padding: .75em 1.25em; font-size: 1em; font-weight: bold;text-transform: uppercase; background: $red; color: #fff; border: 0; cursor: pointer;&:focus, &:hover {background: darken($red, 7%);}&:active {background: #c10000;}}.link {font-weight: bold; color: $red;&:focus, &:hover {color: darken($red, 10%);}&:active {color: lighten($red, 5%);}}/* Navigation */nav h1 {float: left; padding: .25em .25em 0 0; font-size: 4.5em;text-transform: uppercase;}nav h1 a {color: $red;}.nav-ul {display: flex;}header li {width: 20%;}header li:not(:first-child) {margin-left: 2%;}header .nav-ul a {display: block; padding: 1.75em .5em; font-size: 1.5em; text-align: center;text-transform: uppercase; color: $lightBlack;&:focus, &:hover {color: $red;}&:active {color: lighten($red, 5%);}}header li:first-child a {background: $red; color: #fff;}/* Sections */section {margin: 1em 0;}section h1 {text-transform: uppercase;}hr {border-color: $lightGrey; border-style: dashed;}.vertical {width: 0; height: 10px;}/* Intro */.sec-intro {position: relative;}.sec-intro img {width: 100%;}.sec-intro h1 {position: absolute; bottom: .5em; left: .5em; padding: .5em;background: rgba(0,0,0,.5); color: #fff;}/* Boxes */.box {float: left; padding: 1.5em 1em; width: 25%; height: 400px;border-top: .1em solid $lightGrey; border-bottom: .1em solid $lightGrey;border-left: .1em solid $lightGrey;@include transition(background);&:focus, &:hover {background: #f5f5f5;}}.box:last-child {border-right: .1em solid $lightGrey;}.box h1 {text-align: center;}.box p {margin-top: 4em; height: 6em; text-align: justify;}.box .button {margin: 4em auto;}/* Events */.sec-events > h1 {margin-top: 1em;}.sec-events article {float: left; padding: 0 .25em; width: 25%; text-align: justify;}.sec-events article h1,.sec-events article p {display: block; margin: .5em 0; padding: .25em 1em; font-size: 110%;}.sec-events article a {float: right; padding-right: 1em;}.sec-events article h1 {font-weight: bold; text-align: center;}/* Projects */.sec-projects {width: 60%;}.sec-projects > h1 {margin-top: 1em; text-align: center;}.sec-projects article {padding: .5em 0; width: 100%;}.sec-projects article h1,.sec-projects article p {font-size: 110%;}.sec-projects article h1 {font-weight: bold;}.sec-projects article p {margin: .5em .5em .5em 0; text-align: justify;}.sec-projects p a {float: right;}.sec-projects button {position: relative; left: 80%;}/* Standards */.sec-standards {width: 40%;}.sec-standards > h1 {margin-top: 1em; text-align: center;}.sec-standards article {float: left; padding: .5em 1em; width: 50%; text-align: justify;}.sec-standards article:last-child {padding: .5em 0;}.sec-standards article h1 {text-align: center;}/* Partners */.sec-partners h1 {margin-top: 1em;}.sec-partners .row {float: left; margin: 2em 0; width: 100%;}.logo-container {float: left; width: 16%; width: 100px;}.logo-container:not(:first-child) {margin-left: 7.5%;}.logo-container:first-child {margin-top: .2em;}.logo-container:nth-of-type(2) img {margin-top: 1.2em}.logo-container:nth-of-type(3) img {margin-top: 1.8em;}.logo-container:nth-of-type(4) img {margin-top: 2.35em;}.logo-container:nth-of-type(5) img {margin-top: .35em;}.logo-container:last-of-type img {margin-top: .65em;}.sec-partners img {float: left; width: 100%;}/* Footer */footer {padding: 2em 0; width: 100%; text-align: center; background: $lightGrey;}footer .nav-ul {justify-content: center; margin-bottom: 1em;}footer li:not(:first-child) {margin-left: .75em;}footer li:first-child a {color: $lightBlack;}footer a {font-size: 1.25em; font-weight: bold; color: $darkGrey;&:focus, &:hover {color: $lightBlack;}}.copy {font-size: .85em;}</style></head><body><div class="line"></div><div class="wrapper"><header role="banner"><nav role="navigation"><h1><a href="#">Asperion</a></h1><ul class="nav-ul"><li><a href="#">Home</a></li><li><a href="#">About Us</a></li><li><a href="#">Technologies</a></li><li><a href="#">Projects</a></li><li><a href="#">Contacts</a></li></ul></nav></header><main role="main"><section class="sec-intro" role="section"><img src="https://www.techweekeurope.co.uk/wp-content/uploads/2012/07/wifimountaindownload.jpg" alt="" /><h1>Be Innovative!</h1></section><!-- Add more sections and content here --><!-- ... --></main></div><footer><nav role="navigation"><ul class="nav-ul"><li><a href="#">Home</a></li><li><a href="#">About Us</a></li><li><a href="#">Technologies</a></li><li><a href="#">Projects</a></li><li><a href="#">Contacts</a></li></ul></nav><p class="copy">© Alex Devero Design 2014</p></footer><div class="line"></div></body></html>
index.html+173-152