Skip to content

Commit 6ebc030

Browse files
authored
Add banner indicating this is from Trump 1 (#124)
Now that we are in a second Trump term (and in the season of publishing reports like this first-six-months one), people might land on these pages thinking they are about the current administration instead of the first one in 2017. This adds a small banner to the top of every page letting people know that these reports are about 2017 and linking to EDGI's blog for more current info. The banner just sits at the top of the page and is NOT sticky (does not stay at the top of the window when you scroll). The styles are directly in the HTML here because it turns out this site used two totally separate stylesheets for the home page vs. other pages, and there’s no built-in way to share common styles across them (!).
1 parent ecb5bb0 commit 6ebc030

13 files changed

Lines changed: 61 additions & 13 deletions

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
# 100 Days
44

5+
⚠️ This website/report is about the **first Trump administration in 2017**.
6+
57
Website for the [EDGI 100 days report](http://100days.envirodatagov.org/), built with [Jekyll](https://jekyllrb.com/).
68

79
## License & Copyright
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<div class="relevant-time-banner">
2+
<style>
3+
.relevant-time-banner {
4+
background: #fff3cd;
5+
border-bottom: 1px solid #ffe69c;
6+
color: #332701;
7+
font: 400 16px/1.5 'Source Sans Pro', sans-serif;
8+
padding: 0.5rem 1rem;
9+
}
10+
11+
.relevant-time-banner a {
12+
color: #664d03;
13+
text-decoration: underline;
14+
}
15+
16+
.icon {
17+
width: 1em;
18+
height: 1em;
19+
vertical-align: -0.125em;
20+
}
21+
</style>
22+
23+
<img class="icon" aria-hidden="true" src="{{ "/assets/clock-icon.svg" | relative_url }}">
24+
&nbsp;<strong>This report covers the first Trump administration in 2017.</strong>
25+
For current analysis, <a href="https://envirodatagov.org/blog/">visit EDGI’s blog</a>.
26+
</div>

_layouts/front.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
<body>
77

8+
{% include relevant-time-banner.html %}
9+
810
{{ content }}
911

1012
</body>

assets/clock-icon.svg

Lines changed: 1 addition & 0 deletions
Loading

changing-digital-climate-data.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@
1313
comments: false
1414
---
1515
<body class="bg-white">
16-
<div>
17-
<a id="logo" href="{{ "/index.html" | relative_url }}" title="Home" class=""><img alt="edgi-logo" src="{{ "/assets/edgi-logo-b.png" | relative_url }}" style="width:5vh;min-width:35px; height:auto;"></a>
18-
</div>
16+
{% include relevant-time-banner.html %}
17+
1918
<header>
19+
<div>
20+
<a id="logo" href="{{ "/index.html" | relative_url }}" title="Home" class=""><img alt="edgi-logo" src="{{ "/assets/edgi-logo-b.png" | relative_url }}" style="width:5vh;min-width:35px; height:auto;"></a>
21+
</div>
2022
<div id="bg3" class="chbg"></div>
2123
<div id="inner-wrapper">
2224
<div id="heds">

changing-digital-climate-quotes.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@
1414
---
1515

1616
<body class="bg-white">
17-
<div>
18-
<a id="logo" href="{{ "/index.html" | relative_url }}" title="Home" class=""><img alt="edgi-logo" src="{{ "/assets/edgi-logo-b.png" | relative_url }}" style="width:5vh;min-width:35px; height:auto;"></a>
19-
</div>
17+
{% include relevant-time-banner.html %}
18+
2019
<header>
20+
<div>
21+
<a id="logo" href="{{ "/index.html" | relative_url }}" title="Home" class=""><img alt="edgi-logo" src="{{ "/assets/edgi-logo-b.png" | relative_url }}" style="width:5vh;min-width:35px; height:auto;"></a>
22+
</div>
2123
<div id="bg3" class="chbg"></div>
2224
<div id="inner-wrapper">
2325
<div id="heds">

changing-digital-climate.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313
comments: true
1414
---
1515
<body class="bg-white">
16-
<div><a id="logo" href="{{ "/index.html" | relative_url }}" title="Home" class=""><img alt="edgi-logo" src="{{ "/assets/edgi-logo-b.png" | relative_url }}" style="width:5vh;min-width:35px; height:auto;"></a></div>
16+
{% include relevant-time-banner.html %}
17+
1718
<header>
19+
<div><a id="logo" href="{{ "/index.html" | relative_url }}" title="Home" class=""><img alt="edgi-logo" src="{{ "/assets/edgi-logo-b.png" | relative_url }}" style="width:5vh;min-width:35px; height:auto;"></a></div>
1820
<div id="bg3" class="chbg"></div>
1921
<div id="inner-wrapper">
2022
<div id="heds">

epa-under-siege-peer-reviews.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111
---
1212

1313
<body class="bg-white">
14-
<div><a id="logo" href="{{ "/index.html" | relative_url }}" title="Home" class=""><img alt="edgi-logo" src="{{ "/assets/edgi-logo-b.png" | relative_url }}" style="width:5vh;min-width:35px; height:auto;"></a></div>
14+
{% include relevant-time-banner.html %}
15+
1516
<header>
17+
<div><a id="logo" href="{{ "/index.html" | relative_url }}" title="Home" class=""><img alt="edgi-logo" src="{{ "/assets/edgi-logo-b.png" | relative_url }}" style="width:5vh;min-width:35px; height:auto;"></a></div>
1618
<div id="bg1" class="chbg"></div>
1719
<div id="inner-wrapper">
1820
<div id="heds">

epa-under-siege.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313
---
1414

1515
<body class="bg-white">
16-
<div><a id="logo" href="{{ "/index.html" | relative_url }}" title="Home" class=""><img alt="edgi-logo" src="{{ "/assets/edgi-logo-b.png" | relative_url }}" style="width:5vh;min-width:35px; height:auto;"></a></div>
16+
{% include relevant-time-banner.html %}
17+
1718
<header>
19+
<div><a id="logo" href="{{ "/index.html" | relative_url }}" title="Home" class=""><img alt="edgi-logo" src="{{ "/assets/edgi-logo-b.png" | relative_url }}" style="width:5vh;min-width:35px; height:auto;"></a></div>
1820
<div id="bg1" class="chbg"></div>
1921
<div id="inner-wrapper">
2022
<div id="heds">

mustafa-ali-interview.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111
- 'mustafa-ali-interview.html'
1212
---
1313
<body class="bg-white">
14-
<div><a id="logo" href="{{ "/index.html" | relative_url }}" title="Home" class=""><img alt="edgi-logo" src="{{ "/assets/edgi-logo-b.png" | relative_url }}" style="width:5vh;min-width:35px; height:auto;"></a></div>
14+
{% include relevant-time-banner.html %}
15+
1516
<header>
17+
<div><a id="logo" href="{{ "/index.html" | relative_url }}" title="Home" class=""><img alt="edgi-logo" src="{{ "/assets/edgi-logo-b.png" | relative_url }}" style="width:5vh;min-width:35px; height:auto;"></a></div>
1618
<div id="bg2a" class="chbg"></div>
1719
<div id="inner-wrapper">
1820
<div id="heds">

0 commit comments

Comments
 (0)