feat: add Nimbus business unit

This commit is contained in:
Hossein Mehrabi
2023-06-01 13:56:04 +03:30
parent 3140b5eb56
commit 5bacce86b5
8 changed files with 84 additions and 0 deletions
@@ -1,10 +1,12 @@
import { BusinessUnits, SiteConfig } from '../types/index'
import { codexSiteConfig } from './codex'
import logosSiteConfig from './logos'
import nimbusSiteConfig from './nimbus'
import wakuSiteConfig from './waku'
export const siteConfigs: Record<BusinessUnits, SiteConfig> = {
[BusinessUnits.Logos]: logosSiteConfig,
[BusinessUnits.Codex]: codexSiteConfig,
[BusinessUnits.Waku]: wakuSiteConfig,
[BusinessUnits.Nimbus]: nimbusSiteConfig,
}
@@ -0,0 +1,16 @@
import { SiteConfig } from '../index'
import { BusinessUnits } from '../types'
import baseSiteConfig from './base'
export const nimbusSiteConfig: SiteConfig = {
...baseSiteConfig,
title: 'Nimbus',
tagline:
'Nimbus is a client implementation that strives to be as lightweight as possible in terms of resources used. This allows it to perform well on embedded systems, resource-restricted devices -- including Raspberry Pis and mobile devices -- and multi-purpose servers.',
url: 'https://nimbus.team',
customFields: {
businessUnits: BusinessUnits.Nimbus,
},
}
export default nimbusSiteConfig
@@ -4,6 +4,7 @@ import { defaultsDeep } from '../utils/object.utils'
import baseThemeConfig from './base'
import codexThemeConfig from './codex'
import logosThemeConfig from './logos'
import nimbusThemeConfig from './nimbus'
import wakuThemeConfig from './waku'
const merge =
@@ -29,4 +30,5 @@ export const themeConfigs: Record<BusinessUnits, ReturnType<typeof merge>> = {
[BusinessUnits.Logos]: merge(logosThemeConfig),
[BusinessUnits.Codex]: merge(codexThemeConfig),
[BusinessUnits.Waku]: merge(wakuThemeConfig),
[BusinessUnits.Nimbus]: merge(nimbusThemeConfig),
}
@@ -0,0 +1,57 @@
import baseThemeConfig from './base'
export const nimbusThemeConfig: typeof baseThemeConfig = {
...baseThemeConfig,
navbar: {
...baseThemeConfig.navbar,
logo: {
alt: 'Nimbus',
src: 'theme/image/logo-black.svg',
srcDark: 'theme/image/logo.svg',
height: 26,
},
items: [],
},
metadata: [
{ name: 'keywords', content: 'nimbus' },
{
name: 'description',
content: 'Nimbus, a Lighter Ethereum Client',
},
{ name: 'image', content: 'theme/image/preview-image.png' },
],
footer: {
...baseThemeConfig.footer,
copyright: `Nimbus © ${new Date().getFullYear()}<br/>All rights reserved.`,
logo: {
alt: 'Nimbus',
src: 'theme/image/logo.svg',
href: '/',
width: 22,
},
links: [
{
items: [
{
label: 'Gitter',
href: 'https://gitter.im/status-im/nimbus',
},
{
label: 'Twitter',
href: 'https://twitter.com/ethnimbus',
},
{
href: 'Discord',
label: 'https://discord.gg/XRxWahP',
},
{
label: 'Status',
href: 'https://join.status.im/chat/public/nimbus-general',
},
],
},
],
},
}
export default nimbusThemeConfig
@@ -10,6 +10,7 @@ export enum BusinessUnits {
Logos = 'Logos',
Codex = 'Codex',
Waku = 'Waku',
Nimbus = 'Nimbus',
}
export type Contact = {
Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

@@ -0,0 +1,3 @@
<svg width="116" height="87" viewBox="0 0 116 87" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M74 43.9454V59.9453C65.2023 59.9453 60.6667 59.1455 55.3333 51.9455C50 44.7454 46.5544 43.9452 42 43.9452V59.9453H26V43.9452H42V27.9453C50.2089 27.9453 55.3333 29.012 60.6667 35.9454C66 42.8787 68.8122 43.9454 74 43.9454V27.9453H90V43.9454H74Z" fill="black"/>
</svg>

After

Width:  |  Height:  |  Size: 374 B

@@ -0,0 +1,3 @@
<svg width="116" height="87" viewBox="0 0 116 87" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M74 43.9454V59.9453C65.2023 59.9453 60.6667 59.1455 55.3333 51.9455C50 44.7454 46.5544 43.9452 42 43.9452V59.9453H26V43.9452H42V27.9453C50.2089 27.9453 55.3333 29.012 60.6667 35.9454C66 42.8787 68.8122 43.9454 74 43.9454V27.9453H90V43.9454H74Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 374 B