Skip to content

[WIP] Add reusable footer block for备案信息 display#4

Merged
SeRazon merged 1 commit intodevfrom
copilot/add-reusable-footer-block
Oct 17, 2025
Merged

[WIP] Add reusable footer block for备案信息 display#4
SeRazon merged 1 commit intodevfrom
copilot/add-reusable-footer-block

Conversation

Copy link

Copilot AI commented Oct 17, 2025

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.

Original prompt

Implement a reusable footer block that displays ICP 备案号 and 公安备案号 across the site.

Scope of changes:

  1. Create a new Vue component to render the备案信息 with proper alignment and accessible markup.

    • File: src/components/BeianBlock.vue
    • Props (all optional with sensible defaults):
    • Layout rules inside component (scoped CSS):
      • Use inline-flex with align-items:center to keep the police icon and text aligned.
      • Fix icon size to 16×16px so it matches text height.
      • Provide a subtle separator between the two links.
  2. Integrate the component into the global footer so it renders on all pages.

    • Update src/App.vue (or the existing global Footer component if present) to import and place inside a at the bottom.
    • Ensure the footer is centered and has padding.
  3. Do NOT add a binary icon to the repo (to keep the PR simple). Use the official icon URL by default. Users can later swap to a local icon by passing icon-src="/gongan.png" if they add it under public/.

Acceptance criteria:

  • The app builds on branch dev after the changes.
  • The footer displays a row with: [公安图标] 赣公网安备36012202000590号 | 赣ICP备2025074193号
  • The icon and text are visually aligned (same baseline/height) and the links open in a new tab.
  • The component is reusable and the texts/links can be overridden via props.

This pull request was created as a result of the following prompt from Copilot chat.

Implement a reusable footer block that displays ICP 备案号 and 公安备案号 across the site.

Scope of changes:

  1. Create a new Vue component to render the备案信息 with proper alignment and accessible markup.

    • File: src/components/BeianBlock.vue
    • Props (all optional with sensible defaults):
    • Layout rules inside component (scoped CSS):
      • Use inline-flex with align-items:center to keep the police icon and text aligned.
      • Fix icon size to 16×16px so it matches text height.
      • Provide a subtle separator between the two links.
  2. Integrate the component into the global footer so it renders on all pages.

    • Update src/App.vue (or the existing global Footer component if present) to import and place inside a at the bottom.
    • Ensure the footer is centered and has padding.
  3. Do NOT add a binary icon to the repo (to keep the PR simple). Use the official icon URL by default. Users can later swap to a local icon by passing icon-src="/gongan.png" if they add it under public/.

Acceptance criteria:

  • The app builds on branch dev after the changes.
  • The footer displays a row with: [公安图标] 赣公网安备36012202000590号 | 赣ICP备2025074193号
  • The icon and text are visually aligned (same baseline/height) and the links open in a new tab.
  • The component is reusable and the texts/links can be overridden via props.

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@vercel
Copy link

vercel bot commented Oct 17, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
home Ready Ready Preview Comment Oct 17, 2025 4:23pm

💡 Enable Vercel Agent with $100 free credit for automated AI reviews

@SeRazon SeRazon marked this pull request as ready for review October 17, 2025 16:24
@SeRazon SeRazon merged commit 7426897 into dev Oct 17, 2025
5 of 6 checks passed
Copilot AI requested a review from SeRazon October 17, 2025 16:24
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