Skip to content

Commit

Permalink
Add header
Browse files Browse the repository at this point in the history
  • Loading branch information
stephpenn1 committed Dec 18, 2023
1 parent c24f3e3 commit c776483
Show file tree
Hide file tree
Showing 8 changed files with 143 additions and 5 deletions.
11 changes: 10 additions & 1 deletion h2/app.r
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,23 @@ source("./global.r")

ui <- fluidPage(
includeCSS("./components/layout/style copy.css"),
tags$div(class = "container",
tags$img(src = "images/earth-header.png", height = "300px", width = "100%", class = "earth", alt = "Earth's atmosphere"),
tags$div(
a(
img(src = "images/GCIMS_logo_alt.svg", class = "logo"), href = "https://gcims.pnnl.gov/", target = "_blank"),
h1("HectorUI", class = "header-text-title"),
h2("An Interactive Climate Model", class = "header-text-sub", style = "font-weight:normal; "),
),
),
navbarPage(
id = "nav",
title = "",
collapsible = TRUE,
tabPanel(title = "Home",
includeHTML("./components/layout/homepage.html")),
tabPanel(title = "Guides"),
tabPanel(title = "Explore Hector",
tabPanel(title = "Run Hector",
fluidRow(
run_ui("run_1"),
#download_ui("download_1"),
Expand Down
90 changes: 86 additions & 4 deletions h2/components/layout/style copy.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,90 @@

.test {
font-family:"Barlow Regular", Sans-Serif !important;
}

h5 {
font-weight: bold;
}

body
{
font-family:"Barlow Regular", Sans-Serif !important;
font-size: 20px;
}

.about-info
{
font-size: 12px;
}

.c-emissions
{
font-size: 14px;
}

.container {
position: relative;
width:100%;
}

.header-text-title
{
position: absolute;
color: #FFFFFF;
top: 40%;
left: 50%;
text-align: center;!important
max-width: 120px;
margin-right: -50%;
transform: translate(-50%, -50%)
}

.header-text-sub
{
position: absolute;
color: #FFFFFF;
text-align: center;
font-size: 100%;
top: 60%;
left: 50%;
margin-right: -50%;
transform: translate(-50%, -50%)
}

.home-text
{
font-size: 16px;
}

.hrNav
{
font-size: 50px;
}

.logo
{

position: absolute;
top: 2rem;
left: 2rem;
margin:20px;
padding:0px 8px;
width:5em;
}

.maps
{
font-size: 16px;
}

.nav-tabs
{
font-size: 14px;
}

.output-vars
{
font-size: 16px;
}

.params
{
font-size: 14px;
}
12 changes: 12 additions & 0 deletions h2/www/images/GCIMS_logo_alt.svg
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 h2/www/images/GitHub-logo.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 h2/www/images/Hector-sm.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 h2/www/images/earth-header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions h2/www/images/hectorcal-doi.svg
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 h2/www/images/line.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c776483

Please sign in to comment.