Skip to content

Commit

Permalink
Logic and size image changes
Browse files Browse the repository at this point in the history
Updated change to header setting displaying only if checked rather than unchecked.

Added in increase to homepage logo image.
  • Loading branch information
jnicholCU committed Nov 12, 2024
1 parent 2ad0cc2 commit dc234b2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/install/boulder_base.settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ favicon:
use_default: 0
path: /themes/custom/boulder_base/favicon.png
mimetype: image/png
ucb_homepage_header: 1
ucb_homepage_header: 0
ucb_campus_header_color: '1'
ucb_header_color: '3'
ucb_sidebar_position: right
Expand Down
4 changes: 4 additions & 0 deletions css/ucb-brand-bar.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
.ucb-brand-bar img.ucb-logo {
max-width: 240px;
}

.ucb-brand-bar img.ucb-logo.ucb-homepage {
max-width: 320px;
}
}

.ucb-brand-bar .ucb-brand-bar-controls {
Expand Down
10 changes: 8 additions & 2 deletions templates/layout/page.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@
{% set header_color = 'dark' %}
{% endif %}

{% if ucb_homepage_header %}
{% set hompeage_logo_size = "ucb-homepage" %}
{% else %}
{% set hompeage_logo_size = "" %}
{% endif %}

{% if ucb_rave_alerts %}
<rave-alert feed="https://www.getrave.com/rss/cuboulder/channel1" link="https://alerts.colorado.edu"></rave-alert>
{% endif %}
Expand All @@ -116,7 +122,7 @@
<div class="container">{{ attach_library('boulder_base/ucb-brand-bar') }}
<div class="ucb-brand-bar ucb-brand-bar-{{ campus_header_color }}">
<a href="https://www.colorado.edu" class="ucb-home-link">
<img class="ucb-logo" src="https://cdn.colorado.edu/static/brand-assets/live/images/cu-boulder-logo-text-{{ campus_header_text_color }}.svg" alt="University of Colorado Boulder">
<img class="ucb-logo {{ hompeage_logo_size }}" src="https://cdn.colorado.edu/static/brand-assets/live/images/cu-boulder-logo-text-{{ campus_header_text_color }}.svg" alt="University of Colorado Boulder">
</a>
<div class="ucb-brand-bar-controls">
{# Google Translate #}
Expand Down Expand Up @@ -157,7 +163,7 @@
{% if site_search.0 %}
{% include '@boulder_base/includes/ucb-search-modal.html.twig' %}
{% endif %}
{% if ucb_homepage_header %}
{% if not ucb_homepage_header %}
<header class="ucb {{ header_color }}{% if site_affiliation.id %} ucb-site-affiliation-{{ site_affiliation.id }}{% endif %}" role="banner">
<div class="container ucb-menu-wrapper">
<div class="ucb-site-name-wrapper">
Expand Down

0 comments on commit dc234b2

Please sign in to comment.