diff --git a/src/components/Tabs/index.tsx b/src/components/Tabs/index.tsx
index 54535a9..ebccb18 100644
--- a/src/components/Tabs/index.tsx
+++ b/src/components/Tabs/index.tsx
@@ -87,7 +87,7 @@ export default function Tabs({
threshold ? '-translate-y-[calc(100%+12rem)]' : ''
)}
>
diff --git a/src/components/Titlebar/index.tsx b/src/components/Titlebar/index.tsx
index 60b4dfb..65fa2a0 100644
--- a/src/components/Titlebar/index.tsx
+++ b/src/components/Titlebar/index.tsx
@@ -2,15 +2,18 @@ import { cn } from '@/lib/utils'
export function Titlebar({
children,
- className
+ className,
+ hideBottomBorder = false
}: {
children?: React.ReactNode
className?: string
+ hideBottomBorder?: boolean
}) {
return (
diff --git a/src/index.css b/src/index.css
index 9adc64c..29d9379 100644
--- a/src/index.css
+++ b/src/index.css
@@ -50,6 +50,14 @@
pointer-events: none;
}
+ .scrollbar-hide {
+ -ms-overflow-style: none; /* Internet Explorer 10+ */
+ scrollbar-width: none; /* Firefox */
+ }
+ .scrollbar-hide::-webkit-scrollbar {
+ display: none; /* Safari and Chrome */
+ }
+
@media (hover: hover) and (pointer: fine) {
.clickable:hover {
background-color: hsl(var(--muted) / 0.5);
@@ -70,6 +78,7 @@
}
:root {
+ --surface-background: 0 0% 98%;
--background: 0 0% 100%;
--foreground: 240 10% 3.9%;
--card: 0 0% 100%;
@@ -79,11 +88,11 @@
--primary: 259 43% 56%;
--primary-hover: 259 43% 65%;
--primary-foreground: 0 0% 98%;
- --secondary: 240 4.8% 95.9%;
+ --secondary: 240 4.8% 94%;
--secondary-foreground: 240 5.9% 10%;
- --muted: 240 4.8% 95.9%;
+ --muted: 240 4.8% 94%;
--muted-foreground: 240 3.8% 46.1%;
- --accent: 240 4.8% 95.9%;
+ --accent: 240 4.8% 94%;
--accent-foreground: 240 5.9% 10%;
--destructive: 0 84.2% 60.2%;
--destructive-foreground: 0 0% 98%;
@@ -98,11 +107,12 @@
--radius: 0.5rem;
}
.dark {
- --background: 240 10% 3.9%;
+ --surface-background: 240 10% 3.9%;
+ --background: 0 0% 9%;
--foreground: 0 0% 98%;
- --card: 240 10% 3.9%;
+ --card: 0 0% 9%;
--card-foreground: 0 0% 98%;
- --popover: 240 10% 3.9%;
+ --popover: 0 0% 9%;
--popover-foreground: 0 0% 98%;
--primary: 259 43% 56%;
--primary-hover: 259 43% 65%;
diff --git a/src/layouts/PrimaryPageLayout/index.tsx b/src/layouts/PrimaryPageLayout/index.tsx
index c30b019..6b9a9b2 100644
--- a/src/layouts/PrimaryPageLayout/index.tsx
+++ b/src/layouts/PrimaryPageLayout/index.tsx
@@ -1,4 +1,3 @@
-import BottomNavigationBar from '@/components/BottomNavigationBar'
import ScrollToTopButton from '@/components/ScrollToTopButton'
import { Titlebar } from '@/components/Titlebar'
import { ScrollArea } from '@/components/ui/scroll-area'
@@ -13,12 +12,14 @@ const PrimaryPageLayout = forwardRef(
children,
titlebar,
pageName,
- displayScrollToTopButton = false
+ displayScrollToTopButton = false,
+ hideTitlebarBottomBorder = false
}: {
children?: React.ReactNode
titlebar: React.ReactNode
pageName: TPrimaryPageName
displayScrollToTopButton?: boolean
+ hideTitlebarBottomBorder?: boolean
},
ref
) => {
@@ -69,9 +70,10 @@ const PrimaryPageLayout = forwardRef(
paddingBottom: 'calc(env(safe-area-inset-bottom) + 3rem)'
}}
>
-
{titlebar}
+
+ {titlebar}
+
{children}
-
{displayScrollToTopButton &&
}
@@ -81,7 +83,7 @@ const PrimaryPageLayout = forwardRef(
return (
@@ -101,6 +103,16 @@ export type TPrimaryPageLayoutRef = {
scrollToTop: () => void
}
-function PrimaryPageTitlebar({ children }: { children?: React.ReactNode }) {
- return {children}
+function PrimaryPageTitlebar({
+ children,
+ hideBottomBorder = false
+}: {
+ children?: React.ReactNode
+ hideBottomBorder?: boolean
+}) {
+ return (
+
+ {children}
+
+ )
}
diff --git a/src/layouts/SecondaryPageLayout/index.tsx b/src/layouts/SecondaryPageLayout/index.tsx
index e1c325e..bc90f4f 100644
--- a/src/layouts/SecondaryPageLayout/index.tsx
+++ b/src/layouts/SecondaryPageLayout/index.tsx
@@ -1,5 +1,4 @@
import BackButton from '@/components/BackButton'
-import BottomNavigationBar from '@/components/BottomNavigationBar'
import ScrollToTopButton from '@/components/ScrollToTopButton'
import { Titlebar } from '@/components/Titlebar'
import { ScrollArea } from '@/components/ui/scroll-area'
@@ -16,6 +15,7 @@ const SecondaryPageLayout = forwardRef(
title,
controls,
hideBackButton = false,
+ hideTitlebarBottomBorder = false,
displayScrollToTopButton = false
}: {
children?: React.ReactNode
@@ -23,6 +23,7 @@ const SecondaryPageLayout = forwardRef(
title?: React.ReactNode
controls?: React.ReactNode
hideBackButton?: boolean
+ hideTitlebarBottomBorder?: boolean
displayScrollToTopButton?: boolean
},
ref
@@ -65,9 +66,9 @@ const SecondaryPageLayout = forwardRef(
title={title}
controls={controls}
hideBackButton={hideBackButton}
+ hideBottomBorder={hideTitlebarBottomBorder}
/>
{children}
-
}
@@ -77,7 +78,7 @@ const SecondaryPageLayout = forwardRef(
return (