feat(web): move feedback entry from floating button to about section (#112)
Replace the fixed bottom-right ember-500 floating button with a dedicated fourth column in the about grid, matching existing visual language (smallcaps heading + icon link). Adds submitFeedback and feedbackDescription i18n keys for zh-CN, en, ja. Grid uses md:grid-cols-2 lg:grid-cols-4 for better mid-screen responsiveness. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
+17
-12
@@ -2077,7 +2077,7 @@ export default function HomePage() {
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="mx-auto grid max-w-4xl grid-cols-1 gap-y-10 text-center md:grid-cols-3 md:gap-x-10">
|
<div className="mx-auto grid max-w-5xl grid-cols-1 gap-y-10 text-center md:grid-cols-2 lg:grid-cols-4 md:gap-x-10">
|
||||||
<div>
|
<div>
|
||||||
<p className="text-[10px] smallcaps text-clay-500 mb-3">{t("home.about.team")}</p>
|
<p className="text-[10px] smallcaps text-clay-500 mb-3">{t("home.about.team")}</p>
|
||||||
<p className="font-serif italic text-clay-700 text-base leading-relaxed">
|
<p className="font-serif italic text-clay-700 text-base leading-relaxed">
|
||||||
@@ -2134,6 +2134,22 @@ export default function HomePage() {
|
|||||||
<span className="font-sans text-sm text-clay-900">575404333</span>
|
<span className="font-sans text-sm text-clay-900">575404333</span>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<p className="text-[10px] smallcaps text-clay-500 mb-3">{t("home.ui.feedback")}</p>
|
||||||
|
<p className="font-serif text-clay-700 text-base leading-relaxed mb-4">
|
||||||
|
{t("home.about.feedbackDescription")}
|
||||||
|
</p>
|
||||||
|
<a
|
||||||
|
href="https://tally.so/r/VLqO1M"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
className="inline-flex items-center gap-2 text-clay-700 hover:text-ember-500 transition-colors"
|
||||||
|
>
|
||||||
|
<i className="fa-solid fa-comment-dots text-[15px]" />
|
||||||
|
<span className="font-sans text-sm">{t("home.ui.submitFeedback")}</span>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="hairline-full w-full mt-14 md:mt-20 mb-12 md:mb-16" />
|
<div className="hairline-full w-full mt-14 md:mt-20 mb-12 md:mb-16" />
|
||||||
@@ -2155,17 +2171,6 @@ 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
|
||||||
|
|||||||
@@ -120,6 +120,7 @@ export const en = {
|
|||||||
cancel: "Cancel",
|
cancel: "Cancel",
|
||||||
saveAndSelect: "Save and Select",
|
saveAndSelect: "Save and Select",
|
||||||
feedback: "Feedback",
|
feedback: "Feedback",
|
||||||
|
submitFeedback: "Submit Feedback",
|
||||||
},
|
},
|
||||||
|
|
||||||
styleModal: {
|
styleModal: {
|
||||||
@@ -165,6 +166,7 @@ Dreamy watercolor style with soft tones and nostalgic atmosphere
|
|||||||
contact: "CONTACT",
|
contact: "CONTACT",
|
||||||
email: "Email",
|
email: "Email",
|
||||||
openSource: "OPEN SOURCE",
|
openSource: "OPEN SOURCE",
|
||||||
|
feedbackDescription: "Your thoughts matter — tell us about your experience and suggestions.",
|
||||||
betaUsers: "BETA USERS",
|
betaUsers: "BETA USERS",
|
||||||
qqGroupLabel: "QQ Group: ",
|
qqGroupLabel: "QQ Group: ",
|
||||||
qqGroupAlt: "InfiPlot Public Beta Group QR Code (Group ID: 575404333)",
|
qqGroupAlt: "InfiPlot Public Beta Group QR Code (Group ID: 575404333)",
|
||||||
|
|||||||
@@ -131,6 +131,7 @@ export const ja = {
|
|||||||
cancel: "キャンセル",
|
cancel: "キャンセル",
|
||||||
saveAndSelect: "保存して適用",
|
saveAndSelect: "保存して適用",
|
||||||
feedback: "フィードバック",
|
feedback: "フィードバック",
|
||||||
|
submitFeedback: "フィードバックを送信",
|
||||||
},
|
},
|
||||||
|
|
||||||
// Style modal
|
// Style modal
|
||||||
@@ -180,6 +181,7 @@ export const ja = {
|
|||||||
contact: "連絡先",
|
contact: "連絡先",
|
||||||
email: "メールアドレス",
|
email: "メールアドレス",
|
||||||
openSource: "ソースコード",
|
openSource: "ソースコード",
|
||||||
|
feedbackDescription: "ご意見をお聞かせください。体験やご提案をお待ちしています。",
|
||||||
betaUsers: "クローズドβユーザーグループ",
|
betaUsers: "クローズドβユーザーグループ",
|
||||||
qqGroupLabel: "QQグループ番号:",
|
qqGroupLabel: "QQグループ番号:",
|
||||||
qqGroupAlt: "InfiPlot オープンβ交流QQグループ QRコード(グループ番号 575404333)",
|
qqGroupAlt: "InfiPlot オープンβ交流QQグループ QRコード(グループ番号 575404333)",
|
||||||
|
|||||||
@@ -131,6 +131,7 @@ export const zhCN = {
|
|||||||
cancel: "取消",
|
cancel: "取消",
|
||||||
saveAndSelect: "保存并选用",
|
saveAndSelect: "保存并选用",
|
||||||
feedback: "反馈",
|
feedback: "反馈",
|
||||||
|
submitFeedback: "提交反馈",
|
||||||
},
|
},
|
||||||
|
|
||||||
// Style modal
|
// Style modal
|
||||||
@@ -180,6 +181,7 @@ export const zhCN = {
|
|||||||
contact: "联 系 方 式",
|
contact: "联 系 方 式",
|
||||||
email: "邮箱",
|
email: "邮箱",
|
||||||
openSource: "开 源 地 址",
|
openSource: "开 源 地 址",
|
||||||
|
feedbackDescription: "你的想法对我们很重要,欢迎告诉我们你的体验和建议。",
|
||||||
betaUsers: "内 测 用 户 群",
|
betaUsers: "内 测 用 户 群",
|
||||||
qqGroupLabel: "QQ群号:",
|
qqGroupLabel: "QQ群号:",
|
||||||
qqGroupAlt: "InfiPlot 公测交流群 QQ 群二维码(群号 575404333)",
|
qqGroupAlt: "InfiPlot 公测交流群 QQ 群二维码(群号 575404333)",
|
||||||
|
|||||||
Reference in New Issue
Block a user