Component changes, added components dev area / showcase ( Playground / Components )
This commit is contained in:
parent
6b5deae129
commit
ca6fd65f96
4 changed files with 92 additions and 22 deletions
|
|
@ -1,9 +1,17 @@
|
|||
export default function Hyperlink({name, link}: {name: string; link: string}) {
|
||||
return (
|
||||
<div className="bg-slate-400 dark:bg-slate-800 hover:bg-slate-600 font-medium py-2 px-4 rounded-lg shadow-md transition duration-200 ease-in-out">
|
||||
<a href={`https://${link}`} className="block">
|
||||
<h1 className="font-semibold text-slate-800dark:text-slate-400 text-lg">{name}</h1>
|
||||
</a>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
export default function Hyperlink({
|
||||
name,
|
||||
link,
|
||||
}: {
|
||||
name: string;
|
||||
link: string;
|
||||
}) {
|
||||
return (
|
||||
<div className="bg-slate-400 dark:bg-slate-800 hover:bg-slate-600 font-medium py-2 px-4 rounded-lg shadow-md transition duration-200 ease-in-out">
|
||||
<a href={`https://${link}`} className="block">
|
||||
<h1 className="font-semibold text-slate-800dark:text-slate-400 text-lg">
|
||||
{name}
|
||||
</h1>
|
||||
</a>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,17 @@
|
|||
export default function Referencelink({name, link}: {name: string; link: string}) {
|
||||
return (
|
||||
<div className="bg-slate-400 dark:bg-slate-800 hover:bg-slate-600 font-medium py-2 px-4 rounded-lg shadow-md transition duration-200 ease-in-out">
|
||||
<a href={`${link}`} className="block">
|
||||
<h1 className="font-semibold text-slate-800dark:text-slate-400 text-lg">{name}</h1>
|
||||
</a>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
export default function Referencelink({
|
||||
name,
|
||||
link,
|
||||
}: {
|
||||
name: string;
|
||||
link: string;
|
||||
}) {
|
||||
return (
|
||||
<div className="bg-slate-400 dark:bg-slate-800 hover:bg-slate-600 font-medium py-2 px-4 rounded-lg shadow-md transition duration-200 ease-in-out">
|
||||
<a href={`${link}`} className="block">
|
||||
<h1 className="font-semibold text-slate-800dark:text-slate-400 text-lg">
|
||||
{name}
|
||||
</h1>
|
||||
</a>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,19 @@
|
|||
import React from "react";
|
||||
|
||||
export default function RoundedContainer({children, slim = true}: {children: React.ReactNode, slim?: boolean}) {
|
||||
export default function RoundedContainer({
|
||||
children,
|
||||
slim = true,
|
||||
direction = "column",
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
slim?: boolean;
|
||||
direction?: "column" | "row";
|
||||
}) {
|
||||
return (
|
||||
<div className={`flex ${slim ? "max-w-6xl" : "max-w-3xl"} rounded-4xl flex-col items-center py-8 px-8 bg-gray-400 dark:bg-slate-900 sm:items-start`}>
|
||||
<div
|
||||
className={`flex ${slim ? "max-w-6xl" : "max-w-3xl"} rounded-4xl ${direction == "column" ? "flex-col" : "flex-row"} items-center py-8 px-8 bg-gray-400 dark:bg-slate-900 sm:items-start`}
|
||||
>
|
||||
{children}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue