index.html 6.69 KB
Newer Older
1
<%! from django.core.urlresolvers import reverse %>
2
<%! from time import strftime %>
Matthew Mongeau committed
3
<%inherit file="main.html" />
4 5
<%namespace name='static' file='static_content.html'/>

6
<section class="home">
7
  <header>
8
    <div class="outer-wrapper">
9 10 11
      <div class="title">
        <hgroup>
          <h1>The Future of Online Education</h1>
12
          <h2>For anyone, anywhere, anytime</h2>
13
        </hgroup>
14

15
        <section class="actions">
16
          <div class="main-cta">
17
            <a href="#signup-modal" id="signup_action" class="find-courses" rel="leanModal">Sign Up</a>
18 19
          </div>

20 21
          <div class="secondary-actions">
            <div class="social-sharing">
22 23
              <div class="sharing-message">Stay up to date with all edX has to offer!</div>
              <a href="https://twitter.com/edXOnline" class="share">
24
                <img src="${static.url('images/social/twitter-sharing.png')}">
25
              </a>
26
              <a href="http://www.facebook.com/EdxOnline" class="share">
27
                <img src="${static.url('images/social/facebook-sharing.png')}">
28
              </a>
29 30
              <a href="https://plus.google.com/108235383044095082735/posts" class="share">
                <img src="${static.url('images/social/google-plus-sharing.png')}">
31 32
              </a>
            </div>
33
          </div>
34
        </section>
35
      </div>
36

37 38 39 40 41 42
        <a href="#video-modal" class="media" rel="leanModal">
          <div class="hero">
            <div class="play-intro"></div>
          </div>
        </a>

43 44
    </div>
  </header>
45

46
  <section class="container">
47
    <section class="highlighted-courses">
48
      <h2>Explore free courses from <span class="edx">edX</span> universities</h2>
49 50 51 52

      <section class="university-partners">
        <ol class="partners">
          <li class="partner mit">
53
            <a href="${reverse('university_profile', args=['MITx'])}">
54
              <img src="${static.url('images/university/mit/mit.png')}" />
55 56 57 58 59 60
              <div class="name">
                <span>MITx</span>
              </div>
            </a>
          </li>
          <li class="partner">
61
            <a href="${reverse('university_profile', args=['HarvardX'])}">
62
              <img src="${static.url('images/university/harvard/harvard.png')}" />
63 64 65 66 67
              <div class="name">
                <span>HarvardX</span>
              </div>
            </a>
          </li>
68
          <li class="partner last">
69
            <a href="${reverse('university_profile', args=['BerkeleyX'])}">
70
              <img src="${static.url('images/university/berkeley/berkeley.png')}" />
71 72 73 74 75 76 77 78
              <div class="name">
                <span>BerkeleyX</span>
              </div>
            </a>
          </li>
        </ol>
      </section>

79
      <section class="courses">
80 81 82 83 84 85 86 87 88 89
        <section class='university-column'>
          %for course in universities['MITx']:
            <%include file="course.html" args="course=course" />
          %endfor
        </section>
        <section class='university-column'>
          %for course in universities['HarvardX']:
            <%include file="course.html" args="course=course" />
          %endfor
        </section>
90
        <section class='university-column last'>
91 92 93 94
          %for course in universities['BerkeleyX']:
            <%include file="course.html" args="course=course" />
          %endfor
        </section>
95
      </section>
96
    </section>
97
  </section>
98

99
  <section class="container">
Matthew Mongeau committed
100
    <section class="more-info">
101
      <header>
102
        <h2><span class="edx">edX</span> News &amp; Announcements</h2>
103
      </header>
Matthew Mongeau committed
104
      <section class="news">
105
        <section class="blog-posts">
106 107
            %for entry in entries:
            <article>
108
                %if entry.image:
109
                    <a href="${entry.link}" class="post-graphics" target="_blank"><img src="${entry.image}" /></a>
110 111
                %endif
                <div class="post-name">
112
                    <a href="${entry.link}" target="_blank">${entry.title}</a>
113 114 115
                    %if entry.summary:
                        <p>${entry.summary}</p>
                    %endif
116 117 118 119
                    <p class="post-date">${strftime("%m/%d/%y", entry.published_parsed)}</p>
                </div>
            </article>
            %endfor
120
        </section>
121
        <section class="press-links">
122
          <h3>edX in the News:</h3>
123
          ##<a href="${reverse('press/mit-and-harvard-announce-edx')}">The edX Press Release</a>
124 125 126 127
          <a target="_blank" href="http://www.nytimes.com/2012/07/20/education/edlife/anant-agarwal-discusses-free-online-courses-offered-by-a-harvard-mit-partnership.html">New York Times</a>,
          <a target="_blank" href="http://www.bostonglobe.com/magazine/2012/07/14/anant-agarwal-believes-online-education-from-mit-and-harvard-should-available-all/Af0kX44dPqpBKRV2IOSjPP/story.html"target="_blank" >Boston Globe</a>,
          <a target="_blank" href="http://www.huffingtonpost.co.uk/2012/06/20/harvard-and-mit-create-edx-free-university-courses_n_1612143.html?utm_hp_ref=uk">Huffington Post</a>,
          <a target="_blank" href="http://gigaom.com/cloud/everybody-codes/">GigaOM</a>,
128
          <a target="_blank" href="http://web.mit.edu/newsoffice/2012/mitx-edx-first-course-recap-0716.html">MIT News</a>,
129 130
          ##<a target="_blank" href="http://spectrum.ieee.org/at-work/education/review-mitxs-online-circuit-design-and-analysis-course">IEEE Spectrum</a>,
          <a target="_blank" href="http://harvardmagazine.com/2012/07/harvard-extended">Harvard Magazine</a>,
131
          <a target="_blank" href="http://www.bloomberg.com/news/2012-07-24/berkeley-joins-harvard-mit-offering-free-online-classes.html">Bloomberg</a>
132
          ## <a target="_blank" href="http://chronicle.com/blogs/wiredcampus/uc-berkeley-joins-edx-effort-to-offer-free-open-courses/37969">The Chronicle of Higher Education</a>
133 134

          <a href="${reverse('press')}" class="read-more">Read More &rarr;</a>
135
        </section>
Matthew Mongeau committed
136
      </section>
137
    </section>
138
  </section>
139

140
</section>
141

142
<section id="video-modal" class="modal home-page-video-modal video-modal">
143
  <div class="inner-wrapper">
144
    <iframe width="640" height="360" src="http://www.youtube.com/embed/C2OQ51tu7W4?showinfo=0" frameborder="0" allowfullscreen></iframe>
145
  </div>
146
</section>
ichuang committed
147

148 149 150 151 152 153 154 155 156 157 158

<%block name="js_extra">
   <script type="text/javascript"">
      $(window).load(function() {
         if(getParameterByName('next')) {
              $('#login').trigger("click");
         }
      })
   </script>
</%block>

ichuang committed
159
% if show_signup_immediately is not UNDEFINED:
160 161
  ## NOTE: This won't work in production, because anonymous views are cached, so it will
  ## show either with or without this extra js for 3 minutes at a time.
ichuang committed
162
<script type="text/javascript">
163
  $(window).load(function() {$('#signup_action').trigger("click");});
164
</script>
165
% endif