.
This commit is contained in:
1 parent
214469eb31
commit
ac402cc5a4
5 files changed
+14
-12
No files matched your search
+1
-1
@@ -68,7 +68,7 @@ export default function App() {
|
|||||||
{/* Mobile overlay */}
|
{/* Mobile overlay */}
|
||||||
{isSidebarOpen && currentPage === 'documentation' && (
|
{isSidebarOpen && currentPage === 'documentation' && (
|
||||||
<div
|
<div
|
||||||
className="fixed inset-0 bg-black bg-opacity-50 z-30 lg:hidden"
|
className="fixed inset-0 bg-black opacity-50 z-30 lg:hidden"
|
||||||
onClick={toggleSidebar}
|
onClick={toggleSidebar}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ export function Header({ toggleSidebar, theme, toggleTheme, navigateToHome, navi
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<header className={`border-b sticky top-0 z-20 ${
|
<header className={`border-b sticky top-0 z-50 ${
|
||||||
theme === 'dark'
|
theme === 'dark'
|
||||||
? 'bg-[#0d0d0d] border-gray-800'
|
? 'bg-[#0d0d0d] border-gray-800'
|
||||||
: 'bg-white border-gray-200'
|
: 'bg-white border-gray-200'
|
||||||
@@ -34,8 +34,8 @@ export function Header({ toggleSidebar, theme, toggleTheme, navigateToHome, navi
|
|||||||
<div className="flex items-center gap-2 sm:gap-4 min-w-0">
|
<div className="flex items-center gap-2 sm:gap-4 min-w-0">
|
||||||
<button
|
<button
|
||||||
onClick={toggleSidebar}
|
onClick={toggleSidebar}
|
||||||
className={`p-2 hover:bg-opacity-10 rounded lg:hidden shrink-0 ${
|
className={`p-2 rounded lg:hidden shrink-0 ${
|
||||||
theme === 'dark' ? 'hover:bg-gray-800' : 'hover:bg-gray-100'
|
theme === 'dark' ? 'hover:bg-gray-800/10' : 'hover:bg-gray-100/10'
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
<Menu className="w-5 h-5" />
|
<Menu className="w-5 h-5" />
|
||||||
@@ -72,8 +72,8 @@ export function Header({ toggleSidebar, theme, toggleTheme, navigateToHome, navi
|
|||||||
<div className="flex items-center gap-2 sm:gap-4 flex-shrink-0">
|
<div className="flex items-center gap-2 sm:gap-4 flex-shrink-0">
|
||||||
<button
|
<button
|
||||||
onClick={toggleTheme}
|
onClick={toggleTheme}
|
||||||
className={`p-2 rounded hover:bg-opacity-10 ${
|
className={`p-2 rounded ${
|
||||||
theme === 'dark' ? 'hover:bg-white' : 'hover:bg-gray-900'
|
theme === 'dark' ? 'hover:bg-white/10' : 'hover:bg-gray-900/10'
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
{theme === 'dark' ? (
|
{theme === 'dark' ? (
|
||||||
@@ -83,9 +83,9 @@ export function Header({ toggleSidebar, theme, toggleTheme, navigateToHome, navi
|
|||||||
)}
|
)}
|
||||||
</button>
|
</button>
|
||||||
<Search className="w-4 h-4 text-gray-400 hidden sm:block" />
|
<Search className="w-4 h-4 text-gray-400 hidden sm:block" />
|
||||||
<button className="text-xs sm:text-sm text-blue-600 hover:text-blue-500">
|
{/* <button className="text-xs sm:text-sm text-blue-600 hover:text-blue-500">
|
||||||
Sign in
|
Sign in
|
||||||
</button>
|
</button> */}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ export function MainContent({ theme, articleSlug }: MainContentProps) {
|
|||||||
}`}>
|
}`}>
|
||||||
<a href="#" className="hover:text-blue-600">Learn</a>
|
<a href="#" className="hover:text-blue-600">Learn</a>
|
||||||
<ChevronRight className="w-3 h-3 sm:w-4 sm:h-4" />
|
<ChevronRight className="w-3 h-3 sm:w-4 sm:h-4" />
|
||||||
<span>{article.title}</span>
|
<span>{article.title?.slice(0, 10)}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Action buttons */}
|
{/* Action buttons */}
|
||||||
|
|||||||
@@ -82,8 +82,8 @@ export function Sidebar({ isOpen, toggleSidebar, theme, taxonomyId, onArticleCli
|
|||||||
</h2>
|
</h2>
|
||||||
<button
|
<button
|
||||||
onClick={toggleSidebar}
|
onClick={toggleSidebar}
|
||||||
className={`p-1 rounded hover:bg-opacity-10 ${
|
className={`p-1 rounded ${
|
||||||
theme === 'dark' ? 'hover:bg-white' : 'hover:bg-gray-900'
|
theme === 'dark' ? 'hover:bg-white/10' : 'hover:bg-gray-900/10'
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
<X className="w-5 h-5" />
|
<X className="w-5 h-5" />
|
||||||
|
|||||||
+3
-1
@@ -1,7 +1,9 @@
|
|||||||
@import "tailwindcss";
|
@import "tailwindcss";
|
||||||
@layer theme {
|
@layer theme {
|
||||||
:root, :host {
|
:root, :host {
|
||||||
font-family: "Asta Sans", sans-serif;
|
/* font-family: "Asta Sans", sans-serif; */
|
||||||
|
--font-sans: "Asta Sans", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
||||||
|
--font-mono: "Asta Sans", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*! tailwindcss v4.1.3 | MIT License | https://tailwindcss.com */
|
/*! tailwindcss v4.1.3 | MIT License | https://tailwindcss.com */
|
||||||
|
|||||||
Reference in new issue
Block a user