Line 2: | Line 2: | ||
<html> | <html> | ||
<head> | <head> | ||
+ | <script> | ||
+ | $(document).ready(function(){ | ||
+ | $('.chat[data-chat=person2]').addClass('active-chat'); | ||
+ | $('.person[data-chat=person2]').addClass('active'); | ||
+ | |||
+ | $('.left .person').mousedown(function(){ | ||
+ | if ($(this).hasClass('.active')) { | ||
+ | return false; | ||
+ | } else { | ||
+ | var findChat = $(this).attr('data-chat'); | ||
+ | var personName = $(this).find('.name').text(); | ||
+ | $('.right .top .name').html(personName); | ||
+ | $('.chat').removeClass('active-chat'); | ||
+ | $('.left .person').removeClass('active'); | ||
+ | $(this).addClass('active'); | ||
+ | $('.chat[data-chat = '+findChat+']').addClass('active-chat'); | ||
+ | } | ||
+ | }); | ||
+ | }); | ||
+ | |||
+ | </script> | ||
<style> | <style> | ||
.bannerbox { | .bannerbox { | ||
Line 20: | Line 41: | ||
top:65px; | top:65px; | ||
} | } | ||
+ | |||
+ | *, *:before, *:after { box-sizing: border-box; } | ||
+ | |||
+ | body { | ||
+ | background-color: #e2e2e2; /* bg colour outside of chat*/ | ||
+ | -webkit-font-smoothing: antialiased; | ||
+ | -moz-osx-font-smoothing: grayscale; | ||
+ | text-rendering: optimizeLegibility; | ||
+ | font-family: 'Quicksand', sans-serif; | ||
+ | font-weight: 400; | ||
+ | } | ||
+ | .wrapper { | ||
+ | position: relative; | ||
+ | left: 50%; | ||
+ | width: 1000px; | ||
+ | height: 800px; | ||
+ | transform: translate(-50%, 0); | ||
+ | overflow:hidden; } | ||
+ | |||
+ | .container { | ||
+ | position: relative; | ||
+ | top: 50%; | ||
+ | left: 50%; | ||
+ | width: 80%; | ||
+ | height: 75%; | ||
+ | background-color: #fff; | ||
+ | transform: translate(-50%, -50%); | ||
+ | overflow:hidden; } | ||
+ | |||
+ | .container .left { | ||
+ | float: left; | ||
+ | width: 37.6%; | ||
+ | height: 100%; | ||
+ | border: 1px solid #e2e2e2; | ||
+ | background-color: #fff; } | ||
+ | |||
+ | .container .left .top { | ||
+ | position: relative; | ||
+ | width: 100%; | ||
+ | height: 96px; | ||
+ | padding: 29px; } | ||
+ | |||
+ | .container .left .top:after { | ||
+ | position: absolute; | ||
+ | bottom: 0; left: 50%; | ||
+ | display: block; | ||
+ | width: 80%; | ||
+ | height: 1px; | ||
+ | content: ''; | ||
+ | background-color: #e2e2e2; | ||
+ | transform: translate(-50%, 0); } | ||
+ | |||
+ | .container .left input { | ||
+ | float: left; | ||
+ | width: 188px; | ||
+ | height: 42px; | ||
+ | padding: 0 15px; | ||
+ | border: 1px solid #eceff1; | ||
+ | background-color: #eceff1; | ||
+ | border-radius: 21px; | ||
+ | font-family: 'Quicksand', sans-serif; | ||
+ | font-weight: 400; } | ||
+ | |||
+ | .container .left input:focus { outline: none; } | ||
+ | |||
+ | .container .left a.search { | ||
+ | display: block; | ||
+ | float: left; | ||
+ | width: 42px; | ||
+ | height: 42px; | ||
+ | margin-left: 10px; | ||
+ | border: 1px solid #eceff1; | ||
+ | background-color: #eceff1; | ||
+ | background-image: url("https://s11.postimg.org/dpuahewmn/name_type.png"); | ||
+ | background-repeat: no-repeat; background-position: top 12px left 14px; | ||
+ | border-radius: 50%; } | ||
+ | |||
+ | .container .left .people { | ||
+ | margin-left: -1px; | ||
+ | border-right: 1px solid #e2e2e2; | ||
+ | border-left: 1px solid #e2e2e2; | ||
+ | width: calc(100% + 2px); } | ||
+ | |||
+ | .container .left .people .person { | ||
+ | position: relative; | ||
+ | width: 100%; | ||
+ | padding: 12px 10% 16px; | ||
+ | cursor: pointer; | ||
+ | background-color: #fff; } | ||
+ | |||
+ | .container .left .people .person:after { | ||
+ | position: absolute; | ||
+ | bottom: 0; | ||
+ | left: 50%; | ||
+ | display: block; | ||
+ | width: 80%; | ||
+ | height: 1px; | ||
+ | content: ''; | ||
+ | background-color: #e2e2e2; | ||
+ | transform: translate(-50%, 0); } | ||
+ | |||
+ | .container .left .people .person img { | ||
+ | float: left; | ||
+ | width: 40px; | ||
+ | height: 40px; | ||
+ | margin-right: 12px; | ||
+ | border-radius: 50%; } | ||
+ | |||
+ | .container .left .people .person .name { | ||
+ | font-size: 14px; | ||
+ | line-height: 22px; | ||
+ | color: #3e3f3f; | ||
+ | font-family: 'Quicksand', sans-serif; | ||
+ | font-weight: 600; } | ||
+ | |||
+ | .container .left .people .person .time { | ||
+ | font-size: 14px; | ||
+ | position: absolute; | ||
+ | top: 16px; right: 10%; | ||
+ | padding: 0 0 5px 5px; | ||
+ | color: #e2e2e2; | ||
+ | background-color: #fff; } | ||
+ | |||
+ | .container .left .people .person .preview { | ||
+ | font-size: 14px; | ||
+ | display: inline-block; | ||
+ | overflow: hidden !important; | ||
+ | width: 70%; | ||
+ | white-space: nowrap; | ||
+ | text-overflow: ellipsis; | ||
+ | color: #999; } | ||
+ | |||
+ | .container .left .people .person:hover { | ||
+ | margin-top: -1px; | ||
+ | margin-left: -1px; | ||
+ | padding-top: 13px; | ||
+ | border: 0; | ||
+ | background-color: #5eacc3; | ||
+ | width: calc(100% + 2px); | ||
+ | padding-left: calc(10% + 1px); } | ||
+ | |||
+ | .container .left .people .person.active { | ||
+ | margin-top: -1px; | ||
+ | margin-left: -1px; | ||
+ | padding-top: 13px; | ||
+ | border: 0; | ||
+ | background-color: #5eacc3; | ||
+ | width: calc(100% + 2px); | ||
+ | padding-left: calc(10% + 1px); | ||
+ | } | ||
+ | .container .left .people .person.active span, .container .left .people .person:hover span { | ||
+ | color: #fff; | ||
+ | background: transparent; } | ||
+ | |||
+ | .container .left .people .person.active:after, .container .left .people .person:hover:after { | ||
+ | display: none; } | ||
+ | |||
+ | .container .right { | ||
+ | position: relative; | ||
+ | float: left; | ||
+ | width: 62.4%; | ||
+ | height: 100%; | ||
+ | overflow:hidden; | ||
+ | } | ||
+ | |||
+ | .container .right .top { | ||
+ | width: 100%; | ||
+ | height: 47px; | ||
+ | padding: 15px 29px; | ||
+ | background-color: #eceff1; } | ||
+ | |||
+ | .container .right .top span { | ||
+ | font-size: 15px; | ||
+ | color: #999; } | ||
+ | |||
+ | .container .right .top span .name { | ||
+ | color: #3e3f3f; | ||
+ | font-family: 'Quicksand', sans-serif; | ||
+ | font-weight: 600; } | ||
+ | |||
+ | .container .right .chat { | ||
+ | position: relative; | ||
+ | display: none; | ||
+ | padding: 0 35px 92px; | ||
+ | border-width: 1px 1px 1px 0; | ||
+ | border-style: solid; | ||
+ | border-color: #e2e2e2; | ||
+ | height: calc(100% - 48px); | ||
+ | justify-content: flex-end; | ||
+ | flex-direction: column; | ||
+ | width:100% } | ||
+ | |||
+ | .container .right .chat.active-chat { | ||
+ | display: inline-block; | ||
+ | flex: 1 1 auto; | ||
+ | overflow-y: auto; | ||
+ | min-height: 0px; | ||
+ | } | ||
+ | |||
+ | .container .right .chat.active-chat .bubble { | ||
+ | -moz-transition-timing-function: cubic-bezier(0.4, -0.04, 1, 1); | ||
+ | -o-transition-timing-function: cubic-bezier(0.4, -0.04, 1, 1); | ||
+ | -webkit-transition-timing-function: cubic-bezier(0.4, -0.04, 1, 1); | ||
+ | transition-timing-function: cubic-bezier(0.4, -0.04, 1, 1); } | ||
+ | |||
+ | .container .right .chat.active-chat .bubble:nth-of-type(1) { | ||
+ | -moz-animation-duration: 0.15s; | ||
+ | -webkit-animation-duration: 0.15s; | ||
+ | animation-duration: 0.15s; } | ||
+ | |||
+ | .container .right .chat.active-chat .bubble:nth-of-type(2) { | ||
+ | -moz-animation-duration: 0.3s; | ||
+ | -webkit-animation-duration: 0.3s; | ||
+ | animation-duration: 0.3s; } | ||
+ | |||
+ | .container .right .chat.active-chat .bubble:nth-of-type(3) { | ||
+ | -moz-animation-duration: 0.45s; | ||
+ | -webkit-animation-duration: 0.45s; | ||
+ | animation-duration: 0.45s; } | ||
+ | |||
+ | .container .right .chat.active-chat .bubble:nth-of-type(4) { | ||
+ | -moz-animation-duration: 0.6s; | ||
+ | -webkit-animation-duration: 0.6s; | ||
+ | animation-duration: 0.6s; } | ||
+ | |||
+ | .container .right .chat.active-chat .bubble:nth-of-type(5) { | ||
+ | -moz-animation-duration: 0.75s; | ||
+ | -webkit-animation-duration: 0.75s; | ||
+ | animation-duration: 0.75s; } | ||
+ | |||
+ | .container .right .chat.active-chat .bubble:nth-of-type(6) { | ||
+ | -moz-animation-duration: 0.9s; | ||
+ | -webkit-animation-duration: 0.9s; | ||
+ | animation-duration: 0.9s; } | ||
+ | |||
+ | .container .right .chat.active-chat .bubble:nth-of-type(7) { | ||
+ | -moz-animation-duration: 1.05s; | ||
+ | -webkit-animation-duration: 1.05s; | ||
+ | animation-duration: 1.05s; } | ||
+ | |||
+ | .container .right .chat.active-chat .bubble:nth-of-type(8) { | ||
+ | -moz-animation-duration: 1.2s; | ||
+ | -webkit-animation-duration: 1.2s; | ||
+ | animation-duration: 1.2s; } | ||
+ | |||
+ | .container .right .chat.active-chat .bubble:nth-of-type(9) { | ||
+ | -moz-animation-duration: 1.35s; | ||
+ | -webkit-animation-duration: 1.35s; | ||
+ | animation-duration: 1.35s; } | ||
+ | |||
+ | .container .right .chat.active-chat .bubble:nth-of-type(10) { | ||
+ | -moz-animation-duration: 1.5s; | ||
+ | -webkit-animation-duration: 1.5s; | ||
+ | animation-duration: 1.5s; } | ||
+ | |||
+ | .container .right .chat.active-chat .bubble:nth-of-type(11) { | ||
+ | -moz-animation-duration: 1.75s; | ||
+ | -webkit-animation-duration: 1.75s; | ||
+ | animation-duration: 1.75s; } | ||
+ | |||
+ | .container .right .chat.active-chat .bubble:nth-of-type(12) { | ||
+ | -moz-animation-duration: 2s; | ||
+ | -webkit-animation-duration: 2s; | ||
+ | animation-duration: 2s; } | ||
+ | |||
+ | .container .right .chat.active-chat .bubble:nth-of-type(13) { | ||
+ | -moz-animation-duration: 2.25s; | ||
+ | -webkit-animation-duration: 2.25s; | ||
+ | animation-duration: 2.25s; } | ||
+ | |||
+ | .container .right .chat.active-chat .bubble:nth-of-type(14) { | ||
+ | -moz-animation-duration: 2.5s; | ||
+ | -webkit-animation-duration: 2.5s; | ||
+ | animation-duration: 2.5s; } | ||
+ | |||
+ | |||
+ | .container .right .bubble { | ||
+ | font-size: 16px; | ||
+ | position: relative; | ||
+ | display: inline-block; | ||
+ | clear: both; | ||
+ | margin-bottom: 8px; | ||
+ | padding: 13px 14px; | ||
+ | vertical-align: top; | ||
+ | border-radius: 5px; } | ||
+ | |||
+ | .container .right .bubble:before { | ||
+ | position: absolute; top: 19px; | ||
+ | display: block; | ||
+ | width: 8px; | ||
+ | height: 6px; | ||
+ | content: '\00a0'; | ||
+ | transform: rotate(29deg) skew(-35deg); } | ||
+ | |||
+ | .container .right .bubble.you { | ||
+ | float: left; | ||
+ | color: #fff; | ||
+ | background-color: #5eacc3; | ||
+ | align-self: flex-start; | ||
+ | -moz-animation-name: slideFromLeft; | ||
+ | -webkit-animation-name: slideFromLeft; | ||
+ | animation-name: slideFromLeft; } | ||
+ | |||
+ | .container .right .bubble.you:before { | ||
+ | left: -3px; | ||
+ | background-color: #5eacc3; } | ||
+ | |||
+ | .container .right .bubble.me { | ||
+ | float: right; | ||
+ | color: #3e3f3f; | ||
+ | background-color: #eceff1; | ||
+ | align-self: flex-end; | ||
+ | -moz-animation-name: slideFromRight; | ||
+ | -webkit-animation-name: slideFromRight; | ||
+ | animation-name: slideFromRight; } | ||
+ | |||
+ | .container .right .bubble.me:before { | ||
+ | right: -3px; | ||
+ | background-color: #eceff1; } | ||
+ | |||
+ | .container .right .conversation-start { | ||
+ | position: relative; | ||
+ | width: 100%; | ||
+ | margin-bottom: 27px; | ||
+ | text-align: center; } | ||
+ | |||
+ | .container .right .conversation-start span { | ||
+ | font-size: 14px; | ||
+ | display: inline-block; | ||
+ | color: #999; } | ||
+ | |||
+ | .container .right .conversation-start span:before, .container .right .conversation-start span:after { | ||
+ | position: absolute; | ||
+ | top: 10px; | ||
+ | display: inline-block; | ||
+ | width: 30%; | ||
+ | height: 1px; | ||
+ | content: ''; | ||
+ | background-color: #e2e2e2; } | ||
+ | |||
+ | .container .right .conversation-start span:before { | ||
+ | left: 0; } | ||
+ | |||
+ | .container .right .conversation-start span:after { | ||
+ | right: 0; } | ||
+ | |||
+ | |||
+ | ul li {list-style-type: none;} | ||
+ | @keyframes slideFromLeft { 0% { margin-left: -200px; opacity: 0; } 100% { margin-left: 0; opacity: 1; } } @-webkit-keyframes slideFromLeft { 0% { margin-left: -200px; opacity: 0; } 100% { margin-left: 0; opacity: 1; } } @keyframes slideFromRight { 0% { margin-right: -200px; opacity: 0; } 100% { margin-right: 0; opacity: 1; } } @-webkit-keyframes slideFromRight { 0% { margin-right: -200px; opacity: 0; } 100% { margin-right: 0; opacity: 1; } } | ||
</style> | </style> | ||
Line 32: | Line 402: | ||
</div> | </div> | ||
+ | <div class="wrapper"> | ||
+ | <div class="container"> | ||
+ | <div class="left"> | ||
+ | <div class="top"> | ||
+ | <input type="text" /> | ||
+ | <a href="javascript:;" class="search"></a> | ||
+ | </div> | ||
+ | <ul class="people"> | ||
+ | <li class="person" data-chat="person1"> | ||
+ | <img class="img-circle" src="https://static.igem.org/mediawiki/2017/2/23/T--Sydney_Australia--design_brain.png" alt="" /> | ||
+ | <span class="name">Project Design</span> | ||
+ | <span class="preview">Stuff about design</span> | ||
+ | </li> | ||
+ | <li class="person" data-chat="person2"> | ||
+ | <img src="https://static.igem.org/mediawiki/2017/0/09/T--Sydney_Australia--Handshake1.gif" alt="" /> | ||
+ | <span class="name">Human Practices</span> | ||
+ | <span class="preview">Stuff about this stuff</span> | ||
+ | </li> | ||
+ | <li class="person" data-chat="person3"> | ||
+ | <img src="https://s3.postimg.org/h9q4sm433/img3.jpg" alt="" /> | ||
+ | <span class="name">third one</span> | ||
+ | <span class="time"></span> | ||
+ | <span class="preview"></span> | ||
+ | </li> | ||
+ | <li class="person" data-chat="person4"> | ||
+ | <img src="https://s3.postimg.org/quect8isv/img4.jpg" alt="" /> | ||
+ | <span class="name">fourth one</span> | ||
+ | <span class="time"></span> | ||
+ | <span class="preview"></span> | ||
+ | </li> | ||
+ | <li class="person" data-chat="person5"> | ||
+ | <img src="https://s16.postimg.org/ete1l89z5/img5.jpg" alt="" /> | ||
+ | <span class="name">fifth one</span> | ||
+ | <span class="time"></span> | ||
+ | <span class="preview"></span> | ||
+ | </li> | ||
+ | <li class="person" data-chat="person6"> | ||
+ | <img src="https://s30.postimg.org/kwi7e42rh/img6.jpg" alt="" /> | ||
+ | <span class="name">sixth one</span> | ||
+ | <span class="time"></span> | ||
+ | <span class="preview"></span> | ||
+ | </li> | ||
+ | </ul> | ||
+ | </div> | ||
+ | <div class="right"> | ||
+ | <div class="top"><span>To: <span class="name">Human Practices</span></span></div> | ||
+ | <div class="chat" data-chat="person1"> | ||
+ | <div class="conversation-start"> | ||
+ | <span>Today, 6:48 AM</span> | ||
+ | </div> | ||
+ | <div class="bubble you"> | ||
+ | Hello, | ||
+ | </div> | ||
+ | <div class="bubble you"> | ||
+ | it's me. | ||
+ | </div> | ||
+ | <div class="bubble you"> | ||
+ | I was wondering... | ||
+ | </div> | ||
+ | </div> | ||
+ | <div class="chat" data-chat="person2"> | ||
+ | <div class="conversation-start"> | ||
+ | <span>Today, 5:38 PM</span> | ||
+ | </div> | ||
+ | <div class="bubble you"> | ||
+ | Hello, can you hear me? | ||
+ | </div> | ||
+ | <div class="bubble you"> | ||
+ | I'm in California dreaming | ||
+ | </div> | ||
+ | <div class="bubble me"> | ||
+ | ... about who we used to be. | ||
+ | </div> | ||
+ | <div class="bubble me"> | ||
+ | Are you serious? | ||
+ | </div> | ||
+ | <div class="bubble you"> | ||
+ | When we were younger and free... | ||
+ | </div> | ||
+ | <div class="bubble you"> | ||
+ | I've forgotten how it felt before | ||
+ | </div> | ||
+ | <div class="bubble you"> | ||
+ | Hello, can you hear me? | ||
+ | </div> | ||
+ | <div class="bubble you"> | ||
+ | I'm in California dreaming | ||
+ | </div> | ||
+ | <div class="bubble me"> | ||
+ | ... about who we used to be. | ||
+ | </div> | ||
+ | <div class="bubble me"> | ||
+ | Are you serious? | ||
+ | </div> | ||
+ | <div class="bubble you"> | ||
+ | When we were younger and free... | ||
+ | </div> | ||
+ | <div class="bubble you"> | ||
+ | I've forgotten how it felt before | ||
+ | </div> | ||
+ | |||
+ | </div> | ||
+ | <div class="chat" data-chat="person3"> | ||
+ | <div class="conversation-start"> | ||
+ | <span>Today, 3:38 AM</span> | ||
+ | </div> | ||
+ | <div class="bubble you"> | ||
+ | Hey human! | ||
+ | </div> | ||
+ | <div class="bubble you"> | ||
+ | Umm... Someone took a shit in the hallway. | ||
+ | </div> | ||
+ | <div class="bubble me"> | ||
+ | ... what. | ||
+ | </div> | ||
+ | <div class="bubble me"> | ||
+ | Are you serious? | ||
+ | </div> | ||
+ | <div class="bubble you"> | ||
+ | I mean... | ||
+ | </div> | ||
+ | <div class="bubble you"> | ||
+ | It’s not that bad... | ||
+ | </div> | ||
+ | <div class="bubble you"> | ||
+ | But we’re probably gonna need a new carpet. | ||
+ | </div> | ||
+ | </div> | ||
+ | <div class="chat" data-chat="person4"> | ||
+ | <div class="conversation-start"> | ||
+ | <span>Yesterday, 4:20 PM</span> | ||
+ | </div> | ||
+ | <div class="bubble me"> | ||
+ | Hey human! | ||
+ | </div> | ||
+ | <div class="bubble me"> | ||
+ | Umm... Someone took a shit in the hallway. | ||
+ | </div> | ||
+ | <div class="bubble you"> | ||
+ | ... what. | ||
+ | </div> | ||
+ | <div class="bubble you"> | ||
+ | Are you serious? | ||
+ | </div> | ||
+ | <div class="bubble me"> | ||
+ | I mean... | ||
+ | </div> | ||
+ | <div class="bubble me"> | ||
+ | It’s not that bad... | ||
+ | </div> | ||
+ | </div> | ||
+ | <div class="chat" data-chat="person5"> | ||
+ | <div class="conversation-start"> | ||
+ | <span>Today, 6:28 AM</span> | ||
+ | </div> | ||
+ | <div class="bubble you"> | ||
+ | Wasup | ||
+ | </div> | ||
+ | <div class="bubble you"> | ||
+ | Wasup | ||
+ | </div> | ||
+ | <div class="bubble you"> | ||
+ | Wasup for the third time like is <br />you blind bitch | ||
+ | </div> | ||
+ | |||
+ | </div> | ||
+ | <div class="chat" data-chat="person6"> | ||
+ | <div class="conversation-start"> | ||
+ | <span>Monday, 1:27 PM</span> | ||
+ | </div> | ||
+ | <div class="bubble you"> | ||
+ | So, how's your new phone? | ||
+ | </div> | ||
+ | <div class="bubble you"> | ||
+ | You finally have a smartphone :D | ||
+ | </div> | ||
+ | <div class="bubble me"> | ||
+ | Drake? | ||
+ | </div> | ||
+ | <div class="bubble me"> | ||
+ | Why aren't you answering? | ||
+ | </div> | ||
+ | <div class="bubble you"> | ||
+ | howdoyoudoaspace | ||
+ | </div> | ||
+ | </div> | ||
+ | |||
+ | </div> | ||
+ | </div> | ||
+ | </div> | ||
</body> | </body> | ||
</html> | </html> | ||
{{:Team:Sydney_Australia/templates/Footer}} | {{:Team:Sydney_Australia/templates/Footer}} |
Revision as of 06:29, 20 October 2017
- Project Design Stuff about design
- Human Practices Stuff about this stuff
- third one
- fourth one
- fifth one
- sixth one
To: Human Practices
Today, 6:48 AM
Hello,
it's me.
I was wondering...
Today, 5:38 PM
Hello, can you hear me?
I'm in California dreaming
... about who we used to be.
Are you serious?
When we were younger and free...
I've forgotten how it felt before
Hello, can you hear me?
I'm in California dreaming
... about who we used to be.
Are you serious?
When we were younger and free...
I've forgotten how it felt before
Today, 3:38 AM
Hey human!
Umm... Someone took a shit in the hallway.
... what.
Are you serious?
I mean...
It’s not that bad...
But we’re probably gonna need a new carpet.
Yesterday, 4:20 PM
Hey human!
Umm... Someone took a shit in the hallway.
... what.
Are you serious?
I mean...
It’s not that bad...
Today, 6:28 AM
Wasup
Wasup
Wasup for the third time like is
you blind bitch
you blind bitch
Monday, 1:27 PM
So, how's your new phone?
You finally have a smartphone :D
Drake?
Why aren't you answering?
howdoyoudoaspace