Skip to content

Commit 5f1f561

Browse files
feat: improve sign in cta
1 parent 6d20c3b commit 5f1f561

4 files changed

Lines changed: 43 additions & 16 deletions

File tree

Lines changed: 1 addition & 0 deletions
Loading

public/assets/icons/lichess.svg

Lines changed: 4 additions & 0 deletions
Loading

src/components/Common/Header.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,12 @@ export const Header: React.FC = () => {
124124
</AnimatePresence>
125125
</div>
126126
) : (
127-
<button onClick={connectLichess}>Sign in</button>
127+
<button
128+
onClick={connectLichess}
129+
className="px-2 py-1 text-sm tracking-wide text-primary/80 transition-all duration-200 hover:text-primary"
130+
>
131+
Sign in
132+
</button>
128133
)
129134

130135
const desktopLayout = (

src/components/Home/HomeHero.tsx

Lines changed: 32 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -178,28 +178,45 @@ export const HomeHero: React.FC<Props> = ({ scrollHandler }: Props) => {
178178
seeing chess.
179179
</motion.p>
180180
</div>
181-
<motion.div className="flex flex-col gap-4 sm:flex-row">
182-
<motion.button
183-
className="flex items-center justify-center gap-2 rounded-xl border border-white/15 bg-black/30 px-6 py-3 text-white backdrop-blur-sm transition-all duration-200 hover:border-white/25 hover:bg-black/40"
184-
onClick={scrollHandler}
185-
>
186-
<p>Learn More</p>
187-
<span className="material-symbols-outlined text-base text-white">
188-
keyboard_double_arrow_down
189-
</span>
190-
</motion.button>
191-
{!user?.lichessId && (
181+
{!user?.lichessId && (
182+
<motion.div className="flex flex-wrap items-center gap-3 sm:gap-3">
183+
<p className="text-sm tracking-wider text-white/80">
184+
Sign in with:
185+
</p>
192186
<motion.button
193-
className="flex items-center justify-center gap-2 rounded-xl border border-white/10 bg-white/5 px-6 py-3 text-white/90 backdrop-blur-sm transition-all duration-200 hover:border-white/15 hover:bg-white/10 hover:text-white"
187+
className="group flex items-center gap-2.5 rounded-md border border-white/10 bg-white/5 px-3 py-2 backdrop-blur-sm transition-all duration-200 hover:border-white/20 hover:bg-white/10"
194188
onClick={() => {
195189
trackLichessConnectionInitiated('homepage')
196190
connectLichess()
197191
}}
198192
>
199-
Connect with Lichess
193+
<img
194+
src="/assets/icons/lichess.svg"
195+
className="h-4 w-4 transition-opacity duration-200 group-hover:opacity-100"
196+
alt="Lichess"
197+
/>
198+
<span className="text-sm font-medium text-white/90 transition-colors duration-200 group-hover:text-white">
199+
Lichess
200+
</span>
200201
</motion.button>
201-
)}
202-
</motion.div>
202+
<motion.button
203+
className="group flex items-center gap-2.5 rounded-md border border-white/10 bg-white/5 px-3 py-2 backdrop-blur-sm transition-all duration-200 hover:border-white/20 hover:bg-white/10"
204+
onClick={() => {
205+
trackLichessConnectionInitiated('homepage')
206+
connectLichess()
207+
}}
208+
>
209+
<img
210+
src="/assets/icons/chessdotcom.svg"
211+
className="h-4 w-4 transition-opacity duration-200 group-hover:opacity-100"
212+
alt="Chess.com"
213+
/>
214+
<span className="text-sm font-medium text-white/90 transition-colors duration-200 group-hover:text-white">
215+
Chess.com
216+
</span>
217+
</motion.button>
218+
</motion.div>
219+
)}
203220
</div>
204221
<div className="grid w-full flex-1 grid-cols-1 gap-2 md:grid-cols-3 md:gap-4">
205222
<FeatureCard

0 commit comments

Comments
 (0)