www: refresh home page (#2418)

Overhauls the Fresh homepage with a new design, new demos, and new
sections highlighting Fresh's capabilities.

---------

Co-authored-by: Marvin Hagemeister <marvin@deno.com>
This commit is contained in:
Josh Collinsworth
2024-05-17 16:08:55 +02:00
committed by GitHub
co-authored by Marvin Hagemeister
parent 3b68a5d455
commit e8d1a68b58
55 changed files with 1206 additions and 346 deletions
+4 -4
View File
@@ -26,17 +26,17 @@ export default function CopyArea(props: { code: string }) {
}
const timer = setTimeout(() => {
copied.value = false;
}, 2000);
}, 1000);
return () => clearTimeout(timer);
}, [copied.value]);
return (
<div class="bg-gray-800 rounded text-white flex items-center min-w-0">
<pre class="overflow-x-auto flex-1 py-2 px-4">
<div class="bg-slate-800 rounded text-green-100 flex items-center min-w-0 overflow-x-auto">
<pre class="overflow-x-auto w-full flex-1 px-6 py-4">
{props.code}
</pre>
<div class="relative my-2 mr-4">
<div class="relative my-2 mr-4 sm:mr-6">
<div
class={`hidden transition ease-in-out absolute pointer-events-none bg-gray-900 text-white p-2 -top-1/3 left-1/2 transform -translate-x-1/2 -translate-y-full box-border rounded opacity-0 ${
copied.value && "block opacity-100"