(Prototype team page) |
|||
Line 1: | Line 1: | ||
− | {{Mingdao}} | + | {{:Team:Mingdao/test9}} |
− | <html> | + | <html lang="en"> |
+ | <head> | ||
+ | <meta charset="UTF-8"> | ||
+ | <link href='https://fonts.googleapis.com/css?family=Arizonia' rel='stylesheet'> | ||
+ | <link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet'> | ||
+ | <title>Description</title> | ||
+ | </head> | ||
− | < | + | <style type="text/css"> |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
+ | * { | ||
+ | margin: 0; | ||
+ | padding: 0; | ||
+ | box-sizing: border-box; } | ||
− | + | body { | |
+ | width: 100%; | ||
+ | margin: 0; | ||
+ | padding: 0; | ||
+ | font-family: 'Ubuntu' !important; } | ||
+ | .bg-container { | ||
+ | background-attachment: fixed; | ||
+ | background-color: rgba(255,255,255, .6); | ||
+ | overflow: hidden; | ||
+ | position: relative; | ||
+ | background-image: url(https://static.igem.org/mediawiki/2018/9/96/T--Mingdao--human_practice_top.jpg); | ||
+ | background-repeat: no-repeat; | ||
+ | background-size: 100%; | ||
+ | background-position: center; | ||
+ | } | ||
− | + | .my-main-container { | |
+ | width: 100%; | ||
+ | padding: 50px 7%; | ||
+ | } | ||
− | + | .main-content { | |
+ | background-color: rgba(255,255,255, .7); | ||
+ | width: 80%; | ||
+ | margin-left: 10%; | ||
+ | padding: 50px; | ||
+ | min-height: 3000vh; | ||
+ | z-index: 10; } | ||
− | + | .text-area { | |
+ | margin-bottom: 80px; } | ||
+ | .text-area h1 { | ||
+ | font-size: 60px; | ||
+ | font-weight: 700; | ||
+ | font-family: 'Arizonia' !important; | ||
+ | text-align: center; | ||
+ | margin-bottom: 1rem; } | ||
+ | .text-area p { | ||
+ | font-size: 24px; | ||
+ | font-weight: 500; } | ||
− | + | .m-block img { | |
+ | width: 100%; } | ||
− | + | .path-btns { | |
− | + | position: fixed; | |
+ | width: 250px; | ||
+ | top: 200px; | ||
+ | left: 225px; } | ||
+ | .path-btns .path-dot { | ||
+ | width: 25px; | ||
+ | height: 25px; | ||
+ | border-radius: 50%; | ||
+ | position: absolute; | ||
+ | background-color: #fff; | ||
+ | top: 5px; | ||
+ | left: 27px; | ||
+ | border: 5px solid #385e66; | ||
+ | cursor: pointer; } | ||
+ | .path-btns .path-dot.active { | ||
+ | background-color: #385e66; } | ||
+ | .path-btns .path-dot:hover { | ||
+ | transition: all .3s; | ||
+ | transform: scale(1.2); } | ||
− | + | .path { | |
− | + | height: 100px; | |
− | + | display: flex; } | |
− | + | .path .pathSvg { | |
− | + | display: block; } | |
− | + | .path .pathWord { | |
− | + | padding-right: 10%; } | |
− | + | .path .path-btn { | |
− | + | cursor: pointer; | |
− | + | fill: #fff; } | |
− | + | .path .path-btn.path-active { | |
− | + | fill: #385e66; } | |
− | + | .path .path-word-sm { | |
− | + | font-size: 12px; } | |
+ | #HQ_page .path .pathWord p { | ||
+ | font-weight: 700; | ||
+ | text-align: left !important; | ||
+ | font-size: 16px; | ||
+ | } | ||
+ | #HQ_page .text-area p { | ||
+ | font-size: 24px; | ||
+ | font-family: 'Ubuntu'; | ||
+ | font-weight: 500; } | ||
+ | img.center { | ||
+ | display: block; | ||
+ | margin: 0 auto; } | ||
− | <div class=" | + | .text-area h2{ |
− | < | + | text-align: center; |
− | </p> | + | margin-bottom: 2rem !important; |
− | </div> | + | margin-top: 2rem; |
− | </div> | + | color: black !important; |
+ | font-size: 28px; | ||
+ | font-weight:bold; | ||
+ | } | ||
+ | .text-area h3{ | ||
+ | text-align: center; | ||
+ | margin-bottom: 2rem !important; | ||
+ | margin-top: 2rem; | ||
+ | color: black !important; | ||
+ | font-size: 26px; | ||
+ | font-weight:bold; | ||
+ | } | ||
+ | |||
+ | .top { | ||
+ | position: fixed; | ||
+ | right: 50px; | ||
+ | bottom: 50px; | ||
+ | height: 50px; | ||
+ | width: 50px; | ||
+ | cursor: pointer; } | ||
+ | .top img { | ||
+ | width: 100%; } | ||
+ | img.pic { | ||
+ | display: block !important; | ||
+ | margin: 40px auto !important; | ||
+ | } | ||
+ | |||
+ | video { | ||
+ | position:relative; | ||
+ | width: 100%; | ||
+ | height:auto; | ||
+ | margin: 20px auto !important; | ||
+ | } | ||
+ | .card { | ||
+ | box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2); | ||
+ | transition: 0.3s; | ||
+ | width: 40%; | ||
+ | border-radius: 5px; | ||
+ | float:left; | ||
+ | } | ||
+ | |||
+ | .card:hover { | ||
+ | box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2); | ||
+ | } | ||
+ | .card-hidden { | ||
+ | display: none; | ||
+ | } | ||
+ | |||
+ | img { | ||
+ | border-radius: 5px 5px 0 0; | ||
+ | } | ||
+ | |||
+ | .container { | ||
+ | padding: 2px 10px; | ||
+ | } | ||
+ | .btn { | ||
+ | background-color:#ADD8E6; | ||
+ | border: 1px solid #cccccc; | ||
+ | //border-radius: 1rem; | ||
+ | color: #696969; | ||
+ | padding: 0.5rem; | ||
+ | text-transform: lowercase; | ||
+ | } | ||
+ | |||
+ | .btn--block { | ||
+ | display: block; | ||
+ | width: 10%; | ||
+ | } | ||
+ | </style> | ||
+ | |||
+ | <body> | ||
+ | |||
+ | <div class="bg-container" style="max-height:none;"> | ||
+ | <img class="top-picture" src="https://static.igem.org/mediawiki/2018/e/ed/T--Mingdao--hp--top.jpg" style="width:100%"> | ||
+ | <div class="my-main-container"> | ||
+ | <div class="main-content"> | ||
+ | <div class="text-area"> | ||
+ | <h1>Human Practice</h1> | ||
+ | <h2 id="d-meetups">Meetups with different teams</h2> | ||
+ | <div class="card"> | ||
+ | <img src="https://static.igem.org/mediawiki/2018/a/ae/T--Mingdao--hp_pic_meetup1.jpg" alt="Avatar" style="width:100%"> | ||
+ | <div class="container"> | ||
+ | <h4><b>4.3 nchu meet-ups</b></h4> | ||
+ | <p>Interior Designer</p> | ||
+ | <button id="button" class="btn btn--block card__btn">Learn More</button> | ||
+ | </div> | ||
+ | |||
+ | </div> | ||
+ | |||
+ | <div class="card"> | ||
+ | <img src="https://static.igem.org/mediawiki/2018/4/43/T--Mingdao--meetup_nccu_pic.jpg" alt="Avatar" style="width:100%"> | ||
+ | <div class="container"> | ||
+ | <h4><b>8.18 nccu meet-ups</b></h4> | ||
+ | <p>Interior Designer</p> | ||
+ | <button id="button" class="btn btn--block card__btn">Learn More</button> | ||
+ | </div> | ||
+ | |||
+ | </div> | ||
+ | |||
+ | |||
+ | <div class="card"> | ||
+ | <img src="https://static.igem.org/mediawiki/2018/4/41/T--Mingdao--meetup_nctu_nthu_pic.jpg" alt="Avatar" style="width:100%"> | ||
+ | <div class="container"> | ||
+ | <h4><b>7.23 nthu nctu meet-ups</b></h4> | ||
+ | <p>Interior Designer</p> | ||
+ | <button id="button" class="btn btn--block card__btn">Learn More</button> | ||
+ | </div> | ||
+ | |||
+ | </div> | ||
+ | |||
+ | <div class="card"> | ||
+ | <img src="https://static.igem.org/mediawiki/2018/2/2d/T--Mingdao--meetup_nchu_pic.jpg" alt="Avatar" style="width:100%"> | ||
+ | <div class="container"> | ||
+ | <h4><b>4.3 nchu meet-ups</b></h4> | ||
+ | <p>Interior Designer</p> | ||
+ | <button id="button" class="btn btn--block card__btn">Learn More</button> | ||
+ | </div> | ||
+ | |||
+ | </div> | ||
+ | |||
+ | <h2 id = "d-professor" class="text-area">Meetings with professors</h2> | ||
+ | |||
+ | <div class="path-btns" style="left:0;"> | ||
+ | <div class="path"> | ||
+ | <div class="pathSvg"> | ||
+ | <svg width="80" height = "100"> | ||
+ | <rect x ="36" y="20" width="6" height="80" style="fill:#385e66"/> | ||
+ | </svg> | ||
+ | </div> | ||
+ | <div id="d-meetups-btn" class="path-dot"></div> | ||
+ | <div class="pathWord path-word-sm"> | ||
+ | <p>Meetups</p> | ||
+ | </div> | ||
+ | </div> | ||
+ | <div class="path"> | ||
+ | <div class="pathSvg"> | ||
+ | <svg width="80" height = "100"> | ||
+ | <rect x ="36" y="20" width="6" height="0" style="fill:#385e66"/> | ||
+ | </svg> | ||
+ | </div> | ||
+ | <div id="d-professor-btn" class="path-dot" style="top: 100px"></div> | ||
+ | <div class="pathWord path-word-sm"> | ||
+ | <p>Professional Meetings</p> | ||
+ | </div> | ||
+ | </div> | ||
+ | |||
+ | <div class="top"> | ||
+ | <img src="https://static.igem.org/mediawiki/2017/5/52/T--CSMU_NCHU_Taiwan--top.png" alt=""> | ||
+ | </div> | ||
+ | </body> | ||
+ | <script type="text/javascript"> | ||
+ | $("#d-meetups-btn").click(function() { | ||
+ | $('html, body').animate({ | ||
+ | scrollTop: $("#d-overview").offset().top | ||
+ | }, 500); | ||
+ | }); | ||
+ | $("#d-professor-btn").click(function() { | ||
+ | $('html, body').animate({ | ||
+ | scrollTop: $("#d-funding").offset().top | ||
+ | }, 500); | ||
+ | }); | ||
+ | |||
+ | $(document).ready(function(){ | ||
+ | $('.top').on('click', function(){ | ||
+ | $('html, body').animate({scrollTop: '0px'}, 500); | ||
+ | }); | ||
+ | $("#d-meetups-btn").css('background-color', '#385e66'); | ||
+ | var scroll_pos = 0; | ||
+ | $(document).scroll(function() { | ||
+ | scroll_pos = $(this).scrollTop(); | ||
+ | |||
+ | d_meetups_pos = $("#d-meetups").offset().top -100 | ||
+ | d_professor_pos = $("#d-professor").offset().top -100 | ||
+ | |||
+ | // overview | ||
+ | if(scroll_pos < d_meetups_pos) { | ||
+ | $(".path-dot").css('background-color', '#fff') | ||
+ | $("#d-meetups-btn").css('background-color', '#385e66'); | ||
+ | |||
+ | |||
+ | //detective | ||
+ | else if( scroll_pos >= d_professor_pos) { | ||
+ | $(".path-dot").css('background-color', '#fff') | ||
+ | $("#d-professor-btn").css('background-color', '#385e66'); | ||
+ | } | ||
+ | }); | ||
+ | }); | ||
+ | $("#button").on("click", function(e) { | ||
+ | if ($(".card-hidden").length > 0) { | ||
+ | $(".card-hidden").first().slideToggle(function() { | ||
+ | $(this).removeClass("card-hidden"); | ||
+ | }); | ||
+ | } else { | ||
+ | console.log("No more cards to show."); | ||
+ | } | ||
+ | }); | ||
+ | </script> | ||
+ | |||
+ | </html> |
Revision as of 04:12, 10 October 2018
Human Practice
Meetups with different teams
4.3 nchu meet-ups
Interior Designer
8.18 nccu meet-ups
Interior Designer
7.23 nthu nctu meet-ups
Interior Designer
4.3 nchu meet-ups
Interior Designer
Meetings with professors
Meetups
Professional Meetings