about, contact, blog

This commit is contained in:
Surjith S M
2022-11-07 22:01:03 +05:30
parent 7e64dc87e6
commit d40120e7a8
17 changed files with 950 additions and 80 deletions

View File

@@ -1,13 +1,22 @@
---
interface Props {
size?: "md" | "lg";
style?: "outline" | "primary" | "inverted";
class?: string;
[x: string]: any;
}
const {
size = "lg",
size = "md",
style = "primary",
block,
class: className,
...rest
} = Astro.props;
const sizes = {
lg: "px-5 py-2.5",
md: "px-5 py-2.5",
lg: "px-6 py-3",
};
const styles = {
@@ -21,6 +30,7 @@ const styles = {
{...rest}
class:list={[
"rounded text-center transition focus-visible:ring-2 ring-offset-2 ring-gray-200",
block && "w-full",
sizes[size],
styles[style],
className,