-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #779 from autonomys/main
Sync production with main
- Loading branch information
Showing
29 changed files
with
880 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { DomainHeader } from 'components/layout/DomainHeader' | ||
import { MainLayout } from 'components/layout/Layout' | ||
import type { ChildrenPageProps } from 'types/app' | ||
|
||
export default async function Layout({ children }: ChildrenPageProps) { | ||
return <MainLayout subHeader={<DomainHeader />}>{children}</MainLayout> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { AutoIdPage } from '@/components/AutoId' | ||
import { chains } from 'constants/chains' | ||
import { metadata } from 'constants/metadata' | ||
import { Metadata } from 'next' | ||
import { FC } from 'react' | ||
import type { ChainPageProps } from 'types/app' | ||
|
||
export async function generateMetadata({ params: { chain } }: ChainPageProps): Promise<Metadata> { | ||
const chainTitle = chains.find((c) => c.urls.page === chain)?.title || 'Unknown chain' | ||
const title = `${metadata.title} - ${chainTitle} - Auto ID` | ||
return { | ||
...metadata, | ||
title, | ||
openGraph: { | ||
...metadata.openGraph, | ||
title, | ||
}, | ||
twitter: { | ||
...metadata.twitter, | ||
title, | ||
}, | ||
} | ||
} | ||
|
||
const Page: FC = () => { | ||
return <AutoIdPage /> | ||
} | ||
|
||
export default Page |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { DomainHeader } from 'components/layout/DomainHeader' | ||
import { MainLayout } from 'components/layout/Layout' | ||
import type { ChildrenPageProps } from 'types/app' | ||
|
||
export default async function Layout({ children }: ChildrenPageProps) { | ||
return <MainLayout subHeader={<DomainHeader />}>{children}</MainLayout> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { DomainPage } from 'components/Domain' | ||
import { chains } from 'constants/chains' | ||
import { metadata } from 'constants/metadata' | ||
import { Metadata } from 'next' | ||
import { FC } from 'react' | ||
import type { ChainPageProps } from 'types/app' | ||
|
||
export async function generateMetadata({ params: { chain } }: ChainPageProps): Promise<Metadata> { | ||
const chainTitle = chains.find((c) => c.urls.page === chain)?.title || 'Unknown chain' | ||
const title = `${metadata.title} - ${chainTitle} - Domain` | ||
return { | ||
...metadata, | ||
title, | ||
openGraph: { | ||
...metadata.openGraph, | ||
title, | ||
}, | ||
twitter: { | ||
...metadata.twitter, | ||
title, | ||
}, | ||
} | ||
} | ||
|
||
const Page: FC = () => { | ||
return <DomainPage /> | ||
} | ||
|
||
export default Page |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { FarmingHeader } from 'components/layout/FarmingHeader' | ||
import { MainLayout } from 'components/layout/Layout' | ||
import type { ChildrenPageProps } from 'types/app' | ||
|
||
export default async function Layout({ children }: ChildrenPageProps) { | ||
return <MainLayout subHeader={<FarmingHeader />}>{children}</MainLayout> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { DownloadPage } from '@/components/Farming' | ||
import { chains } from 'constants/chains' | ||
import { metadata, url } from 'constants/metadata' | ||
import { Metadata } from 'next' | ||
import { FC } from 'react' | ||
import type { ChainPageProps } from 'types/app' | ||
|
||
export async function generateMetadata({ params: { chain } }: ChainPageProps): Promise<Metadata> { | ||
const chainTitle = chains.find((c) => c.urls.page === chain)?.title || 'Unknown chain' | ||
const title = `${metadata.title} - ${chainTitle} - Farming` | ||
const images = { | ||
url: url + '/images/share-farming.png', | ||
secureUrl: url + 'image/png', | ||
width: 900, | ||
height: 600, | ||
alt: title, | ||
} | ||
return { | ||
...metadata, | ||
title, | ||
openGraph: { | ||
...metadata.openGraph, | ||
title, | ||
images, | ||
}, | ||
twitter: { | ||
...metadata.twitter, | ||
title, | ||
images, | ||
}, | ||
} | ||
} | ||
|
||
const Page: FC = () => { | ||
return <DownloadPage /> | ||
} | ||
|
||
export default Page |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
'use client' | ||
|
||
import { FC } from 'react' | ||
|
||
export const AutoIdPage: FC = () => { | ||
return ( | ||
<div className='flex w-full flex-col items-center space-y-4'> | ||
<div className='w-full max-w-4xl'> | ||
<div className='mb-4 w-full rounded-[20px] border border-slate-100 bg-white px-3 py-4 shadow dark:border-none dark:bg-gradient-to-r dark:from-gradientTwilight dark:via-gradientDusk dark:to-gradientSunset sm:p-6'> | ||
<div className='mb-10 flex flex-col items-center justify-center'> | ||
<h1 className='mb-8 mt-6 text-center text-4xl font-bold text-gray-900 dark:text-white'> | ||
Auto-ID | ||
</h1> | ||
</div> | ||
<div className='m-6 flow-root text-gray-900 dark:text-white'> | ||
<div className='mb-12 flex w-full items-center gap-5 overflow-x-auto'> | ||
<p> | ||
Auto ID is our first primitive enabling identity infrastructure at massive scale. | ||
Documentation coming soon. | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
'use client' | ||
|
||
import { BlockIcon, DocIcon } from '@/components/icons' | ||
import { Routes } from 'constants/routes' | ||
import useDomains from 'hooks/useDomains' | ||
import Link from 'next/link' | ||
import { FC, useMemo } from 'react' | ||
|
||
export const DomainPage: FC = () => { | ||
const { selectedChain } = useDomains() | ||
|
||
const listOfCards = useMemo( | ||
() => [ | ||
{ | ||
title: 'Nova', | ||
description: 'EVM domain', | ||
href: `/${selectedChain.urls.page}/${Routes.nova}`, | ||
icon: <BlockIcon />, | ||
darkBgClass: | ||
'dark:bg-gradient-to-b dark:from-purpleLighterAccent dark:via-purpleMedium dark:to-purplePale', | ||
}, | ||
{ | ||
title: 'Auto-ID', | ||
description: 'Identity domain', | ||
href: `/${selectedChain.urls.page}/${Routes.autoid}`, | ||
icon: <DocIcon />, | ||
darkBgClass: 'dark:bg-gradient-to-b dark:from-purpleDeep dark:to-purplePastel', | ||
}, | ||
], | ||
[selectedChain.urls.page], | ||
) | ||
|
||
return ( | ||
<div className='flex w-full flex-col items-center space-y-4'> | ||
<div className='w-full max-w-4xl'> | ||
<div className='mb-4 w-full rounded-[20px] border border-slate-100 bg-white px-3 py-4 shadow dark:border-none dark:bg-gradient-to-r dark:from-gradientTwilight dark:via-gradientDusk dark:to-gradientSunset sm:p-6'> | ||
<div className='mb-10 flex flex-col items-center justify-center'> | ||
<h1 className='mb-8 mt-6 text-center text-4xl font-bold text-gray-900 dark:text-white'> | ||
Domains | ||
</h1> | ||
</div> | ||
<div className='m-6 flow-root text-gray-900 dark:text-white'> | ||
<div className='mb-12 flex w-full items-center gap-5 overflow-x-auto'> | ||
<p> | ||
The Autonomys Network can run multiple domains, each with different runtimes, | ||
genesis configurations, and validator sets. Each domain is a separate blockchain | ||
with its own state and history. Operators for each domain are responsible for | ||
preparing blocks of transactions. Committing these domain blocks as bundles to the | ||
Consensus Layer is done on a per-domain basis. | ||
</p> | ||
</div> | ||
<div className='mb-12 flex w-full items-center gap-5 overflow-x-auto'> | ||
<p> | ||
At the moment, we have an EVM (Ethereum Virtual Machine) domain and a custom | ||
decentralized identity domain. However, more custom or existing runtime domains | ||
could be deployed in the future. | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div className='m-4 p-4'> | ||
<div className='m-6 flow-root'> | ||
<div className='mb-12 flex w-full items-center justify-center gap-5 overflow-x-auto'> | ||
{listOfCards.map(({ title, description, href, icon, darkBgClass }, index) => ( | ||
<Link key={index} href={href}> | ||
<div | ||
key={index} | ||
className={'h-[216px] w-1/5 min-w-[200px] grow cursor-pointer md:min-w-[228px]'} | ||
> | ||
<div | ||
className={`flex h-full flex-col justify-center rounded-[20px] bg-white ${darkBgClass}`} | ||
> | ||
<div className='mb-6 flex w-full items-center justify-center align-middle'> | ||
{icon} | ||
</div> | ||
<div className='flex w-full flex-col items-center justify-center align-middle'> | ||
<h2 className='mb-2.5 text-center text-2xl font-normal text-gray-900 dark:text-white'> | ||
{title} | ||
</h2> | ||
<p className='text-md text-center font-medium leading-relaxed dark:text-white'> | ||
{description} | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
</Link> | ||
))} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
) | ||
} |
Oops, something went wrong.