Skip to content

Commit

Permalink
update headers and footers
Browse files Browse the repository at this point in the history
  • Loading branch information
NickCrew committed Oct 4, 2024
1 parent 5dfc982 commit 3ce7e1c
Show file tree
Hide file tree
Showing 9 changed files with 74 additions and 18 deletions.
6 changes: 6 additions & 0 deletions preview-src/index.adoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
= ThreatX Documentation
:description: ThreatX Documentation HOme
:page-description: {description}
:author: Nick Ferguson
:page-author: {author}
:idprefix:
:idseparator: -
:sectlinks:
Expand All @@ -9,6 +13,8 @@
:page-pagination:
:pdf-filename: index.pdf
:page-pdf-filename: index.pdf
:build-date: 2024-01-01
:page-build-date: {build-date}

[.float-group]
--
Expand Down
2 changes: 1 addition & 1 deletion src/css/vars.css
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
--navbar_hover-background: var(--color-black);
--navbar-button-background: var(--color-white);
--navbar-button-border-color: var(--panel-border-color);
--navbar-button-font-color: var(--body-font-color);
--navbar-button-font-color: var(--color-jet-80);
--navbar-menu-border-color: var(--panel-border-color);
--navbar-menu-background: var(--color-white);
--navbar-menu-font-color: var(--body-font-color);
Expand Down
Binary file added src/img/ThreatX.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 src/img/prevent.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 src/img/protect.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 src/img/waap_sensor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/partials/article.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
{{#with page.title}}
<h1 class="page">{{{this}}}</h1>
{{/with}}
{{#if page.attributes.description}}
<em>{{page.attributes.description}}</em>
{{/if}}
{{{page.contents}}}
{{> pagination}}
</article>
9 changes: 6 additions & 3 deletions src/partials/footer-content.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<footer class="footer">
<p align="center">
<a style="color:#c1c1c1" href="https://www.threatx.com">ThreatX.com</a> | <a style="color:lightgray" href="mailto:support@threatx.com">Support</a>
<p ><em>© Copyright 2024 Threat X, Inc. </em></p>
<p>
Last site deployment: {{page.attributes.build-date}}
</p>
<p>
TX Prevent® and TX Protect® are registered trademarks of Threat X, Inc.
</p>
<p align="center"><em>© Copyright 2024 Threat X, Inc. All rights reserved.</em></p>
</footer>
72 changes: 58 additions & 14 deletions src/partials/header-content.hbs
Original file line number Diff line number Diff line change
@@ -1,35 +1,79 @@
<header class="header">
<nav class="navbar">
<div class="navbar-brand">
<img src="{{{uiRootPath}}}/img/threatx-icon-red-tx.png"/>
<img src="{{{uiRootPath}}}/img/threatx-icon-red-tx.png" />
<a class="navbar-item" href="{{{or site.url siteRootPath}}}">{{site.title}}</a>
{{#if env.SITE_SEARCH_PROVIDER}}
<div class="navbar-item search hide-for-print">
<div id="search-field" class="field">
<input id="search-input" type="text" placeholder="Search Documentation"{{#if page.home}} autofocus{{/if}}>
<input id="search-input" type="text" placeholder="Search Documentation" {{#if page.home}} autofocus{{/if}}>
</div>
</div>
{{/if}}
</div>
<div id="topbar-nav" class="navbar-menu">


<div class="navbar-end">
<div class="navbar-item has-dropdown is-hoverable">
<div class="navbar-item has-dropdown is-hoverable">
<a class="navbar-link" href="#">Products</a>
<div class="navbar-dropdown">
<a class="navbar-item" href="{{or site.url siteRootPath }}/txprevent/1.0/index.html">TX Prevent</a>
<a class="navbar-item" href="{{or site.url siteRootPath }}/txprotect/3.20/index.html">TX Protect</a>
<a class="navbar-item has-label" href="{{or site.url siteRootPath }}/txprevent/1.0/index.html">
TX Prevent
<small>v1.0</small>
</a>
<a class="navbar-item has-label" href="{{or site.url siteRootPath }}/txprotect/3.20/index.html">
TX Protect
<small>v3.20</small>
</a>
</div>
</div>
{{#if page.attributes.pdf-filename}}
<div class="navbar-item">
<span class="control">
<a class="button is-primary" href="{{{page.attributes.pdf-filename}}}">📥 Download PDF</a>
</span>
<div class="navbar-item has-dropdown is-hoverable">
<a class="navbar-link" href="#">
Resources</a>
<div class="navbar-dropdown">
<div class="navbar-item"><strong>Deployment</strong></div>
<a class="navbar-item has-label" href="https://hub.docker.com/u/threatx">
Docker Images
<small>threatx</small>
</a>
<a class="navbar-item has-label"
href="https://threatx-prevent-cf-template.s3.amazonaws.com/threatx-prevent.yaml">
CloudFormation Template
<small>txprevent</small>
</a>
</div>
</div>
<div class="navbar-item has-dropdown is-hoverable">
<a class="navbar-link" href="#">
Company
</a>
<div class="navbar-dropdown">
<a class="navbar-item" href="https://threatx.com">
Homepage
</a>
<a class="navbar-item " href="https://www.threatx.com/news/">
News
</a>
<a class="navbar-item " href="https://www.threatx.com/company/">
About
</a>
<a class="navbar-item " href="https://www.threatx.com/contact-us/">
Contact
</a>
</div>
</div>
{{/if}}
</div>
</div>
</div>
{{#if page.attributes.pdf-filename}}
<div class="navbar-item">
<span class="control">
<a class="button is-primary" title="Export and save the current page in PDF format." href="{{{page.attributes.pdf-filename}}}">
📥 Download (PDF)
</a>
</span>
</div>
{{/if}}
</div>
</div>
</nav>
</header>
</header>

0 comments on commit 3ce7e1c

Please sign in to comment.