Skip to content

Commit

Permalink
improve css and header html
Browse files Browse the repository at this point in the history
  • Loading branch information
JessyBarrette committed Mar 26, 2024
1 parent 3c7ab54 commit d5cf6fb
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 18 deletions.
35 changes: 35 additions & 0 deletions erddap/content/images/erddap2.css
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,38 @@ td.verticalLine {border-left:1px solid #bbbbbb; height:100%; }
/* This is used on the /info/[datasetID]/index.html pages to highlight a cell or row. */
td.highlightBGColor {background-color:#cceecc; }
tr.highlightBGColor {background-color:#cceecc; }

#header {
display: flex;
flex-direction: row;
justify-content: space-between;
color: white;
background-color:#aa2025;
padding:15px;
margin: 0 0 10px 0;
align-items: center;
border-radius: 10px;
}
#header-title-logo {
display: flex;
flex-direction: row;
align-items: center;
}
#header-logo img {
height: 50px;
padding: 0 10px;
}
#header-title > * {
margin: 0 ;
padding: 0;
flex-direction: column;
font-size: large;
}
#header-right {
display:flex;
flex-direction: column;
align-items: flex-end;
}
#header-right img {
padding: 0 5px;
}
37 changes: 19 additions & 18 deletions erddap/content/setup.xml
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ For SGT graphics, currently, the Files designated below must be png, gif, jpg, o
If you want to substitute other image files, it is best to make them
a similar number of pixels wide and high.
-->
<highResLogoImageFile>noaa_simple.gif</highResLogoImageFile>
<highResLogoImageFile>logo.png</highResLogoImageFile>
<lowResLogoImageFile>noaa20.gif</lowResLogoImageFile>
<googleEarthLogoFile>nlogo.gif</googleEarthLogoFile>
<questionMarkImageFile>question-mark-fill.svg</questionMarkImageFile>
Expand Down Expand Up @@ -442,7 +442,7 @@ This particular ERDDAP installation has oceanographic data
(starting at "<!DOCTYPE", but not including "</head>")
for all HTML web pages.
This may include &erddapUrl;, which is expanded to be [baseUrl]/erddap
(or [baseUttpsUrl]/erddap if the user is logged in).
(or [baseHttpsUrl]/erddap if the user is logged in).
If your ERDDAP allows users to log in, all referenced image files, css files,
etc. must be in [tomcat]/content/erddap/images or a subdirectory
and must be referenced here with &erddapUrl;/images/[fileName].
Expand Down Expand Up @@ -519,22 +519,23 @@ information.
<!-- The standard startBodyHtml -->
<startBodyHtml5><![CDATA[
<body>
<table class="compact nowrap" style="width:100%; background-color:#aa2025;">
<tr>
<td style="text-align:center; width:80px;"><a rel="bookmark" href="&erddapUrl;"><img
title="Hakai" src="&erddapUrl;/images/logo.png" alt="Hakai" style="vertical-align:middle;height: 60px; padding: 20px;"></a></td>
<td style="text-align:left; font-size:x-large; color:#FFFFFF; ">
<strong>ERDDAP</strong>
<br><small><small><small>Easier access to the Hakai Institute data</small></small></small>
</td>
<td style="text-align:right; font-size:small; color: #FFFFFF; padding-right:20px;">
<a id="complianceLink" href="" style="display:none">Compliance Results</a>
&loginInfo; &language; &nbsp; &nbsp;
<br>Brought to you by
<a title="Hakai" rel="bookmark" href="http://www.hakai.org" style="color: #FFFFFF">Hakai</a>
</td>
</tr>
</table>
<link href="&erddapUrl;/images/erddap2.css" rel="stylesheet" type="text/css">
<div id="header" class="header">
<div id="header-title-logo">
<div id="header-logo">
<a rel="bookmark" href="&erddapUrl;"><img
title="Hakai" src="&erddapUrl;/images/logo.png" alt="Hakai"></a>
</div>
<div id="header-title">
<strong>ERDDAP</strong><br>
<small><small>Easier access to the Hakai Institute data</small></small>
</div>
</div>
<div id="header-right">
<div><a id="complianceLink" href="" style="display:none">Compliance Results</a></div>
<div>&loginInfo;&language;</div>
</div>
</div>
]]> </startBodyHtml5>

<!-- You can change other things, but please keep "ERDDAP, Version &erddapVersion;" and
Expand Down

0 comments on commit d5cf6fb

Please sign in to comment.