Skip to content

Commit

Permalink
update header and footer
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfitzo committed Nov 11, 2024
1 parent b388690 commit e25e206
Show file tree
Hide file tree
Showing 6 changed files with 183 additions and 4 deletions.
Binary file added gen3/docs/img/gen3_new_logo_white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
19 changes: 15 additions & 4 deletions gen3/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,14 @@ nav:

theme:
favicon: img/Gen3-3.ico
logo: img/Gen3_Logo-01_blue_no_commons.png
logo: img/gen3_new_logo_white.svg
name: material
features:
- navigation.footer
custom_dir: overrides

palette:
- primary: black


# Palette toggle for light mode
- media: "(prefers-color-scheme: light)"
Expand All @@ -129,8 +130,6 @@ theme:
- navigation.indexes
- navigation.tracking
- navigation.path
extra_css:
- stylesheets/extra.css
use_directory_urls: true
markdown_extensions:
- admonition
Expand All @@ -152,3 +151,15 @@ plugins:
blog_toc: true
- mkdocs-video:
is_video: True
extra:
social:
- icon: fontawesome/brands/linkedin
link: https://www.linkedin.com/company/center-for-translational-data-science/
- icon: fontawesome/brands/x-twitter
link: https://x.com/UChicagoCTDS
- icon: fontawesome/brands/x-twitter
link: https://x.com/gen3data
- icon: fontawesome/brands/slack
link: https://docs.google.com/forms/d/e/1FAIpQLSczyhhOXeCK9FdVtpQpelOHYnRj1EAq1rwwnm9q6cPAe5a7ug/viewform
- icon: fontawesome/brands/youtube
link: https://www.youtube.com/channel/UCMCwQy4EDd1BaskzZgIOsNQ/featured
75 changes: 75 additions & 0 deletions gen3/overrides/partials/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{#-
This file was automatically generated - do not edit
-#}
{% set class = "md-header" %}
{% if "navigation.tabs.sticky" in features %}
{% set class = class ~ " md-header--shadow md-header--lifted" %}
{% elif "navigation.tabs" not in features %}
{% set class = class ~ " md-header--shadow" %}
{% endif %}
<header class="{{ class }}" data-md-component="header">
<nav class="md-header__inner md-grid" aria-label="{{ lang.t('header') }}">
<a href="{{ config.extra.homepage | d(nav.homepage.url, true) | url }}" title="{{ config.site_name | e }}" class="md-header__button md-logo" aria-label="{{ config.site_name }}" data-md-component="logo">
{% include "partials/logo.html" %}
</a>
<label class="md-header__button md-icon" for="__drawer">
{% set icon = config.theme.icon.menu or "material/menu" %}
{% include ".icons/" ~ icon ~ ".svg" %}
</label>
<div class="md-header__title" data-md-component="header-title">
<div class="md-header__ellipsis">
<div class="md-header__topic">
<span class="md-ellipsis">
{{ config.site_name }}
</span>
</div>
<div class="md-header__topic" data-md-component="header-topic">
<span class="md-ellipsis">
{% if page.meta and page.meta.title %}
{{ page.meta.title }}
{% else %}
{{ page.title }}
{% endif %}
</span>
</div>
</div>
</div>
{% if config.theme.palette %}
{% if not config.theme.palette is mapping %}
{% include "partials/palette.html" %}
{% endif %}
{% endif %}
{% if not config.theme.palette is mapping %}
{% include "partials/javascripts/palette.html" %}
{% endif %}
{% if config.extra.alternate %}
{% include "partials/alternate.html" %}
{% endif %}

<!-- Custom link to Gen3.org (with additional spacing to the left of the search bar) -->
<div style="margin-right: 20px;"> <!-- Adjust the margin as needed -->
<h1 href="https://gen3.org/" class="md-header__button" aria-label="Gen3.org" target="_blank" rel="noopener noreferrer">
Gen3.org
</h1>
</div>
<!-- End of custom link to Gen3.org -->

{% if "material/search" in config.plugins %}
<label class="md-header__button md-icon" for="__search">
{% set icon = config.theme.icon.search or "material/magnify" %}
{% include ".icons/" ~ icon ~ ".svg" %}
</label>
{% include "partials/search.html" %}
{% endif %}
{% if config.repo_url %}
<div class="md-header__source">
{% include "partials/source.html" %}
</div>
{% endif %}
</nav>
{% if "navigation.tabs.sticky" in features %}
{% if "navigation.tabs" in features %}
{% include "partials/tabs.html" %}
{% endif %}
{% endif %}
</header>
Binary file added gen3/site/img/gen3_new_logo_white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
93 changes: 93 additions & 0 deletions gen3/site/img/gen3_new_logo_white.svg
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 e25e206

Please sign in to comment.