add Fresh Components (#872)
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
import { ComponentChildren } from "preact";
|
||||
import LemonIcon from "https://deno.land/x/tabler_icons_tsx@0.0.1/tsx/lemon-2.tsx";
|
||||
import BrandGithub from "https://deno.land/x/tabler_icons_tsx@0.0.1/tsx/brand-github.tsx";
|
||||
type Props = {
|
||||
children: ComponentChildren;
|
||||
};
|
||||
|
||||
export default function Footer({ children }: Props) {
|
||||
const menus = [
|
||||
{
|
||||
title: "Documentation",
|
||||
children: [
|
||||
{ name: "Getting Started", href: "#" },
|
||||
{ name: "Guide", href: "#" },
|
||||
{ name: "API", href: "#" },
|
||||
{ name: "Showcase", href: "#" },
|
||||
{ name: "Pricing", href: "#" },
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Community",
|
||||
children: [
|
||||
{ name: "Forum", href: "#" },
|
||||
{ name: "Discord", href: "#" },
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
return (
|
||||
<div class="bg-white flex w-full max-w-screen-lg gap-16 px-8 py-8 text-sm">
|
||||
<div class="flex-1">
|
||||
<div class="flex items-center gap-1">
|
||||
<LemonIcon class="inline-block" />
|
||||
<div class="font-bold text-2xl">
|
||||
Fresh
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-gray-500">
|
||||
Full Stack Framework
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{menus.map((item) => (
|
||||
<div class="mb-4" key={item.title}>
|
||||
<div class="font-bold">{item.title}</div>
|
||||
<ul class="mt-2">
|
||||
{item.children.map((child) => (
|
||||
<li class="mt-2" key={child.name}>
|
||||
<a
|
||||
class="text-gray-500 hover:text-gray-700"
|
||||
href={child.href}
|
||||
>
|
||||
{child.name}
|
||||
</a>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
))}
|
||||
|
||||
<div class="text-gray-500 space-y-2">
|
||||
<div class="text-xs">
|
||||
Copyright © 2020 DenoLand<br />
|
||||
All right reserved.
|
||||
</div>
|
||||
|
||||
<a
|
||||
href="https://github.com/denoland/fresh"
|
||||
class="inline-block hover:text-black"
|
||||
>
|
||||
<BrandGithub />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user