Skip to content

Commit

Permalink
feat: events and event template page
Browse files Browse the repository at this point in the history
  • Loading branch information
jinhojang6 committed Feb 5, 2024
1 parent a406040 commit 39c86a0
Show file tree
Hide file tree
Showing 39 changed files with 1,025 additions and 7 deletions.
13 changes: 11 additions & 2 deletions packages/docusaurus-playground/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ const config = {
},
},
docs: {
routeBasePath: '/about',
path: 'docs',
id: 'root-pages',
routeBasePath: '/',
path: 'root-pages',
},
og: {},

Expand Down Expand Up @@ -76,6 +77,14 @@ const config = {
hostnames: ['localhost', 'waku.org'],
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'docs',
routeBasePath: '/about',
path: 'docs',
},
],
],

themeConfig:
Expand Down
120 changes: 120 additions & 0 deletions packages/docusaurus-playground/root-pages/events.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
---
title: Events
description: List of all Waku events
hide_table_of_contents: true
hude_title: true
---

import {
EventCardList,
EventCTASection,
Grid,
Box,
} from '@site/src/components/mdx'

# Events

List of all Waku events

<head>
<body className="events" />
</head>

<EventCardList
data={[
{
thumbnail: '/img/event-banner.png',
title: 'Meet Waku: Uncompromising Web3 Communication at Scale',
date: 'Monday 15-19 January 2024 / 6 PM PST',
location: '508 University Avenue Palo Alto, CA 94301 United States',
href: '/events/test',
},
{
thumbnail: '/img/event-banner.png',
title: 'Meet Waku: Uncompromising Web3 Communication at Scale',
date: 'Monday 15-19 January 2024 / 6 PM PST',
location: '508 University Avenue Palo Alto, CA 94301 United States',
href: '/events/test',
},
{
thumbnail: '/img/event-banner.png',
title: 'Meet Waku: Uncompromising Web3 Communication at Scale',
date: 'Monday 15-19 January 2024 / 6 PM PST',
location: '508 University Avenue Palo Alto, CA 94301 United States',
href: '/events/test',
},
{
thumbnail: '/img/event-banner.png',
title: 'Meet Waku: Uncompromising Web3 Communication at Scale',
date: 'Monday 15-19 January 2024 / 6 PM PST',
location: '508 University Avenue Palo Alto, CA 94301 United States',
href: '/events/test',
},
{
thumbnail: '/img/event-banner.png',
title: 'Meet Waku: Uncompromising Web3 Communication at Scale',
date: 'Monday 15-19 January 2024 / 6 PM PST',
location: '508 University Avenue Palo Alto, CA 94301 United States',
href: '/events/test',
},
{
thumbnail: '/img/event-banner.png',
title: 'Meet Waku: Uncompromising Web3 Communication at Scale',
date: 'Monday 15-19 January 2024 / 6 PM PST',
location: '508 University Avenue Palo Alto, CA 94301 United States',
href: '/events/test',
},
{
thumbnail: '/img/event-banner.png',
title: 'Meet Waku: Uncompromising Web3 Communication at Scale',
date: 'Monday 15-19 January 2024 / 6 PM PST',
location: '508 University Avenue Palo Alto, CA 94301 United States',
href: '/events/test',
},
{
thumbnail: '/img/event-banner.png',
title: 'Meet Waku: Uncompromising Web3 Communication at Scale',
date: 'Monday 15-19 January 2024 / 6 PM PST',
location: '508 University Avenue Palo Alto, CA 94301 United States',
href: '/events/test',
},
]}
/>

<Box top={{ xs: 152 }}>
<Grid xs={{ cols: 1, gap: '1rem' }} md={{ cols: 2 }}>
<Grid.Item xs={1}>
<EventCTASection
title="Logos Network State"
description={
'Want to get involved with Waku?\nJoin the Discord community.'
}
link="https://logos.co"
label="Get Involved"
/>
</Grid.Item>
<Grid.Item xs={1}>
<EventCTASection
title="Newsletter"
description={'Subscribe\nto our newsletter'}
label="Subscribe"
formInput={[
{
label: 'Name',
placeholder: 'Name',
type: 'text',
name: 'name',
required: true,
},
{
label: 'Email',
placeholder: 'Enter your email',
type: 'email',
name: 'email',
required: true,
},
]}
/>
</Grid.Item>
</Grid>
</Box>
147 changes: 147 additions & 0 deletions packages/docusaurus-playground/root-pages/events/test.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
---
title: Meet Waku
description: Uncompromising Web3 Communication at Scale
hide_table_of_contents: true
hide_title: true
---

import {
Box,
EventBanner,
EventInfo,
EventAbout,
EventProfileList,
EventCTA,
EventCTASection,
Grid,
} from '@site/src/components/mdx'

<head>
<body className="events" />
</head>

<Box top={{ xs: 8 }}>
<EventBanner src="/img/event-banner.png" />

# Meet Waku: Uncompromising Web3 Communication at Scale

We are a family of robust, censorship-resistant communication protocols designed to enable privacy-focused messaging for web3 apps.

<Box top={{ xs: 32 }}>
<Grid xs={{ cols: 1, gap: '1rem' }} md={{ cols: 2 }}>
<Grid.Item xs={1}>
<EventInfo
label="Date"
content="Monday 15-19 January 2024 / 6 PM PST"
/>
</Grid.Item>
<Grid.Item xs={1}>
<EventInfo
label="Location"
content="508 University Avenue Palo Alto, CA 94301 United States"
/>
</Grid.Item>
</Grid>
</Box>
</Box>

