Skip to content

Commit 0e3e8d2

Browse files
More improvements
1 parent 54456b3 commit 0e3e8d2

4 files changed

Lines changed: 66 additions & 8 deletions

File tree

‎app/navs/primary.tsx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,19 +75,19 @@ export function PrimaryNavigation({
7575
{makeNavItems}
7676
<li role="separator" data-y="1" />
7777
<li>
78-
<NavLink href="/4-function-of">{"More than the view"}</NavLink>
78+
<NavLink href="/4-why-not">{"More than the view"}</NavLink>
7979
</li>
8080
<li>
81-
<NavLink href="/4-javascript-everywhere">
81+
<NavLink href="/4-benefits">
8282
{"JavaScript’s benefits"}
8383
</NavLink>
8484
</li>
8585
<li>
86-
<NavLink href="/5-libraries">{"Open source libraries"}</NavLink>
86+
<NavLink href="/4-libraries">{"Open source libraries"}</NavLink>
8787
</li>
8888
<li role="separator" data-y="1" />
8989
<li>
90-
<NavLink href="/5-thanks">{"Thanks"}</NavLink>
90+
<NavLink href="/4-thanks">{"Thanks"}</NavLink>
9191
</li>
9292
</ul>
9393
</nav>
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ export default function LibrariesPage() {
2222
<h2>Open Source Libraries</h2>
2323
<nav data-text="1">
2424
<ul {...Y(1)}>
25-
<li><a href="https://github.com/RoyalIcing/yieldparser">yieldparser:</a> Parser components</li>
26-
<li><a href="https://github.com/RoyalIcing/yieldmarkup">yieldmarkup:</a> Async HTML components</li>
27-
<li><a href="https://github.com/RoyalIcing/yieldmachine">yieldmachine:</a> Define state machines with generator functions</li>
28-
<li><a href="https://github.com/RoyalIcing/yieldpattern">yieldpattern:</a> Pattern matching in vanilla JavaScript with generator functions</li>
25+
<li><a href="https://github.com/RoyalIcing/yieldparser" style={{ color: "#F59E0B" }}>RoyalIcing/yieldparser:</a> Parse strings using composable components.</li>
26+
<li><a href="https://github.com/RoyalIcing/yieldmarkup" style={{ color: "#A78BFA" }}>RoyalIcing/yieldmarkup:</a> Async HTML components.</li>
27+
<li><a href="https://github.com/RoyalIcing/yieldmachine" style={{ color: "#10B981" }}>RoyalIcing/yieldmachine:</a> Define state machines with generator functions.</li>
28+
<li><a href="https://github.com/RoyalIcing/yieldpattern" style={{ color: "#EC4899" }}>RoyalIcing/yieldpattern:</a> Pattern matching in vanilla JavaScript with generator functions.</li>
2929
</ul>
3030
</nav>
3131

‎app/routes/4-why-not.tsx‎

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
import type { MetaFunction, LinksFunction, LoaderFunction } from "remix";
2+
import { Y } from "../view/structure";
3+
4+
export let meta: MetaFunction = () => {
5+
return {
6+
title: "Open Source Libraries: JavaScript Regenerated",
7+
description: "Generator Component libraries you can install today",
8+
};
9+
};
10+
11+
export let links: LinksFunction = () => {
12+
return [];
13+
};
14+
15+
export let loader: LoaderFunction = async () => {
16+
return {};
17+
};
18+
19+
export default function LibrariesPage() {
20+
return (
21+
<main data-measure="center">
22+
<h2>React popularised:</h2>
23+
<nav data-text="1">
24+
<ul {...Y(1)}>
25+
<li>
26+
<code>{"route = f(url)"}</code>
27+
</li>
28+
</ul>
29+
</nav>
30+
<h2>Why don’t we have?</h2>
31+
<nav data-text="1">
32+
<ul {...Y(1)}>
33+
<li>
34+
<code>{"route = f(url)"}</code>
35+
</li>
36+
<li>
37+
<code>{"apiData = f(route)"}</code>
38+
</li>
39+
<li>
40+
<code>{"apiRequest = f(form)"}</code>
41+
</li>
42+
<li>
43+
<code>{"state = f(events)"}</code>
44+
</li>
45+
<li>
46+
<code>{"cssVariables = f(tokens)"}</code>
47+
</li>
48+
<li>
49+
<code>{"cssRules = f(selector)"}</code>
50+
</li>
51+
<li>
52+
<code>{"localizedText = f(key, values)"}</code>
53+
</li>
54+
</ul>
55+
</nav>
56+
</main>
57+
);
58+
}

0 commit comments

Comments
 (0)