Skip to content

Commit

Permalink
add: newsletter feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Swarnabha Sinha committed Oct 8, 2023
1 parent e740af3 commit 26f52d0
Show file tree
Hide file tree
Showing 5 changed files with 302 additions and 213 deletions.
2 changes: 1 addition & 1 deletion docs/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ sidebar_position: 1
slug: /quickstart
---

![Shardeum Docs](../static/img/shardeum_documentation_light.png/#gh-light-mode-only)



## Shardeum Overview
Expand Down
342 changes: 178 additions & 164 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,180 +40,194 @@ module.exports = {
],

themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
algolia: {
appId: "CK38X87BB3",
apiKey: "6d53d06cfe9c8cb794826061687d47b5",
indexName: "shardeum"
},
imageZoom: {
// CSS selector to apply the plugin to, defaults to '.markdown img'
// selector: '.markdown img',
// Optional medium-zoom options
// see: https://www.npmjs.com/package/medium-zoom#options
options: {
margin: 40,
background: '#000',
scrollOffset: 60,
// container: 'main',
// template: '#zoom-template',
},
},
navbar: {
title: '',
hideOnScroll: true,
logo: {
alt: 'Shardeum Docs Logo',
src: '/img/shardeum_documentation_dark.png',
srcDark: '/img/shardeum_documentation_light.png',
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
announcementBar: {
id: 'newsletter',
content:
'<p class="text-newsletter">Sign up for Shardeum Developer newsletter <a target="_blank" rel="noopener noreferrer" href="https://shardeum.org/developer-newsletter" class="btn-newsletter">Register for free</a></p>',
backgroundColor: '#00FF00',
textColor: '#000000',
isCloseable: true,
},

items: [
{
href: '/network/endpoints#connect-wallet',
label: 'Connect to Shardeum',
position: 'left',
// className: 'navbar_item_button',
},
{
href: '/faucet/claim#shardeum-discord-website',
label: 'Claim Testnet SHM',
position: 'left',
// className: 'navbar_item_button',
},
{
href: 'https://airtable.com/shrIXaaf87BzaTfYy',
label: 'List dApp on Ecosystem Page',
position: 'left',
// className: 'navbar_item_1',
},
{
href: 'https://github.com/Shardeum/shardeum-bug-reporting',
label: 'Report Bugs Here',
position: 'left',
// className: 'navbar_item_2',
},
{
href: 'https://github.com/shardeum/shardeum-docs',
label: 'GitHub',
position: 'right',
algolia: {
appId: "CK38X87BB3",
apiKey: "6d53d06cfe9c8cb794826061687d47b5",
indexName: "shardeum"
},
imageZoom: {
// CSS selector to apply the plugin to, defaults to '.markdown img'
// selector: '.markdown img',
// Optional medium-zoom options
// see: https://www.npmjs.com/package/medium-zoom#options
options: {
margin: 40,
background: '#000',
scrollOffset: 60,
// container: 'main',
// template: '#zoom-template',
},
},
metadata: [
{name:'title',content:'Sharding | Shardeum Docs'},
{name: 'keywords', content: 'harding, blockchain, performance, shard, transactions, shards, transaction, nodes, data, security, storage, consensus, node, process, processing, applications, network, ethereum, cross, ledger, based, distributed, scalability, chain, throughput, called, responsible, malicious, communication, smart'},

],
},
navbar: {
title: '',
hideOnScroll: true,
logo: {
alt: 'Shardeum Docs Logo',
src: '/img/shardeum_documentation_dark.png',
srcDark: '/img/shardeum_documentation_light.png',
},

footer: {
links: [
{
title: 'General',
items: [
{
label: 'Home',
to: 'https://shardeum.org',
},
{
label: 'Mainnet Roadmap',
to: 'https://shardeum.org/roadmap/mainnet/',
},
{
href: '/faucet/claim',
label: 'Claim 100 Testnet SHM',
position: 'left',
items: [
{
href: '/network/endpoints#connect-wallet',
label: 'Connect to Shardeum',
position: 'left',
// className: 'navbar_item_button',
},
{
href: '/faucet/claim#shardeum-discord-website',
label: 'Claim Testnet SHM',
position: 'left',
// className: 'navbar_item_button',
},
{
href: 'https://airtable.com/shrIXaaf87BzaTfYy',
label: 'List dApp on Ecosystem Page',
position: 'left',
// className: 'navbar_item_1',
},
{
href: 'https://github.com/Shardeum/shardeum-bug-reporting',
label: 'Report Bugs Here',
position: 'left',
// className: 'navbar_item_2',
},
{
href: 'https://github.com/shardeum/shardeum-docs',
label: 'GitHub',
position: 'right',
},
],
},

},
{
label: 'Super Shardians',
to: 'https://shardeum.org/super-shardian/',
},
{
label: 'Blog',
to: 'https://shardeum.org/blog',
},
footer: {
links: [
{
title: 'General',
items: [
{
label: 'Home',
to: 'https://shardeum.org',
},
{
label: 'Mainnet Roadmap',
to: 'https://shardeum.org/roadmap/mainnet/',
},
{
href: '/faucet/claim',
label: 'Claim 100 Testnet SHM',
position: 'left',

],
},
{
title: 'Community',
items: [
{
label: 'Telegram',
to: 'https://t.me/shardeum',
},
{
label: 'Discord',
to: 'https://discord.gg/gx2SFZDDSM',
},
{
label: 'Twitter',
to: 'https://twitter.com/shardeum',
},
],
},
{
title: 'Resources',
items: [
{
label: 'Litepaper',
to: 'https://shardeum.org/Shardeum-Litepaper.pdf',
},
{
label: 'FAQs',
to: 'https://shardeum.org/explore/faqs/general/',
},
{
label: 'Brand Assets Page',
to: 'https://drive.google.com/drive/folders/1jdjJNMajHG_QDu_uAXTRrqpXW3AUuiJu',
},
{
label: 'Public Drive Link',
to: 'https://drive.google.com/drive/folders/1zal5vN3f67Ql-Q8jiSYsp6Nf0xoJuqNI',
},
],
},
{
title: 'Contact',
items: [
{
label: 'General Inquiries',
to: 'mailto:[email protected]',
},
{
label: 'Partnership Enquiries',
to: 'https://shm.gg/partnership-form',
},
{
label: 'GitHub',
to: 'https://github.com/shardeum',
},
{
label: 'Gitlab',
to: 'https://gitlab.com/shardeum',
},
],
},
{
label: 'Super Shardians',
to: 'https://shardeum.org/super-shardian/',
},
{
label: 'Blog',
to: 'https://shardeum.org/blog',
},

],
},
{
title: 'Community',
items: [
{
label: 'Telegram',
to: 'https://t.me/shardeum',
},
{
label: 'Discord',
to: 'https://discord.gg/gx2SFZDDSM',
},
{
label: 'Twitter',
to: 'https://twitter.com/shardeum',
},
],
},
{
title: 'Resources',
items: [
{
label: 'Litepaper',
to: 'https://shardeum.org/Shardeum-Litepaper.pdf',
},
{
label: 'FAQs',
to: 'https://shardeum.org/explore/faqs/general/',
},
{
label: 'Brand Assets Page',
to: 'https://drive.google.com/drive/folders/1jdjJNMajHG_QDu_uAXTRrqpXW3AUuiJu',
},
{
label: 'Public Drive Link',
to: 'https://drive.google.com/drive/folders/1zal5vN3f67Ql-Q8jiSYsp6Nf0xoJuqNI',
},
],
},
{
title: 'Contact',
items: [
{
label: 'General Inquiries',
to: 'mailto:[email protected]',
},
{
label: 'Partnership Enquiries',
to: 'https://shm.gg/partnership-form',
},
{
label: 'GitHub',
to: 'https://github.com/shardeum',
},
{
label: 'Gitlab',
to: 'https://gitlab.com/shardeum',
},
],
},
],
logo: {
alt: 'Shardeum Logo',
src: 'img/shardeum_logo_light_square.png',
href: 'https://github.com/shardeum',
height: 100,
width: 100
},
],
logo: {
alt: 'Shardeum Logo',
src: 'img/shardeum_logo_light_square.png',
href: 'https://github.com/shardeum',
height: 100,
width: 100
copyright: `Copyright © Shardeum ${new Date().getFullYear()}`,
},
prism: {
theme: darkCodeTheme,
additionalLanguages: ["solidity","python","rust"],
},
colorMode: {
defaultMode: 'dark',
disableSwitch: false,
respectPrefersColorScheme: true
},
copyright: `Copyright © Shardeum ${new Date().getFullYear()}`,
},
prism: {
theme: darkCodeTheme,
additionalLanguages: ["solidity","python","rust"],
},
colorMode: {
defaultMode: 'dark',
disableSwitch: false,
respectPrefersColorScheme: true
}
}),

}),
// plugins: ['docusaurus-plugin-sass',
// 'plugin-image-zoom',
// 'docusaurus-lunr-search'],
plugins: ['docusaurus-plugin-sass',
plugins: ['docusaurus-plugin-sass',
'plugin-image-zoom'],
};
Loading

0 comments on commit 26f52d0

Please sign in to comment.