-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adds setTokens (#33) * wip * article css * landing page styling wip * footer * remove hyperlink from receipt expand block * landing page light mode * mobile responsiveness --------- Co-authored-by: abtestingalpha <[email protected]>
- Loading branch information
1 parent
762abc9
commit 506bd9c
Showing
7 changed files
with
504 additions
and
181 deletions.
There are no files selected for viewing
File renamed without changes
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
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,67 @@ | ||
type Props = { | ||
header: string | ||
links: { label: string, url: string }[] | ||
} | ||
|
||
function FooterSection({ header, links }: Props) { | ||
|
||
return <section> | ||
|
||
<header>{header}</header> | ||
|
||
{links.map(link => | ||
|
||
<a key={link.label} href={link.url}> | ||
<span>{link.label}</span> | ||
</a> | ||
|
||
)} | ||
|
||
</section> | ||
|
||
} | ||
|
||
export default function Footer() { | ||
|
||
return <footer> | ||
|
||
<div> | ||
|
||
<a href="https://synapseprotocol.com/landing"> | ||
<picture> | ||
<source srcSet="synapse-logo-onLight.svg" media="(prefers-color-scheme: light)" /> | ||
<source srcSet="synapse-logo-onDark.svg" media="(prefers-color-scheme: dark)" /> | ||
<img src="synapse-logo-onDark.svg" width="160" alt="Synapse Logo" /> | ||
</picture> | ||
</a> | ||
|
||
<nav> | ||
|
||
<FooterSection header='Functions' links={[ | ||
{ label: 'Swap', url: '#', }, | ||
{ label: 'Bridge', url: '#', }, | ||
{ label: 'Pools', url: '#', }, | ||
{ label: 'Stake', url: '#', }, | ||
]}/> | ||
|
||
<FooterSection header='Developers' links={[ | ||
{ label: 'Build on Synapse', url: '#', }, | ||
{ label: 'Documentation', url: '#', }, | ||
{ label: 'Github', url: '#', }, | ||
{ label: 'Blog', url: '#', }, | ||
]}/> | ||
|
||
<FooterSection header='Support' links={[ | ||
{ label: 'Discord', url: '#', }, | ||
{ label: 'Twitter', url: '#', }, | ||
{ label: 'Forum', url: '#', }, | ||
{ label: 'Telegram', url: '#', }, | ||
]}/> | ||
|
||
</nav> | ||
|
||
</div> | ||
|
||
</footer> | ||
|
||
} |
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,50 @@ | ||
|
||
type Props = { | ||
links: { label: string; url: string; selected?: boolean }[] | ||
} | ||
|
||
function HeaderSection({ links }: Props) { | ||
|
||
return ( | ||
<nav> | ||
{links.map((link, i) => { | ||
return ( | ||
<a | ||
key={i} | ||
href={link.url} | ||
target="_blank" rel="noreferrer" | ||
className={`${link.selected ? 'selected' : ''}`} | ||
> | ||
{link.label} | ||
</a> | ||
) | ||
})} | ||
|
||
{/* <NavOverflow links={links} /> */} | ||
{/* <a onClick={handleClick}>More…</a> */} | ||
</nav> | ||
) | ||
} | ||
|
||
export default function Header() { | ||
return ( | ||
<header> | ||
<a href="https://synapseprotocol.com/landing"> | ||
<picture> | ||
<source srcSet="synapse-logo-onLight.svg" media="(prefers-color-scheme: light)" /> | ||
<source srcSet="synapse-logo-onDark.svg" media="(prefers-color-scheme: dark)" /> | ||
<img src="synapse-logo-onDark.svg" width="200" alt="Synapse Logo" /> | ||
</picture> | ||
</a> | ||
|
||
<HeaderSection | ||
links={[ | ||
{ label: 'Widget', url: '#', selected: true }, | ||
{ label: 'Docs', url: '#' }, | ||
{ label: 'EVM Bridge', url: 'https://synapseprotocol.com' }, | ||
// { label: 'Synapse Interchain Network', url: '#', }, | ||
]} | ||
/> | ||
</header> | ||
) | ||
} |
Oops, something went wrong.