Skip to content

Commit 04ee388

Browse files
committed
punchlist fixes
1 parent dc8e30a commit 04ee388

File tree

10 files changed

+2766
-2737
lines changed

10 files changed

+2766
-2737
lines changed

diagrams.ai

Lines changed: 2697 additions & 2671 deletions
Large diffs are not rendered by default.

src/app/page.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {Hero} from '@/components/HomeHero';
99
import {UsersShowcase} from '@/components/UsersShowcase';
1010
import {GlowCard} from '@/components/GlowCard';
1111
import {FromTheBlog} from '@/components/FromTheBlog';
12-
import {HammerWrenchCodeIcon} from '@/components/icons/HammerWrenchCodeIcon';
12+
import {WrenchCodeIcon} from '@/components/icons/WrenchCodeIcon';
1313
import {PerfChartIllustration} from '@/components/PerfChartIllustration';
1414
import {ConnectDevicesIllustration} from '@/components/ConnectDevicesIllustration';
1515
import {ProtocolHeroList} from '@/components/ProtocolHeroList';
@@ -49,7 +49,7 @@ export const metadata = {
4949
<div className="absolute z-40 max-w-6xl mx-auto md:grid md:grid-cols-4 md:gap-4">
5050
<div className="col-span-2 pl-8" style={{ paddingTop: 100 }}>
5151
<h1 className="z-50 text-5xl font-bold font-space-mono leading-tight">
52-
the networking stack for user agency
52+
less net work for networks
5353
</h1>
5454
<h3 className="text-lg font-space-mono mt-3 leading-normal">Iroh is a library for building on direct connections between devices, putting more control in the hands of your users.</h3>
5555
<div className='flex mt-3'>
@@ -89,7 +89,7 @@ export const metadata = {
8989

9090
<section className='max-w-6xl mx-auto border-l border-r border-irohGray-300 dark:border-irohGray-800 md:grid md:grid-cols-4'>
9191
<div className='md:col-span-2 px-10 py-20 md:border-r border-irohGray-300 dark:border-irohGray-800'>
92-
<HammerWrenchCodeIcon className='w-20 h-20' />
92+
<WrenchCodeIcon className='w-16 h-16 mb-8' />
9393
<h3 className='text-3xl font-bold mb-4'>Build your own protocol</h3>
9494
<p className='mb-10 text-irohGray-600 dark:text-irohGray-400'>Don&apos;t see a protocol you need? Build your own! Iroh gives you a reliable foundation for building distributed systems that reach the edge. The rest is up to you.</p>
9595
<Link href="/docs/quickstart" className={clsx(

src/components/FromTheBlog.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function Article({ className, post }) {
2828

2929
export async function FromTheBlog() {
3030
let posts = await getAllPosts()
31-
posts = posts.slice(0, 4)
31+
posts = posts.slice(0, 2)
3232

3333
return (
3434
<div className="w-full md:grid md:grid-cols-4">

src/components/ProtocolHeroList.jsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import iconCarat from '@/images/icons/icon_carat.svg';
88
import iconFaster from '@/images/icons/icon_faster.svg';
99
import iconOpen from '@/images/icons/icon_open.svg';
1010
import iconPlatforms from '@/images/icons/icon_platforms.svg';
11+
import Link from 'next/link';
1112

1213
const icons = {
1314
iconCarat,
@@ -20,6 +21,7 @@ export const ProtocolHeroList = function ProtocolHeroList() {
2021
return (
2122
<div className='md:grid md:grid-cols-4 border-l border-t border-irohGray-300 dark:border-irohGray-800'>
2223
{protocols.map((proto, i) => (
24+
<Link href={`/docs/components/${proto.slug}`} key={i}>
2325
<GlowCard key={i} className='border-r border-b border-irohGray-300 dark:border-irohGray-800 p-5'>
2426
<Image
2527
src={icons[proto.icon]}
@@ -32,10 +34,13 @@ export const ProtocolHeroList = function ProtocolHeroList() {
3234
<p className=''>{proto.tagline}</p>
3335
</div>
3436
</GlowCard>
37+
</Link>
3538
))}
3639
<GlowCard className='border-r border-b border-irohGray-300 dark:border-irohGray-800 p-5'>
37-
<h1 className='text-2xl mb-2 text-irohGray-500'>Browse all protocols</h1>
38-
<ArrowRightIcon className='w-10 h-10' />
40+
<Link href='/docs/components'>
41+
<h1 className='text-2xl mb-2 text-irohGray-500'>Browse all protocols</h1>
42+
<ArrowRightIcon className='w-10 h-10' />
43+
</Link>
3944
</GlowCard>
4045
</div>
4146
)

src/components/UsersShowcase.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export const UsersShowcase = function UsersShowcase() {
8484
<button
8585
key={index}
8686
className={`w-2 h-2 rounded-full ${
87-
index === currentIndex ? 'bg-irohGray-300 dark:bg-irohGray-800' : 'bg-irohGray-300/40 dark:bg-irohGray-800/40'
87+
index === currentIndex ? 'bg-irohGray-600 dark:bg-irohGray-300' : 'bg-irohGray-700/20 dark:bg-irohGray-600/40'
8888
}`}
8989
onClick={() => {
9090
setCurrentIndex(index)

src/components/icons/HammerWrenchCodeIcon.jsx

Lines changed: 0 additions & 52 deletions
This file was deleted.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
import React from 'react';
2+
3+
export const WrenchCodeIcon = ({ className }) => (
4+
<div className={className}>
5+
<WrenchCodeIconLight className='block dark:hidden' />
6+
<WrenchCodeIconDark className='hidden dark:block' />
7+
</div>
8+
)
9+
10+
const WrenchCodeIconLight = ({ className }) => (
11+
<svg className={className} viewBox="0 0 66.14 73.07">
12+
<defs>
13+
<style>{`.wrench-code-dark-1,.wrench-code-dark-2{fill:none;stroke:#3b3b3b;}.wrench-code-dark-2{stroke-miterlimit:10;}`}</style>
14+
</defs>
15+
<path class="wrench-code-dark-1"
16+
d="M4.26,17.53c0-1.09.34-1.99,1.04-2.7.69-.71,1.58-1.06,2.67-1.06h4.67v3.47h-3.33c-.87,0-1.3.48-1.3,1.45v15.42c0,1.09-.35,1.99-1.04,2.7-.69.71-1.6,1.06-2.72,1.06h-.58v.58h.58c1.12,0,2.03.35,2.72,1.06.69.71,1.04,1.61,1.04,2.7v15.42c0,.96.43,1.45,1.3,1.45h3.33v3.47h-4.67c-1.09,0-1.98-.35-2.67-1.06-.69-.71-1.04-1.61-1.04-2.7v-16.63c0-.93-.43-1.4-1.3-1.4H.5v-5.21h2.46c.87,0,1.3-.47,1.3-1.4v-16.63Z" />
17+
<path class="wrench-code-dark-1"
18+
d="M61.89,59.78c0,1.09-.34,1.99-1.04,2.7-.69.71-1.58,1.06-2.67,1.06h-4.67v-3.47h3.33c.87,0,1.3-.48,1.3-1.45v-15.42c0-1.09.35-1.99,1.04-2.7.69-.71,1.6-1.06,2.72-1.06h.58v-.58h-.58c-1.12,0-2.03-.35-2.72-1.06-.69-.71-1.04-1.61-1.04-2.7v-15.42c0-.96-.43-1.45-1.3-1.45h-3.33v-3.47h4.67c1.09,0,1.98.35,2.67,1.06.69.71,1.04,1.61,1.04,2.7v16.63c0,.93.43,1.4,1.3,1.4h2.46v5.21h-2.46c-.87,0-1.3.47-1.3,1.4v16.63Z" />
19+
<rect class="wrench-code-dark-2" x="31.09" y="11.28" width="5.39" height="8.09" rx=".92" ry=".92"
20+
transform="translate(30.66 -21.64) rotate(60.76)" />
21+
<path class="wrench-code-dark-2"
22+
d="M22.1,15.81c.75,2.59,2.39,4.76,4.55,6.35,0,0,3.1,2.52,3.1,7.95v38.41c0,2.23,1.81,4.04,4.04,4.04s4.04-1.81,4.04-4.04V31.78c0-6.46,4.98-11.07,4.98-11.07,1.93-2.15,3.11-4.98,3.11-8.09,0-5.86-4.16-10.75-9.69-11.88-.79-.16-1.61-.25-2.44-.25-.63,0-1.24.06-1.84.15l3.06,5.36s1.47,2.57-1.22,3.92-8.09,4.04-8.09,4.04l-3.6,1.83Z" />
23+
<path class="wrench-code-dark-2"
24+
d="M27.78,12.98s-2,.76-3.17-1.35-2.47-4.75-2.47-4.75c0,0-1.45,2.6-1.23,4.77s1.38,3.78,1.38,3.78l5.49-2.44Z" />
25+
</svg>
26+
);
27+
28+
const WrenchCodeIconDark = ({ className }) => (
29+
<svg className={className} viewBox="0 0 66.14 73.07">
30+
<defs>
31+
<style>{`.wrench-code-light-1{stroke-miterlimit:10;}.wrench-code-light-1,.wrench-code-light-2{fill:none;stroke:#f8f8f8;}`}</style>
32+
</defs>
33+
<path class="wrench-code-light-2"
34+
d="M4.26,17.53c0-1.09.34-1.99,1.04-2.7.69-.71,1.58-1.06,2.67-1.06h4.67v3.47h-3.33c-.87,0-1.3.48-1.3,1.45v15.42c0,1.09-.35,1.99-1.04,2.7-.69.71-1.6,1.06-2.72,1.06h-.58v.58h.58c1.12,0,2.03.35,2.72,1.06.69.71,1.04,1.61,1.04,2.7v15.42c0,.96.43,1.45,1.3,1.45h3.33v3.47h-4.67c-1.09,0-1.98-.35-2.67-1.06-.69-.71-1.04-1.61-1.04-2.7v-16.63c0-.93-.43-1.4-1.3-1.4H.5v-5.21h2.46c.87,0,1.3-.47,1.3-1.4v-16.63Z" />
35+
<path class="wrench-code-light-2"
36+
d="M61.89,59.78c0,1.09-.34,1.99-1.04,2.7-.69.71-1.58,1.06-2.67,1.06h-4.67v-3.47h3.33c.87,0,1.3-.48,1.3-1.45v-15.42c0-1.09.35-1.99,1.04-2.7.69-.71,1.6-1.06,2.72-1.06h.58v-.58h-.58c-1.12,0-2.03-.35-2.72-1.06-.69-.71-1.04-1.61-1.04-2.7v-15.42c0-.96-.43-1.45-1.3-1.45h-3.33v-3.47h4.67c1.09,0,1.98.35,2.67,1.06.69.71,1.04,1.61,1.04,2.7v16.63c0,.93.43,1.4,1.3,1.4h2.46v5.21h-2.46c-.87,0-1.3.47-1.3,1.4v16.63Z" />
37+
<rect class="wrench-code-light-1" x="31.09" y="11.28" width="5.39" height="8.09" rx=".92" ry=".92"
38+
transform="translate(30.66 -21.64) rotate(60.76)" />
39+
<path class="wrench-code-light-1"
40+
d="M22.1,15.81c.75,2.59,2.39,4.76,4.55,6.35,0,0,3.1,2.52,3.1,7.95v38.41c0,2.23,1.81,4.04,4.04,4.04s4.04-1.81,4.04-4.04V31.78c0-6.46,4.98-11.07,4.98-11.07,1.93-2.15,3.11-4.98,3.11-8.09,0-5.86-4.16-10.75-9.69-11.88-.79-.16-1.61-.25-2.44-.25-.63,0-1.24.06-1.84.15l3.06,5.36s1.47,2.57-1.22,3.92-8.09,4.04-8.09,4.04l-3.6,1.83Z" />
41+
<path class="wrench-code-light-1"
42+
d="M27.78,12.98s-2,.76-3.17-1.35-2.47-4.75-2.47-4.75c0,0-1.45,2.6-1.23,4.77s1.38,3.78,1.38,3.78l5.49-2.44Z" />
43+
</svg>
44+
);

src/protocols.js

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,37 @@ export const protocols = [
22
{
33
"icon": "iconOpen",
44
"title": "Blobs",
5-
"tagline": "Resumable, verifiable data transfer"
5+
"tagline": "Resumable, verifiable data transfer",
6+
"slug": "blobs"
67
},
78
{
89
"icon": "iconPlatforms",
910
"title": "Gossip",
10-
"tagline": "Broadcast messages to groups of nodes by topic."
11+
"tagline": "Broadcast messages to groups of nodes by topic.",
12+
"slug": "gossip"
1113
},
1214
// {
1315
// "icon": "iconOpen",
14-
// "title": "DMs",
15-
// "tagline": "Simple node-to-node message passing"
16+
// "title": "DM",
17+
// "tagline": "Simple node-to-node message passing",
18+
// "slug": "dm"
1619
// },
1720
{
1821
"icon": "iconFaster",
1922
"title": "Documents",
20-
"tagline": "Realtime, multiwriter, key-value sync"
23+
"tagline": "Realtime, multiwriter, key-value sync",
24+
"slug": "documents"
2125
},
2226
// {
2327
// "icon": "iconFaster",
2428
// "title": "Willow",
25-
// "tagline": "multiwriter, key-value sync with fine-grained access control"
29+
// "tagline": "multiwriter, key-value sync with fine-grained access control",
30+
// "slug": "willow"
2631
// },
2732
// {
2833
// "icon": "iconFaster",
2934
// "title": "Automerge",
30-
// "tagline": "CRDT-powered collaborative documents"
35+
// "tagline": "CRDT-powered collaborative documents",
36+
// "slug": "automerge"
3137
// }
3238
]

wrench_code_dark.png

1.5 KB
Loading

wrench_code_light.png

1.49 KB
Loading

0 commit comments

Comments
 (0)