Skip to content

Commit bdfce7b

Browse files
committed
banner
1 parent 1048fbd commit bdfce7b

File tree

4 files changed

+64
-1
lines changed

4 files changed

+64
-1
lines changed

public/content/community/events/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ hideEditButton: true
1313

1414
This is a non-exhaustive list maintained by our community. Know of an upcoming Ethereum event to add to this list? [Please add it](https://github.com/ethereum/ethereum-org-website/blob/dev/src/data/community-events.json)!
1515

16+
<EventsOrganizerBanner className="mt-16" />
17+
1618
## Ethereum meetups {#meetups}
1719

1820
Don't see an event that works for you? Try joining a meetup. Meetups are smaller events held by groups of Ethereum enthusiasts - a chance for people interested in Ethereum to get together, talk about Ethereum, and learn about recent developments.

public/content/community/events/organizing/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ If you realize that many of these elements are missing, don’t worry — buildi
3232
* **Collaborate with existing tech communities.** If there are developer groups, startup ecosystems, or blockchain meetups already established, partner with them to introduce Ethereum topics and expand your reach.
3333
* **Share educational content** about Ethereum’s potential.
3434
* **Reach out to global communities.** Connect with established Ethereum groups and projects worldwide for support, mentorship, and potential collaboration. Ethereum communities across the globe have at least one thing in common: They are all eager to help.
35-
* **Try and secure funding** — whether from local web3 companies or through some grants programme such as [ESP](https://esp.ethereum.foundation/).
35+
* **Try and secure funding** — whether from local web3 companies or through some grants program such as [ESP](https://esp.ethereum.foundation/).
3636

3737
### **If yes, how to maintain and grow it**
3838

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
import { cn } from "@/lib/utils/cn"
2+
3+
import { Image } from "../Image"
4+
import { ButtonLink } from "../ui/buttons/Button"
5+
import { Flex, Stack } from "../ui/flex"
6+
7+
import PeopleLearning from "@/public/images/people-learning.png"
8+
9+
// TODO: refactor to use CalloutBanner component
10+
function EventsOrganizerBanner({
11+
className,
12+
...props
13+
}: React.HTMLAttributes<HTMLDivElement>) {
14+
return (
15+
<aside
16+
className={cn(
17+
"flex flex-col rounded md:flex-row",
18+
"bg-gradient-to-r from-accent-a/10 to-accent-c/10 dark:from-accent-a/20 dark:to-accent-c-hover/20",
19+
className
20+
)}
21+
{...props}
22+
>
23+
<Flex
24+
className={cn(
25+
"relative flex-[1_1_50%]",
26+
"justify-center md:justify-end",
27+
"items-end",
28+
"md:min-h-auto min-h-[200px]",
29+
"px-8 md:px-0"
30+
)}
31+
>
32+
<Image
33+
className="absolute max-h-[120%] w-full object-contain"
34+
src={PeopleLearning}
35+
alt="People learning about Ethereum"
36+
/>
37+
<div className="w-full border-b border-[#D3C5F1] md:hidden" />
38+
</Flex>
39+
<Stack
40+
className={cn("flex-[1_1_50%]", "gap-8 py-8 ps-8", "pe-8 lg:pe-0")}
41+
>
42+
<Stack className="px-2">
43+
<h2>Planning an Ethereum event?</h2>
44+
<p className="text-lg text-body">
45+
Check out the Ethereum event guide built by the community, for the
46+
community.
47+
</p>
48+
</Stack>
49+
<div>
50+
<ButtonLink href="/community/events/organizing">
51+
Read the guide
52+
</ButtonLink>
53+
</div>
54+
</Stack>
55+
</aside>
56+
)
57+
}
58+
59+
export default EventsOrganizerBanner

src/layouts/Static.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import type { HTMLAttributes } from "react"
44
import type { ChildOnlyProp, Lang } from "@/lib/types"
55
import type { MdPageContent, StaticFrontmatter } from "@/lib/interfaces"
66

7+
import EventsOrganizerBanner from "@/components/Banners/EventsOrganizerBanner"
78
import Breadcrumbs from "@/components/Breadcrumbs"
89
import Callout from "@/components/Callout"
910
import Contributors from "@/components/Contributors"
@@ -60,6 +61,7 @@ export const staticComponents = {
6061
Callout,
6162
Contributors,
6263
EnergyConsumptionChart,
64+
EventsOrganizerBanner,
6365
GlossaryDefinition,
6466
GlossaryTooltip,
6567
Link,

0 commit comments

Comments
 (0)