Skip to content

Commit

Permalink
Merge pull request #58 from rhinestonewtf/feat/omniaccount-structure
Browse files Browse the repository at this point in the history
feat: add omniaccount
  • Loading branch information
kopy-kat authored Jan 29, 2025
2 parents 3f13b0f + 393db79 commit 215f89e
Show file tree
Hide file tree
Showing 237 changed files with 7,663 additions and 297 deletions.
29 changes: 29 additions & 0 deletions components/banners/OmniAccount1.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import Image from 'next/image'
import { useTheme } from 'next-themes'
import { useEffect, useState } from 'react'

export const OmniAccount1 = ({
width,
height,
}: {
width: number
height: number
}) => {
const [src, setSrc] = useState<string>(
'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7',
)
const { resolvedTheme } = useTheme()

useEffect(() => {
switch (resolvedTheme) {
case 'light':
setSrc('/banners/omniaccount_1_light.png')
break
case 'dark':
setSrc('/banners/omniaccount_1_dark.png')
break
}
}, [resolvedTheme])

return <Image src={src} width={width} height={height} alt="Omni Account" />
}
29 changes: 29 additions & 0 deletions components/banners/OmniAccount2.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import Image from 'next/image'
import { useTheme } from 'next-themes'
import { useEffect, useState } from 'react'

export const OmniAccount2 = ({
width,
height,
}: {
width: number
height: number
}) => {
const [src, setSrc] = useState<string>(
'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7',
)
const { resolvedTheme } = useTheme()

useEffect(() => {
switch (resolvedTheme) {
case 'light':
setSrc('/banners/omniaccount_2_light.png')
break
case 'dark':
setSrc('/banners/omniaccount_2_dark.png')
break
}
}, [resolvedTheme])

return <Image src={src} width={width} height={height} alt="Omni Account" />
}
29 changes: 29 additions & 0 deletions components/banners/OmniAccount3.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import Image from 'next/image'
import { useTheme } from 'next-themes'
import { useEffect, useState } from 'react'

export const OmniAccount3 = ({
width,
height,
}: {
width: number
height: number
}) => {
const [src, setSrc] = useState<string>(
'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7',
)
const { resolvedTheme } = useTheme()

useEffect(() => {
switch (resolvedTheme) {
case 'light':
setSrc('/banners/omniaccount_3_light.png')
break
case 'dark':
setSrc('/banners/omniaccount_3_dark.png')
break
}
}, [resolvedTheme])

return <Image src={src} width={width} height={height} alt="Omni Account" />
}
29 changes: 29 additions & 0 deletions components/banners/OmniAccount4.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import Image from 'next/image'
import { useTheme } from 'next-themes'
import { useEffect, useState } from 'react'

export const OmniAccount4 = ({
width,
height,
}: {
width: number
height: number
}) => {
const [src, setSrc] = useState<string>(
'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7',
)
const { resolvedTheme } = useTheme()

useEffect(() => {
switch (resolvedTheme) {
case 'light':
setSrc('/banners/omniaccount_4_light.png')
break
case 'dark':
setSrc('/banners/omniaccount_4_dark.png')
break
}
}, [resolvedTheme])

return <Image src={src} width={width} height={height} alt="Omni Account" />
}
29 changes: 29 additions & 0 deletions components/banners/OmniAccount5.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import Image from 'next/image'
import { useTheme } from 'next-themes'
import { useEffect, useState } from 'react'

export const OmniAccount5 = ({
width,
height,
}: {
width: number
height: number
}) => {
const [src, setSrc] = useState<string>(
'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7',
)
const { resolvedTheme } = useTheme()

useEffect(() => {
switch (resolvedTheme) {
case 'light':
setSrc('/banners/omniaccount_5_light.png')
break
case 'dark':
setSrc('/banners/omniaccount_5_dark.png')
break
}
}, [resolvedTheme])

return <Image src={src} width={width} height={height} alt="Omni Account" />
}
29 changes: 29 additions & 0 deletions components/banners/OmniAccount6.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import Image from 'next/image'
import { useTheme } from 'next-themes'
import { useEffect, useState } from 'react'

export const OmniAccount6 = ({
width,
height,
}: {
width: number
height: number
}) => {
const [src, setSrc] = useState<string>(
'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7',
)
const { resolvedTheme } = useTheme()

useEffect(() => {
switch (resolvedTheme) {
case 'light':
setSrc('/banners/omniaccount_6_light.png')
break
case 'dark':
setSrc('/banners/omniaccount_6_dark.png')
break
}
}, [resolvedTheme])

return <Image src={src} width={width} height={height} alt="Omni Account" />
}
29 changes: 29 additions & 0 deletions components/banners/OmniAccount7.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import Image from 'next/image'
import { useTheme } from 'next-themes'
import { useEffect, useState } from 'react'

