- Refactored all components in src/components to: - Use arrow function components and prop destructuring - Add JSDoc for all exported components - Improve accessibility (aria-labels, roles, etc.) - Use correct key usage in lists - Add comments for non-obvious logic - Use modern event handler patterns and memoization where appropriate - Refactored src/pages/index.astro: - Removed <html>, <head>, and <body> (should be in layout) - Used semantic <main> for main content - Kept only necessary imports and markup - Refactored src/styles/index.css: - Removed duplicate rules - Ensured only global resets/utilities are present - Added comments for clarity - Ensured no component-specific styles are present - Used consistent formatting Brings the codebase in line with modern Astro and Preact best practices, improves maintainability, accessibility, and code clarity.
9 lines
201 B
Plaintext
9 lines
201 B
Plaintext
---
|
|
import "../styles/index.css";
|
|
import App from "../components/App.jsx";
|
|
---
|
|
|
|
<!-- Main entry point for the Pool Scoring App -->
|
|
<main class="screen-container">
|
|
<App client:only="preact" />
|
|
</main> |