@skalfa/skalfa-app 1.0.3 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/.env.example +8 -16
  2. package/app/auth/edit/page.tsx +1 -1
  3. package/app/auth/login/page.tsx +1 -1
  4. package/app/auth/me/page.tsx +1 -1
  5. package/app/auth/register/page.tsx +1 -1
  6. package/app/auth/verify/page.tsx +1 -1
  7. package/app/dashboard/layout.tsx +2 -2
  8. package/app/dashboard/page.tsx +1 -1
  9. package/app/index.ts +1 -0
  10. package/app/layout.tsx +2 -4
  11. package/app/page.tsx +2 -2
  12. package/bun.lock +7 -2
  13. package/components/index.ts +1 -3
  14. package/package.json +8 -6
  15. package/styles/components.css +1392 -0
  16. package/styles/globals.css +40 -175
  17. package/styles/utilities.css +37 -0
  18. package/tsconfig.json +4 -2
  19. package/utils/commands/skalfa.ts +1 -1
  20. package/components/base.components/accordion/Accordion.component.tsx +0 -82
  21. package/components/base.components/breadcrumb/Breadcrumb.component.tsx +0 -80
  22. package/components/base.components/button/Button.component.tsx +0 -91
  23. package/components/base.components/button/IconButton.component.tsx +0 -88
  24. package/components/base.components/button/button.decorate.ts +0 -82
  25. package/components/base.components/card/AlertCard.component.tsx +0 -69
  26. package/components/base.components/card/Card.component.tsx +0 -25
  27. package/components/base.components/card/DashboardCard.component.tsx +0 -44
  28. package/components/base.components/card/GalleryCard.component.tsx +0 -50
  29. package/components/base.components/card/ProductCard.component.tsx +0 -65
  30. package/components/base.components/card/ProfileCard.component.tsx +0 -71
  31. package/components/base.components/carousel/Carousel.component.tsx +0 -113
  32. package/components/base.components/chip/Chip.component.tsx +0 -39
  33. package/components/base.components/document/DocumentViewer.component.tsx +0 -164
  34. package/components/base.components/document/ExportExcel.component.tsx +0 -340
  35. package/components/base.components/document/ImportExcel.component.tsx +0 -315
  36. package/components/base.components/document/PrintTable.component.tsx +0 -204
  37. package/components/base.components/document/RenderPDF.component.tsx +0 -416
  38. package/components/base.components/index.ts +0 -85
  39. package/components/base.components/input/Checkbox.component.tsx +0 -109
  40. package/components/base.components/input/Input.component.tsx +0 -332
  41. package/components/base.components/input/InputCheckbox.component.tsx +0 -174
  42. package/components/base.components/input/InputCurrency.component.tsx +0 -163
  43. package/components/base.components/input/InputDate.component.tsx +0 -352
  44. package/components/base.components/input/InputDatetime.component.tsx +0 -260
  45. package/components/base.components/input/InputDocument.component.tsx +0 -352
  46. package/components/base.components/input/InputImage.component.tsx +0 -533
  47. package/components/base.components/input/InputMap.component.tsx +0 -318
  48. package/components/base.components/input/InputNumber.component.tsx +0 -192
  49. package/components/base.components/input/InputOtp.component.tsx +0 -169
  50. package/components/base.components/input/InputPassword.component.tsx +0 -236
  51. package/components/base.components/input/InputRadio.component.tsx +0 -175
  52. package/components/base.components/input/InputTime.component.tsx +0 -276
  53. package/components/base.components/input/InputValues.component.tsx +0 -68
  54. package/components/base.components/input/Radio.component.tsx +0 -102
  55. package/components/base.components/input/Select.component.tsx +0 -541
  56. package/components/base.components/modal/BottomSheet.component.tsx +0 -246
  57. package/components/base.components/modal/FloatingPage.component.tsx +0 -104
  58. package/components/base.components/modal/Modal.component.tsx +0 -96
  59. package/components/base.components/modal/ModalConfirm.component.tsx +0 -218
  60. package/components/base.components/modal/Toast.component.tsx +0 -126
  61. package/components/base.components/nav/Bottombar.component.tsx +0 -116
  62. package/components/base.components/nav/Footer.component.tsx +0 -144
  63. package/components/base.components/nav/Headbar.component.tsx +0 -104
  64. package/components/base.components/nav/Navbar.component.tsx +0 -100
  65. package/components/base.components/nav/Sidebar.component.tsx +0 -301
  66. package/components/base.components/nav/Tabbar.component.tsx +0 -60
  67. package/components/base.components/nav/Wizard.component.tsx +0 -73
  68. package/components/base.components/supervision/FormSupervision.component.tsx +0 -434
  69. package/components/base.components/supervision/TableSupervision.component.tsx +0 -697
  70. package/components/base.components/table/ControlBar.component.tsx +0 -497
  71. package/components/base.components/table/FilterComponent.tsx +0 -518
  72. package/components/base.components/table/Pagination.component.tsx +0 -159
  73. package/components/base.components/table/Table.component.tsx +0 -469
  74. package/components/base.components/typography/TypographyArticle.component.tsx +0 -26
  75. package/components/base.components/typography/TypographyColumn.component.tsx +0 -20
  76. package/components/base.components/typography/TypographyContent.component.tsx +0 -20
  77. package/components/base.components/typography/TypographyTips.component.tsx +0 -20
  78. package/components/base.components/wrap/Draggable.component.tsx +0 -303
  79. package/components/base.components/wrap/IDBProvider.tsx +0 -12
  80. package/components/base.components/wrap/Image.component.tsx +0 -10
  81. package/components/base.components/wrap/OutsideClick.component.tsx +0 -48
  82. package/components/base.components/wrap/ScrollContainer.component.tsx +0 -104
  83. package/components/base.components/wrap/ShortcutProvider.tsx +0 -57
  84. package/components/base.components/wrap/Swipe.component.tsx +0 -93
  85. package/components/construct.components/example.tsx +0 -1
  86. package/components/construct.components/index.ts +0 -5
  87. package/components/structure.components/example.tsx +0 -1
  88. package/components/structure.components/index.ts +0 -5
  89. package/schema/idb/app.schema.ts +0 -9
  90. package/schema/index.ts +0 -5
