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,19 @@
|
||||
import { JSX } from "preact";
|
||||
|
||||
interface DemoBoxProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
||||
flip?: boolean;
|
||||
}
|
||||
|
||||
export function DemoBox(props: DemoBoxProps) {
|
||||
const outerFlip = props.flip ? "-skew-y-2 -skew-x-3" : "skew-y-2 skew-x-3";
|
||||
const innerFlip = props.flip ? "skew-y-2 skew-x-3" : "-skew-y-2 -skew-x-3";
|
||||
return (
|
||||
<div
|
||||
class={`bg-gradient-to-br font-medium from-blue-200 via-green-300 to-yellow-200 p-8 py-12 text-center items-center flex justify-center ${outerFlip}`}
|
||||
>
|
||||
<div class={`w-full ${innerFlip}`}>
|
||||
{props.children}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user