Skip to content

Commit

Permalink
[FEAT] Pima county subsite assets
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Reis committed Mar 26, 2017
1 parent 3ea3c32 commit be73890
Show file tree
Hide file tree
Showing 9 changed files with 68 additions and 1 deletion.
Binary file added app/assets/images/pima_logo_black.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/pima_logo_white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions app/assets/stylesheets/partials/_vars.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ $tscpl-orange: #A66401;
$tscpl-gray: #464646;
$tscpl-action-gray: #333333;

/* PIMA */
$pima-blue: #2C3590;
$pima-light-blue: #147BBA;
$pima-gray: #716C6B;

$purple: #8945a1;
$purple-2: #7b439b;
$dark-purple: #7D3191;
Expand Down
8 changes: 8 additions & 0 deletions app/assets/stylesheets/subdomains/_pima.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.pima {
@include color_scheme($pima-blue, $white, $pima-light-blue, left, $pima-gray, $pima-blue);
@include banner($pima-blue, $white, 2.7em);
@include buttons($pima-light-blue, $white);
@include course_widget($pima-light-blue, $pima-light-blue);
@include lesson_block($pima-blue, $pima-gray, $pima-light-blue, $pima-light-blue);
@include icons($pima-blue, $pima-light-blue);
}
8 changes: 8 additions & 0 deletions app/views/shared/_ga_event_tracking.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ $(document).ready(function() {
ga("send", "event", "exernal link", "click", "Kalamazoo Public Library");
});

$("footer").on("click", ".link-tscpl", function() {
ga("send", "event", "exernal link", "click", "Topeka Shawnee County Public Library");
});

$("footer").on("click", ".link-pima", function() {
ga("send", "event", "exernal link", "click", "Pima County Public Library");
});

$("footer").on("click", ".link-pla", function() {
ga("send", "event", "exernal link", "click", "Public Library Association");
});
Expand Down
14 changes: 14 additions & 0 deletions app/views/shared/_ga_pima.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

var userGaId = $("#user_ga_id").val();
ga('create', 'UA-37972615-7', 'auto', {
userId: userGaId
});

ga('send', 'pageview');

