This commit is contained in:
dahyeon committed 2025-11-14 16:38:38 +00:00
1 parent 214469eb31
commit ac402cc5a4
5 files changed
+14 -12

No files matched your search

+1 -1
View File
@@ -68,7 +68,7 @@ export default function App() {
{/* Mobile overlay */}
{isSidebarOpen && currentPage === 'documentation' && (
<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}
/>
)}
+7 -7
View File
@@ -25,7 +25,7 @@ export function Header({ toggleSidebar, theme, toggleTheme, navigateToHome, navi
};
return (
<header className={`border-b sticky top-0 z-20 ${
<header className={`border-b sticky top-0 z-50 ${
theme === 'dark'
? 'bg-[#0d0d0d] border-gray-800'
: '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">
<button
onClick={toggleSidebar}
className={`p-2 hover:bg-opacity-10 rounded lg:hidden shrink-0 ${
theme === 'dark' ? 'hover:bg-gray-800' : 'hover:bg-gray-100'
className={`p-2 rounded lg:hidden shrink-0 ${
theme === 'dark' ? 'hover:bg-gray-800/10' : 'hover:bg-gray-100/10'
}`}
>
<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">
<button
onClick={toggleTheme}
className={`p-2 rounded hover:bg-opacity-10 ${
theme === 'dark' ? 'hover:bg-white' : 'hover:bg-gray-900'
className={`p-2 rounded ${
theme === 'dark' ? 'hover:bg-white/10' : 'hover:bg-gray-900/10'
}`}
>
{theme === 'dark' ? (
@@ -83,9 +83,9 @@ export function Header({ toggleSidebar, theme, toggleTheme, navigateToHome, navi
)}
</button>
<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
</button>
</button> */}
</div>
</div>
+1 -1
View File
@@ -53,7 +53,7 @@ export function MainContent({ theme, articleSlug }: MainContentProps) {
}`}>
<a href="#" className="hover:text-blue-600">Learn</a>
<ChevronRight className="w-3 h-3 sm:w-4 sm:h-4" />
<span>{article.title}</span>
<span>{article.title?.slice(0, 10)}</span>
</div>
{/* Action buttons */}
+2 -2
View File
@@ -82,8 +82,8 @@ export function Sidebar({ isOpen, toggleSidebar, theme, taxonomyId, onArticleCli
</h2>
<button
onClick={toggleSidebar}
className={`p-1 rounded hover:bg-opacity-10 ${
theme === 'dark' ? 'hover:bg-white' : 'hover:bg-gray-900'
className={`p-1 rounded ${
theme === 'dark' ? 'hover:bg-white/10' : 'hover:bg-gray-900/10'
}`}
>
<X className="w-5 h-5" />
+3 -1
View File
@@ -1,7 +1,9 @@
@import "tailwindcss";
@layer theme {
: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 */