-
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.
* Make Student Submission Responsive * Update layouts for cleaner code * Add styling only using Default BS5 * Things Observed: - Navbar not showing active page link highlight - Production states Next Steps name vs currently we sayd "continue" - Buttons are larger in production, which we can explore - Backend will be next to do to match styling.
- Loading branch information
Showing
11 changed files
with
365 additions
and
438 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
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 |
---|---|---|
@@ -1,64 +1,76 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<title><%= content_for?(:title) ? yield(:title) : "Untitled" %></title> | ||
<%= stylesheet_link_tag "application" %> | ||
<%= javascript_include_tag "application" %> | ||
<%= csrf_meta_tag %> | ||
<%= yield(:head) %> | ||
<title><%= content_for?(:title) ? yield(:title) : "Untitled" %></title> | ||
<%= stylesheet_link_tag "application", media: "all" %> | ||
<%= javascript_include_tag "application" %> | ||
<%= csrf_meta_tag %> | ||
<%= yield(:head) %> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
</head> | ||
|
||
<body> | ||
<main> | ||
<% if AppSettings.app_maintenance=="true" %> | ||
<div class="container pt-4"> | ||
<div class="row"> | ||
<div class="alert alert-warning"> | ||
<h3>Attention!</h3> | ||
<%= AppSettings.app_maintenance_message %> | ||
</div> | ||
</div> | ||
<div class="container shadow-lg rounded-3 border p-4 p-md-5 my-md-3"> | ||
<% if AppSettings.app_maintenance == "true" %> | ||
<div class="alert alert-warning text-center" role="alert"> | ||
<strong>Attention:</strong> <%= AppSettings.app_maintenance_message %> | ||
</div> | ||
<% end %> | ||
<div class="container my-3"> | ||
<div class="row align-items-center shadow-lg rounded-3 border p-3"> | ||
<div class="container"> | ||
<div class="york_header"> | ||
<%= image_tag("yorklogo.gif", alt: "York University - Graduate Studies" )%> | ||
<h4 class="float-end pt-2">Faculty of Graduate Studies</h4> | ||
</div> | ||
<header> | ||
<div class="d-flex flex-column flex-md-row align-items-center"> | ||
<div class="p-2"> | ||
<%= image_tag("yorklogo.gif", alt: "York University - Graduate Studies", class: "img-fluid") %> | ||
</div> | ||
<div class="flex-grow-1 text-end p-2"> | ||
<div class="display-6 mb-1 text-secondary">Faculty of Graduate Studies</div> | ||
<div class="fs-md-5 navbar-brand">Electronic Thesis Dissertation Application</div> | ||
</div> | ||
</div> | ||
</header> | ||
|
||
<%= render :template=> "layouts/navbar" %> | ||
|
||
<div class="workspace pt-3 pb-3"> | ||
<% flash.each do |name, msg| %> | ||
<div class="alert alert-dismissible fade show alert-<%= name.strip == "notice" ? "success" : "warning" %>" role="alert"> | ||
<strong><%= name.capitalize %>:</strong> <%= msg %> | ||
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button> | ||
</div> | ||
<% end %> | ||
<div class="page-header"> | ||
<%= content_tag :h1, yield(:title) if show_title? && !content_for?(:title_html) %> | ||
<%= yield (:title_html) if content_for?(:title_html)%> | ||
|
||
<main class="my-3"> | ||
<header> | ||
<%= render :template => "layouts/navbar" %> | ||
<% if AppSettings.app_maintenance == "true" %> | ||
<div class="alert alert-warning" role="alert"> | ||
<h2>Attention!</h2> | ||
<p><%= AppSettings.app_maintenance_message %></p> | ||
</div> | ||
<% end %> | ||
<div class="row"> | ||
<div class="<%= content_for?(:sidebar) ? " span9" : "span12" %>"> | ||
<%= yield %> | ||
</div> | ||
<% if content_for?(:sidebar) %> | ||
<div class="span3"> | ||
<%= yield (:sidebar) %> | ||
</div> | ||
<% end %> | ||
<% flash.each do |name, msg| %> | ||
<div class="alert alert-<%= name == 'notice' ? 'success' : 'warning' %> alert-dismissible fade show" role="alert"> | ||
<strong><%= name.capitalize %>:</strong> <%= msg %> | ||
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button> | ||
</div> | ||
<% end %> | ||
|
||
<div class="mt-3"> | ||
<%= content_tag :h1, yield(:title) if show_title? && !content_for?(:title_html) %> | ||
<%= yield (:title_html) if content_for?(:title_html)%> | ||
</div> | ||
<footer class="bg-light text-dark py-2 rounded text-center">Electronic Thesis Dissertation Submission Program (ETD) - York University Libraries</footer> | ||
</div> | ||
</div> | ||
</main> | ||
</body> | ||
</html> | ||
</header> | ||
|
||
<section> | ||
<div class="row"> | ||
<div class="<%= content_for?(:sidebar) ? 'col-md-9' : 'col-12' %>"> | ||
<%= yield %> | ||
</div> | ||
<% if content_for?(:sidebar) %> | ||
<aside class="col-md-3"> | ||
<%= yield(:sidebar) %> | ||
</aside> | ||
<% end %> | ||
</div> | ||
</section> | ||
</main> | ||
|
||
<footer class="bg-body-secondary text-dark py-2 text-center d-flex align-items-center justify-content-center" style="height: 100px;"> | ||
<p class="mb-0 p-2">Electronic Thesis Dissertation Submission Application (ETD) - York University Libraries</p> | ||
</footer> | ||
|
||
<%= yield(:scripts) %> | ||
</div> <!-- wrapper container end --> | ||
</body> | ||
</html> |
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
Oops, something went wrong.