Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt header and footer to new giantswarm.io template #2389

Draft
wants to merge 22 commits into
base: main
Choose a base branch
from

Conversation

marians
Copy link
Member

@marians marians commented Dec 9, 2024

This PR changes the header and footer to match the recent giantswarm.io site update.

It turned out to be way too complicated to get the header with navigation menu copied into the docs site. So I went for a reduced version showing the logo and "Contact us" button, to keep some visual consistency with the core website.

To make the docs site's styles more specific, and avoid it affecting the header and footer copied over, the #docsmain wrapper element is introduced and used in styles selectors.

In the aftermath I had to clean up a lot.

Preview

image

@marians marians self-assigned this Dec 9, 2024
@marians

This comment was marked as outdated.

@marians

This comment was marked as outdated.

Copy link
Contributor

This PR moves/renames or deletes some files. Please make sure to

  • maintain references (also important for images)
  • Maintain aliases in the front matter of moved markdown files

Comment on lines +3 to +4
{{ $observer := resources.Get "scripts/IntersectionObserver.js" }}
{{ $js := slice $aside $base $observer | resources.Concat "js/docs.js" | resources.Minify | fingerprint }}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This adds the intersection observer JS file to our main JS, to avoid the separate HTTP request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant