Skip to content

Commit 62c1ef6

Browse files
ChengaDevclaude
andcommitted
Fix missing committed files from previous session
- Add faq, faqTitle, faqDescription, faqItems to LocalizationType - Add FAQ route to AppRoutes - Add FAQ nav link to Navigation - Update sitemap with FAQ URLs and hreflang - Update llms.txt and robots.txt with FAQ page Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 7820e85 commit 62c1ef6

6 files changed

Lines changed: 48 additions & 0 deletions

File tree

public/llms.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- [Home](https://www.24shotclock.com/): Interactive shot clock simulator — start/stop, 24s and 14s resets, time correction, display toggle, and buzzer sound.
88
- [Instructions](https://www.24shotclock.com/instructions): Step-by-step guide to operating the shot clock, including basic controls, time corrections, display modes, and FIBA reset rules.
99
- [FIBA Resources](https://www.24shotclock.com/fiba-resources): Links to official FIBA basketball rules, shot clock guidelines, referee training materials, and competition manuals.
10+
- [FAQ](https://www.24shotclock.com/faq): Answers to common questions about shot clock rules, the 14-second reset, blind-clock drills, and how to use the app.
1011
- [About](https://www.24shotclock.com/about): Background on ShotClock Pro — its purpose, target users, and training philosophy.
1112

1213
## Languages

public/robots.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
User-agent: *
33
Allow: /
44
Sitemap: https://www.24shotclock.com/sitemap.xml
5+
LLMs: https://www.24shotclock.com/llms.txt
56

67
# AI crawlers
78
User-agent: GPTBot

public/sitemap.xml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,18 @@
4848
<xhtml:link rel="alternate" hreflang="x-default" href="https://www.24shotclock.com/about"/>
4949
</url>
5050

51+
<url>
52+
<loc>https://www.24shotclock.com/faq</loc>
53+
<lastmod>2026-04-07</lastmod>
54+
<changefreq>monthly</changefreq>
55+
<priority>0.8</priority>
56+
<xhtml:link rel="alternate" hreflang="en" href="https://www.24shotclock.com/faq"/>
57+
<xhtml:link rel="alternate" hreflang="it" href="https://www.24shotclock.com/it/faq"/>
58+
<xhtml:link rel="alternate" hreflang="es" href="https://www.24shotclock.com/es/faq"/>
59+
<xhtml:link rel="alternate" hreflang="fr" href="https://www.24shotclock.com/fr/faq"/>
60+
<xhtml:link rel="alternate" hreflang="x-default" href="https://www.24shotclock.com/faq"/>
61+
</url>
62+
5163
<!-- Italian -->
5264
<url>
5365
<loc>https://www.24shotclock.com/it</loc>
@@ -74,6 +86,13 @@
7486
<priority>0.6</priority>
7587
</url>
7688

89+
<url>
90+
<loc>https://www.24shotclock.com/it/faq</loc>
91+
<lastmod>2026-04-07</lastmod>
92+
<changefreq>monthly</changefreq>
93+
<priority>0.7</priority>
94+
</url>
95+
7796
<!-- Spanish -->
7897
<url>
7998
<loc>https://www.24shotclock.com/es</loc>
@@ -100,6 +119,13 @@
100119
<priority>0.6</priority>
101120
</url>
102121

122+
<url>
123+
<loc>https://www.24shotclock.com/es/faq</loc>
124+
<lastmod>2026-04-07</lastmod>
125+
<changefreq>monthly</changefreq>
126+
<priority>0.7</priority>
127+
</url>
128+
103129
<!-- French -->
104130
<url>
105131
<loc>https://www.24shotclock.com/fr</loc>
@@ -126,4 +152,11 @@
126152
<priority>0.6</priority>
127153
</url>
128154

155+
<url>
156+
<loc>https://www.24shotclock.com/fr/faq</loc>
157+
<lastmod>2026-04-07</lastmod>
158+
<changefreq>monthly</changefreq>
159+
<priority>0.7</priority>
160+
</url>
161+
129162
</urlset>

src/AppRoutes.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const AppRoutes = (lang: string) => ({
33
Instructions: lang === 'en' ? '/instructions' : `/${lang}/instructions`,
44
FIBAResources: lang === 'en' ? '/fiba-resources' : `/${lang}/fiba-resources`,
55
About: lang === 'en' ? '/about' : `/${lang}/about`,
6+
FAQ: lang === 'en' ? '/faq' : `/${lang}/faq`,
67
})
78

89
export default AppRoutes

src/components/Navigation.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,13 @@ const Navigation = ({ currentTheme, setTheme }: NavigationProps) => {
7878
>
7979
{locals.about}
8080
</NavLink>
81+
<NavLink
82+
to={routes.FAQ}
83+
active={location.pathname === routes.FAQ}
84+
onClick={handleNavClick}
85+
>
86+
{locals.faq}
87+
</NavLink>
8188
<ThemeToggle>
8289
<ThemeButton
8390
active={currentTheme === Themes.Light}

src/localization/types.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ export type LocalizationType = {
1111
instructions: string;
1212
fibaResources: string;
1313
about: string;
14+
faq: string;
15+
// FAQ Page
16+
faqTitle: string;
17+
faqDescription: string;
18+
faqItems: Array<{ question: string; answer: string }>;
1419
// About Page
1520
aboutTitle: string;
1621
aboutContent: string[];

0 commit comments

Comments
 (0)