Skip to content

Commit 59227c3

Browse files
committed
Use cards for the main CTAs
1 parent 31eb98f commit 59227c3

File tree

3 files changed

+59
-4
lines changed

3 files changed

+59
-4
lines changed

components/icons/ContractIcon.tsx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
const ContractIcon = ({ className }: { className: string }) => {
2+
return (
3+
<svg
4+
xmlns="http://www.w3.org/2000/svg"
5+
fill="none"
6+
viewBox="0 0 24 24"
7+
strokeWidth={1.5}
8+
stroke="currentColor"
9+
className={className}
10+
>
11+
<path
12+
strokeLinecap="round"
13+
strokeLinejoin="round"
14+
d="M10.125 2.25h-4.5c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125v-9M10.125 2.25h.375a9 9 0 0 1 9 9v.375M10.125 2.25A3.375 3.375 0 0 1 13.5 5.625v1.5c0 .621.504 1.125 1.125 1.125h1.5a3.375 3.375 0 0 1 3.375 3.375M9 15l2.25 2.25L15 12"
15+
/>
16+
</svg>
17+
);
18+
};
19+
20+
export default ContractIcon;

components/icons/SearchIcon.tsx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
const SearchIcon = ({ className }: { className: string }) => {
2+
return (
3+
<svg
4+
xmlns="http://www.w3.org/2000/svg"
5+
fill="none"
6+
viewBox="0 0 24 24"
7+
strokeWidth={1.5}
8+
stroke="currentColor"
9+
className={className}
10+
>
11+
<path
12+
strokeLinecap="round"
13+
strokeLinejoin="round"
14+
d="m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"
15+
/>
16+
</svg>
17+
);
18+
};
19+
20+
export default SearchIcon;

pages/express-relay/index.mdx

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,30 @@
1+
import Link from "next/link";
2+
3+
import { Cards, Card } from "nextra/components";
4+
import SearchIcon from "../../components/icons/SearchIcon";
5+
import ContractIcon from "../../components/icons/ContractIcon";
6+
17
# Introduction
28

39
Express Relay is a priority auction that enables protocols to eliminate maximal extractable value (MEV).
410

511
**For Protocol Developers:** Express Relay’s auction primitive allows your protocol to prioritize access to permissionless operations, eliminating the extractive role of miners in ordering transactions.
612
A network of established searchers compete in the auctions, allowing you to avoid spending time and energy bootstrapping your own protocol-specific searcher network.
7-
Learn how to [Integrate with Express Relay as a protocol](/express-relay/integrate-as-protocol).
8-
9-
FIXME: This link above and the ones below should be big buttons
1013

1114
**For Searchers:** Express Relay aggregates liquidation and other MEV opportunities across integrated DeFi protocols, providing easy and unified access.
12-
Learn how to [Integrate with Express Relay as a searcher](/express-relay/integrate-as-searcher).
15+
16+
<Cards>
17+
<Card
18+
icon={<ContractIcon />}
19+
title="Integrate with Express Relay as a protocol"
20+
href="./express-relay/integrate-as-protocol"
21+
/>
22+
<Card
23+
icon={<SearchIcon />}
24+
title="Integrate with Express Relay as a searcher"
25+
href="./express-relay/integrate-as-searcher"
26+
/>
27+
</Cards>
1328

1429
To learn more about Express Relay's design and how it eliminates MEV, please see [How Express Relay Works](/express-relay/how-express-relay-works).
1530

0 commit comments

Comments
 (0)