style(global): colorful button

This commit is contained in:
hamster1963 2024-11-23 00:12:08 +08:00
parent 70e748f249
commit ce82c67f88
2 changed files with 4 additions and 4 deletions

View File

@ -121,9 +121,9 @@ export default function ServerListClient() {
onClick={() => { onClick={() => {
router.push(`/?global=true`); router.push(`/?global=true`);
}} }}
className="rounded-[50px] cursor-pointer bg-stone-100 p-[10px] transition-all hover:bg-stone-200 dark:hover:bg-stone-700 dark:bg-stone-800" className="rounded-[50px] text-white cursor-pointer [text-shadow:_0_1px_0_rgb(0_0_0_/_20%)] bg-blue-600 hover:bg-blue-500 p-[10px] transition-all shadow-[inset_0_1px_0_rgba(255,255,255,0.2)] hover:shadow-[inset_0_1px_0_rgba(0,0,0,0.2)] "
> >
<GlobeAsiaAustraliaIcon className="size-4" /> <GlobeAsiaAustraliaIcon className="size-[13px]" />
</button> </button>
{getEnv("NEXT_PUBLIC_ShowTag") === "true" && ( {getEnv("NEXT_PUBLIC_ShowTag") === "true" && (
<Switch <Switch

View File

@ -23,9 +23,9 @@ export default function GlobalBackButton() {
onClick={() => { onClick={() => {
router.push(`/`); router.push(`/`);
}} }}
className="rounded-[50px] cursor-pointer w-fit bg-stone-100 p-[10px] transition-all hover:bg-stone-200 dark:hover:bg-stone-700 dark:bg-stone-800" className="rounded-[50px] mt-[1px] w-fit text-white cursor-pointer [text-shadow:_0_1px_0_rgb(0_0_0_/_20%)] bg-green-600 hover:bg-green-500 p-[10px] transition-all shadow-[inset_0_1px_0_rgba(255,255,255,0.2)] hover:shadow-[inset_0_1px_0_rgba(0,0,0,0.2)] "
> >
<ServerStackIcon className="size-4" /> <ServerStackIcon className="size-[13px]" />
</button> </button>
); );
} }