feat: refresh landing page for Fresh 2.3 (#3775)
- Update HelloBar to announce Fresh 2.3 with feature callouts
(WebSockets, View Transitions, Temporal API)
- Rework hero section: new headline ("The framework so simple, you
already know it"), descriptive subtitle, moved CTA to left
- Remove old Simple section, add "Take a tour of Fresh" heading before
showcase
- Add new showcase sections: View Transitions, API Routes/Handlers,
WebSockets, `<Head>` element, OpenTelemetry
- Fix broken Deco showcase image (missing `/showcase/` directory)
- Fix syntax highlighting in Simple section (was using raw `<pre>`
instead of Prism)
- Update RenderingSection to use Temporal API instead of Date API
- Fix cursor styles on Forms and Partials interactive demos
- Move WebSocket docs from Examples to Advanced in TOC
- Densify all showcase sections: smaller headings, code blocks, icons,
demo boxes, arrows, and tighter spacing
---------
Co-authored-by: Josh Collinsworth <joshuajcollinsworth@gmail.com>
This commit is contained in:
co-authored by
Josh Collinsworth
parent
d16172e420
commit
cb6d02d2eb
+13
-6
@@ -9,8 +9,8 @@ import { IslandsSection } from "../components/homepage/IslandsSection.tsx";
|
||||
import { PartialsSection } from "../components/homepage/PartialsSection.tsx";
|
||||
import { RenderingSection } from "../components/homepage/RenderingSection.tsx";
|
||||
import { FormsSection } from "../components/homepage/FormsSection.tsx";
|
||||
import { Simple } from "../components/homepage/Simple.tsx";
|
||||
import { SocialProof } from "../components/homepage/SocialProof.tsx";
|
||||
import { MoreFeatures } from "../components/homepage/MoreFeatures.tsx";
|
||||
import { DenoSection } from "../components/homepage/DenoSection.tsx";
|
||||
import { define } from "../utils/state.ts";
|
||||
|
||||
@@ -56,11 +56,14 @@ export default define.page<typeof handler>(function MainPage() {
|
||||
</div>
|
||||
<div class="flex flex-col -mt-20 relative">
|
||||
<Hero />
|
||||
<Simple />
|
||||
<h2 class="text-3xl sm:text-4xl md:text-5xl text-gray-600 font-extrabold text-center mt-8 md:mt-12 lg:mt-16 px-4 italic">
|
||||
Take a tour of Fresh
|
||||
</h2>
|
||||
<RenderingSection />
|
||||
<IslandsSection />
|
||||
<FormsSection />
|
||||
<PartialsSection />
|
||||
<MoreFeatures />
|
||||
<SocialProof />
|
||||
<DenoSection />
|
||||
<CTA />
|
||||
@@ -73,11 +76,15 @@ export default define.page<typeof handler>(function MainPage() {
|
||||
function HelloBar() {
|
||||
return (
|
||||
<a
|
||||
class="bg-gradient-to-r from-blue-200 to-yellow-200 via-green-300 text-black border-b border-green-400 p-4 text-center group"
|
||||
href="https://deno.com/blog/fresh-and-vite"
|
||||
class="bg-gradient-to-r from-blue-200 to-yellow-200 via-green-300 text-black border-b border-green-400 px-4 py-3 text-center group flex flex-col sm:flex-row items-center justify-center gap-1 sm:gap-3"
|
||||
href="https://deno.com/blog/fresh-2.3"
|
||||
>
|
||||
Fresh 2 <b>released with Vite</b>{" "}
|
||||
<span class="group-hover:underline">→</span>
|
||||
<span class="font-bold">Fresh 2.3 is here!</span>
|
||||
<span class="hidden sm:inline">—</span>
|
||||
<span class="text-sm sm:text-base">
|
||||
WebSockets, View Transitions, Temporal API, and more{" "}
|
||||
<span class="group-hover:underline">→</span>
|
||||
</span>
|
||||
</a>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user