Commit 4359a254 by Galen Frechette

wip course info/profile page

parent e0f01aa8
......@@ -16,5 +16,14 @@ $(document).ready(function () {
$('.modal.signup-modal').removeClass("visible");
$('.modal-overlay').removeClass("visible");
});
$('.hero').click(function() {
$('.modal.video-modal').addClass("visible");
$('.modal-overlay').addClass("visible");
});
$('div.close-modal').click(function() {
$('.modal.video-modal').removeClass("visible");
$('.modal-overlay').removeClass("visible");
});
});
......@@ -4,8 +4,8 @@
}
header.course-profile {
background: rgb(240,240,240);
@include background-image(linear-gradient(-90deg, rgb(230,230,230), rgb(245,245,245)));
background: rgb(245,245,245);
//@include background-image(linear-gradient(-90deg, rgb(230,230,230), rgb(245,245,245)));
@include box-shadow(0 1px 80px 0 rgba(0,0,0, 0.5));
border-bottom: 1px solid rgb(200,200,200);
@include box-shadow(inset 0 1px 5px 0 rgba(0,0,0, 0.1));
......@@ -16,7 +16,7 @@
@include clearfix;
margin: 0 auto;
max-width: 1200px;
padding: 40px 0px 40px;
padding: 50px 0px 40px;
position: relative;
width: flex-grid(12);
......@@ -41,8 +41,6 @@
z-index: 2;
> hgroup {
//@include inline-block;
//padding: 0 30px;
position: relative;
hr {
......@@ -69,9 +67,9 @@
h1 {
font: bold 2.8rem/3.2rem $sans-serif;
margin-bottom: 0px;
@include inline-block;
margin-right: 5px;
text-shadow: 0 1px rgba(255,255,255, 0.6);
//text-align: center;
span {
color: $lighter-base-font-color;
......@@ -81,7 +79,7 @@
}
h2 {
//text-align: center;
@include inline-block;
a {
color: $lighter-base-font-color;
......@@ -94,31 +92,92 @@
}
}
}
.course-dates {
p {
color: $lighter-base-font-color;
@include inline-block;
font: 300 1.2rem/1.6rem $sans-serif;
margin-top: 0px;
margin-right: 20px;
text-transform: uppercase;
&:last-child {
margin: 0;
}
> span {
color: $base-font-color;
font: 300 1.2rem/1.6rem $sans-serif;
margin-left: 5px;
}
}
}
}
.actions {
float: left;
padding-top: 5px;
position: relative;
width: flex-grid(4);
z-index: 2;
a.register {
@include button(shiny, $blue);
&:hover {
.register-wrapper {
@include box-shadow(0 1px 16px 0 rgba($blue, 0.35));
border-color: rgb(180,180,180);
}
}
.register-wrapper {
@include background-image(linear-gradient(-90deg, rgb(245,245,245) 0%, rgb(243,243,243) 50%, rgb(237,237,237) 50%, rgb(235,235,235) 100%));
@include box-sizing(border-box);
@include border-radius(3px);
display: block;
font: italic 1.2rem/1.6rem $serif;
margin-bottom: 10px;
padding: 10px 0px;
text-transform: uppercase;
text-align: center;
width: flex-grid(12);
@include box-shadow(0 1px 8px 0 rgba(0,0,0, 0.1), inset 0 0 0 1px rgba(255,255,255, 0.9));
border: 1px solid rgb(210,210,210);
@include border-radius(4px);
@include transition(all, 0.15s, linear);
padding: 10px;
a.register {
@include button(shiny, $blue);
@include box-sizing(border-box);
@include border-radius(3px);
display: block;
font: italic 1.2rem/1.6rem $serif;
padding: 10px 0px;
position: relative;
text-transform: uppercase;
text-align: center;
width: flex-grid(12);
z-index: 1;
}
}
.social-sharing {
background: rgb(230,230,230);
height: 40px;
padding: 0px 20px;
p {
background: rgb(245,245,245);
@include box-shadow(0 1px 5px 0 rgba(0,0,0, 0.075), inset 0 0 0 1px rgba(255,255,255, 0.9));
border: 1px solid rgb(210,210,210);
border-top: 0;
@include border-bottom-radius(4px);
padding: 5px 10px;
margin: 0 auto;
color: $lighter-base-font-color;
font: italic 300 1.2rem/1.6rem $serif;
margin: 0 0 5px 0;
text-align: center;
text-shadow: 0 1px rgba(255,255,255, 0.6);
&:last-child {
margin: 0;
}
> span {
font: normal 1.2rem/1.6rem $sans-serif;
margin-right: 5px;
}
}
}
}
}
......@@ -131,8 +190,7 @@
border-bottom: 1px solid rgb(220,220,220);
@include box-sizing(border-box);
@include clearfix;
margin-bottom: 40px;
//text-align: center;
margin: 40px 0;
width: flex-grid(12);
&::after {
......@@ -142,14 +200,22 @@
}
a {
border-bottom: 3px solid transparent;
color: $lighter-base-font-color;
@include inline-block;
font: normal 1.2rem/1.6rem $sans-serif;
padding: 30px 20px;
margin: 0 15px;
padding: 0px 5px 15px;
text-align: center;
text-transform: uppercase;
&:first-child {
margin-left: 0px;
}
&:hover, &.active {
background: rgb(240,240,240);
border-color: $pink;
//background: rgb(240,240,240);
color: $base-font-color;
}
}
......@@ -175,8 +241,6 @@
width: flex-grid(8);
.inner-wrapper {
//padding: 0 60px;
> section {
&::after {
......@@ -242,25 +306,6 @@
background: rgb(245,245,245);
margin-bottom: 20px;
padding: 15px;
&.dates {
p {
border-bottom: 1px solid rgb(220,220,220);
margin-bottom: 15px;
margin-top: 0px;
padding-bottom: 5px;
&:last-child {
border: none;
margin: 0;
padding: 0;
}
> span {
margin-left: 20px;
}
}
}
}
.media {
......@@ -273,11 +318,53 @@
.hero {
height: 180px;
overflow: hidden;
position: relative;
.play-intro {
@include background-image(linear-gradient(-90deg, rgba(255,255,255, 0.6), rgba(255,255,255, 0.4)));
@include border-radius(4px);
@include box-shadow(0 1px 10px 0 rgba(0,0,0, 0.2));
border: 1px solid rgba(0,0,0, 0.3);
height: 80px;
left: 50%;
margin-top: -40px;
margin-left: -40px;
position: absolute;
top: 50%;
width: 80px;
&::after {
color: $base-font-color;
content: "\25B6";
display: block;
font: normal 3.2rem/3.2rem $sans-serif;
left: 50%;
margin-left: -12px;
margin-top: -17px;
position: absolute;
text-shadow: 0 1px rgba(255,255,255, 0.8);
top: 50%;
}
}
img {
min-width: 100%;
}
}
&:hover {
cursor: pointer;
.play-intro {
@include background-image(linear-gradient(-90deg, rgba(255,255,255, 0.7), rgba(255,255,255, 0.5)));
@include box-shadow(0 1px 10px 0 rgba(0,0,0, 0.2));
border: 1px solid rgba(0,0,0, 0.4);
&::after {
color: $pink;
}
}
}
}
}
}
......@@ -34,6 +34,21 @@
display: block;
}
&.video-modal {
//height: 360px;
left: 50%;
margin-left: -320px;
//margin-top: -180px;
//top: 50%;
width: 642px;
.inner-wrapper {
height: 360px;
padding: 0px;
width: 640px;
}
}
.inner-wrapper {
background: rgb(240,240,240);
@include border-radius(0px);
......
<%! from django.core.urlresolvers import reverse %>
<%namespace name='static' file='../static_content.html'/>
<%namespace name='static' file='static_content.html'/>
<%block name="js_extra">
<script src="${static.url('js/course_info.js')}"></script>
</%block>
<%inherit file="../main.html" />
<%inherit file="main.html" />
<section class="container">
<section class="course-info">
<header>
<img src="${static.url('images/harvard_cropped.png')}" />
<h2>${course.get_about_section("title")} <span class="course-number">(${course.get_about_section("number")})</span></h3>
<h3>${course.get_about_section("university")}</h3>
<div class="course-abstract">
<p>${course.get_about_section("short_description")}</p>
</div>
<a class="button sign-up" href="${reverse('enroll', args=[course.id])}">Sign up</a>
</header>
<section class="sidebar">
<div class="faded-vertical-divider"></div>
<section class="course-staff">
<h3>About the course staff</h3>
<div class="teacher">
<div class="teacher-image">
<img src="${static.url('images/anant.jpg')}" />
</div>
<h3 class="teacher-name">Anant Agarwal</h3>
<p>Director of MIT’s Computer Science and Artificial Intelligence Laboratory (CSAIL) and a professor of the Electrical Engineering and Computer Science department at MIT. His research focus is in parallel computer architectures and cloud software systems, and he is a founder of several successful startups, including Tilera, a company that produces scalable multicore processors. Prof. Agarwal won MIT’s Smullin and Jamieson prizes for teaching and co-authored the course textbook “Foundations of Analog and Digital Electronic Circuits.”</p>
</div> <!-- .teacher -->
<div class="teacher">
<div class="teacher-image">
<img src="${static.url('images/gerald.jpg')}" />
</div>
<h3 class="teacher-name">Gerald Sussman</h3>
<p>Professor of Electrical Engineering at MIT. He is a well known educator in the computer science community, perhaps best known as the author of Structure and Interpretation of Computer Programs, which is universally acknowledged as one of the top ten textbooks in computer science, and as the creator of Scheme, a popular teaching language. His research spans a range of topics, from artificial intelligence, to physics and chaotic systems, to supercomputer design.</p>
</div> <!-- .teacher -->
<div class="teacher">
<div class="teacher-image">
<img src="${static.url('images/piotr.jpg')}" />
</div>
<h3 class="teacher-name">Piotr Mitros</h3>
<p>Research Scientist at MIT. His research focus is in finding ways to apply techniques from control systems to optimizing the learning process. Dr. Mitros has worked as an analog designer at Texas Instruments, Talking Lights, and most recently, designed the analog front end for a novel medical imaging modality for Rhythmia Medical.</p>
</div> <!-- .teacher -->
<section class="course-info">
<header class="course-profile">
<div class="intro-inner-wrapper">
<section class="intro">
<hgroup>
<h1>${course.get_about_section("title")} <h2><a href="#">${course.get_about_section("university")}</a></h2></h1>
<hr>
</hgroup>
<div class="course-dates">
<p>Class Starts: <span class="start-date">7/12/12</span></p>
<p>Final Exam: <span class="start-date">12/09/12</span></p>
<p>Total Length: <span class="course-length">15 weeks</span></p>
</div>
</section>
</section>
<section class="main-content-wrap">
<div class="video">
${course.get_about_section("video")}
</div>
<section class="course-description">
<h3>About this course</h3>
<div class="course-times">
<div class="start">
<strong>Start</strong>
Aug 6th
</div>
<div class="length">
<strong>Length</strong>
15 weeks
</div>
<div class="final">
<strong>Final</strong>
Dec 24th
</div>
<section class="actions">
<div class="register-wrapper">
<a href="#" class="register">Register</a>
</div>
</div>
<p>${course.get_about_section("description")}</p>
<section class="social-sharing">
<p><span class="num-people-registered">1,435</span> students already registed!</p>
</section>
</section>
</div>
</header>
<div class="faded-hr-divider"></div>
<section class="container">
<section class="details">
<nav>
<a href="#" class="active">Overview</a>
<a href="#">FAQ</a>
<a href="#">Requirements</a>
<a href="#">Text-book</a>
<a href="#">Syllabus</a>
<a href="#">Reviews</a>
</nav>
<ul class="tabs">
<li data-class="requirements" class="enabled">Requirements</li>
<li data-class="syllabus">Syllabus</li>
<li data-class="textbook">Textbook</li>
<li data-class="faq">FAQ</li>
<li data-class="more-info">More info</li>
</ul>
<div class="inner-wrapper">
<section class="about">
<h2>About this course</h2>
<p>${course.get_about_section("description")}</p>
<section class="tabs-content">
<section class="requirements tab" style="display: block;">
<h3>Requirements</h3>
${course.get_about_section("requirements")}
</section>
<h2>Requirements</h2>
<p>${course.get_about_section("requirements")}</p>
<section class="syllabus tab">
<h3>Syllabus</h3>
${course.get_about_section("syllabus")}
</section>
<h2>Syllabus</h2>
<p>${course.get_about_section("syllabus")}</p>
<section class="textbook tab">
<h3>Textbook</h3>
${course.get_about_section("textbook")}
</section>
<section class="faq tab">
<h3>Frequently Asked Questions</h3>
${course.get_about_section("faq")}
</section>
<section class="more-info tab">
${course.get_about_section("more_info")}
</section>
</section> <!-- .tabs -->
<div class="clearfix"></div>
</section> <!-- .main-content-wrap -->
</section> <!-- .course-info -->
</section> <!-- .container -->
<section class="course-staff">
<h2>Course staff</h3>
<article class="teacher">
<div class="teacher-image">
<img src="${static.url('images/anant.jpg')}" />
</div>
<h3>Anant Agarwal</h3>
<p>Director of MIT’s Computer Science and Artificial Intelligence Laboratory (CSAIL) and a professor of the Electrical Engineering and Computer Science department at MIT. His research focus is in parallel computer architectures and cloud software systems, and he is a founder of several successful startups, including Tilera, a company that produces scalable multicore processors. Prof. Agarwal won MIT’s Smullin and Jamieson prizes for teaching and co-authored the course textbook “Foundations of Analog and Digital Electronic Circuits.”</p>
</article>
<article class="teacher">
<div class="teacher-image">
<img src="${static.url('images/gerald.jpg')}" />
</div>
<h3>Gerald Sussman</h3>
<p>Professor of Electrical Engineering at MIT. He is a well known educator in the computer science community, perhaps best known as the author of Structure and Interpretation of Computer Programs, which is universally acknowledged as one of the top ten textbooks in computer science, and as the creator of Scheme, a popular teaching language. His research spans a range of topics, from artificial intelligence, to physics and chaotic systems, to supercomputer design.</p>
</article>
<article class="teacher">
<div class="teacher-image">
<img src="${static.url('images/piotr.jpg')}" />
</div>
<h3>Piotr Mitros</h3>
<p>Research Scientist at MIT. His research focus is in finding ways to apply techniques from control systems to optimizing the learning process. Dr. Mitros has worked as an analog designer at Texas Instruments, Talking Lights, and most recently, designed the analog front end for a novel medical imaging modality for Rhythmia Medical.</p>
</article>
</section>
</section>
</div>
<section class="course-sidebar">
<div class="media">
<div class="hero">
<img src="${static.url('images/history.png')}" />
<div class="play-intro"></div>
</div>
<%include file="video_modal.html" />
${course.get_about_section("video")}
</div>
<section class="course-summary">
<h3>Course Sumamry</h3>
<p>${course.get_about_section("short_description")}</p>
</section>
<section class="dates">
<p>Course Number <span class="start-date">(${course.get_about_section("number")})</span></p>
</section>
</section>
</section>
</section>
<%namespace name='static' file='static_content.html'/>
<section class="modal video-modal">
<div class="inner-wrapper">
<iframe width="640" height="360" src="http://www.youtube.com/embed/p2Q6BrNhdh8" frameborder="0" allowfullscreen></iframe>
<div class="close-modal">
<div class="inner">
<p>&#10005;</p>
</div>
</div>
</div>
</section>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment