-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* adding new lux header * updating packages * adding lux header dropdown component * linting and dependencies * refining header and importing appropriate utils * updating yarn install * fixing mediaflux version bug * settings * eslint * more linting * adding vite import and resolves to get lux working * drafting lux header * finalizing new TD header * tests
- Loading branch information
Showing
12 changed files
with
7,549 additions
and
441 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
|
||
.container{ //Main body of every page | ||
background-color: rgb(255, 255, 255); | ||
padding-top: 2em; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,11 +9,11 @@ | |
|
||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css"> | ||
|
||
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> | ||
|
||
<%= action_cable_meta_tag %> | ||
<%= vite_client_tag %> | ||
<script src="//code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script> | ||
<%= vite_javascript_tag 'application' %> | ||
<script src="//code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script> | ||
|
||
<!-- | ||
If using a TypeScript entrypoint file: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,23 @@ | ||
<header> | ||
<div id="header"> | ||
<nav> | ||
<a href="/"><%= image_tag("TigerData-LOGO-KO_wide2.svg", alt: "TigerData logo", size: "150x100", id: "logo") %></a> | ||
<div class="body"> | ||
<%= link_to "Home", root_path, class: "navbar-brand"%> | ||
<nav> | ||
<div class="lux"> | ||
<% if current_user %> | ||
User: <%= current_user.uid%> | ||
<%= link_to "Log Out", main_app.destroy_user_session_path, class: "btn btn-warning btn-sm" %> | ||
<lux-library-header abbr-name="TD" theme="dark"> | ||
<template v-slot:logo> <a href="/"><%= image_tag("TigerData-LOGO-KO_wide2.svg", alt: "TigerData logo", size: "150x100", id: "logo") %></a> </template> | ||
<lux-menu-bar type="main-menu" :menu-items="[ | ||
{name: 'Contact US', component: 'Home', href: 'mailto:[email protected]'}, | ||
{name: 'FAQ', component: 'Home', href: 'https://tigerdata.princeton.edu/frequently-asked-questions'}, | ||
{name: '<%= current_user.display_name %>', component: 'Account', href: '/account/', children: [ | ||
{name: 'Account Settings', component: 'Account', href: '/'}, | ||
{name: 'Logout', component: 'Logout', href: '<%= main_app.destroy_user_session_path %> '} | ||
]} | ||
]" | ||
></lux-menu-bar> | ||
</lux-library-header> | ||
<% else %> | ||
<%= button_to "Log In", user_cas_omniauth_authorize_path, class: "btn btn-warning btn-sm" %> | ||
<lux-library-header abbr-name="TD" theme="dark"> | ||
<template v-slot:logo><a href="/"><%= image_tag("TigerData-LOGO-KO_wide2.svg", alt: "TigerData logo", size: "150x100", id: "logo") %></a> </template> | ||
<%= button_to "Log In", user_cas_omniauth_authorize_path, class: "btn btn-warning btn-sm" %> | ||
</lux-library-header> | ||
<% end %> | ||
</div> | ||
</nav> | ||
</div> | ||
</header> | ||
</div> | ||
</nav> |
Oops, something went wrong.