@@ -1,126 +0,0 @@
1
- "use client"
2
-
3
- import { ReactNode, useEffect, useState } from "react";
4
- import { faTimes } from "@fortawesome/free-solid-svg-icons";
5
- import { cn, pcn } from "@utils";
6
- import { IconButtonComponent } from "@components";
7
-
8
-
9
-
10
- type CT = "base" | "backdrop" | "header" | "footer";
11
-
12
- export interface ToastProps {
13
- show: boolean;
14
- onClose: () => void;
15
- title?: string | ReactNode;
16
- children?: any;
17
- footer?: string | ReactNode;
18
-
19
- /** Use custom class with: "backdrop::", "header::", "footer::". */
20
- className?: string;
21
- };
22
-
23
-
24
-
25
- export function ToastComponent({
26
- show,
27
- onClose,
28
- title,
29
- children,
30
- footer,
31
- className = "",
32
- }: ToastProps) {
33
- const [countdown, setCountdown] = useState(5);
34
- const [timerId, setTimerId] = useState<NodeJS.Timeout | null>(null);
35
-
36
- useEffect(() => {
37
- if (show) {
38
- setCountdown(5); // Reset countdown saat toast muncul
39
- const id = setInterval(() => {
40
- setCountdown((prev) => {
41
- if (prev <= 1) {
42
- clearInterval(id);
43
- onClose();
44
- return 0;
45
- }
46
- return prev - 1;
47
- });
48
- }, 1000);
49
- setTimerId(id);
50
- }
51
- return () => {
52
- if (timerId) {
53
- clearInterval(timerId);
54
- }
55
- };
56
- }, [show]);
57
-
58
- const handleMouseEnter = () => {
59
- if (timerId) {
60
- clearInterval(timerId);
61
- setTimerId(null);
62
- }
63
- };
64
-
65
- const handleMouseLeave = () => {
66
- const id = setInterval(() => {
67
- setCountdown((prev) => {
68
- if (prev <= 1) {
69
- clearInterval(id);
70
- onClose();
71
- return 0;
72
- }
73
- return prev - 1;
74
- });
75
- }, 1000);
76
- setTimerId(id);
77
- };
78
-
79
- return (
80
- <>
81
- <div
82
- className={cn(
83
- "toast border-t-4 !border-primary rounded-[6px]",
84
- "w-[calc(100vw-2rem)] md:w-[50vw] max-w-[300px]",
85
- !show && "translate-y-full opacity-0 scale-y-0",
86
- pcn<CT>(className, "base"),
87
- )}
88
- onMouseEnter={handleMouseEnter}
89
- onMouseLeave={handleMouseLeave}
90
- >
91
- {title && (
92
- <div
93
- className={cn(
94
- "pt-2 px-3 flex justify-between items-center text-foreground",
95
- pcn<CT>(className, "header"),
96
- )}
97
- >
98
- <h6 className="font-semibold">{title}</h6>
99
-
100
- <div className="flex gap-2 items-center">
101
- <span className="text-xs text-foreground/50">{countdown}</span>
102
- <IconButtonComponent
103
- icon={faTimes}
104
- variant="simple"
105
- paint="danger"
106
- onClick={() => {
107
- clearInterval(timerId || "");
108
- onClose();
109
- }}
110
- size="sm"
111
- />
112
- </div>
113
- </div>
114
- )}
115
-
116
- {show && children}
117
-
118
- {footer && (
119
- <div className={cn("modal-footer", pcn<CT>(className, "footer"))}>
120
- {show && footer}
121
- </div>
122
- )}
123
- </div>
124
- </>
125
- );
126
- }
@@ -1,116 +0,0 @@
1
- "use client"
2
-
3
- import Link from "next/link";
4
- import { usePathname } from "next/navigation";
5
- import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
6
- import { faClipboard, faCrosshairs, faHome, faSackDollar, faUserCircle } from "@fortawesome/free-solid-svg-icons";
7
- import { cn, pcn, useKeyboardOpen } from "@utils";
8
-
9
-
10
-
11
- export interface BottombarProps {
12
- active ?: string;
13
- className ?: string;
14
- }
15
-
16
-
17
-
18
- export function BottombarComponent({
19
- className = "",
20
- active,
21
- }: BottombarProps) {
22
- const pathname = usePathname();
23
- const isKeyboardOpen = useKeyboardOpen();
24
-
25
- const styles = {
26
- base: cn(
27
- "fixed left-1/2 -translate-x-1/2 w-[96%] max-w-[400px] p-2 px-4 bg-white border rounded-[6px] z-40",
28
- isKeyboardOpen ? "-bottom-60" : "bottom-3",
29
- pcn(className, "base"),
30
- ),
31
- item: "flex justify-center items-center flex-col py-3 rounded-[6px]",
32
- };
33
-
34
- return (
35
- <>
36
- <div className={styles.base}>
37
- <div className="grid grid-cols-5 gap-2 items-center">
38
- <Link href={"/_example/bottombar"}>
39
- <div
40
- className={cn(
41
- styles.item,
42
- (pathname == "/_example/bottombar" || active == "home") &&
43
- "border-b bg-background text-primary",
44
- pcn(className, "item"),
45
- (pathname == "/_example/bottombar" || active == "home") &&
46
- pcn(className, "active"),
47
- )}
48
- >
49
- <FontAwesomeIcon icon={faHome} />
50
- </div>
51
- </Link>
52
-
53
- <Link href={"/"}>
54
- <div
55
- className={cn(
56
- styles.item,
57
- (pathname == "" || active == "home") &&
58
- "border-b bg-background text-primary",
59
- pcn(className, "item"),
60
- (pathname == "" || active == "home") &&
61
- pcn(className, "active"),
62
- )}
63
- >
64
- <FontAwesomeIcon icon={faClipboard} />
65
- </div>
66
- </Link>
67
-
68
- <Link href={"/"}>
69
- <div
70
- className={cn(
71
- styles.item,
72
- (pathname == "" || active == "home") &&
73
- "border-b bg-background text-primary",
74
- pcn(className, "item"),
75
- (pathname == "" || active == "home") &&
76
- pcn(className, "active"),
77
- )}
78
- >
79
- <FontAwesomeIcon icon={faCrosshairs} />
80
- </div>
81
- </Link>
82
-
83
- <Link href={"/"}>
84
- <div
85
- className={cn(
86
- styles.item,
87
- (pathname == "" || active == "home") &&
88
- "border-b bg-background text-primary",
89
- pcn(className, "item"),
90
- (pathname == "" || active == "home") &&
91
- pcn(className, "active"),
92
- )}
93
- >
94
- <FontAwesomeIcon icon={faSackDollar} />
95
- </div>
96
- </Link>
97
-
98
- <Link href={"/"}>
99
- <div
100
- className={cn(
101
- styles.item,
102
- (pathname == "" || active == "home") &&
103
- "border-b bg-background text-primary",
104
- pcn(className, "item"),
105
- (pathname == "" || active == "home") &&
106
- pcn(className, "active"),
107
- )}
108
- >
109
- <FontAwesomeIcon icon={faUserCircle} />
110
- </div>
111
- </Link>
112
- </div>
113
- </div>
114
- </>
115
- );
116
- }
@@ -1,144 +0,0 @@
1
- import Link from "next/link";
2
- import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
3
- import { faFacebook, faGithub, faInstagram, faLinkedin } from "@fortawesome/free-brands-svg-icons";
4
-
5
-
6
-
7
- export function FooterComponent() {
8
- return (
9
- <>
10
- <div className="bg-white/50 backdrop-blur-md border-t-2 pt-[100px] pb-16">
11
- <div className="container mx-auto px-4 lg:px-52 text-center">
12
- <h1 className="text-4xl font-extrabold italic whitespace-nowrap">
13
- Next Light v.3
14
- </h1>
15
- <p className="text-lg font-semibold text-light-foreground">
16
- The Magic Starter Template
17
- </p>
18
- </div>
19
-
20
- <div className="flex flex-col justify-center items-center mt-16 gap-4 px-4">
21
- <a
22
- href="https://maps.app.goo.gl/TY2QDjFPm3RfwjUq6"
23
- className="font-medium cursor-pointer hover:border-b border-foreground"
24
- >
25
- Soekarno Hatta No 27 C, Ponorogo, Jawa Timur, Indonesia
26
- </a>
27
- <a
28
- href="https://wa.me/6281456140392"
29
- className="font-medium cursor-pointer hover:border-b border-foreground"
30
- >
31
- +62 888888888888
32
- </a>
33
- <a
34
- href="mailto:sejedigital@gmail.com"
35
- className="font-medium cursor-pointer hover:border-b border-foreground"
36
- >
37
- example@gmail.com
38
- </a>
39
- <p className="font-medium text-center">
40
- 24 / 7 Online Suport | Senin - Sabtu ( 09.00 s/d 17.00 )
41
- </p>
42
-
43
- <div className="flex mt-10 gap-4 justify-center">
44
- <a href="">
45
- <FontAwesomeIcon
46
- icon={faFacebook}
47
- className="text-2xl hover:scale-110"
48
- />
49
- </a>
50
- <a href="">
51
- <FontAwesomeIcon
52
- icon={faLinkedin}
53
- className="text-2xl hover:scale-110"
54
- />
55
- </a>
56
- <a href="https://github.com/SE-JE">
57
- <FontAwesomeIcon
58
- icon={faGithub}
59
- className="text-2xl hover:scale-110"
60
- />
61
- </a>
62
- <a href="https://www.instagram.com/seje.digital/">
63
- <FontAwesomeIcon
64
- icon={faInstagram}
65
- className="text-2xl hover:scale-110"
66
- />
67
- </a>
68
- </div>
69
- </div>
70
-
71
- <div className="container mx-auto px-6 bg-white border-y mt-20">
72
- <div className="grid grid-cols-1 md:grid-cols-3 gap-16 md:gap-4 py-12 px-12">
73
- <nav aria-label="Footer navigation">
74
- <h6 className="text-lg font-semibold text-foreground mb-4">
75
- Link Menu
76
- </h6>
77
-
78
- <div className="flex flex-col gap-2">
79
- <Link href="" className="text-light-foreground hover:underline">
80
- Klik Link Menu 1
81
- </Link>
82
- <Link href="" className="text-light-foreground hover:underline">
83
- Klik Link Menu 1
84
- </Link>
85
- <Link href="" className="text-light-foreground hover:underline">
86
- Klik Link Menu 1
87
- </Link>
88
- <Link href="" className="text-light-foreground hover:underline">
89
- Klik Link Menu 1
90
- </Link>
91
- </div>
92
- </nav>
93
- <nav aria-label="Footer navigation">
94
- <h6 className="text-lg font-semibold text-foreground mb-4">
95
- Link Menu
96
- </h6>
97
-
98
- <div className="flex flex-col gap-2">
99
- <Link href="" className="text-light-foreground hover:underline">
100
- Klik Link Menu 1
101
- </Link>
102
- <Link href="" className="text-light-foreground hover:underline">
103
- Klik Link Menu 1
104
- </Link>
105
- <Link href="" className="text-light-foreground hover:underline">
106
- Klik Link Menu 1
107
- </Link>
108
- <Link href="" className="text-light-foreground hover:underline">
109
- Klik Link Menu 1
110
- </Link>
111
- </div>
112
- </nav>
113
- <nav aria-label="Footer navigation">
114
- <h6 className="text-lg font-semibold text-foreground mb-4">
115
- Link Menu
116
- </h6>
117
-
118
- <div className="flex flex-col gap-2">
119
- <Link href="" className="text-light-foreground hover:underline">
120
- Klik Link Menu 1
121
- </Link>
122
- <Link href="" className="text-light-foreground hover:underline">
123
- Klik Link Menu 1
124
- </Link>
125
- <Link href="" className="text-light-foreground hover:underline">
126
- Klik Link Menu 1
127
- </Link>
128
- <Link href="" className="text-light-foreground hover:underline">
129
- Klik Link Menu 1
130
- </Link>
131
- </div>
132
- </nav>
133
- </div>
134
- </div>
135
- <p className="text-lg text-center font-semibold mt-16">
136
- Copyright &copy;
137
- <a href="https://sejedigital.com/" className="ml-1" target="_blank">
138
- sejedigital.com 2020 - 2025
139
- </a>
140
- </p>
141
- </div>
142
- </>
143
- );
144
- }
@@ -1,104 +0,0 @@
1
- "use client"
2
-
3
- import { ReactNode, useState } from "react";
4
- import { useRouter } from "next/navigation";
5
- import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
6
- import { faBell, faHistory, faPowerOff, faUser, faUserCog } from "@fortawesome/free-solid-svg-icons";
7
- import { OutsideClickComponent } from "@components";
8
- import { cn, auth } from "@utils";
9
-
10
-
11
-
12
- export interface HeadbarProps {
13
- children ?: ReactNode;
14
- className ?: string;
15
- };
16
-
17
-
18
-
19
-
20
- export function HeadbarComponent({
21
- children,
22
- className = "",
23
- }: HeadbarProps) {
24
- const router = useRouter();
25
- const [profile, setProfile] = useState(false);
26
-
27
- const styles = {
28
- base: cn(
29
- "p-1 flex items-center justify-between bg-white rounded-[6px] relative z-30 select-none border px-4 py-2",
30
- className,
31
- ),
32
- };
33
-
34
- return (
35
- <div className={styles.base}>
36
- <div className="w-full ">{children}</div>
37
-
38
- <div className="flex gap-2 w-max items-center">
39
- <div className="p-2 text-light-foreground hover:text-foreground cursor-pointer">
40
- <FontAwesomeIcon icon={faHistory} />
41
- </div>
42
- <div className="p-2 text-light-foreground hover:text-foreground cursor-pointer">
43
- <FontAwesomeIcon icon={faBell} />
44
- </div>
45
- <div className="h-5 w-[1px] bg-foreground mx-2.5"></div>
46
- <div
47
- className="flex items-center gap-2.5 px-4 cursor-pointer -ml-2 text-light-foreground hover:text-foreground"
48
- onClick={() => setProfile(!profile)}
49
- >
50
- <div className="h-10 bg-background rounded-full aspect-square overflow-hidden flex justify-center items-center">
51
- <FontAwesomeIcon icon={faUser} />
52
- </div>
53
-
54
- <div className="hidden lg:block w-max max-w-[110px]">
55
- <h6 className="text-sm font-semibold line-clamp-1">Jhon Duck</h6>
56
- <h6 className="-mt-0.5 text-xs font-medium line-clamp-1">Admin</h6>
57
- </div>
58
- </div>
59
- </div>
60
-
61
- <OutsideClickComponent onOutsideClick={() => setProfile(false)}>
62
- <div
63
- className={`absolute right-0 top-[70px] rounded-[6px] border overflow-hidden bg-white z-30 ${
64
- profile ? "scale-y-100" : "scale-y-0"
65
- }`}
66
- >
67
- <div className="flex items-center gap-4 p-4 rounded-b-[4px] border-b">
68
- <div className="h-14 bg-background border rounded-full aspect-square overflow-hidden flex justify-center items-center">
69
- <FontAwesomeIcon
70
- icon={faUser}
71
- className="text-2xl text-light-foreground"
72
- />
73
- </div>
74
- <div className="pr-5 w-[160px]">
75
- <h6 className="text-lg font-bold line-clamp-1">Jhon Duck</h6>
76
- <h6 className="text-xs -mt-1 font-semibold line-clamp-1">
77
- Admin
78
- </h6>
79
- </div>
80
- </div>
81
-
82
- <div className="py-4">
83
- <div className="px-6 py-2 flex gap-4 hover:bg-background/40 hover:border-y items-center cursor-pointer">
84
- <FontAwesomeIcon icon={faUserCog} />
85
- <label className="cursor-pointer font-semibold">
86
- Edit Profile
87
- </label>
88
- </div>
89
- <div
90
- className="px-6 py-2 flex gap-4 hover:bg-background/40 hover:border-y items-center cursor-pointer text-danger"
91
- onClick={() => {
92
- auth.deleteAccessToken();
93
- router.push("/");
94
- }}
95
- >
96
- <FontAwesomeIcon icon={faPowerOff} />
97
- <label className="cursor-pointer font-semibold">Keluar</label>
98
- </div>
99
- </div>
100
- </div>
101
- </OutsideClickComponent>
102
- </div>
103
- );
104
- }
@@ -1,100 +0,0 @@
1
- import Link from "next/link";
2
- import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
3
- import { faBell, faHistory, faStore, faUser } from "@fortawesome/free-solid-svg-icons";
4
- import { ButtonComponent } from "@components";
5
-
6
-
7
-
8
- export function NavbarComponent() {
9
- return (
10
- <>
11
- <div className="relative py-2.5 bg-background rounded-[6px] z-40 hidden lg:block">
12
- <div className="container flex items-center justify-between px-4 mx-auto">
13
- <h2 className="text-base">
14
- Ini untuk
15
- <a href="" className="font-medium text-primary">
16
- <FontAwesomeIcon icon={faStore} className="ml-2 mr-1" /> Special
17
- Link
18
- </a>
19
- </h2>
20
-
21
- <div className="flex gap-12">
22
- <Link href={""}>
23
- <div className="px-4 text-sm text-gray-500">Tentang</div>
24
- </Link>
25
- <Link href={""}>
26
- <div className="px-4 text-sm text-gray-500">Artikel</div>
27
- </Link>
28
- <Link href={""}>
29
- <div className="px-4 text-sm text-gray-500">Bantuan</div>
30
- </Link>
31
- </div>
32
- </div>
33
- </div>
34
- <div className="bg-white border-y sticky top-0 z-40">
35
- <div className="container flex items-center justify-between px-4 py-2.5 gap-8 mx-auto relative">
36
- <Link href="/">
37
- <div className="w-max">
38
- <h1 className="text-lg font-extrabold italic whitespace-nowrap">
39
- Next Light v.3
40
- </h1>
41
- <p className="text-xs -mt-1 font-semibold text-light-foreground">
42
- The Magic Starter Template
43
- </p>
44
- </div>
45
- </Link>
46
-
47
- <div className="flex gap-12 items-center">
48
- <div className="flex gap-12">
49
- <Link href={""}>
50
- <div className="px-4 text-base text-gray-500">Tentang</div>
51
- </Link>
52
- <Link href={""}>
53
- <div className="px-4 text-base text-gray-500">Artikel</div>
54
- </Link>
55
- <Link href={""}>
56
- <div className="px-4 text-base text-gray-500">Bantuan</div>
57
- </Link>
58
- </div>
59
-
60
- <div className="w-full flex items-center gap-8">
61
- {!false ? (
62
- <div className="flex w-full gap-4 justify-end">
63
- <ButtonComponent
64
- label={"Masuk"}
65
- size={"sm"}
66
- onClick={() => {}}
67
- />
68
- <ButtonComponent
69
- label={"Daftar"}
70
- size={"sm"}
71
- variant="light"
72
- onClick={() => {}}
73
- />
74
- </div>
75
- ) : (
76
- <div className="flex gap-2 w-max items-center">
77
- <div className="p-2 text-light-foreground hover:text-foreground cursor-pointer">
78
- <FontAwesomeIcon icon={faHistory} />
79
- </div>
80
- <div className="p-2 text-light-foreground hover:text-foreground cursor-pointer">
81
- <FontAwesomeIcon icon={faBell} />
82
- </div>
83
- <div className="h-5 w-[1px] bg-foreground mx-2.5"></div>
84
- <div
85
- className="flex items-center gap-2.5 px-4 cursor-pointer -ml-2 text-light-foreground hover:text-foreground"
86
- onClick={() => {}}
87
- >
88
- <div className="h-10 bg-background rounded-full aspect-square overflow-hidden flex justify-center items-center">
89
- <FontAwesomeIcon icon={faUser} />
90
- </div>
91
- </div>
92
- </div>
93
- )}
94
- </div>
95
- </div>
96
- </div>
97
- </div>
98
- </>
99
- );
100
- }