<Box top={{ xs: 120 }}>
<EventAbout>
Waku is a suite of generalised messaging protocols aiming to be the communication standard for the decentralised web. It enables private and secure human-to-human, machine-to-machine, and human-to-machine communication without reliance on centralised intermediaries. Messaging through Waku is possible from one-to-one to many-to-many.

<br />

Waku serves as the communications layer of the Logos tech stack. Alongside the trustless agreement layer, Nomos, and the storage layer, Codex, it is one of the Logos Collective's foundational projects.

<br />

Motive:
Today's internet is increasingly controlled by a small number of tech giants. Google, Amazon, Meta, and a few others dictate what we see and with whom we can communicate. Their influence is almost limitless, and their actions shape global public opinion and even geopolitics.

<br />

To anyone that understands the internet's present architecture, this outcome should be expected. The centralised entities through which we communicate have privileged access to reams of data that we, as internet users, produce daily, presenting an opportunity for the kind of surveillance that was once confined to the pages of science-fiction literature. Thinking that the most powerful commercial and political institutions would not leverage this would be naive.

<br />

Yet, it doesn't have to be this way. Advances in cryptography, peer-to-peer networking, and decentralised technologies provide an alternate path forward.

</EventAbout>
</Box>

<Box top={{ xs: 120 }}>
<EventProfileList
title="Our delegation"
description="Reach out for the appointment."
data={[
{
image: '/img/profile-image.png',
name: 'Kumaraguru T',
role: 'Developer relations engineer',
email: 'a@acid.info',
linkedin: 'https://www.linkedin.com/',
},
{
image: '/img/profile-image.png',
name: 'Aaron Bendersky',
role: 'Program Manager',
email: 'b@acid.info',
linkedin: 'https://www.linkedin.com/',
},
{
image: '/img/profile-image.png',
name: 'Pedro Lains',
role: 'Business Development Lead',
email: 'c@acid.info',
linkedin: 'https://www.linkedin.com/',
},
]}
/>
</Box>

<Box top={{ xs: 120 }}>
<EventCTA
title="Interested? Join the event"
label="CTA"
link="https://logos.co"
linkProps={{ target: '_self' }}
/>
</Box>

<Box top={{ xs: 120 }}>
<Grid xs={{ cols: 1, gap: '1rem' }} md={{ cols: 2 }}>
<Grid.Item xs={1}>
<EventCTASection
title="Logos Network State"
description={
'Want to get involved with Waku?\nJoin the Discord community.'
}
link="https://logos.co"
label="Get Involved"
/>
</Grid.Item>
<Grid.Item xs={1}>
<EventCTASection
title="Newsletter"
description={'Subscribe\nto our newsletter'}
label="Subscribe"
formInput={[
{
label: 'Name',
placeholder: 'Name',
type: 'text',
name: 'name',
required: true,
},
{
label: 'Email',
placeholder: 'Enter your email',
type: 'email',
name: 'email',
required: true,
},
]}
/>
</Grid.Item>
</Grid>
</Box>
4 changes: 4 additions & 0 deletions packages/docusaurus-playground/src/css/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ body,
html {
overflow-x: hidden;
}

.theme-doc-breadcrumbs {
display: none;
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import TelegramWhiteSvg from '../../static/icons/telegram-white.svg'
import TelegramSvg from '../../static/icons/telegram.svg'
import TwitterSvg from '../../static/icons/twitter.svg'
import XWhiteSvg from '../../static/icons/x-white.svg'
import EmailSvg from '../../static/icons/email.svg'

type TIconProps = {
size?: 's' | 'm' | 'l'
Expand Down Expand Up @@ -249,3 +250,9 @@ export const IconRemove = (props: TIconProps): JSX.Element => (
<RemoveSvg />
</Icon>
)

export const IconEmail = (props: TIconProps): JSX.Element => (
<Icon {...props}>
<EmailSvg />
</Icon>
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
@use '../../../css/utils';
@use '../../../css/lsd';

.mdx-event-about__container {
display: grid;
grid-template-columns: repeat(12, 1fr);
gap: 16px;

h2 {
margin-top: 0 !important;
grid-column: 1 / 2;
}

span {
grid-column: 5 / 13;
}
}

@include utils.responsive('sm', 'down') {
.mdx-event-about__container {
display: flex;
flex-direction: column;
gap: 32px;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import React from 'react'
import './EventAbout.scss'
import { Typography } from '@acid-info/lsd-react'

export type EventAboutProps = React.HTMLProps<HTMLAnchorElement> & {
content: string
}

export const EventAbout: React.FC<EventAboutProps> = ({ children }) => {
return (
<div className="mdx-event-about__container">
<Typography
variant="h2"
component="h2"
className="mdx-event-about__title"
>
About
</Typography>
<Typography variant="body1">{children}</Typography>
</div>
)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './EventAbout'
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@use '../../../css/utils';
@use '../../../css/lsd';

.mdx-event-banner__thumbnail {
aspect-ratio: 5 / 1;
border: 1px solid rgba(var(--lsd-border-primary), 0.2);
margin-bottom: 32px;
}

0 comments on commit 39c86a0

Please sign in to comment.