Skip to content

Commit f1c8734

Browse files
fmt
1 parent ccad938 commit f1c8734

File tree

3 files changed

+30
-22
lines changed

3 files changed

+30
-22
lines changed

apps/web/src/components/video-player.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export function VideoPlayer({
3838

3939
return (
4040
<div
41-
className={cn("relative w-full h-full overflow-hidden group", className)}
41+
className={cn(["relative w-full h-full overflow-hidden group", className])}
4242
onMouseEnter={() => setIsHovered(true)}
4343
onMouseLeave={() => setIsHovered(false)}
4444
>
@@ -60,10 +60,12 @@ export function VideoPlayer({
6060
{showButtons && showControls && (
6161
<div
6262
className={cn(
63-
"absolute bottom-0 left-0 right-0",
64-
"transition-all duration-300 ease-out",
65-
"flex gap-0",
66-
isHovered ? "translate-y-0 opacity-100" : "translate-y-full opacity-0",
63+
[
64+
"absolute bottom-0 left-0 right-0",
65+
"transition-all duration-300 ease-out",
66+
"flex gap-0",
67+
isHovered ? "translate-y-0 opacity-100" : "translate-y-full opacity-0",
68+
],
6769
)}
6870
>
6971
<button

apps/web/src/components/video-thumbnail.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function VideoThumbnail({
1414
onPlay,
1515
}: VideoThumbnailProps) {
1616
return (
17-
<div className={cn("relative w-full h-full overflow-hidden group cursor-pointer", className)} onClick={onPlay}>
17+
<div className={cn(["relative w-full h-full overflow-hidden group cursor-pointer", className])} onClick={onPlay}>
1818
{/* Static thumbnail from Mux */}
1919
<MuxPlayer
2020
playbackId={playbackId}
@@ -34,12 +34,12 @@ export function VideoThumbnail({
3434
e.stopPropagation();
3535
onPlay?.();
3636
}}
37-
className={cn(
37+
className={cn([
3838
"size-16 rounded-full bg-white/90 backdrop-blur-sm",
3939
"flex items-center justify-center",
4040
"hover:bg-white hover:scale-110 transition-all duration-200",
4141
"shadow-xl",
42-
)}
42+
])}
4343
aria-label="Play video"
4444
>
4545
<Icon icon="mdi:play" className="text-4xl text-stone-700 ml-1" />

apps/web/src/routes/_view/index.tsx

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -122,18 +122,20 @@ function Component() {
122122
>
123123
<div
124124
className={cn(
125-
"flex items-center justify-center gap-2 text-center",
126-
"bg-stone-50/70 border-b border-stone-100",
127-
"py-3 px-4",
128-
"font-serif text-sm text-stone-700",
129-
"hover:bg-stone-50 transition-all",
125+
[
126+
"flex items-center justify-center gap-2 text-center",
127+
"bg-stone-50/70 border-b border-stone-100",
128+
"py-3 px-4",
129+
"font-serif text-sm text-stone-700",
130+
"hover:bg-stone-50 transition-all",
131+
],
130132
)}
131133
>
132134
<span className="group-hover:font-medium">Backed by</span>
133135
<img
134136
src="/icons/yc_stone.svg"
135137
alt="Y Combinator"
136-
className={cn("h-4 w-4 inline-block group-hover:scale-105")}
138+
className="h-4 w-4 inline-block group-hover:scale-105"
137139
/>
138140
<span className="group-hover:font-medium">Y Combinator</span>
139141
</div>
@@ -459,10 +461,12 @@ Mad respect to the team. This is how you build in 2025. 🚀"
459461
key={index}
460462
onClick={() => scrollToFeature(index)}
461463
className={cn(
462-
"h-1 rounded-full transition-all cursor-pointer",
463-
selectedFeature === index
464-
? "w-8 bg-stone-600"
465-
: "w-8 bg-neutral-300 hover:bg-neutral-400",
464+
[
465+
"h-1 rounded-full transition-all cursor-pointer",
466+
selectedFeature === index
467+
? "w-8 bg-stone-600"
468+
: "w-8 bg-neutral-300 hover:bg-neutral-400",
469+
],
466470
)}
467471
aria-label={`Go to feature ${index + 1}`}
468472
/>
@@ -629,10 +633,12 @@ Mad respect to the team. This is how you build in 2025. 🚀"
629633
key={index}
630634
onClick={() => scrollToDetail(index)}
631635
className={cn(
632-
"h-1 rounded-full transition-all cursor-pointer",
633-
selectedDetail === index
634-
? "w-8 bg-stone-600"
635-
: "w-8 bg-neutral-300 hover:bg-neutral-400",
636+
[
637+
"h-1 rounded-full transition-all cursor-pointer",
638+
selectedDetail === index
639+
? "w-8 bg-stone-600"
640+
: "w-8 bg-neutral-300 hover:bg-neutral-400",
641+
],
636642
)}
637643
aria-label={`Go to detail ${index + 1}`}
638644
/>

0 commit comments

Comments
 (0)