diff --git a/components/Footer.tsx b/components/Footer.tsx index 5d2fe47..e2c90bb 100644 --- a/components/Footer.tsx +++ b/components/Footer.tsx @@ -15,7 +15,7 @@ export function Footer() {
-

Deno

+

Deno

diff --git a/components/Header.tsx b/components/Header.tsx index 8205ce5..3b432ba 100644 --- a/components/Header.tsx +++ b/components/Header.tsx @@ -6,10 +6,10 @@ export function Header(props: { noSubtitle?: boolean }) { logo - + Deno - + by example diff --git a/deno.json b/deno.json index b951d2c..f6a416e 100644 --- a/deno.json +++ b/deno.json @@ -16,8 +16,6 @@ "preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.2.1", "@preact/signals": "https://esm.sh/*@preact/signals@1.2.2", "@preact/signals-core": "https://esm.sh/*@preact/signals-core@1.5.1", - "twind": "https://esm.sh/twind@0.16.19", - "twind/": "https://esm.sh/twind@0.16.19/", "$gfm": "https://deno.land/x/gfm@0.1.28/mod.ts", "$prism": "https://esm.sh/prismjs@1.29.0", "$prism/": "https://esm.sh/prismjs@1.29.0/", diff --git a/fresh.config.ts b/fresh.config.ts index fd48d1b..e1ebe91 100644 --- a/fresh.config.ts +++ b/fresh.config.ts @@ -1,5 +1,5 @@ import { defineConfig } from "$fresh/server.ts"; -import twindPlugin from "$fresh/plugins/twind.ts"; +import twindPlugin from "$fresh/plugins/twindv1.ts"; import twindConfig from "./twind.config.ts"; export default defineConfig({ plugins: [twindPlugin(twindConfig)], diff --git a/islands/CopyButton.tsx b/islands/CopyButton.tsx index 38615a9..5739fef 100644 --- a/islands/CopyButton.tsx +++ b/islands/CopyButton.tsx @@ -8,9 +8,17 @@ function Copy() { fill="none" xmlns="http://www.w3.org/2000/svg" > + + + ); @@ -20,7 +28,7 @@ export default function CopyButton(props: { text: string }) { return (
-

{example.title}

+

+ {example.title} +

Edit @@ -154,14 +156,14 @@ export default function ExamplePage(props: PageProps) {
{example.run && ( <> -

+

Run{" "} this example {" "} locally using the Deno CLI:

-
+                
                   {example.run.startsWith("deno")
                     ? example.run.replace("", url)
                     : "deno run " + example.run.replace("", url)}
@@ -170,7 +172,7 @@ export default function ExamplePage(props: PageProps) {
             )}
             {example.playground && (
               
-

+

Try this example in a Deno Deploy playground:

@@ -192,7 +194,7 @@ export default function ExamplePage(props: PageProps) {