Skip to content

Add GitHub footer and cookie management to home page#2327

Open
brunoborges wants to merge 1 commit into
mainfrom
brunoborges-add-site-footer
Open

Add GitHub footer and cookie management to home page#2327
brunoborges wants to merge 1 commit into
mainfrom
brunoborges-add-site-footer

Conversation

@brunoborges

@brunoborges brunoborges commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Pull Request Checklist

  • I have read and followed the CONTRIBUTING.md guidelines.
  • I have read and followed the Guidance for submissions involving paid services.
  • My contribution adds a new instruction, prompt, agent, skill, workflow, or canvas extension file in the correct directory.
  • The file follows the required naming convention.
  • The content is clearly structured and follows the example format.
  • I have tested my instructions, prompt, agent, skill, workflow, or canvas extension with GitHub Copilot.
  • I have run npm start and verified that README.md is up to date.
  • I am targeting the main branch for this pull request.

Description

The home page was missing the standard GitHub legal and social footer, including a way for visitors to manage cookie preferences.

This adds the footer used by github/dev-days to the generated home page, with legal links, GitHub social channels, responsive styling, and GitHub's shared OneTrust cookie-management dialog. The footer and consent runtime are limited to the home page, and the locale picker is intentionally omitted because this site is not internationalized.

The consent loader appends GitHub's runtime assets after Astro's page scripts so lazy-loaded consent chunks continue resolving from github.githubassets.com instead of the local site origin.


Type of Contribution

  • New instruction file.
  • New prompt file.
  • New agent file.
  • New plugin.
  • New skill file.
  • New agentic workflow.
  • New canvas extension.
  • Update to existing instruction, prompt, agent, plugin, skill, workflow, or canvas extension.
  • Other (please specify): Website UI update.

Additional Notes

The Astro production build succeeds. The footer was checked at desktop and mobile widths, and the Manage cookies button opens the shared GitHub consent dialog.


By submitting this pull request, I confirm that my contribution abides by the Code of Conduct and will be licensed under the MIT License.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 3adc4d03-d0c9-40f9-abbe-937931f6c523
@brunoborges
brunoborges requested a review from aaronpowell as a code owner July 16, 2026 20:32
Copilot AI review requested due to automatic review settings July 16, 2026 20:32
@github-actions github-actions Bot added new-submission PR adds at least one new contribution website-update PR touches website content or code labels Jul 16, 2026
@github-actions

github-actions Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

🔴 Contributor Reputation Check: HIGH risk

Check Risk
Profile HIGH
Credential audit NONE

Maintainers: please review this contributor before merging.
See the workflow run for full details.
Automated check powered by AGT.

@github-actions github-actions Bot added the needs-review:HIGH Contributor reputation check flagged HIGH risk label Jul 16, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds a home-page-only GitHub footer with legal links, social channels, and cookie-consent management.

Changes:

  • Adds responsive legal and social footer UI.
  • Loads GitHub consent runtime assets on the home page.
  • Adds the consent dialog host element and cookie-management action.
Show a summary per file
File Description
website/src/components/Head.astro Loads consent bootstrap script on the home page.
website/src/components/Footer.astro Adds footer UI, consent elements, and styling.
website/public/github-cookie-consent.js Loads GitHub consent runtime dependencies.

Review details

  • Files reviewed: 3/3 changed files
  • Comments generated: 2
  • Review effort level: Medium

Comment on lines +25 to +27
async function loadAssets() {
for (const asset of assets) {
await new Promise((resolve, reject) => {
<nav aria-label="Legal and resource links" class="subfooter-legal-nav">
<ul class="subfooter-legal">
<li class="subfooter-copyright">
<time datetime={String(currentYear)}>© {currentYear} GitHub, Inc.</time>
aaronpowell added a commit that referenced this pull request Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-review:HIGH Contributor reputation check flagged HIGH risk new-submission PR adds at least one new contribution website-update PR touches website content or code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants