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
+34
View File
@@ -0,0 +1,34 @@
import { PageSection } from "$fresh/www/components/PageSection.tsx";
import { FancyLink } from "$fresh/www/components/FancyLink.tsx";
import { SideBySide } from "$fresh/www/components/SideBySide.tsx";
import { SectionHeading } from "$fresh/www/components/homepage/SectionHeading.tsx";
export function DenoSection() {
return (
<PageSection>
<SideBySide reverseOnDesktop={true}>
<img
src="/illustration/lemon-squash.svg"
class="w-full h-auto mx-auto max-w-[24rem] mt-8 mb-4"
alt="Deno is drinking Fresh lemon squash"
/>
<div class="flex flex-col gap-4">
<SectionHeading>
Built on Deno
</SectionHeading>
<p>
Deno is the next evolution of server-side JavaScript, with stronger
security, a robust built-in toolchain, and zero-config TypeScript
support. (It's faster than Node, too.)
</p>
<FancyLink
href="https://deno.com"
class="mt-4"
>
Learn more about Deno
</FancyLink>
</div>
</SideBySide>
</PageSection>
);
}