Skip to content

Commit ec46f4f

Browse files
committed
ethereum day + programming for calendar
1 parent 67421b6 commit ec46f4f

19 files changed

Lines changed: 736 additions & 202 deletions

File tree

devconnect/cms/pages/es/index.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,18 @@ how_to_contribute: >
6262
La Feria Mundial de Ethereum muestra lo que Ethereum puede hacer a través de aplicaciones reales,
6363
infraestructura, comunidad y el impulso local. Solo funciona cuando los constructores lanzan,
6464
las comunidades se presentan y conectan, y los colaboradores ayudan a unirlo todo.
65+
ethereum_day_cta: >
66+
#### El **Ethereum Day** reúne el mundo de Ethereum en un solo escenario. Desde las próximas grandes actualizaciones hasta las aplicaciones, ya están disponibles.
67+
68+
69+
#### **¡Únase a nosotros el 17 de noviembre** de 2025 en La Rural, Buenos Aires!
70+
71+
72+
<Buttons
73+
Button={[
74+
{ color: "blue-1", text: "Más información", url: "/calendar?event=ethday" }
75+
]}
76+
/>
6577
contribute_and_support_list:
6678
- title: Muestra tu aplicación en la Feria Mundial
6779
description: >-

devconnect/cms/pages/index.mdx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,19 @@ how_to_contribute: >
6666
infrastructure, community, and local momentum. It only works when builders
6767
ship, communities show up and connect, and supporters help bring it all
6868
together.
69+
ethereum_day_cta: >
70+
#### **Ethereum Day** brings the world of Ethereum to one stage. From the next
71+
big upgrades to the apps live today.
72+
73+
74+
#### Join us on **17 November 2025** at La Rural, Buenos Aires!
75+
76+
77+
<Buttons
78+
Button={[
79+
{ color: "blue-1", text: "LEARN MORE", url: "/calendar?event=ethday" }
80+
]}
81+
/>
6982
contribute_and_support_list:
7083
- title: Showcase your app at the World's Fair
7184
description: >-

devconnect/cms/pages/pt/index.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,16 @@ how_to_contribute: >
6464
A Feira Mundial Ethereum mostra o que o Ethereum pode fazer através de aplicativos reais,
6565
infraestrutura, comunidade e impulso local. Só funciona quando os construtores
6666
entregam, as comunidades aparecem e se conectam, e os apoiadores ajudam a unir tudo.
67+
ethereum_day_cta: >
68+
#### O **Ethereum Day** traz o mundo do Ethereum para um novo patamar. A partir do próximo grandes atualizações para os aplicativos já estão disponíveis.
69+
70+
#### Junte-se a nós em **17 de novembro de 2025** em La Rural, Buenos Aires!
71+
72+
<Buttons
73+
Button={[
74+
{ color: "blue-1", text: "Saber mais", url: "/calendar?event=ethday" }
75+
]}
76+
/>
6777
contribute_and_support_list:
6878
- title: Exiba seu aplicativo na Feira Mundial
6979
description: >-
1.02 MB
Loading
34.2 KB
Loading

devconnect/src/common/components/layout/Menu.tsx

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ import { useScroll } from 'framer-motion'
2626
import { useDevaBotStore } from 'store/devai'
2727
import MailIcon from 'assets/icons/mail.svg'
2828
import { TICKETS_URL } from 'common/constants'
29+
import EthDayLogo from 'assets/images/eth-day-logo.png'
30+
import Image from 'next/image'
2931