</script>
4 changes: 4 additions & 0 deletions app/views/shared/_logo_footer.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
<%= link_to "http://tscpl.org/", target: "_blank" do %>
<%= image_tag "tscpl_logo_white", class: "medium-logo link-tscpl" %>
<% end %>
<% when 'pima' %>
<%= link_to "https://www.ibrary.pima.gov", target: "_blank" do %>
<%= image_tag "pima_logo_white", class: "medium-logo link-pima" %>
<% end %>
<% else %>
&nbsp;
<% end %>
Expand Down
16 changes: 15 additions & 1 deletion config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ en:
tscpl:
custom_banner_greeting: "Learn new skills for a better life!<br>"
logo_banner_html: ""
pima:
custom_banner_greeting: "Get Connected. Anything is Possible.<br>"
logo_banner_html: ""
login: "Log In"
signup: "Sign Up"
signup_notice: "Please login if you have an account"
Expand Down Expand Up @@ -108,7 +111,14 @@ en:
tscpl:
greeting: "Greetings"
subject: "Get Started with Topeka & Shawnee County Public Library DigitalLearn"
welcome: "Welcome to Topeka & Shawnee County Public Library's DigitalLearn project! Please take one more step to begin learning how to use your computer to do almost anything. Click the link below to activate your account, and you’ll be ready to go."
welcome: "Welcome to Topeka & Shawnee County Public Library’s DigitalLearn! Please take one more step to begin learning how to use your computer to do almost anything. Click the link below to activate your account, and you’ll be ready to go."
confirm_your_account_through_link: "You can confirm your account email through the link below:"
confirm_my_account: "Confirm my account"
signature: "Thanks and have a wonderful day!"
pima:
greeting: "Greetings"
subject: "Get Started with Pima County Public Library DigitalLearn"
welcome: "Welcome to Pima County Public Library's DigitalLearn project! Please take one more step to begin learning how to use your computer to do almost anything. Click the link below to activate your account, and you’ll be ready to go."
confirm_your_account_through_link: "You can confirm your account email through the link below:"
confirm_my_account: "Confirm my account"
signature: "Thanks and have a wonderful day!"
Expand Down Expand Up @@ -163,6 +173,8 @@ en:
retake_the_quiz: "Retake the Quiz"
tscpl:
retake_the_quiz: "Retake the Quiz"
pima:
retake_the_quiz: "Retake the Quiz"
course: "Course"
date_completed: "Date Completed"
certificate_of_completion: "Certificate of Completion"
Expand All @@ -181,6 +193,8 @@ en:
course_color_explaination: "Blue courses need to be completed. Gray courses have already been completed. To add more to your plan,"
tscpl:
course_color_explaination: "Orange courses need to be completed. Gray courses have already been completed. To add more to your plan,"
pima:
course_color_explaination: "Light Blue courses need to be completed. Gray courses have already been completed. To add more to your plan,"
my_plan_click_to_start: "My Plan: Click on a course below and get started!"
click_here_to_homepage: "click here to go to the homepage."
completed_most_courses: "Have you completed most of the courses? If so,"
Expand Down
14 changes: 14 additions & 0 deletions config/locales/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ es:
tscpl:
custom_banner_greeting: "¡Aprender nuevas habilidades para una vida mejor!<br>"
logo_banner_html: ""
pima:
custom_banner_greeting: "Conectarse. Todo es posible.<br>"
logo_banner_html: ""
login: "Iniciar sesión"
signup: "Crear una cuenta"
signup_notice: "Entra en la cuenta si usted tiene una cuenta"
Expand Down Expand Up @@ -112,6 +115,13 @@ es:
confirm_your_account_through_link: "Puede confirmar su cuenta de correo haciendo clic en la liga de abajo:"
confirm_my_account: "Confirmar mi cuenta"
signature: "Gracias y que tenga un día maravilloso!"
pima:
greeting: "Hola"
subject: "Empieza con Pima County Public Library DigitalLearn"
welcome: "Bienvenido a Bienvenido a Pima County Public Library DigitalLearn!. Por favor, dar un paso más para empezar a aprender cómo utilizar el ordenador para hacer casi cualquier cosa. Haga clic en el siguiente enlace para activar su cuenta, y usted estará listo para funcionar."
confirm_your_account_through_link: "Puede confirmar su cuenta de correo haciendo clic en la liga de abajo:"
confirm_my_account: "Confirmar mi cuenta"
signature: "Gracias y que tenga un día maravilloso!"
logged_in_user:
hi: "Hola"
choose_a_course: "Escoja un curso para empezar; o visite la sección"
Expand Down Expand Up @@ -163,6 +173,8 @@ es:
retake_the_quiz: "Repite el Cuestionario"
tscpl:
retake_the_quiz: "Repite el Cuestionario"
pima:
retake_the_quiz: "Repite el Cuestionario"
course: "Curso"
date_completed: "Fecha de terminación"
certificate_of_completion: "Certificado de Culminación"
Expand All @@ -180,6 +192,8 @@ es:
course_color_explaination: "Necesita terminar los cursos en azul. Ha terminado los cursos en gris. Para agregar cursos a su plan personal,"
tscpl:
course_color_explaination: "Necesita terminar los cursos en naranja. Ha terminado los cursos en gris. Para agregar cursos a su plan personal,"
pima:
course_color_explaination: "Necesita terminar los cursos en azul claro. Ha terminado los cursos en gris. Para agregar cursos a su plan personal,"
my_plan_click_to_start: "Mi Plan: ¡Da clic en un curso para comenzar!"
click_here_to_homepage: "de clic aquí para regresar a la página principal."
completed_most_courses: "Si ya completó esos cursos y quiere más recomendaciones,"
Expand Down

0 comments on commit be73890

Please sign in to comment.