Skip to content

Commit d474f26

Browse files
style: implement single page gradient across codebase
1 parent ba6951f commit d474f26

17 files changed

Lines changed: 8 additions & 106 deletions

File tree

src/components/Home/HomeHero.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -157,13 +157,6 @@ export const HomeHero: React.FC<Props> = ({ scrollHandler }: Props) => {
157157

158158
return (
159159
<Fragment>
160-
<div
161-
className="pointer-events-none absolute inset-0"
162-
style={{
163-
background:
164-
'radial-gradient(ellipse 75% 60% at center top, rgba(239, 68, 68, 0.08) 0%, transparent 60%)',
165-
}}
166-
/>
167160
<BetaBlurb />
168161
<div className="relative flex flex-col items-center justify-center gap-4 overflow-hidden pb-6 pt-4 md:gap-14 md:pt-16">
169162
<div className="z-10 flex w-full max-w-[1200px] flex-col items-center justify-center gap-10 p-4 text-left md:flex-row md:gap-20">

src/pages/_app.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,17 @@ function MaiaPlatform({ Component, pageProps }: AppProps) {
106106
<meta name="twitter:image" content="/embed.png" />
107107
<meta name="twitter:image:alt" content="Maia Chess" />
108108
</Head>
109+
109110
<div className={`${openSansClassName} app-container`}>
110111
<Header />
111112
<div className="content-container">
113+
<div
114+
className="pointer-events-none fixed inset-0"
115+
style={{
116+
background:
117+
'radial-gradient(ellipse 120% 80% at center top, rgba(239, 68, 68, 0.08) 0%, transparent 75%)',
118+
}}
119+
/>
112120
<Component {...pageProps} />
113121
</div>
114122
<Footer />

src/pages/analysis/[...id].tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,14 +1262,6 @@ const Analysis: React.FC<Props> = ({
12621262
}
12631263
/>
12641264
</Head>
1265-
{/* Radial gradient backdrop to match new design language */}
1266-
<div
1267-
className="pointer-events-none absolute inset-0"
1268-
style={{
1269-
background:
1270-
'radial-gradient(ellipse 75% 60% at center top, rgba(239, 68, 68, 0.08) 0%, transparent 60%)',
1271-
}}
1272-
/>
12731265
<AnimatePresence>
12741266
{controller.maia.status === 'no-cache' ||
12751267
controller.maia.status === 'downloading' ? (

src/pages/analysis/stream/[gameId].tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -170,15 +170,6 @@ const StreamAnalysisPage: NextPage = () => {
170170
/>
171171
</Head>
172172

173-
{/* Radial gradient backdrop to match new design language */}
174-
<div
175-
className="pointer-events-none absolute inset-0"
176-
style={{
177-
background:
178-
'radial-gradient(ellipse 75% 60% at center top, rgba(239, 68, 68, 0.08) 0%, transparent 60%)',
179-
}}
180-
/>
181-
182173
<AnimatePresence>
183174
{analysisController &&
184175
(analysisController.maia.status === 'no-cache' ||

src/pages/blog/[id].tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,6 @@ const BlogPost = ({ post }: BlogPostProps) => {
5959
<meta name="robots" content="index, follow" />
6060
<link rel="canonical" href={`https://maiachess.com/blog/${post.id}`} />
6161
</Head>
62-
<div
63-
className="pointer-events-none absolute inset-0"
64-
style={{
65-
background:
66-
'radial-gradient(ellipse 75% 60% at center top, rgba(239, 68, 68, 0.08) 0%, transparent 60%)',
67-
}}
68-
/>
6962
<div className="relative flex h-full flex-col items-center justify-center gap-5 py-[10%] md:py-[2%]">
7063
<div className="flex max-w-[90%] flex-col items-center justify-center overflow-x-hidden md:max-w-[80ch]">
7164
<div className="mb-8 flex w-full flex-col gap-2">

src/pages/blog/index.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,6 @@ export default function Blog({ posts }: { posts: Post[] }) {
4444
<meta name="robots" content="index, follow" />
4545
<link rel="canonical" href="https://maiachess.com/blog" />
4646
</Head>
47-
<div
48-
className="pointer-events-none absolute inset-0"
49-
style={{
50-
background:
51-
'radial-gradient(ellipse 75% 60% at center top, rgba(239, 68, 68, 0.08) 0%, transparent 60%)',
52-
}}
53-
/>
5447
<div className="relative mx-auto flex h-full w-[90%] flex-col items-start justify-center gap-5 py-[10%] md:py-[2%]">
5548
<h1 className="text-4xl font-bold">Blog</h1>
5649
<div className="flex w-full flex-col gap-6 overflow-x-hidden">

src/pages/broadcast/[broadcastId]/[roundId].tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -246,14 +246,6 @@ const BroadcastAnalysisPage: NextPage = () => {
246246
<title>{pageTitle}</title>
247247
<meta name="description" content={pageDescription} />
248248
</Head>
249-
{/* Radial gradient backdrop to match new design language */}
250-
<div
251-
className="pointer-events-none absolute inset-0"
252-
style={{
253-
background:
254-
'radial-gradient(ellipse 75% 60% at center top, rgba(239, 68, 68, 0.08) 0%, transparent 60%)',
255-
}}
256-
/>
257249

258250
<AnimatePresence>
259251
{analysisController &&

src/pages/broadcast/index.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,6 @@ const BroadcastsPage: NextPage = () => {
125125
/>
126126
</Head>
127127

128-
<div
129-
className="pointer-events-none absolute inset-0"
130-
style={{
131-
background:
132-
'radial-gradient(ellipse 75% 60% at center top, rgba(239, 68, 68, 0.08) 0%, transparent 60%)',
133-
}}
134-
/>
135-
136128
<motion.div
137129
className="container relative mx-auto px-6 py-8"
138130
initial="initial"

src/pages/leaderboard.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,6 @@ const Leaderboard: React.FC = () => {
116116
<Loading isLoading={loading}>
117117
<AnimatePresence mode="wait">
118118
<>
119-
<div
120-
className="pointer-events-none absolute inset-0"
121-
style={{
122-
background:
123-
'radial-gradient(ellipse 75% 60% at center top, rgba(239, 68, 68, 0.08) 0%, transparent 60%)',
124-
}}
125-
/>
126119
<motion.div
127120
key="leaderboard-content"
128121
variants={containerVariants}

src/pages/openings/index.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -811,13 +811,6 @@ const OpeningsPage: NextPage = () => {
811811
content="Master chess openings with interactive drills against Maia AI. Practice popular openings, learn key variations, and get performance analysis to improve your opening repertoire."
812812
/>
813813
</Head>
814-
<div
815-
className="pointer-events-none absolute inset-0"
816-
style={{
817-
background:
818-
'radial-gradient(ellipse 75% 60% at center top, rgba(239, 68, 68, 0.08) 0%, transparent 60%)',
819-
}}
820-
/>
821814
<TreeControllerContext.Provider
822815
value={{
823816
gameTree: controller.gameTree,

0 commit comments

Comments
 (0)