3032
const MultiLink = (props: any) => {
3133
const [open, setOpen] = React.useState(false)
@@ -96,6 +98,23 @@ const menuItems = (pathname: string) => [
9698
text: 'Calendar',
9799
url: '/calendar',
98100
},
101+
{
102+
text: () => {
103+
return (
104+
<div className={cn(css['ethday-rainbo'], 'flex items-center gap-1.5')}>
105+
<div>Ethereum Day</div>
106+
<Image src={EthDayLogo} alt="Ethereum Day" width={22} />
107+
</div>
108+
)
109+
},
110+
// customClass: css['ethday-rainbow'],
111+
url: '/calendar?event=ethday',
112+
onClick: () => {
113+
// Hacky but works
114+
// @ts-ignore
115+
if (typeof window !== 'undefined' && window.selectEthDay) window.selectEthDay()
116+
},
117+
},
99118
{
100119
text: 'Destino Devconnect',
101120
customClass: css['destino-rainbow'],
@@ -238,9 +257,9 @@ export const FooterMenu = (props: any) => {
238257
className={cn(menuItem.customClass, 'flex')}
239258
key={menuItem.text}
240259
to={menuItem.children}
241-
onClickMenuItem={props.onClickMenuItem}
260+
onClick={menuItem.onClick}
242261
>
243-
{menuItem.text}
262+
{menuItem.text === 'function' ? menuItem.text() : menuItem.text}
244263
</MultiLink>
245264
)
246265
}
@@ -250,10 +269,13 @@ export const FooterMenu = (props: any) => {
250269
className={cn(menuItem.customClass, 'flex')}
251270
key={menuItem.text}
252271
href={menuItem.url}
253-
onClick={props.onClickMenuItem}
272+
onClick={() => {
273+
if (props.onClickMenuItem) props.onClickMenuItem()
274+
if (menuItem.onClick) menuItem.onClick()
275+
}}
254276
indicateExternal
255277
>
256-
{menuItem.text}
278+
{typeof menuItem.text === 'function' ? menuItem.text() : menuItem.text}
257279
</Link>
258280
)
259281
})}
@@ -332,6 +354,7 @@ export const Menu = (props: any) => {
332354
<div
333355
className={cn(
334356
css['menu'],
357+
css['menu-desktop'],
335358
'flex gap-4 self-start items-center backdrop-blur-sm bg-black/60 rounded-lg p-1.5 lg:p-0 lg:px-2 lg:pr-3 transition-all duration-500 pointer-events-auto',
336359
hasScrolled && 'bg-black/90',
337360
{
@@ -352,8 +375,9 @@ export const Menu = (props: any) => {
352375
className={cn(menuItem.customClass, 'hidden lg:flex')}
353376
key={menuItem.text}
354377
to={menuItem.children}
378+
onClick={menuItem.onClick}
355379
>
356-
{menuItem.text}
380+
{typeof menuItem.text === 'function' ? menuItem.text() : menuItem.text}
357381
</MultiLink>
358382
)
359383
}
@@ -363,9 +387,10 @@ export const Menu = (props: any) => {
363387
className={cn(menuItem.customClass, 'hidden lg:flex')}
364388
key={menuItem.text}
365389
href={menuItem.url}
390+
onClick={menuItem.onClick}
366391
indicateExternal
367392
>
368-
{menuItem.text}
393+
{typeof menuItem.text === 'function' ? menuItem.text() : menuItem.text}
369394
</Link>
370395
)
371396
})}

devconnect/src/common/components/layout/menu.module.scss

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,3 +312,20 @@ $width-right-column: 190px;
312312
-webkit-background-clip: text;
313313
-webkit-text-fill-color: transparent;
314314
}
315+
316+
.ethday-rainbow {
317+
// background: #fcb497;
318+
// background: -webkit-linear-gradient(left,#8187c0, #8eccf0, #fcb497, #f585b3);
319+
// background: -o-linear-gradient(right, #8187c0, #8eccf0, #fcb497, #f585b3);
320+
// background: -moz-linear-gradient(right, #8187c0, #8eccf0, #fcb497, #f585b3);
321+
// background: linear-gradient(to right, #8187c0 50%, #8eccf0, #ffa17c, #f585b3);
322+
// background: #8187c0;
323+
color: #8187c0;
324+
text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
325+
}
326+
327+
.menu-desktop {
328+
@media (max-width: 1093px) {
329+
font-size: 14px;
330+
}
331+
}

devconnect/src/pages/index.tsx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ import VoxelSquares from 'assets/images/ba/voxel-squares.png'
5353
import VoxelBlueEthereum from 'assets/images/ba/voxel-blue-eth.png'
5454
import EthGlyph from 'assets/images/ba/eth-glyph.png'
5555
import { TICKETS_URL } from 'common/constants'
56+
import EthDayCTA from 'assets/images/ba/eth-day-updated.png'
57+
import { CMSButtons } from 'common/components/voxel-button/button'
5658

5759
// const Cube = dynamic(() => import('common/components/cube'), {
5860
// ssr: false,
@@ -836,6 +838,25 @@ const Home: NextPage = (props: any) => {
836838
</div>
837839
</div>
838840

841+
<div className="section relative pt-16 bg-white">
842+
<div className="flex flex-col items-center md:flex-row bg-[#FDF9EC] rounded-md border border-solid border-[#1B6FAE]">
843+
<div className="relative w-full md:w-1/2 lg:w-[min(600px,50%)] md:shrink-0 h-full">
844+
<Image
845+
src={EthDayCTA}
846+
alt="Ethereum Day"
847+
className="w-full h-full aspect-[16/7] md:aspect-auto object-cover object-left rounded-md overflow-hidden"
848+
style={{
849+
maskImage: 'linear-gradient(to right, black 0%, black 80%, transparent 100%)',
850+
WebkitMaskImage: 'linear-gradient(to right, black 0%, black 80%, transparent 100%)',
851+
}}
852+
/>
853+
</div>
854+
<div className="p-8 relative shrink-0 md:shrink flex flex-wrap flex-col">
855+
<RichText content={data.pages.ethereum_day_cta} className="cms-markdown" Buttons={CMSButtons} />
856+
</div>
857+
</div>
858+
</div>
859+
839860
<div className="section relative pb-6 bg-white">
840861
<div className="flex flex-col gap-8 mt-16 mb-12">
841862
<div>

devconnect/tina/templates/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ const index: Template = {
4040
],
4141
},
4242
createRichText('how_to_contribute'),
43+
createRichText('ethereum_day_cta'),
4344
{
4445
name: 'contribute_and_support_list',
4546
label: 'contribute_and_support_list',

devconnect/tina/tina-lock.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)