deno.land / x / fresh@1.1.1 / www / routes / showcase.tsx

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
import { Head } from "$fresh/runtime.ts";import Projects, { Project } from "../components/Projects.tsx";import DocsHeader from "../components/DocsHeader.tsx";import Footer from "../components/Footer.tsx";import NavigationBar from "../components/NavigationBar.tsx";import projects from "../data/showcase.json" assert { type: "json" };
export default function ShowcasePage() { return ( <> <Head> <title>Showcase | fresh</title> </Head> <DocsHeader /> <NavigationBar active="/showcase" />
<div class="flex flex-col min-h-screen"> <div class="flex-1"> <Showcase items={projects} />
<section class="max-w-screen-lg mx-auto my-16 px(4 sm:6 md:8) space-y-4"> <h2 class="text(3xl gray-600) font-bold"> Badge </h2>
<p class="text-gray-600"> You can add these stylish badges to your project's README to show that it was built with Fresh. </p>
<img width="197" height="37" src="https://fresh.deno.dev/fresh-badge.svg" alt="Made with Fresh" />
<img width="197" height="37" src="https://fresh.deno.dev/fresh-badge-dark.svg" alt="Made with Fresh" />
<p> <a href="https://github.com/denoland/fresh#badges" class="text-blue-600 hover:underline focus:underline" > Usage instructions </a> </p> </section>
<img src="/illustration/deno-plush.svg" alt="a deno plush is holding a lemon" class="mx-auto w-48 mt-16" /> </div>
<Footer /> </div> </> );}
function Showcase({ items }: { items: Project[] }) { return ( <section class="max-w-screen-lg mx-auto my-16 px(4 sm:6 md:8) space-y-4"> <h2 class="text(3xl gray-600) font-bold"> Showcase </h2> <p class="text-gray-600"> Below is a selection of projects that have been built with Fresh.{" "} <a href="https://github.com/denoland/fresh/blob/main/www/data/showcase.json" class="text-blue-600 hover:underline" > Add yours! </a> </p> <Projects items={items} class="gap-16" /> </section> );}
fresh

Version Info

Tagged at
a year ago