fix: update button styles and variants for consistency across forms

This commit is contained in:
Ardeman
2025-03-11 05:51:16 +08:00
parent 7f7526783f
commit a45a6fb87e
8 changed files with 22 additions and 17 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ export const FormForgotPassword = () => {
</div>
{/* Tombol Masuk */}
<Button className="mt-5 w-full rounded-md bg-[#2E2F7C] py-2 text-white transition hover:bg-blue-800">
<Button className="mt-5 w-full rounded-md py-2">
Reset Password
</Button>
</form>
+1 -3
View File
@@ -87,7 +87,6 @@ export const FormLogin = () => {
setIsLoginOpen(false)
setIsForgetOpen(true)
}}
className="font-semibold text-[#2E2F7C]"
variant="link"
size="fit"
>
@@ -98,7 +97,7 @@ export const FormLogin = () => {
<Button
disabled={disabled}
type="submit"
className="w-full rounded-md bg-[#2E2F7C] py-2 text-white transition hover:bg-blue-800"
className="w-full rounded-md py-2"
>
Masuk
</Button>
@@ -113,7 +112,6 @@ export const FormLogin = () => {
setIsLoginOpen(false)
setIsRegisterOpen(true)
}}
className="font-semibold text-[#2E2F7C]"
variant="link"
size="fit"
>
+1 -2
View File
@@ -122,7 +122,7 @@ export const FormRegister = () => {
<Button
disabled={disabled}
type="submit"
className="w-full rounded-md bg-[#2E2F7C] py-2 text-white transition hover:bg-blue-800"
className="w-full rounded-md py-2"
>
Daftar
</Button>
@@ -137,7 +137,6 @@ export const FormRegister = () => {
setIsLoginOpen(true)
setIsRegisterOpen(false)
}}
className="font-semibold text-[#2E2F7C]"
variant="link"
size="fit"
>
+1 -1
View File
@@ -79,7 +79,7 @@ export default function FormSubscription() {
<Button
disabled={disabled}
type="submit"
className="mt-5 w-full rounded-md bg-[#2E2F7C] py-2 text-white transition hover:bg-blue-800"
className="mt-5 w-full rounded-md py-2"
>
Lanjutkan
</Button>
+2 -2
View File
@@ -71,7 +71,7 @@ export default function HeaderMenuMobile(properties: THeaderMenuMobile) {
>
<Button
variant="newsSecondary"
className="w-full bg-white px-[35px] py-3 text-center text-[#2E2F7C] sm:hidden"
className="w-full px-[35px] py-3 text-center sm:hidden"
type="submit"
>
Logout
@@ -80,7 +80,7 @@ export default function HeaderMenuMobile(properties: THeaderMenuMobile) {
) : (
<Button
variant="newsSecondary"
className="w-full bg-white px-[35px] py-3 text-center text-[#2E2F7C] sm:hidden"
className="w-full px-[35px] py-3 text-center sm:hidden"
onClick={() => {
setIsMenuOpen(false)
setIsLoginOpen(true)
+6 -3
View File
@@ -1,5 +1,6 @@
import { Link, useRouteLoaderData } from 'react-router'
import { Button } from '~/components/ui/button'
import HeaderMenuMobile from '~/layouts/news/header-menu-mobile'
import type { loader } from '~/routes/_news'
@@ -17,15 +18,17 @@ export const HeaderMenu = () => {
<>
<div className="hidden h-[60px] items-center justify-between bg-[#2E2F7C] text-xl font-medium text-white sm:flex">
{menu?.map((item) => (
<Link
<Button
as={Link}
key={item.id}
to={`/category/${item.code}`}
size="fit"
className={
'flex h-full items-center justify-center border-r border-white px-[35px]'
'flex h-full items-center justify-center border-r border-white px-[35px] text-xl'
}
>
{item.name}
</Link>
</Button>
))}
<HeaderSearch />
</div>