Evan pepper (Talk | contribs) |
Evan pepper (Talk | contribs) |
||
(70 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
<html> | <html> | ||
− | <style | + | <style> |
+ | |||
+ | h1 { | ||
+ | font-family: 'objektiv-mk1'!important; | ||
+ | font-size: 300%; /*!important*/ | ||
+ | font-weight: 300 !important; | ||
+ | width: 80%; | ||
+ | } | ||
+ | |||
+ | h2 { | ||
+ | font-family: 'objektiv-mk1' !important; | ||
+ | font-size: 200%; | ||
+ | font-weight: 300; | ||
+ | } | ||
+ | |||
+ | |||
+ | .proj-button { | ||
+ | position: relative; | ||
+ | width: 10%; | ||
+ | text-decoration: none !important; | ||
+ | } | ||
+ | |||
+ | .proj-button-image { | ||
+ | opacity: 1; | ||
+ | display: inline-block; | ||
+ | width: 14%; | ||
+ | height: auto; | ||
+ | transition: .5s ease; | ||
+ | backface-visibility: hidden; | ||
+ | margin: 20px; | ||
+ | } | ||
+ | |||
+ | .proj-button-desc { | ||
+ | transition: .5s ease; | ||
+ | opacity: 0; | ||
+ | position: absolute; | ||
+ | top: 100%; | ||
+ | left: 50%; | ||
+ | background: transparent; | ||
+ | transform: translate(-50%, -50%); | ||
+ | -ms-transform: translate(-50%, -50%) | ||
+ | } | ||
+ | |||
+ | .proj-button:hover .proj-button-image { | ||
+ | opacity: 0.2; | ||
+ | } | ||
+ | |||
+ | .proj-button:hover .proj-button-desc { | ||
+ | opacity: 0.8; | ||
+ | } | ||
+ | |||
+ | .overlap-button-text { | ||
+ | background-color: transparent; | ||
+ | color: black; | ||
+ | font-size: 20px; | ||
+ | font-family: "Objektiv-mk1" !important; | ||
+ | font-weight: 400 !important; | ||
+ | padding: 16px 32px; | ||
+ | } | ||
+ | |||
.desktop-frontpage { | .desktop-frontpage { | ||
display: block; | display: block; | ||
Line 14: | Line 73: | ||
background: honeydew; | background: honeydew; | ||
width: 80%; | width: 80%; | ||
− | padding: | + | padding: 40px 0px; |
} | } | ||
Line 20: | Line 79: | ||
display: none; | display: none; | ||
} | } | ||
+ | |||
+ | @media (max-width: 768px) { | ||
+ | |||
+ | h1 { | ||
+ | font-family: 'objektiv-mk1'; /*!important*/ | ||
+ | font-size: 250%; /*!important*/ | ||
+ | } | ||
+ | |||
+ | h2 { | ||
+ | font-family: 'objektiv-mk1'; /*!important*/ | ||
+ | font-size: 20px; /*!important*/ | ||
+ | } | ||
+ | |||
+ | .overlap-button-text { | ||
+ | background-color: rgba(94, 94, 94, 0.5); | ||
+ | border-radius: 60px; | ||
+ | color: white; | ||
+ | } | ||
+ | |||
+ | .proj-button-image { | ||
+ | opacity: 0.7; | ||
+ | display: inline-block; | ||
+ | width: 30%; | ||
+ | height: auto; | ||
+ | transition: .5s ease; | ||
+ | backface-visibility: hidden; | ||
+ | } | ||
+ | |||
+ | .desktop-frontpage { | ||
+ | width: 95%; | ||
+ | } | ||
+ | |||
+ | .proj-button-desc { | ||
+ | transition: .5s ease; | ||
+ | opacity: 1; | ||
+ | position: absolute; | ||
+ | top: 100%; | ||
+ | left: 50%; | ||
+ | transform: translate(-50%, -50%); | ||
+ | -ms-transform: translate(-50%, -50%) | ||
+ | } | ||
+ | } | ||
@media (max-width: 576px) { | @media (max-width: 576px) { | ||
+ | |||
+ | .proj-button-image { | ||
+ | opacity: 0.7; | ||
+ | display: inline-block; | ||
+ | width: 38%; | ||
+ | height: auto; | ||
+ | transition: .5s ease; | ||
+ | backface-visibility: hidden; | ||
+ | } | ||
+ | |||
+ | .proj-button-desc { | ||
+ | transition: .5s ease; | ||
+ | opacity: 1; | ||
+ | position: absolute; | ||
+ | top: 100%; | ||
+ | left: 50%; | ||
+ | transform: translate(-50%, -50%); | ||
+ | -ms-transform: translate(-50%, -50%) | ||
+ | } | ||
+ | |||
.desktop-frontpage { | .desktop-frontpage { | ||
display: none; | display: none; | ||
Line 35: | Line 156: | ||
-ms-user-select: none; | -ms-user-select: none; | ||
background: honeydew; | background: honeydew; | ||
− | width: | + | width: 96%; |
+ | padding-top: 5px; | ||
+ | } | ||
+ | |||
+ | .overlap-button-text { | ||
+ | background-color: rgba(94, 94, 94, 0.5); | ||
+ | border-radius: 60px; | ||
+ | color: white; | ||
+ | font-size: 13px; | ||
} | } | ||
} | } | ||
Line 53: | Line 182: | ||
<div class="mobile-frontpage"> | <div class="mobile-frontpage"> | ||
− | <img src="https://static.igem.org/mediawiki/2017/ | + | <img src="https://static.igem.org/mediawiki/2017/d/dd/UCSC-Frontpage_Mobile.png" style="width: 100%;"> |
</div> | </div> | ||
+ | |||
+ | <br> | ||
+ | <h2>Click on an icon below to learn more about our project!</h2> | ||
+ | <br> | ||
+ | |||
+ | <div class="row"> | ||
+ | <!-- <a href="https://2017.igem.org/Team:UCSC/Team" class="proj-button"> | ||
+ | <img src="https://static.igem.org/mediawiki/2017/d/dd/Team-icon.png" class="proj-button-image"> | ||
+ | <div class="proj-button-desc"> | ||
+ | <div class="overlap-button-text">TEAM</div> | ||
+ | </div> | ||
+ | </a> | ||
+ | --> | ||
+ | <a href="https://2017.igem.org/Team:UCSC/Project" class="proj-button"> | ||
+ | <img src="https://static.igem.org/mediawiki/2017/6/64/UCSCproject.png" class="proj-button-image" alt="image sources from http://simpleicon.com/dev/light-bulb-10.html"> | ||
+ | <div class="proj-button-desc"> | ||
+ | <div class="overlap-button-text">OUR PROJECT</div> | ||
+ | </div> | ||
+ | </a> | ||
+ | |||
+ | <a href="https://2017.igem.org/Team:UCSC/Human_Practices" class="proj-button"> | ||
+ | <img src="https://static.igem.org/mediawiki/2017/7/72/Hp-icon.png" class="proj-button-image" alt="http://www.clker.com/clipart-398063.html"> | ||
+ | <div class="proj-button-desc"> | ||
+ | <div class="overlap-button-text">HUMAN PRACTICES</div> | ||
+ | </div> | ||
+ | </a> | ||
+ | |||
+ | <a href="https://2017.igem.org/Team:UCSC/Attributions" class="proj-button"> | ||
+ | <img src="https://static.igem.org/mediawiki/2017/7/77/Attributionsicon.png" class="proj-button-image" alt="http://clipartix.com/hands-clip-art-image-38330/"> | ||
+ | <div class="proj-button-desc"> | ||
+ | <div class="overlap-button-text">ATTRIBUTIONS</div> | ||
+ | </div> | ||
+ | </a> | ||
+ | |||
+ | <a href="https://2017.igem.org/Team:UCSC/Notebook" class="proj-button"> | ||
+ | <img src="https://static.igem.org/mediawiki/2017/c/cc/Labnotebook.png" class="proj-button-image"> | ||
+ | <div class="proj-button-desc"> | ||
+ | <div class="overlap-button-text">NOTEBOOK</div> | ||
+ | </div> | ||
+ | </a> | ||
+ | |||
+ | <a href="https://2017.igem.org/Team:UCSC/Judging" class="proj-button"> | ||
+ | <img src="https://static.igem.org/mediawiki/2017/1/1e/Medals_Transparent.png" class="proj-button-image"> | ||
+ | <div class="proj-button-desc"> | ||
+ | <div class="overlap-button-text">JUDGING</div> | ||
+ | </div> | ||
+ | </a> | ||
+ | |||
</div> | </div> | ||
Latest revision as of 04:26, 1 November 2017