Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions app/messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
"communityTitle": "Built by {count}+ contributors",
"communityDescription": "This project is shaped by the community. Every question, fix, and improvement comes from people like you.",
"joinContributors": "Join the contributors →",
"questionReportCalloutTitle": "Help fix reported questions",
"questionReportCalloutDescription": "Community members have flagged questions that need review. Pick one up and help improve the question bank.",
"questionReportCalloutCta": "View reported issues →",
"contributorTooltip": "{login} — {count} contributions",
"tryChallenges": "Try Challenge Modes",
"ctaPracticeTest": "Take a Practice Test"
Expand Down
27 changes: 25 additions & 2 deletions app/src/app/[locale]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Button } from "@/components/ui/button";
import { Badge } from "@/components/ui/badge";
import { Card, CardContent } from "@/components/ui/card";
import { Separator } from "@/components/ui/separator";
import { Play, Swords, Trophy, Timer, Flame, Heart } from "lucide-react";
import { Play, Swords, Trophy, Timer, Flame, Heart, CircleAlert } from "lucide-react";
import { setRequestLocale, getTranslations } from "next-intl/server";
import { getCertCatalog } from "@/lib/questions";
import { parseSupportedLocale } from "@/lib/questions";
Expand Down Expand Up @@ -268,7 +268,7 @@ export default async function HomePage({ params }: Props) {
</a>
))}
</div>
<div className="mt-6">
<div className="mt-6 flex flex-wrap gap-3">
<Button
variant="outline"
render={<a href="https://github.com/FidelusAleksander/ghcertified/blob/main/CONTRIBUTING.md" target="_blank" rel="noopener noreferrer" />}
Expand All @@ -278,6 +278,29 @@ export default async function HomePage({ params }: Props) {
{t("joinContributors")}
</Button>
</div>

{/* Question report callout */}
<div className="mt-8 rounded-[14px] border border-amber-500/30 bg-amber-500/5 px-5 py-4 max-w-[520px]">
<div className="flex items-start gap-3">
<CircleAlert className="size-5 text-amber-500 shrink-0 mt-0.5" />
<div>
<p className="text-[14px] font-semibold text-foreground leading-snug">
{t("questionReportCalloutTitle")}
</p>
<p className="text-[13px] text-muted-foreground mt-1 leading-relaxed">
{t("questionReportCalloutDescription")}
</p>
<a
href="https://github.com/FidelusAleksander/ghcertified/issues?q=is:issue+is:open+label:question-report"
target="_blank"
rel="noopener noreferrer"
className="inline-block mt-2.5 text-[13px] font-medium text-amber-600 hover:text-amber-500 dark:text-amber-400 dark:hover:text-amber-300 transition-colors"
>
{t("questionReportCalloutCta")}
</a>
</div>
</div>
</div>
</div>
)}
</div>
Expand Down
Loading