-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Manuel Bichler
committed
Jan 24, 2023
1 parent
ab190a3
commit a07ef01
Showing
27 changed files
with
728 additions
and
1,172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
declare global { | ||
interface Window { | ||
ethereum?: import("ethers").providers.ExternalProvider; | ||
} | ||
} | ||
export {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<browserconfig> | ||
<msapplication> | ||
<tile> | ||
<square150x150logo src="/mstile-150x150.png"/> | ||
<TileColor>#da532c</TileColor> | ||
</tile> | ||
</msapplication> | ||
</browserconfig> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"name": "", | ||
"short_name": "", | ||
"icons": [ | ||
{ | ||
"src": "/android-chrome-72x72.png", | ||
"sizes": "72x72", | ||
"type": "image/png" | ||
} | ||
], | ||
"theme_color": "#ffffff", | ||
"background_color": "#ffffff", | ||
"display": "standalone" | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import { classNames } from "@/utils/classNames"; | ||
import * as React from "react"; | ||
import { twMerge } from "tailwind-merge"; | ||
|
||
const variants = { | ||
primary: "bg-indigo-600 text-white hover:bg-indigo-700 ", | ||
white: "border border-gray-300 hover:bg-gray-50 text-gray-700", | ||
}; | ||
|
||
const sizes = { | ||
md: "py-2 px-4 text-sm", | ||
lg: "py-2 px-4 text-base", | ||
xl: "py-3 px-6 text-base", | ||
}; | ||
|
||
type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & { | ||
variant?: keyof typeof variants; | ||
size?: keyof typeof sizes; | ||
isLoading?: boolean; | ||
}; | ||
|
||
export const Button = React.forwardRef<HTMLButtonElement, ButtonProps>( | ||
( | ||
{ | ||
type = "button", | ||
className = "", | ||
variant = "primary", | ||
size = "md", | ||
isLoading = false, | ||
...props | ||
}, | ||
ref | ||
) => { | ||
const clNames = classNames( | ||
"flex justify-center items-center disabled:opacity-70 disabled:cursor-not-allowed rounded-md shadow-sm font-medium focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2", | ||
variants[variant], | ||
sizes[size] | ||
); | ||
const mergedClassNames = twMerge(clNames, className); | ||
return ( | ||
<button ref={ref} type={type} className={mergedClassNames} {...props}> | ||
{/* {isLoading && <Spinner size="sm" className="text-current" />} */} | ||
<span className="mx-2">{props.children}</span> | ||
</button> | ||
); | ||
} | ||
); | ||
|
||
Button.displayName = "Button"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
a07ef01
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
labio – ./
labio.vercel.app
labio-mani.vercel.app
labio-git-main-mani.vercel.app