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,37 @@
|
||||
import { JSX } from "preact";
|
||||
|
||||
interface CodeWindowProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
||||
name?: string;
|
||||
}
|
||||
|
||||
export function CodeWindow(props: CodeWindowProps) {
|
||||
return (
|
||||
<div
|
||||
{...props}
|
||||
class={`rounded-lg bg-slate-700 overflow-hidden w-full max-w-full [&>*]:rounded-t-none ${
|
||||
props.class ?? ""
|
||||
}`}
|
||||
style={props.style}
|
||||
>
|
||||
<div class="flex items-stretch justify-start">
|
||||
<div class="p-4 flex items-center">
|
||||
<svg
|
||||
width="41"
|
||||
height="10"
|
||||
viewBox="0 0 41 10"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<ellipse cx="20.9388" cy="5" rx="4.99155" ry="5" fill="#FFBD2D" />
|
||||
<ellipse cx="5.96421" cy="5" rx="4.99155" ry="5" fill="#FF5F56" />
|
||||
<ellipse cx="35.9134" cy="5" rx="4.99155" ry="5" fill="#26C940" />
|
||||
</svg>
|
||||
</div>
|
||||
<div class="p-4 w-full leading-none text-slate-400 text-base font-mono">
|
||||
{props.name ?? ""}
|
||||
</div>
|
||||
</div>
|
||||
{props.children}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user