Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 42 additions & 9 deletions app/views/layouts/_nav_ty.html.erb
Original file line number Diff line number Diff line change
@@ -1,23 +1,56 @@
<%
pages = ['']
simplified_nav = false if !defined?(simplified_nav)
if simplified_nav
pages = ['Home']
else
pages = ['Devpost']
end
%>

<nav class="nav">
<div class="nav__content">
<div class="nav__links">
<% pages.each do |page| %>
<% if page.eql? 'MLH Code of Conduct' %>
<a class="nav__link" href="https://static.mlh.io/docs/mlh-code-of-conduct.pdf">
<% if simplified_nav %>
<a class="nav__link" href="/">
<%= page %>
</a>
<% elsif page == 'Gallery' %>
<a class="nav__link" href="/gallery/">
<%= page %>
</a>
<% elsif page == 'Devpost' %>
<a class="nav__link" href="https://brickhack6.devpost.com">
<%= page %>
</a>
<% else %>
<a class="nav__link" href="/<%= page.downcase %>/">
<a class="nav__link" href="#<%= page.downcase %>">
<%= page %>
</a>
<% end %>
<%= page %>
</a>
<% end %>
</div>
</div>
</nav>

<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"
href="https://mlh.io/seasons/na-2020/events?utm_source=na-hackathon&utm_medium=TrustBadge&utm_campaign=2020-season&utm_content=gray" target="_blank">
<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>
<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">
<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%"/>
</a>

<!-- mobile nav
<nav class="mobile">
<i class="fa fa-bars mob-nav-header" id="hamburger-menu"></i>
<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>
<div id="mobile-nav">
<div class="nav-links">
<a class="active" href="#">BrickHack</a>
<% pages.each do |page| %>
<a href="#<%= page.downcase %>">
<%= page %>
</a>
<% end %>
<%= link_to 'Sign Up', 'https://apply.brickhack.io', class: 'mobile' %>
</div>
</div>
</nav>
-->
2 changes: 1 addition & 1 deletion app/views/layouts/_shared_head.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<%
title = "BrickHack"
description = "Feb 8 & 9, 2020 - RIT's premiere collegiate hackathon devoted to bringing 600 designers, developers, and all sorts of makers together for 24 hours to create something from nothing."
description = "RIT's premiere collegiate hackathon devoted to bringing 600 designers, developers, and all sorts of makers together for 24 hours to create something from nothing."
url = "https://brickhack.io"
%>
<meta charset="utf-8"/>
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title><%= yield(:title).presence || "BrickHack 6 – Feb 8-9, 2020" %></title>
<title><%= yield(:title).presence || "BrickHack" %></title>
<%= render "layouts/shared_head" %>
<%= stylesheet_link_tag "application", :media => "all" %>
<%= yield(:head) %>
Expand Down