Skip to content

Commit 40ebedd

Browse files
committed
scrolling section, small fixes
1 parent c514586 commit 40ebedd

5 files changed

Lines changed: 80 additions & 15 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
.loopingHeader {
2+
position: relative;
3+
width: 100%;
4+
overflow: hidden;
5+
background-color: rgba(58, 54, 94, 1);
6+
color: white;
7+
margin-bottom: 1rem;
8+
}
9+
10+
.scrollContainer {
11+
display: flex;
12+
animation: scroll 20s linear infinite;
13+
}
14+
15+
.itemGroup {
16+
display: flex;
17+
flex-shrink: 0;
18+
align-items: center;
19+
gap: 2rem;
20+
padding: 0.5rem 1rem;
21+
}
22+
23+
.item {
24+
flex-shrink: 0;
25+
}
26+
27+
@keyframes scroll {
28+
0% {
29+
transform: translateX(0);
30+
}
31+
100% {
32+
transform: translateX(-50%);
33+
}
34+
}

devconnect-app/src/app/dashboard-sections.tsx

Lines changed: 38 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,51 @@ import NoEventsImage from 'lib/components/event-schedule-new/images/404.png';
55
import moment from 'moment';
66
import Image from 'next/image';
77
import Button from 'lib/components/voxel-button/button';
8-
import { useWalletManager } from '@/hooks/useWalletManager';
98
import { useNow } from 'lib/hooks/useNow';
109
import { useState } from 'react';
1110
import Link from 'next/link';
11+
import { useGlobalStore } from './store.provider';
12+
import styles from './dashboard-sections.module.scss';
13+
14+
export const LoopingHeader = () => {
15+
return (
16+
<div className={styles.loopingHeader}>
17+
<div className={styles.scrollContainer}>
18+
<div className={styles.itemGroup}>
19+
<div className={styles.item}>Nov 17–22, 2025</div>
20+
<div className={styles.item}>La Rural, Buenos Aires, Argentina</div>
21+
<div className={styles.item}>15,000+ attendees</div>
22+
<div className={styles.item}>80+ applications</div>
23+
</div>
24+
<div className={styles.itemGroup}>
25+
<div className={styles.item}>Nov 17–22, 2025</div>
26+
<div className={styles.item}>La Rural, Buenos Aires, Argentina</div>
27+
<div className={styles.item}>15,000+ attendees</div>
28+
<div className={styles.item}>80+ applications</div>
29+
</div>
30+
</div>
31+
</div>
32+
);
33+
};
1234

1335
export function WelcomeSection() {
14-
const { email } = useWalletManager();
36+
const email = useGlobalStore((state) => state.userData?.email);
1537
const now = useNow();
1638
const dummyEmail = email || 'Anon';
1739
const buenosAiresTime = moment(now).utc().subtract(3, 'hours');
1840
const formattedDate = buenosAiresTime.format('h:mm A');
1941

2042
return (
21-
<div className="flex flex-col items-start justify-start gap-2 mb-4">
22-
<div className="flex justify-between w-full gap-2">
23-
<div className="text-2xl font-semibold bg-clip-text text-transparent bg-[linear-gradient(90.78deg,#F6B40E_2.23%,#FF85A6_25.74%,#74ACDF_86.85%)]">
43+
<div className="flex flex-col items-start justify-start gap-2 mb-4 mx-4">
44+
<div className="flex justify-between w-full gap-2">
45+
<div className="text-2xl font-semibold leading-none bg-clip-text text-transparent bg-[linear-gradient(90.78deg,#F6B40E_2.23%,#FF85A6_25.74%,#74ACDF_86.85%)]">
2446
¡Buen dia!
2547
</div>
26-
<div className="font-semibold text-sm">
48+
<div className="font-semibold text-xs text-neutral-600">
2749
{formattedDate} Buenos Aires (GMT-3)
2850
</div>
2951
</div>
30-
<div className="text-xl font-bold">{dummyEmail}</div>
52+
<div className="text-lg font-medium">{dummyEmail}</div>
3153
<div>Welcome to the Ethereum World&apos;s Fair! </div>
3254
</div>
3355
);
@@ -45,7 +67,7 @@ export function TodaysSchedule() {
4567
const hasEventsToShow = events.length > 0;
4668

4769
return (
48-
<div className="flex flex-col items-start justify-start gap-2 p-4 pt-3 bg-white border border-[rgba(234,234,234,1)]">
70+
<div className="flex flex-col items-start justify-start gap-2 p-4 pt-3 bg-white border mx-4 border-[rgba(234,234,234,1)]">
4971
<div className="flex w-full items-center justify-between gap-2">
5072
<p className="font-semibold">Today&apos;s Schedule</p>
5173
{/* <p className="text-xs">{moment().format('dddd, D MMMM')}</p> */}
@@ -93,11 +115,17 @@ export function TodaysSchedule() {
93115
</div>
94116
)}
95117

96-
<Link href="/schedule">
97-
<Button size="sm" className="w-full md:w-auto self-start mt-2">
118+
<Link href="/schedule" className="w-full md:w-auto self-start mt-2">
119+
<Button size="sm" className="w-full" color="green-1">
98120
View full Schedule
99121
</Button>
100122
</Link>
123+
124+
<Link href="/schedule" className="w-full md:w-auto self-start mt-1">
125+
<Button size="sm" className="w-full">
126+
View Tickets
127+
</Button>
128+
</Link>
101129
</div>
102130
);
103131
}

devconnect-app/src/app/page.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
import { useEffect } from 'react';
33
import { useRouter } from 'next/navigation';
44
import PageLayout from '@/components/PageLayout';
5-
import { WelcomeSection, TodaysSchedule } from './dashboard-sections';
5+
import {
6+
WelcomeSection,
7+
TodaysSchedule,
8+
LoopingHeader,
9+
} from './dashboard-sections';
610
import { homeTabs } from './navigation';
711

812
export default function HomePageContent() {
@@ -21,7 +25,8 @@ export default function HomePageContent() {
2125

2226
return (
2327
<PageLayout title="Ethereum World's Fair" tabs={homeTabs()}>
24-
<div className="bg-[rgba(246,250,254,1)] p-4 grow">
28+
<div className="bg-[rgba(246,250,254,1)] grow">
29+
<LoopingHeader />
2530
<WelcomeSection />
2631
<TodaysSchedule />
2732
</div>

devconnect-app/src/app/store.provider.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ export const GlobalStoreProvider = ({
4444
}: GlobalStoreProviderProps) => {
4545
const storeRef = useRef<AppStore | null>(null);
4646

47-
console.log('running on server client');
48-
4947
if (storeRef.current === null) {
5048
console.log('creating store');
5149
storeRef.current = createGlobalStore(initGlobalStore(events, userData));

lib/components/event-schedule-new/layout-app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const Layout = (props: CalendarLayoutProps) => {
3434
layoutCss["layout-app"]
3535
)}
3636
>
37-
<div className="flex-col md:flex-row flex justify-between gap-4 md:mt-1 md:mb-1 mb-1">
37+
<div className="flex-col md:flex-row flex justify-between gap-4 md:mt-1 md:mb-1 mb-1 mx-0 sm:mx-4">
3838
<div
3939
className={cn(
4040
"text-sm overflow-hidden px-4 py-2 text-[#36364C] self-center w-full",

0 commit comments

Comments
 (0)