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:
co-authored by
Marvin Hagemeister
parent
3b68a5d455
commit
e8d1a68b58
@@ -0,0 +1,22 @@
|
||||
import { PageProps } from "$fresh/server.ts";
|
||||
import { Head } from "$fresh/runtime.ts";
|
||||
import Header from "$fresh/www/components/Header.tsx";
|
||||
|
||||
export default function Layout({ Component, state }: PageProps) {
|
||||
return (
|
||||
<>
|
||||
<Head>
|
||||
<meta name="robots" content="noindex" />
|
||||
</Head>
|
||||
<Header active="" title="" />
|
||||
|
||||
<div class="w-full max-w-screen-xl px-4">
|
||||
<Component />
|
||||
<p class="mt-16">
|
||||
This route is used only for demo purposes;{" "}
|
||||
<a href="/" class="underline">see the home page</a>.
|
||||
</p>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
import { Partial } from "$fresh/runtime.ts";
|
||||
|
||||
export const LemonHoneyTea = () => (
|
||||
<Partial name="recipe">
|
||||
<h2 class="mb-2 font-extrabold">Lemon-honey tea</h2>
|
||||
<ul>
|
||||
<li>1 cup boiling water</li>
|
||||
<li>¼ tsp black tea</li>
|
||||
<li>2 tsp honey</li>
|
||||
<li>1 tsp lemon juice</li>
|
||||
<li>Lemon peel</li>
|
||||
</ul>
|
||||
</Partial>
|
||||
);
|
||||
|
||||
export default LemonHoneyTea;
|
||||
@@ -0,0 +1,16 @@
|
||||
import { Head, Partial } from "$fresh/runtime.ts";
|
||||
|
||||
export const Lemonade = () => (
|
||||
<Partial name="recipe">
|
||||
<h2 class="mb-2 font-extrabold">Lemonade</h2>
|
||||
<ul>
|
||||
<li>1 ¾ cups white sugar</li>
|
||||
<li>1 cup water</li>
|
||||
<li>9 lemons</li>
|
||||
<li>7 cups ice water</li>
|
||||
<li>Ice</li>
|
||||
</ul>
|
||||
</Partial>
|
||||
);
|
||||
|
||||
export default Lemonade;
|
||||
@@ -0,0 +1,17 @@
|
||||
import { Partial } from "$fresh/runtime.ts";
|
||||
|
||||
export const LemonDrop = () => (
|
||||
<Partial name="recipe">
|
||||
<h2 class="mb-2 font-extrabold">Lemondrop Martini</h2>
|
||||
<ul>
|
||||
<li>2 oz vodka</li>
|
||||
<li>3/4 oz triple sec</li>
|
||||
<li>
|
||||
1 oz fresh lemon juice
|
||||
</li>
|
||||
<li>3/4 oz simple syrup</li>
|
||||
</ul>
|
||||
</Partial>
|
||||
);
|
||||
|
||||
export default LemonDrop;
|
||||
Reference in New Issue
Block a user