|
1 | 1 | <% |
2 | | - pages = [''] |
| 2 | + simplified_nav = false if !defined?(simplified_nav) |
| 3 | + if simplified_nav |
| 4 | + pages = ['Home'] |
| 5 | + else |
| 6 | + pages = ['Devpost'] |
| 7 | + end |
3 | 8 | %> |
4 | 9 |
|
5 | 10 | <nav class="nav"> |
6 | 11 | <div class="nav__content"> |
7 | 12 | <div class="nav__links"> |
8 | 13 | <% pages.each do |page| %> |
9 | | - <% if page.eql? 'MLH Code of Conduct' %> |
10 | | - <a class="nav__link" href="https://static.mlh.io/docs/mlh-code-of-conduct.pdf"> |
| 14 | + <% if simplified_nav %> |
| 15 | + <a class="nav__link" href="/"> |
| 16 | + <%= page %> |
| 17 | + </a> |
| 18 | + <% elsif page == 'Gallery' %> |
| 19 | + <a class="nav__link" href="/gallery/"> |
| 20 | + <%= page %> |
| 21 | + </a> |
| 22 | + <% elsif page == 'Devpost' %> |
| 23 | + <a class="nav__link" href="https://brickhack6.devpost.com"> |
| 24 | + <%= page %> |
| 25 | + </a> |
11 | 26 | <% else %> |
12 | | - <a class="nav__link" href="/<%= page.downcase %>/"> |
| 27 | + <a class="nav__link" href="#<%= page.downcase %>"> |
| 28 | + <%= page %> |
| 29 | + </a> |
13 | 30 | <% end %> |
14 | | - <%= page %> |
15 | | - </a> |
16 | 31 | <% end %> |
17 | 32 | </div> |
18 | 33 | </div> |
19 | 34 | </nav> |
20 | 35 |
|
21 | | -<a id="mlh-trust-badge" style="display:block;max-width:100px;min-width:60px;position:fixed;right:50px;top:0;width:10%;z-index:10000" |
22 | | -href="https://mlh.io/seasons/na-2020/events?utm_source=na-hackathon&utm_medium=TrustBadge&utm_campaign=2020-season&utm_content=gray" target="_blank"> |
23 | | -<img src="https://s3.amazonaws.com/logged-assets/trust-badge/2020/mlh-trust-badge-2020-gray.svg" alt="Major League Hacking 2020 Hackathon Season" style="width:100%"></a> |
| 36 | +<a href="https://mlh.io/seasons/na-2020/events?utm_source=na-hackathon&utm_medium=TrustBadge&utm_campaign=2020-season&utm_content=gray" id="mlh-trust-badge" class = "nav__mlh" target="_blank"> |
| 37 | + <img alt="Major League Hacking 2020 Hackathon Season" src="https://s3.amazonaws.com/logged-assets/trust-badge/2020/mlh-trust-badge-2020-gray.svg" style="width:100%"/> |
| 38 | +</a> |
| 39 | + |
| 40 | +<!-- mobile nav |
| 41 | + <nav class="mobile"> |
| 42 | + <i class="fa fa-bars mob-nav-header" id="hamburger-menu"></i> |
| 43 | + <h2 class="mob-nav-header" style="font-size: 24px; text-align: left; color: white; padding:0; margin: 0; position: relative; top: -5px; font-weight: 300">BrickHack</h2> |
| 44 | + <div id="mobile-nav"> |
| 45 | + <div class="nav-links"> |
| 46 | + <a class="active" href="#">BrickHack</a> |
| 47 | + <% pages.each do |page| %> |
| 48 | + <a href="#<%= page.downcase %>"> |
| 49 | + <%= page %> |
| 50 | + </a> |
| 51 | + <% end %> |
| 52 | + <%= link_to 'Sign Up', 'https://apply.brickhack.io', class: 'mobile' %> |
| 53 | + </div> |
| 54 | + </div> |
| 55 | + </nav> |
| 56 | +--> |
0 commit comments