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

ui: Added privacy policy and terms of service link in the footer #1216

Closed
wants to merge 2 commits into from

Conversation

Mindslayer001
Copy link

Changes

  • Added "Privacy Policy" (/privacy) and "Terms of Service" (/tos) links to the footer, accessible globally.
  • Updated footer text to use i18n translation keys (privacy, terms_of_service, and build_on) for localization.
  • Updated i18n/en_US.yaml to include the new keys.

Testing

  • Verified that the footer displays properly on all pages.
  • Checked links to ensure they redirect to the appropriate pages.

Screenshots

Before:

Screenshot from 2024-12-30 13-48-50

After:

Screenshot from 2024-12-30 13-48-58

Issue Reference

Closes #1187

@shuashuai shuashuai self-requested a review December 30, 2024 08:30
Powered by
{/* eslint-disable-next-line react/jsx-no-target-blank */}
<a href="https://answer.apache.org" target="_blank">
<a
Copy link
Member

Choose a reason for hiding this comment

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

  1. Use the Link component of react-router-dom to replace the a tag.
  2. Remove target and rel attributes.

const fullYear = dayjs().format('YYYY');
const siteName = siteInfoStore((state) => state.siteInfo.name);
const cc = `${fullYear} ${siteName}`;

return (
<footer className="bg-light">
<Container className="py-3">
<p className="text-center mb-0 small text-secondary">
Copy link
Member

Choose a reason for hiding this comment

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

Delete text-secondary in class

@sy-records sy-records changed the base branch from main to dev December 30, 2024 08:57
@sy-records
Copy link
Member

sy-records commented Dec 30, 2024

PR need to be committed to the dev branch.

@sy-records
Copy link
Member

In fact you don't need to re-submit the PR, you can continue to make changes at this PR.

But since you have submitted a new PR, I am closing this PR.

Duplicate of #1217

@sy-records sy-records closed this Dec 30, 2024
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.

Add "Privacy Policy" and "Terms of Service" link in footer
4 participants