Skip to content

Commit b5ed3b4

Browse files
committed
Copy the content of the marquee way too many times
1 parent 543679d commit b5ed3b4

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

src/app/conf/2025/components/marquee-under-hero.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const keywords = [
1010

1111
export function MarqueeUnderHero() {
1212
return (
13-
<section className="py-6 font-mono text-xl/none text-pri-base md:pt-12 md:text-[56px]/none lg:pt-16 xl:pt-24">
13+
<section className="space-y-2 pt-6 font-mono text-xl/none text-pri-base md:pt-12 md:text-[56px]/none lg:pt-16 xl:pt-24">
1414
{keywords.map((row, i) => (
1515
<Marquee
1616
key={i}

src/app/conf/2025/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default function Page() {
2222
<Hero />
2323
<div className="gql-conf-container gql-conf-navbar-strip text-neu-900 before:bg-white/40 before:dark:bg-blk/30">
2424
<MarqueeUnderHero />
25-
<RegisterToday className="md:mb-8 md:mt-24" />
25+
<RegisterToday className="md:mb-8 md:mt-16" />
2626
<WhatToExpectSection className="md:mb-8 md:mt-24" />
2727
<TopMindsSection className="md:mb-8 md:mt-24" hasSpeakersPage={false} />
2828
</div>

src/app/conf/_design-system/marquee.tsx

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,11 @@ export function Marquee({
9797
<motion.div
9898
className="flex w-max"
9999
drag="x"
100-
onDragStart={event => {
101-
;(event.target as HTMLElement).style.cursor = "grabbing"
100+
onDragStart={() => {
101+
document.documentElement.style.cursor = "grabbing"
102102
}}
103-
onDragEnd={event => {
104-
;(event.target as HTMLElement).style.cursor = "initial"
103+
onDragEnd={() => {
104+
document.documentElement.style.cursor = "initial"
105105
}}
106106
style={{
107107
...(direction === "horizontal"
@@ -116,6 +116,16 @@ export function Marquee({
116116
>
117117
{children}
118118
{children}
119+
{children}
120+
{children}
121+
{children}
122+
{children}
123+
{children}
124+
{children}
125+
{children}
126+
{children}
127+
{children}
128+
{children}
119129
</motion.div>
120130
</div>
121131
)

0 commit comments

Comments
 (0)