@@ -1,4 +1,4 @@
|
||||
import { FancyLink } from "$fresh/www/components/FancyLink.tsx";
|
||||
import { FancyLink } from "../FancyLink.tsx";
|
||||
|
||||
export function CTA() {
|
||||
return (
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { JSX } from "preact";
|
||||
import type { JSX } from "preact";
|
||||
|
||||
interface DemoBoxProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
||||
flip?: boolean;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
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";
|
||||
import { PageSection } from "../PageSection.tsx";
|
||||
import { FancyLink } from "../FancyLink.tsx";
|
||||
import { SideBySide } from "../SideBySide.tsx";
|
||||
import { SectionHeading } from "../homepage/SectionHeading.tsx";
|
||||
|
||||
export function DenoSection() {
|
||||
return (
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { JSX } from "preact";
|
||||
import type { JSX } from "preact";
|
||||
|
||||
export function ExampleArrow(
|
||||
props: JSX.HTMLAttributes<HTMLDivElement>,
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { PageSection } from "$fresh/www/components/PageSection.tsx";
|
||||
import { SideBySide } from "$fresh/www/components/SideBySide.tsx";
|
||||
import { CodeWindow } from "$fresh/www/components/CodeWindow.tsx";
|
||||
import { CodeBlock } from "$fresh/www/components/CodeBlock.tsx";
|
||||
import { SectionHeading } from "$fresh/www/components/homepage/SectionHeading.tsx";
|
||||
import { DemoBox } from "$fresh/www/components/homepage/DemoBox.tsx";
|
||||
import { ExampleArrow } from "$fresh/www/components/homepage/ExampleArrow.tsx";
|
||||
import { FancyLink } from "$fresh/www/components/FancyLink.tsx";
|
||||
import { PageSection } from "../PageSection.tsx";
|
||||
import { SideBySide } from "../SideBySide.tsx";
|
||||
import { CodeWindow } from "../CodeWindow.tsx";
|
||||
import { CodeBlock } from "../CodeBlock.tsx";
|
||||
import { SectionHeading } from "../homepage/SectionHeading.tsx";
|
||||
import { DemoBox } from "../homepage/DemoBox.tsx";
|
||||
import { ExampleArrow } from "../homepage/ExampleArrow.tsx";
|
||||
import { FancyLink } from "../FancyLink.tsx";
|
||||
import { FormSubmitDemo } from "../../islands/FormSubmitDemo.tsx";
|
||||
|
||||
const routingCode = `import { Handlers } from "$fresh/server.ts";
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
import { PageSection } from "$fresh/www/components/PageSection.tsx";
|
||||
import CopyArea from "../../islands/CopyArea.tsx";
|
||||
import { FancyLink } from "$fresh/www/components/FancyLink.tsx";
|
||||
import LemonDrop from "$fresh/www/islands/LemonDrop.tsx";
|
||||
import LemonTop from "$fresh/www/islands/LemonTop.tsx";
|
||||
import LemonBottom from "$fresh/www/islands/LemonBottom.tsx";
|
||||
import { FancyLink } from "../../components/FancyLink.tsx";
|
||||
import LemonTop from "../../islands/LemonTop.tsx";
|
||||
import LemonBottom from "../../islands/LemonBottom.tsx";
|
||||
|
||||
export function Hero(props: { origin: string }) {
|
||||
return (
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import Counter from "$fresh/www/islands/Counter.tsx";
|
||||
import { CodeBlock } from "$fresh/www/components/CodeBlock.tsx";
|
||||
import { CodeWindow } from "$fresh/www/components/CodeWindow.tsx";
|
||||
import { PageSection } from "$fresh/www/components/PageSection.tsx";
|
||||
import { SideBySide } from "$fresh/www/components/SideBySide.tsx";
|
||||
import { SectionHeading } from "$fresh/www/components/homepage/SectionHeading.tsx";
|
||||
import { DemoBox } from "$fresh/www/components/homepage/DemoBox.tsx";
|
||||
import { ExampleArrow } from "$fresh/www/components/homepage/ExampleArrow.tsx";
|
||||
import { FancyLink } from "$fresh/www/components/FancyLink.tsx";
|
||||
import Counter from "../../islands/Counter.tsx";
|
||||
import { CodeBlock } from "../../components/CodeBlock.tsx";
|
||||
import { CodeWindow } from "../../components/CodeWindow.tsx";
|
||||
import { PageSection } from "../../components/PageSection.tsx";
|
||||
import { SideBySide } from "../../components/SideBySide.tsx";
|
||||
import { SectionHeading } from "../../components/homepage/SectionHeading.tsx";
|
||||
import { DemoBox } from "../../components/homepage/DemoBox.tsx";
|
||||
import { ExampleArrow } from "../../components/homepage/ExampleArrow.tsx";
|
||||
import { FancyLink } from "../../components/FancyLink.tsx";
|
||||
|
||||
const islandCode = `import { useSignal } from "@preact/signals";
|
||||
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
import Counter from "$fresh/www/islands/Counter.tsx";
|
||||
import { CodeBlock } from "$fresh/www/components/CodeBlock.tsx";
|
||||
import { CodeWindow } from "$fresh/www/components/CodeWindow.tsx";
|
||||
import { PageSection } from "$fresh/www/components/PageSection.tsx";
|
||||
import { SideBySide } from "$fresh/www/components/SideBySide.tsx";
|
||||
import { SectionHeading } from "$fresh/www/components/homepage/SectionHeading.tsx";
|
||||
import { DemoBox } from "$fresh/www/components/homepage/DemoBox.tsx";
|
||||
import { ExampleArrow } from "$fresh/www/components/homepage/ExampleArrow.tsx";
|
||||
import { RecipeDemo } from "$fresh/www/components/homepage/RecipeDemo.tsx";
|
||||
import { FancyLink } from "$fresh/www/components/FancyLink.tsx";
|
||||
import { CodeBlock } from "../../components/CodeBlock.tsx";
|
||||
import { CodeWindow } from "../../components/CodeWindow.tsx";
|
||||
import { PageSection } from "../../components/PageSection.tsx";
|
||||
import { SideBySide } from "../../components/SideBySide.tsx";
|
||||
import { SectionHeading } from "../../components/homepage/SectionHeading.tsx";
|
||||
import { DemoBox } from "../../components/homepage/DemoBox.tsx";
|
||||
import { ExampleArrow } from "../../components/homepage/ExampleArrow.tsx";
|
||||
import { RecipeDemo } from "../../components/homepage/RecipeDemo.tsx";
|
||||
import { FancyLink } from "../../components/FancyLink.tsx";
|
||||
|
||||
const islandCode = `import { Partial } from "$fresh/runtime.ts";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Partial } from "$fresh/runtime.ts";
|
||||
import { Partial } from "@fresh/core/runtime";
|
||||
|
||||
export const RecipeDemo = () => (
|
||||
<div
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { PageSection } from "$fresh/www/components/PageSection.tsx";
|
||||
import { SideBySide } from "$fresh/www/components/SideBySide.tsx";
|
||||
import { CodeWindow } from "$fresh/www/components/CodeWindow.tsx";
|
||||
import { CodeBlock } from "$fresh/www/components/CodeBlock.tsx";
|
||||
import { SectionHeading } from "$fresh/www/components/homepage/SectionHeading.tsx";
|
||||
import { DemoBox } from "$fresh/www/components/homepage/DemoBox.tsx";
|
||||
import { ExampleArrow } from "$fresh/www/components/homepage/ExampleArrow.tsx";
|
||||
import { PageSection } from "../../components/PageSection.tsx";
|
||||
import { SideBySide } from "../../components/SideBySide.tsx";
|
||||
import { CodeWindow } from "../../components/CodeWindow.tsx";
|
||||
import { CodeBlock } from "../../components/CodeBlock.tsx";
|
||||
import { SectionHeading } from "../../components/homepage/SectionHeading.tsx";
|
||||
import { DemoBox } from "../../components/homepage/DemoBox.tsx";
|
||||
import { ExampleArrow } from "../../components/homepage/ExampleArrow.tsx";
|
||||
|
||||
const serverCode = `export default function HomePage() {
|
||||
const time = new Date().toLocaleString();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ComponentChildren } from "preact";
|
||||
import type { ComponentChildren } from "preact";
|
||||
|
||||
export function SectionHeading(
|
||||
{ children }: { children: ComponentChildren },
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { PageSection } from "$fresh/www/components/PageSection.tsx";
|
||||
import { PageSection } from "../../components/PageSection.tsx";
|
||||
|
||||
export function Simple() {
|
||||
return (
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { PageSection } from "$fresh/www/components/PageSection.tsx";
|
||||
import { FancyLink } from "$fresh/www/components/FancyLink.tsx";
|
||||
import { DemoBox } from "$fresh/www/components/homepage/DemoBox.tsx";
|
||||
import { PageSection } from "../../components/PageSection.tsx";
|
||||
import { FancyLink } from "../../components/FancyLink.tsx";
|
||||
import { DemoBox } from "../../components/homepage/DemoBox.tsx";
|
||||
|
||||
export function SocialProof() {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user