feat: implement community page

This commit is contained in:
jinhojang6 2023-09-21 03:10:58 +09:00
parent b584f758d4
commit f1ce3e99c4
6 changed files with 95 additions and 17 deletions

View File

@ -76,20 +76,22 @@ const config = {
type: 'search',
},
{
label: 'About',
label: 'About Waku',
to: '/about',
},
{
label: 'Community',
to: '/community',
},
{
label: 'Docs',
href: 'https://docs.waku.org',
},
{
label: 'Github',
href: 'https://github.com/waku-org',
},
{
label: 'Discord',
href: 'https://discord.waku.org/',
href: 'https://github.com/logos-co',
position: 'right',
className: 'header-github-link',
title: 'Waku GitHub repository',
},
],
},

View File

@ -16,7 +16,7 @@
},
"dependencies": {
"@acid-info/docusaurus-fathom": "^1.0.0-alpha.61",
"@acid-info/logos-docusaurus-preset": "^1.0.0-alpha.97",
"@acid-info/logos-docusaurus-preset": "^1.0.0-alpha.100",
"@docusaurus/core": "2.4.1",
"@docusaurus/preset-classic": "2.4.1",
"@docusaurus/theme-mermaid": "^2.4.1",

View File

@ -5,3 +5,18 @@ body,
html {
overflow-x: hidden;
}
// TODO: breadcrumbs: false in docusaurus.config.js does not work
.theme-doc-breadcrumbs {
display: none;
}
.community-container {
max-width: 796px;
margin: 16px auto 0 auto;
}
div:has(.community-container) > .container {
padding-bottom: 0 !important;
margin-bottom: 0 !important;
}

46
src/pages/community.mdx Normal file
View File

@ -0,0 +1,46 @@
---
title: Join the community
---
import { Community } from '../components/mdx'
<div className="community-container">
# Join the community
<br/>
<br/>
Welcome to the Waku Community!
Whether you are interested in building with Waku, contributing to the network, expanding your knowledge, or staying abreast of our progress, we have something for everyone.
<br/>
<Community
items={[
{
type: 'x',
link: 'https://twitter.com/waku_org',
linkLabel: 'Follow us on X',
},
{
type: 'discord',
link: 'https://discord.waku.org',
linkLabel: 'Join the community on Discord',
},
{
type: 'telegram',
link: 'https://t.me/waku_org',
linkLabel: 'Jump in the conversation on Telegram',
},
{
logoSrcDark: '/vac.svg',
link: 'https://forum.vac.dev/',
linkLabel: 'Share your thoughts on the latest research on the Vac research forum',
},
]}
/>
</div>

15
static/vac.svg Normal file
View File

@ -0,0 +1,15 @@
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_306_2800)">
<path d="M19.0759 11.4383C18.5295 10.4567 17.7076 9.645 16.7051 9.09696L15.4321 8.42485C15.4321 8.42485 16.9033 6.27556 18.7481 6.85904C20.5928 7.44253 20.0135 11.3349 19.6323 12.8195" fill="black"/>
<path d="M24.2595 15.914C24.1212 13.7199 23.3933 11.5989 22.1479 9.76153C22.7662 9.35458 23.5212 9.19085 24.2595 9.3036C24.6309 9.37067 24.981 9.52121 25.2815 9.74312C25.582 9.96503 25.8246 10.2521 25.9899 10.5814C26.2213 11.1771 26.2947 11.8196 26.2034 12.45C26.1974 12.736 26.1486 13.0196 26.0585 13.292C25.9959 13.4626 25.9141 13.6261 25.8146 13.7794C25.6875 13.9813 25.5503 14.1734 25.4029 14.3555C25.0218 14.8652 24.6406 15.4117 24.2595 15.914Z" fill="#999999"/>
<path d="M12.8551 7.53931C14.4015 7.61601 15.8839 8.16111 17.0935 9.09773C18.2903 9.96188 19.6929 11.7566 19.6319 12.7907C19.5709 13.8247 17.0096 18.9948 16.8343 21.9418C16.659 24.8887 17.2811 27.5588 17.7887 29.1024C18.5864 30.2953 22.7925 33.2422 22.7925 33.2422C22.7925 33.2422 21.3623 33.2422 19.3841 32.5406C18.3143 32.3079 16.9832 31.5899 16.2658 30.7864C12.2943 27.0492 12.4795 24.2425 12.4947 18.9985C12.4947 15.1874 13.4528 13.2043 13.5824 11.7715C13.712 10.3386 14.4347 9.77173 13.808 8.31482L12.8551 7.53931Z" fill="#1A1A1A"/>
<path d="M19.8838 11.1274C19.6384 12.6659 19.1553 14.1598 18.4507 15.5589C17.7948 17.0352 17.2346 18.5498 16.7737 20.0938C16.1584 22.4582 16.3315 25.42 16.7736 27.0661C17.6237 30.2314 19.3722 32.6573 22.793 33.2407C21.1428 31.9685 19.9801 30.2638 19.4265 28.2922C19.1055 27.276 18.9962 26.2082 19.1048 25.1507C19.2134 24.0933 19.5378 23.0673 20.0592 22.1323C20.3486 21.6067 20.6666 21.0963 21.012 20.6035L23.9469 16.1719C24.0951 15.9759 24.2061 15.7558 24.2746 15.522C24.3219 15.2779 24.3219 15.0274 24.2746 14.7834C23.864 12.5729 22.9009 10.4935 21.4694 8.72695C20.6309 7.69292 19.4722 6.76184 18.1154 6.76184C18.7322 6.80409 19.3057 7.15153 19.5332 7.70769C19.9909 8.75163 19.9726 10.0129 19.8838 11.1274Z" fill="#808080"/>
<path d="M28.6488 18.0154C28.6488 18.4927 29.0407 18.9802 29.2527 19.2609C29.7065 19.8617 30.6248 20.6642 30.6248 20.9153C30.6096 21.0704 30.5366 21.1444 30.3417 21.2825C30.0971 21.4559 29.6822 21.6908 29.6822 21.6908C29.6822 21.6908 29.7568 21.9666 29.9247 22.1596C30.1028 22.3643 30.3576 22.6091 30.0531 22.8947C29.7486 23.1803 29.6097 23.2603 29.6097 23.2603C29.6097 23.2603 29.7434 23.3634 29.8625 23.5225C29.9816 23.6816 29.9969 23.829 30.0073 23.9952C29.9769 24.3571 29.4966 24.5048 29.3213 24.8298C29.2446 25.0122 29.2208 25.4542 29.2527 25.6487C29.3111 26.2185 29.0658 26.3652 28.8182 26.5646C28.5705 26.764 28.2998 26.7828 28.0177 26.764C27.258 26.764 25.5264 26.56 24.479 27.0844C22.834 27.9078 22.974 31.5646 22.7929 33.2414C20.0678 32.3613 18.8167 27.4703 18.8169 25.6487C18.817 23.8271 19.2848 22.5549 20.1204 21.2172C21.6958 19.026 23.2204 16.8103 24.6942 14.5699C25.5836 13.2753 25.9489 11.9864 25.9112 10.4375C25.9112 10.4375 27.1797 11.9617 27.7738 12.7751C28.3249 13.4975 28.9744 15.2587 29.0658 16.1911C29.1362 16.9087 28.6488 17.5381 28.6488 18.0154Z" fill="#CCCCCC"/>
<path d="M22.7929 33.2414C17.7166 33.0309 11.045 30.0136 9.37694 22.8567C7.70886 15.6998 9.58465 10.7439 10.3197 9.38494C11.0547 8.02598 12.2777 7.28221 13.4807 7.63438C15.6761 8.27695 13.039 13.7352 12.7852 17.033C12.5314 20.3308 12.7852 23.6988 14.4532 27.2772C16.1211 30.8557 18.9494 33.082 22.7929 33.2414Z" fill="black"/>
</g>
<defs>
<clipPath id="clip0_306_2800">
<rect width="40" height="40" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 3.5 KiB

View File

@ -33,14 +33,14 @@
"@easyops-cn/docusaurus-search-local" "^0.33.6"
lodash "^4.17.21"
"@acid-info/logos-docusaurus-preset@^1.0.0-alpha.97":
version "1.0.0-alpha.97"
resolved "https://registry.yarnpkg.com/@acid-info/logos-docusaurus-preset/-/logos-docusaurus-preset-1.0.0-alpha.97.tgz#96d29bd2f75cf427de8e537616c7f8852e52d760"
integrity sha512-Cs0w3pFfrE2jmroaleedGakb8LoEyH8iN5q0Q+WsDLt2qz3xFIXvIW4fiQc5eM37NbHpGgGgvrm7YcB2Fp0ySg==
"@acid-info/logos-docusaurus-preset@^1.0.0-alpha.100":
version "1.0.0-alpha.100"
resolved "https://registry.yarnpkg.com/@acid-info/logos-docusaurus-preset/-/logos-docusaurus-preset-1.0.0-alpha.100.tgz#061329adcaf840f5139bf3cceb9f7a3eba7be771"
integrity sha512-zWS8zqxmH2IZ8MACERPus6oyuPL3M+Rsa/EFjtx1qmCIT0ik09NPwL1Mf6Y3RmYUkwdYfzRU0wzf6DVCWtroTw==
dependencies:
"@acid-info/docusaurus-og" "^1.0.0-alpha.76"
"@acid-info/logos-docusaurus-search-local" "^1.0.0-alpha.47"
"@acid-info/logos-docusaurus-theme" "^1.0.0-alpha.97"
"@acid-info/logos-docusaurus-theme" "^1.0.0-alpha.99"
"@docusaurus/core" "^2.4.1"
"@docusaurus/module-type-aliases" "^2.4.1"
"@docusaurus/preset-classic" "^2.4.1"
@ -70,10 +70,10 @@
satori "^0.10.1"
sharp "^0.32.1"
"@acid-info/logos-docusaurus-theme@^1.0.0-alpha.97":
version "1.0.0-alpha.97"
resolved "https://registry.yarnpkg.com/@acid-info/logos-docusaurus-theme/-/logos-docusaurus-theme-1.0.0-alpha.97.tgz#8b7366238cc0cb177f400af82c0086f88f8f0a45"
integrity sha512-iBbH8enlSIhhGZuWWNxRSV5z8rQrO7uxBUq+xjA4PiCrjpbQb90YSuChuTizRUKkawzpswzkcukIdhzIGfc/Eg==
"@acid-info/logos-docusaurus-theme@^1.0.0-alpha.99":
version "1.0.0-alpha.99"
resolved "https://registry.yarnpkg.com/@acid-info/logos-docusaurus-theme/-/logos-docusaurus-theme-1.0.0-alpha.99.tgz#2450ca1eea78e20b4b7c5301d9f971de7f825b74"
integrity sha512-fwGVbutoUu3M1A7LxmbPLZV64oqIrEvkYrSYiuJClZEiUXOeVQBmf9gl646IgZoPDjW86Owk4XPg796dS+hH7Q==
dependencies:
"@acid-info/docusaurus-og" "^1.0.0-alpha.76"
"@acid-info/lsd-react" "^0.1.0-alpha.17"