-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update page styling and A&M branding (#90)
* rubocop: autocorrect offences * Survey/Profiles: Update profile creation page * Survey/Profile: Update styles on profile information * Tests/Survey/Profile: Update tests for new profile page * About: Fix typo * Header: Update logo according to A&M brand guide * About: Add interactive tetrahedron * Tetrahedron: Change renderer background to white * Invitation: Update heading
- Loading branch information
Showing
11 changed files
with
185 additions
and
101 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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/*-- Base logo lockup --*/ | ||
.c-logo-lockup { | ||
padding: 0rem; | ||
max-width: 400px; | ||
} | ||
.c-logo-lockup a { | ||
text-decoration: none; | ||
color: var(--color-black); | ||
} | ||
.c-logo-lockup a:hover { | ||
text-decoration: underline dotted; | ||
text-decoration-thickness: 1px; | ||
text-underline-offset: 6px; | ||
} | ||
.c-logo-lockup .c-logo-lockup-logo { | ||
padding: 0 0.7rem; | ||
display: flex; | ||
} | ||
.c-logo-lockup .c-logo-lockup-logo img { | ||
width: 64px; | ||
height: 64px; | ||
margin-right: auto; | ||
margin-left: auto; | ||
} | ||
.c-logo-lockup .c-logo-lockup-wordmark { | ||
font-family: "Open Sans", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; | ||
} | ||
.c-logo-lockup .c-logo-lockup-wordmark .c-logo-lockup-wordmark-small { | ||
font-size: 0.75rem; | ||
letter-spacing: 1px; | ||
text-transform: uppercase; | ||
font-weight: 600; | ||
} | ||
.c-logo-lockup .c-logo-lockup-wordmark .c-logo-lockup-wordmark-large { | ||
font-size: 1.2rem; | ||
letter-spacing: 0.5px; | ||
} | ||
|
||
/*-- Logo Lockup Horizontal --*/ | ||
.c-logo-lockup_horizontal { | ||
display: flex; | ||
align-items: center; | ||
} | ||
.c-logo-lockup_horizontal .c-logo-lockup-wordmark { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
.c-logo-lockup_horizontal .c-logo-lockup-wordmark-small { | ||
display: block; | ||
margin: 0; | ||
} | ||
.c-logo-lockup_horizontal .c-logo-lockup-wordmark-large { | ||
line-height: 1.5rem; | ||
margin: 0px 0px; | ||
letter-spacing: 0.25px; | ||
} |
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
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,24 +1,41 @@ | ||
<header id="main-header" class="d-flex flex-wrap justify-content-center py-3 mb-4 border-bottom"> | ||
<%= link_to "School of Education & Human Development", 'https://education.tamu.edu/', class: "d-flex align-items-center mb-3 mb-md-0 me-md-auto link-body-emphasis text-decoration-none" %> | ||
<ul class="nav"> | ||
<li class="nav-item"> | ||
<%= link_to "Home", root_path, class: "nav-link #{'active' if current_page?(root_path)}", aria: { current: "page" } %> | ||
</li> | ||
<li class="nav-item"> | ||
<%= link_to "About", about_path, class: "nav-link #{'active' if current_page?(about_path)}" %> | ||
</li> | ||
<li class="nav-item"> | ||
<%# <%= link_to "Survey Responses", survey_responses_path, class: "nav-link #{'active' if current_page?(survey_responses_path)}" %> | ||
</li> | ||
<li class="nav-item"> | ||
<%# <%= link_to "Survey Profiles", survey_profiles_path, class: "nav-link #{'active' if current_page?(survey_profiles_path)}" %> | ||
</li> | ||
<li class="nav-item"> | ||
<% if session[:userinfo] %> | ||
<%= button_to 'Logout', root_url + '/auth/logout', method: :get, data: { turbo: false }, class: "nav-link" %> | ||
<% else %> | ||
<%= button_to 'Login', '/auth/auth0', method: :post, data: { turbo: false }, class: "nav-link" %> | ||
<% end %> | ||
</li> | ||
</ul> | ||
</header> | ||
<nav id="main-header" class="navbar navbar-expand-lg navbar-light border-bottom" style="margin-bottom: 1rem;"> | ||
<%# <%= link_to "School of Education & Human Development", 'https://education.tamu.edu/', class: "d-flex align-items-center mb-3 mb-md-0 me-md-auto link-body-emphasis text-decoration-none" %> | ||
<div class="container-fluid"> | ||
<div class="navbar-brand"> | ||
<div class="c-logo-lockup c-logo-lockup_horizontal"> | ||
<div class="c-logo-lockup-logo"> | ||
<a href="https://www.tamu.edu/" aria-label="visit tamu.edu"><img src="https://dmc-assets.tamu.edu/pattern-library/logos/TAM-LogoBox.svg" alt="Texas A&M University logo" /></a> | ||
</div> | ||
<div class="c-logo-lockup-wordmark"> | ||
<a href="https://education.tamu.edu/"> | ||
<p class="c-logo-lockup-wordmark-large">School of Education & Development</p> | ||
</a> | ||
<a href="https://elrc.tamu.edu"> | ||
<p class="c-logo-lockup-wordmark-small">Education Leadership Research Center</p> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
<ul class="nav"> | ||
<li class="nav-item"> | ||
<%= link_to "Home", root_path, class: "nav-link #{'active' if current_page?(root_path)}", aria: { current: "page" } %> | ||
</li> | ||
<li class="nav-item"> | ||
<%= link_to "About", about_path, class: "nav-link #{'active' if current_page?(about_path)}" %> | ||
</li> | ||
<li class="nav-item"> | ||
<%# <%= link_to "Survey Responses", survey_responses_path, class: "nav-link #{'active' if current_page?(survey_responses_path)}" %> | ||
</li> | ||
<li class="nav-item"> | ||
<%# <%= link_to "Survey Profiles", survey_profiles_path, class: "nav-link #{'active' if current_page?(survey_profiles_path)}" %> | ||
</li> | ||
<li class="nav-item"> | ||
<% if session[:userinfo] %> | ||
<%= button_to 'Logout', root_url + '/auth/logout', method: :get, data: { turbo: false }, class: "nav-link" %> | ||
<% else %> | ||
<%= button_to 'Login', '/auth/auth0', method: :post, data: { turbo: false }, class: "nav-link" %> | ||
<% end %> | ||
</li> | ||
</ul> | ||
</div> | ||
</nav> |
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,38 +1,38 @@ | ||
<%= form_with(model: survey_profile) do |form| %> | ||
<% if survey_profile.errors.any? %> | ||
<div style="color: red"> | ||
<h2><%= pluralize(survey_profile.errors.count, "error") %> prohibited this survey_profile from being saved:</h2> | ||
<ul> | ||
<% survey_profile.errors.each do |error| %> | ||
<li><%= error.full_message %></li> | ||
<% end %> | ||
</ul> | ||
<%= form_with(model: survey_profile, html: {class: "col-4 offset-4"}) do |form| %> | ||
<div class="row d-flex justify-content-center"> | ||
<% if survey_profile.errors.any? %> | ||
<div style="color: red"> | ||
<h2><%= pluralize(survey_profile.errors.count, "error") %> prohibited this survey_profile from being saved:</h2> | ||
<ul> | ||
<% survey_profile.errors.each do |error| %> | ||
<li><%= error.full_message %></li> | ||
<% end %> | ||
</ul> | ||
</div> | ||
<% end %> | ||
|
||
<div class="mb-3"> | ||
<%= form.label :first_name, style: "display: block;text-transform: uppercase;" %> | ||
<%= form.text_field :first_name, class: "form-control" %> | ||
</div> | ||
<div class="mb-3"> | ||
<%= form.label :last_name, style: "display: block;text-transform: uppercase;" %> | ||
<%= form.text_field :last_name, class: "form-control" %> | ||
</div> | ||
<div class="mb-3"> | ||
<%= form.label :campus_name, style: "display: block;text-transform: uppercase;" %> | ||
<%= form.text_field :campus_name, class: "form-control" %> | ||
</div> | ||
<div class="mb-3"> | ||
<%= form.label :district_name, style: "display: block;text-transform: uppercase;" %> | ||
<%= form.text_field :district_name, class: "form-control" %> | ||
</div> | ||
<div class="mb-3"> | ||
<%= form.label :role, style: "display: block;text-transform: uppercase;" %> | ||
<%= form.select :role,['Principal', 'Teacher', 'Superintendent'], {prompt: 'Select a role'}, class: "form-select" %> | ||
</div> | ||
<div class="mb-3 text-center"> | ||
<%= form.submit class: "btn btn-outline-primary" %> | ||
</div> | ||
<% end %> | ||
|
||
<div> | ||
<%= form.label :first_name, style: "display: block" %> | ||
<%= form.text_field :first_name %> | ||
</div> | ||
<div> | ||
<%= form.label :last_name, style: "display: block" %> | ||
<%= form.text_field :last_name %> | ||
</div> | ||
<div> | ||
<%= form.label :campus_name, style: "display: block" %> | ||
<%= form.text_field :campus_name %> | ||
</div> | ||
<div> | ||
<%= form.label :district_name, style: "display: block" %> | ||
<%= form.text_field :district_name %> | ||
</div> | ||
<div> | ||
<%= form.label :role, style: "display: block" %> | ||
<%= form.select :role,['Principal', 'Teacher', 'Superintendent'],{prompt: 'Select a role'}, style: "display: block" %> | ||
</div> | ||
<div> | ||
<%= form.label :submit, style: "display: block" %> | ||
<%= form.submit %> | ||
</div> | ||
<% end %> |
50 changes: 27 additions & 23 deletions
50
rails_root/app/views/survey_profiles/_survey_profile.html.erb
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,28 +1,32 @@ | ||
<div id="<%= dom_id survey_profile %>"> | ||
<div class="row d-flex" id="<%= dom_id survey_profile %>"> | ||
<div class="col-6"> | ||
<table class="table" style="--bs-border-width: 0"> | ||
<tbody> | ||
<tr> | ||
<td style="width: 25%"><strong style="text-transform: uppercase">First Name</strong></td> | ||
<td><%= survey_profile.first_name %></td> | ||
</tr> | ||
|
||
<p> | ||
<strong>First name:</strong> | ||
<%= survey_profile.first_name %> | ||
</p> | ||
<tr> | ||
<td style="width: 25%"><strong style="text-transform: uppercase">Last Name</strong></td> | ||
<td><%= survey_profile.last_name %></td> | ||
</tr> | ||
|
||
<p> | ||
<strong>Last name:</strong> | ||
<%= survey_profile.last_name %> | ||
</p> | ||
<tr> | ||
<td style="width: 25%"><strong style="text-transform: uppercase">Campus</strong></td> | ||
<td><%= survey_profile.campus_name %></td> | ||
</tr> | ||
|
||
<p> | ||
<strong>Campus name:</strong> | ||
<%= survey_profile.campus_name %> | ||
</p> | ||
|
||
<p> | ||
<strong>District name:</strong> | ||
<%= survey_profile.district_name %> | ||
</p> | ||
|
||
<p> | ||
<strong>Role:</strong> | ||
<%= survey_profile.role %> | ||
</p> | ||
<tr> | ||
<td style="width: 25%"><strong style="text-transform: uppercase">District</strong></td> | ||
<td><%= survey_profile.district_name %></td> | ||
</tr> | ||
|
||
<tr> | ||
<td style="width: 25%"><strong style="text-transform: uppercase">Role</strong></td> | ||
<td><%= survey_profile.role %></td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> |
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,8 +1,6 @@ | ||
<h1>User Profile</h1> | ||
<h1 class="text-center">Profile</h1> | ||
<div> | ||
<div> | ||
<p>Input user information | ||
<%= render "form", survey_profile: @survey_profile %> | ||
<br> | ||
</div> | ||
</div> |
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