Skip to content

Commit

Permalink
buttonfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
royallyscrewd committed Aug 5, 2024
1 parent 7e92182 commit a1f8b4a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/components/Button.astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
type Prop = {
href?: string;
variant?: "primary" | "secondary" | "disabled";
variant?: "primary" | "secondary" | "disabled" | "border";
className?: string;
version?: "V2" | "V1";
tooltip?: string;
Expand All @@ -20,6 +20,8 @@ const { href = "#", variant = "primary", className, tooltip } = Astro.props;
"bg-purple-700 hover:bg-purple-700/80 saturate-50",
variant === "disabled" &&
"cursor-not-allowed active:pointer-events-none bg-gray-800",
variant === "border" &&
"bg-none border-solid border-2 border-purple-700 hover:border-purple-700 text-purple-700 font-normal",
className,
]}
>
Expand Down
6 changes: 3 additions & 3 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ import link from "@/assets/link.svg";
</Button>
<Button
href="https://selbat.datai.disco.unimib.it/"
variant="primary"
variant="border"
>
Try s-elBat <svg
xmlns="http://www.w3.org/2000/svg"
Expand Down Expand Up @@ -233,7 +233,7 @@ import link from "@/assets/link.svg";
</Button>
<Button
href="https://mantistable.datai.disco.unimib.it/"
variant="primary"
variant="border"
>
Try MantisTable UI<svg
xmlns="http://www.w3.org/2000/svg"
Expand Down Expand Up @@ -337,7 +337,7 @@ import link from "@/assets/link.svg";
</Button>
<Button
href="https://lamapi.datai.disco.unimib.it/"
variant="primary"
variant="border"
>
Try LamAPI<svg
xmlns="http://www.w3.org/2000/svg"
Expand Down

0 comments on commit a1f8b4a

Please sign in to comment.