Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ function App() {

return (
<div className="flex h-screen bg-gray-900 text-white">
<a
href="#main-content"
className="sr-only focus-visible:not-sr-only focus-visible:absolute focus-visible:z-50 focus-visible:p-4 focus-visible:bg-blue-600 focus-visible:text-white rounded-br-md"
>
Skip to main content
</a>
<Sidebar
effectCategories={effectCategories}
selectedEffect={selectedEffect}
Expand Down
4 changes: 2 additions & 2 deletions src/components/ContentView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const ContentView: React.FC<ContentViewProps> = ({
console.log(`[ContentView] Rendering effect: ${selectedEffect || 'None'}, isLoading: ${isLoading}`);

return (
<div className="flex-1 flex flex-col p-4">
<main id="main-content" tabIndex={-1} className="flex-1 flex flex-col p-4 focus:outline-none">
<div className="flex justify-between items-center mb-4">
<h1 className="text-2xl font-bold">
{effectData ? effectData.name : 'Select an Effect'}
Expand Down Expand Up @@ -100,6 +100,6 @@ export const ContentView: React.FC<ContentViewProps> = ({
)}
</div>
</div>
</div>
</main>
);
};