Skip to content

Commit

Permalink
Merge pull request #343 from usefathom/add-banner
Browse files Browse the repository at this point in the history
Add notice banner
  • Loading branch information
LKaemmerling authored May 2, 2022
2 parents 391dd1b + dd1d328 commit aee9431
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion assets/src/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -172,4 +172,6 @@ div.delete a { color: red; }
.login-page small a { color: #98a0a6; font-size: 14px; display: inline-block; padding: 0 8px; }



.notice { background: #ecedf4; border-radius: 4px; padding: 16px; text-align: left; color: color: #222; font-size: 14px; display: grid; grid-template-columns: 1fr min-content; margin: 32px 0; gap: 32px; align-items: center; }
.notice a { color: #aaa; }
.notice .notice-text a { color: #533feb; text-decoration: underline; }
4 changes: 3 additions & 1 deletion assets/src/js/pages/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ class Dashboard extends Component {
<Table endpoint="referrers" headers={["Top referrers", "Views", "Uniques"]} siteId={state.site.id} dateRange={state.dateRange} showHostname="true" />
</div>
</div>

<div class="notice">
<div class="notice-text"><strong>Want more features and less maintenance?</strong> Check out the current version of Fathom Analytics and <a href="https://usefathom.com/ref/GITHUB">start your free trial today</a>.</div>
</div>
<footer class="section">
<div class="half">
<nav>
Expand Down

0 comments on commit aee9431

Please sign in to comment.