add arrow and fix links
This commit is contained in:
parent
a6813504aa
commit
8cecffd70d
4 changed files with 72 additions and 6 deletions
|
|
@ -21,20 +21,24 @@ const Layout = ({ children }: any) => (
|
||||||
{
|
{
|
||||||
link: '/products',
|
link: '/products',
|
||||||
title: 'products',
|
title: 'products',
|
||||||
|
target: '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
link: '/solutions',
|
link: '/solutions',
|
||||||
title: 'solutions',
|
title: 'solutions',
|
||||||
|
target: '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
link: '/validator',
|
link: '/validator',
|
||||||
title: 'validator',
|
title: 'validator',
|
||||||
|
target: '',
|
||||||
},
|
},
|
||||||
]}
|
]}
|
||||||
itemsRight={[
|
itemsRight={[
|
||||||
{
|
{
|
||||||
link: 'https://chora.blog',
|
link: 'https://chora.blog',
|
||||||
title: 'blog',
|
title: 'blog',
|
||||||
|
target: '_blank',
|
||||||
},
|
},
|
||||||
]}
|
]}
|
||||||
showMenuButton={true}
|
showMenuButton={true}
|
||||||
|
|
|
||||||
22
app/page.tsx
22
app/page.tsx
|
|
@ -1,5 +1,8 @@
|
||||||
import { Background } from 'chora/components'
|
import { Background } from 'chora/components'
|
||||||
import { Metadata } from 'next'
|
import { Metadata } from 'next'
|
||||||
|
import Link from 'next/link'
|
||||||
|
|
||||||
|
import RightArrow from '@components/RightArrow'
|
||||||
|
|
||||||
import styles from './page.module.css'
|
import styles from './page.module.css'
|
||||||
|
|
||||||
|
|
@ -28,15 +31,18 @@ const HomePage = () => {
|
||||||
<h2>{'products'}</h2>
|
<h2>{'products'}</h2>
|
||||||
<p>
|
<p>
|
||||||
{'Chora Studio is stewarding '}
|
{'Chora Studio is stewarding '}
|
||||||
<a href="https://chora.io" target="_blank">
|
<Link href="https://chora.io" target="_blank">
|
||||||
{'Chora'}
|
{'Chora'}
|
||||||
</a>
|
</Link>
|
||||||
{
|
{
|
||||||
' - software for commons governance and ecological regeneration built with distributed ledger technology.'
|
' - software for commons governance and ecological regeneration built with distributed ledger technology.'
|
||||||
}
|
}
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<a href="/products">{'learn more ⇾'}</a>
|
<Link href="/products">
|
||||||
|
{'learn more'}
|
||||||
|
<RightArrow />
|
||||||
|
</Link>
|
||||||
</p>
|
</p>
|
||||||
<h2>{'solutions'}</h2>
|
<h2>{'solutions'}</h2>
|
||||||
<p>
|
<p>
|
||||||
|
|
@ -45,7 +51,10 @@ const HomePage = () => {
|
||||||
}
|
}
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<a href="/solutions">{'learn more ⇾'}</a>
|
<Link href="/solutions">
|
||||||
|
{'learn more'}
|
||||||
|
<RightArrow />
|
||||||
|
</Link>
|
||||||
</p>
|
</p>
|
||||||
<h2>{'validator'}</h2>
|
<h2>{'validator'}</h2>
|
||||||
<p>
|
<p>
|
||||||
|
|
@ -61,7 +70,10 @@ const HomePage = () => {
|
||||||
}
|
}
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<a href="/validator">{'learn more ⇾'}</a>
|
<Link href="/validator">
|
||||||
|
{'learn more'}
|
||||||
|
<RightArrow />
|
||||||
|
</Link>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
47
components/RightArrow.tsx
Normal file
47
components/RightArrow.tsx
Normal file
|
|
@ -0,0 +1,47 @@
|
||||||
|
'use client'
|
||||||
|
|
||||||
|
const defaultColor = '#00C3A5'
|
||||||
|
|
||||||
|
const BlankArrow = ({ color }: any) => {
|
||||||
|
const stroke = color || defaultColor
|
||||||
|
|
||||||
|
return (
|
||||||
|
<svg
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
height="0.5em"
|
||||||
|
width="0.5em"
|
||||||
|
viewBox="0 0 20 20"
|
||||||
|
style={{ marginLeft: '0.5em' }}
|
||||||
|
>
|
||||||
|
<line
|
||||||
|
x1="0"
|
||||||
|
y1="10"
|
||||||
|
x2="20"
|
||||||
|
y2="10"
|
||||||
|
stroke={stroke}
|
||||||
|
strokeLinecap="round"
|
||||||
|
strokeWidth="3"
|
||||||
|
/>
|
||||||
|
<line
|
||||||
|
x1="12"
|
||||||
|
y1="3"
|
||||||
|
x2="20"
|
||||||
|
y2="10"
|
||||||
|
stroke={stroke}
|
||||||
|
strokeLinecap="round"
|
||||||
|
strokeWidth="3"
|
||||||
|
/>
|
||||||
|
<line
|
||||||
|
x1="20"
|
||||||
|
y1="10"
|
||||||
|
x2="12"
|
||||||
|
y2="17"
|
||||||
|
stroke={stroke}
|
||||||
|
strokeLinecap="round"
|
||||||
|
strokeWidth="3"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default BlankArrow
|
||||||
|
|
@ -18,7 +18,10 @@
|
||||||
{
|
{
|
||||||
"name": "next"
|
"name": "next"
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"paths": {
|
||||||
|
"@components/*": ["components/*"]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"next-env.d.ts",
|
"next-env.d.ts",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue