Skip to content

Commit f83e9c0

Browse files
Merge pull request #262 from CSSLab/codex/practice-nav-polish
Polish practice naming and modal styling
2 parents 764cf44 + 0ef138b commit f83e9c0

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/components/Common/Header.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ export const Header: React.FC = () => {
212212
href="/openings"
213213
className={`px-2 py-1 transition-all duration-200 hover:!text-primary ${router.pathname.startsWith('/openings') ? '!text-primary' : '!text-primary/80'}`}
214214
>
215-
OPENINGS
215+
PRACTICE
216216
</Link>
217217
<Link
218218
href="/turing"
@@ -392,7 +392,7 @@ export const Header: React.FC = () => {
392392
Puzzles
393393
</Link>
394394
<Link href="/openings" className="uppercase">
395-
Openings
395+
Practice
396396
</Link>
397397
<Link href="/turing" className="uppercase">
398398
Bot-or-not

src/components/Home/HomeHero.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ export const HomeHero: React.FC<Props> = ({ scrollHandler }: Props) => {
229229
/>
230230
<FeatureCard
231231
icon="play_lesson"
232-
title="Openings"
232+
title="Practice"
233233
description="Learn and practice chess openings with Maia"
234234
href="/openings"
235235
index={4}

src/components/Home/Sections/AdditionalFeaturesSection.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,10 @@ export const AdditionalFeaturesSection = ({
135135
const features: Feature[] = [
136136
{
137137
icon: <StarIcon />,
138-
title: 'Openings Practice',
138+
title: 'Practice',
139139
description:
140140
"Drill chess openings against Maia models calibrated to specific rating levels, allowing you to practice against opponents similar to those you'll face.",
141-
action: { type: 'link', href: '/openings', label: 'Practice Openings' },
141+
action: { type: 'link', href: '/openings', label: 'Practice' },
142142
iconBgColor: 'bg-human-3/10',
143143
iconTextColor: 'text-human-3',
144144
},

src/components/Openings/OpeningSelectionModal.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ const BrowsePanel: React.FC<{
414414
}
415415

416416
const renderTabs = () => (
417-
<div className="grid w-full select-none grid-cols-3 items-center justify-between border-b border-glass-border bg-white/[0.02]">
417+
<div className="grid w-full select-none grid-cols-3 items-center justify-between border-b border-glass-border bg-white/[0.04]">
418418
{[
419419
{ label: 'Openings', value: 'openings' as const },
420420
{ label: 'Endgames', value: 'endgames' as const },
@@ -2719,13 +2719,13 @@ export const OpeningSelectionModal: React.FC<Props> = ({
27192719
initial={{ opacity: 0 }}
27202720
animate={{ opacity: 1 }}
27212721
exit={{ opacity: 0 }}
2722-
className="relative flex h-[90vh] max-h-[900px] w-[98vw] max-w-[1320px] flex-col items-start justify-start overflow-hidden rounded-xl border border-glass-border bg-[#231d1a] backdrop-blur-md md:h-[90vh]"
2722+
className="relative flex h-[90vh] max-h-[900px] w-[98vw] max-w-[1320px] flex-col items-start justify-start overflow-hidden rounded-xl border border-glass-border bg-[#171513] shadow-[0_30px_90px_rgba(0,0,0,0.5)] backdrop-blur-md md:h-[90vh]"
27232723
>
27242724
<div
27252725
className="pointer-events-none absolute inset-0"
27262726
style={{
27272727
background:
2728-
'linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00) 20%), radial-gradient(ellipse 180% 160% at 0% 100%, rgba(239, 68, 68, 0.08) 0%, transparent 72%)',
2728+
'linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01) 22%, rgba(255,255,255,0) 38%), radial-gradient(ellipse 140% 120% at 50% -10%, rgba(255,255,255,0.06) 0%, transparent 48%), radial-gradient(ellipse 180% 160% at 0% 100%, rgba(127, 29, 29, 0.09) 0%, transparent 70%)',
27292729
}}
27302730
/>
27312731
<button
@@ -2742,7 +2742,7 @@ export const OpeningSelectionModal: React.FC<Props> = ({
27422742
>
27432743
<div>
27442744
<h1 className="text-[19px] font-semibold text-primary">
2745-
Maia Drill Studio
2745+
Practice with Maia
27462746
</h1>
27472747
<p className="mt-0.5 text-[13px] text-secondary">
27482748
Select drills, configure settings, practice against Maia 3.

0 commit comments

Comments
 (0)