cct-datascience / organization

Initial repository for organizing group activities
1 stars 0 forks source link

I would like UA header on website, and official UA logo #273

Closed dlebauer closed 3 years ago

dlebauer commented 4 years ago

For header: See https://digital.arizona.edu/ua-bootstrap/interior-example.html

image.png

I think adding something like

  <!--   ++++++++++++++ Place inside body tag ++++++++++++++   -->
  <header id="region_header_ua" class="l-arizona-header bg-red">
    <section class="container l-container">
      <div class="row">
        <a href="http://www.arizona.edu" title="The University of Arizona homepage" class="arizona-logo">
           <img alt="The University of Arizona Wordmark Line Logo White" src="https://cdn.uadigital.arizona.edu/logos/v1.0.0/ua_wordmark_line_logo_white_rgb.min.svg" class="arizona-line-logo">
        </a>
       </div>
     </section>
  </header>

will be a good start.

For logo, we can use this one

UA_CALS_Comm CyberTech_ALTERNATE

KristinaRiemer commented 4 years ago

Wait, how does this look? There's an easy automated way to do this with Hugo. Screen Shot 2020-09-18 at 12.06.41 PM.png

dlebauer commented 4 years ago

roughly like but without all the weird shadows image

Chris-Schnaufer commented 4 years ago

@dlebauer @KristinaRiemer What is the status of this issue?

dlebauer commented 4 years ago

image

KristinaRiemer commented 4 years ago

@dlebauer what exactly is wrong with that logo?

dlebauer commented 4 years ago

it appears to have a 'drop shadow' effect (grey line around it ... see image below) even though the logo in https://github.com/az-digitalag/organization/issues/273#issue-680472780 doesn't

image

KristinaRiemer commented 4 years ago

@Chris-Schnaufer if you're able to attempt this, or also @julianpistorius & @MagicMilly?

Chris-Schnaufer commented 4 years ago

@KristinaRiemer I can take a look.

Chris-Schnaufer commented 3 years ago

The issue is that the image was captured (or exported, or ...) with the drop shadow. Attaching new image & also sending to Kristina. logo.png

Chris-Schnaufer commented 3 years ago

The URLs for the CSS files are as follows:

The easiest way to incorporate the HTML that you want is to copy the navbar.html file from "themes/hugo_academic/layputs/partials" to "layouts/partials" and make your changes to the copied file (perhaps add before the <nav... element?)

One way to add the CSS files is to download them and put them in the "assets" folder & and add a line like customCSS = ["ua-bootstrap.css","ua-brand-icons.min.css"] to the config.toml file

dlebauer commented 3 years ago

@Chris-Schnaufer have you done this or should this stay open until this is implemented?

Chris-Schnaufer commented 3 years ago

@dlebauer I have not done this. The approach I'm suggesting may be simplistic in that there may end up being conflicting CSS between what UA has and what the website uses. A more detailed approach may be needed where only the UA CSS used by the elements are brought over - this involves tracking down what's used and updating the website CSS. I did a preliminary look and this more detailed approach appears to avoid conflicts and should be workable.

dlebauer commented 3 years ago

@Chris-Schnaufer I have done what you said

but nothing happened. You can see these changes w/ code chunk commented out in the 'header' branch https://github.com/az-digitalag/group-website/compare/header?expand=1

the code chunk is supposed to go between body tags, but there are none in navbar.html, and it doesn't help if I add them

also, getting this error using chrome developer tools:

Failed to find a valid digest in the 'integrity' attribute for resource 'https://cdn.digital.arizona.edu/lib/arizona-bootstrap/latest/css/arizona-bootstrap.min.css' with computed SHA-256 integrity 'bZZyI4xL26zyA/luH09sU2EFskkWGmqCUd1iY592hp8='. The resource has been blocked.

image

Chris-Schnaufer commented 3 years ago

I have tried to add the suggested HTML for the red bar containing the white "University of Arizona" and have run into problems with the theme conflicting with the HTML.

A different approach will be needed to display this bar. The bar and text needs to break out from the Navigation control since the control uses the flex-box layout scheme. An undesirable approach would be to modify the theme code which would make upgrades much more difficult.

Chris-Schnaufer commented 3 years ago

Was able to get the banner displayed by adding a top margin to the nav wrapper and adding the background with text as an absolutely positioned element.

PR: https://github.com/az-digitalag/group-website/pull/23

Screen Shot 2020-12-17 at 9.41.07 AM.png