export const OmniAccount7 = ({
width,
height,
}: {
width: number
height: number
}) => {
const [src, setSrc] = useState<string>(
'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7',
)
const { resolvedTheme } = useTheme()

useEffect(() => {
switch (resolvedTheme) {
case 'light':
setSrc('/banners/omniaccount_7_light.png')
break
case 'dark':
setSrc('/banners/omniaccount_7_dark.png')
break
}
}, [resolvedTheme])

return <Image src={src} width={width} height={height} alt="Omni Account" />
}
29 changes: 29 additions & 0 deletions components/banners/OmniAccount8.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import Image from 'next/image'
import { useTheme } from 'next-themes'
import { useEffect, useState } from 'react'

export const OmniAccount8 = ({
width,
height,
}: {
width: number
height: number
}) => {
const [src, setSrc] = useState<string>(
'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7',
)
const { resolvedTheme } = useTheme()

useEffect(() => {
switch (resolvedTheme) {
case 'light':
setSrc('/banners/omniaccount_8_light.png')
break
case 'dark':
setSrc('/banners/omniaccount_8_dark.png')
break
}
}, [resolvedTheme])

return <Image src={src} width={width} height={height} alt="Omni Account" />
}
8 changes: 8 additions & 0 deletions components/banners/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,11 @@ export { ModuleKitBanner } from './ModuleKitBanner'
export { ModuleSDKBanner } from './ModuleSDKBanner'
export { ProtocolBanner } from './ProtocolBanner'
export { CoreModulesBanner } from './CoreModulesBanner'
export { OmniAccount1 } from './OmniAccount1'
export { OmniAccount2 } from './OmniAccount2'
export { OmniAccount3 } from './OmniAccount3'
export { OmniAccount4 } from './OmniAccount4'
export { OmniAccount5 } from './OmniAccount5'
export { OmniAccount6 } from './OmniAccount6'
export { OmniAccount7 } from './OmniAccount7'
export { OmniAccount8 } from './OmniAccount8'
31 changes: 31 additions & 0 deletions components/icons/OmniAccountIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import Image from 'next/image'
import { useTheme } from 'next-themes'
import { useEffect, useState } from 'react'

export const OmniAccountIcon = ({
width,
height,
}: {
width: number
height: number
}) => {
const [src, setSrc] = useState<string>(
'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7',
)
const { resolvedTheme } = useTheme()

useEffect(() => {
switch (resolvedTheme) {
case 'light':
setSrc('/icons/omniaccount_light.png')
break
case 'dark':
setSrc('/icons/omniaccount_dark.png')
break
}
}, [resolvedTheme])

return (
<Image src={src} width={width} height={height} alt="Omni Account Icon" />
)
}
1 change: 1 addition & 0 deletions components/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ export { ExecutorsIcon } from './ExecutorsIcon'
export { HooksIcon } from './HooksIcon'
export { FallbacksIcon } from './FallbacksIcon'
export { LogoIcon } from './LogoIcon'
export { OmniAccountIcon } from './OmniAccountIcon'
9 changes: 9 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,13 @@ module.exports = {
images: {
unoptimized: true,
},
async redirects() {
return [
{
source: '/',
destination: '/omni-account',
permanent: false,
},
]
},
}
62 changes: 6 additions & 56 deletions pages/_meta.json
Original file line number Diff line number Diff line change
@@ -1,42 +1,15 @@
{
"index": {
"display": "hidden",
"theme": {
"breadcrumb": false,
"footer": true,
"sidebar": false,
"toc": false,
"pagination": false
}
},
"overview": {
"title": "Overview",
"type": "page"
},
"module-sdk": { "title": "ModuleSDK", "type": "page" },
"modulekit": { "title": "ModuleKit", "type": "page" },
"solidity": {
"title": "Helpers",
"type": "menu",
"items": {
"erc4337-data-libs": {
"title": "ERC4337 Data Libs",
"href": "/erc4337-data-libs"
},
"checknsignatures": {
"title": "CheckNSignatures",
"href": "/checknsignatures"
},
"erc4337-validation": {
"title": "ERC4337 Validation",
"href": "/erc4337-validation"
},
"sandbox": {
"title": "ModuleSandbox",
"href": "/sandbox"
}
}
"omni-account": {
"title": "Omni Account",
"type": "page"
},
"module-sdk": { "title": "SDK", "type": "page" },
"build-modules": { "title": "Build Modules", "type": "page" },
"modulekit": { "title": "ModuleKit", "type": "page", "display": "hidden" },
"erc4337-data-libs": {
"title": "ERC4337 Data Libs",
"type": "page",
Expand All @@ -53,24 +26,6 @@
"display": "hidden"
},
"sandbox": { "title": "ModuleSandbox", "type": "page", "display": "hidden" },
"infrastructure": {
"title": "Infrastructure",
"type": "menu",
"items": {
"registry": {
"title": "Module Registry",
"href": "/module-registry"
},
"safe7579": {
"title": "Safe7579",
"href": "/safe7579"
},
"orchestrator": {
"title": "Orchestrator",
"href": "/orchestrator"
}
}
},
"module-registry": {
"title": "Module Registry",
"type": "page",
Expand All @@ -80,10 +35,5 @@
"title": "Safe7579",
"type": "page",
"display": "hidden"
},
"orchestrator": {
"title": "Orchestrator",
"type": "page",
"display": "hidden"
}
}
Loading

0 comments on commit 215f89e

Please sign in to comment.