Merge pull request #108 from zonghaoyuan/feat/feedback-fab

feat(web): add feedback FAB on homepage
This commit is contained in:
Zonghao Yuan
2026-06-24 19:01:07 +08:00
committed by GitHub
4 changed files with 15 additions and 0 deletions
+12
View File
@@ -2155,6 +2155,18 @@ export default function HomePage() {
</div> </div>
</footer> </footer>
{/* ================== 反馈悬浮按钮 ================== */}
<a
href="https://tally.so/r/VLqO1M"
target="_blank"
rel="noopener noreferrer"
aria-label={t("home.ui.feedback")}
className="fixed right-5 bottom-[calc(1.25rem+env(safe-area-inset-bottom))] z-50 flex items-center gap-2 rounded-full bg-ember-500 pl-3.5 pr-4 py-2.5 text-sm text-cream-50 shadow-lg transition-all hover:bg-clay-800 active:scale-95"
>
<i className="fa-solid fa-comment-dots text-[13px]" />
<span className="font-sans tracking-wide">{t("home.ui.feedback")}</span>
</a>
{styleOpen && styleRow >= 0 && ( {styleOpen && styleRow >= 0 && (
<StyleModal <StyleModal
items={OPTS[styleRow]!.items} items={OPTS[styleRow]!.items}
+1
View File
@@ -119,6 +119,7 @@ export const en = {
save: "Save", save: "Save",
cancel: "Cancel", cancel: "Cancel",
saveAndSelect: "Save and Select", saveAndSelect: "Save and Select",
feedback: "Feedback",
}, },
styleModal: { styleModal: {
+1
View File
@@ -130,6 +130,7 @@ export const ja = {
save: "保存", save: "保存",
cancel: "キャンセル", cancel: "キャンセル",
saveAndSelect: "保存して適用", saveAndSelect: "保存して適用",
feedback: "フィードバック",
}, },
// Style modal // Style modal
+1
View File
@@ -130,6 +130,7 @@ export const zhCN = {
save: "保存", save: "保存",
cancel: "取消", cancel: "取消",
saveAndSelect: "保存并选用", saveAndSelect: "保存并选用",
feedback: "反馈",
}, },
// Style modal // Style modal