Skip to content

Add logic for Vietnam region for cookie compliance and add footer#158

Open
Kelvin-Macapagal wants to merge 2 commits into
dotnet:mainfrom
Kelvin-Macapagal:footer
Open

Add logic for Vietnam region for cookie compliance and add footer#158
Kelvin-Macapagal wants to merge 2 commits into
dotnet:mainfrom
Kelvin-Macapagal:footer

Conversation

@Kelvin-Macapagal

Copy link
Copy Markdown
Member

This pull request introduces a universal Microsoft-style footer ("UHF footer") across the site, adds cookie consent management functionality, and updates layout and styles to support these features. The changes improve compliance, accessibility, and site consistency.

Cookie consent management:

  • Added Microsoft cookie consent script (wcp-consent.js) and a cookie-banner div to _Host.cshtml, enabling cookie consent UI and logic.
  • Implemented JavaScript functions to initialize cookie consent, handle consent changes, and show/hide the "Manage cookies" link dynamically.

Footer and layout enhancements:

  • Added a new Microsoft-branded footer (uhf-footer) with links for privacy, terms, contact, Azure hosting, advertising, and cookie management to MainLayout.razor.
  • Wrapped the main layout content in a .page-shell div and updated the main content area to use .layout-main for proper flexbox layout and footer positioning. [1] [2]

Styling updates:

  • Introduced CSS for .page-shell, .layout-main, and .uhf-footer components, including responsive design and custom styles for the new footer and its elements.

Comment thread src/apisof.net/Pages/_Host.cshtml Outdated
<script src="~/lib/jquery/jquery.min.js"></script>
<script src="~/lib/twitter-bootstrap/js/bootstrap.bundle.min.js"></script>
<script type="text/javascript">
var siteConsent = null;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Let's put this in its own file for organization

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.

2 participants