mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 16:23:06 +10:00
Reverted Button
This commit is contained in:
@ -14,12 +14,9 @@ export default function Custom500() {
|
|||||||
<div className="px-6 py-48 mx-auto text-center max-w-7xl sm:py-40 lg:px-8">
|
<div className="px-6 py-48 mx-auto text-center max-w-7xl sm:py-40 lg:px-8">
|
||||||
<h1 className="inline text-3xl font-bold tracking-tight sm:text-5xl">
|
<h1 className="inline text-3xl font-bold tracking-tight sm:text-5xl">
|
||||||
500
|
500
|
||||||
<span className="px-3 font-thin">
|
<span className="px-3 font-thin">|</span>
|
||||||
|
|
|
||||||
</span>
|
|
||||||
</h1>
|
</h1>
|
||||||
<p className="inline text-base font-semibold leading-8 sm:text-2xl">
|
<p className="inline text-base font-semibold leading-8 sm:text-2xl">
|
||||||
|
|
||||||
Something went wrong.
|
Something went wrong.
|
||||||
</p>
|
</p>
|
||||||
<div className="flex justify-center mt-10">
|
<div className="flex justify-center mt-10">
|
||||||
|
|||||||
@ -3,14 +3,13 @@ import Link from "next/link";
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
export function Button(props: any) {
|
export function Button(props: any) {
|
||||||
const isLink = typeof props.href !== "undefined";
|
const isLink = typeof props.href !== "undefined" && !props.disabled;
|
||||||
const { color = "primary", icon, disabled, onClick } = props;
|
const { color = "primary", icon, disabled, onClick } = props;
|
||||||
const baseStyles =
|
const baseStyles =
|
||||||
"inline-flex items-center justify-center min-w-[80px] rounded-2xl border border-transparent px-4 py-3 text-sm font-medium shadow-sm disabled:bg-gray-300 transition-all duration-300 ";
|
"inline-flex items-center justify-center min-w-[80px] rounded-md border border-transparent px-4 py-2 text-sm font-medium shadow-sm disabled:bg-gray-300";
|
||||||
const primaryStyles =
|
const primaryStyles = "text-white bg-neon hover:bg-neon-dark";
|
||||||
"text-gray-900 bg-neon hover:bg-neon-dark ";
|
|
||||||
const secondaryStyles =
|
const secondaryStyles =
|
||||||
"border-brown/30 bg-white text-brown hover:bg-brown hover:text-white hover:shadow-xl shadow-md hover:shadow-3xl shadow-gray-500/20 hover:shadow-slate-600/30 hover:-translate-y-1 ";
|
"border-gray-300 bg-white text-gray-700 hover:bg-gray-50";
|
||||||
|
|
||||||
return isLink ? (
|
return isLink ? (
|
||||||
<Link
|
<Link
|
||||||
@ -36,7 +35,7 @@ export function Button(props: any) {
|
|||||||
) : (
|
) : (
|
||||||
<button
|
<button
|
||||||
id={props.id}
|
id={props.id}
|
||||||
type="button"
|
type={props.type || "button"}
|
||||||
className={classNames(
|
className={classNames(
|
||||||
baseStyles,
|
baseStyles,
|
||||||
color === "primary" ? primaryStyles : secondaryStyles,
|
color === "primary" ? primaryStyles : secondaryStyles,
|
||||||
|
|||||||
Reference in New Issue
Block a user