diff --git a/src/App.tsx b/src/App.tsx index c2f35a1..d83ff40 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -6,9 +6,11 @@ import './App.scss'; const App: React.FC = () => { return ( -
{item.description}
+
{ }; return ( - - carsonSgit - + + carsonSgit + event.key === 'Enter' && toggleMenu()} + > {menuOpen ? : } - + {links.map((link, index) => ( handleLinkClick(event, link.id)} + role="menuitem" + aria-label={`Navigate to ${link.label}`} > {link.label} diff --git a/src/Components/Projects/ProjectItem.tsx b/src/Components/Projects/ProjectItem.tsx index c1b2795..8b7ec87 100644 --- a/src/Components/Projects/ProjectItem.tsx +++ b/src/Components/Projects/ProjectItem.tsx @@ -17,10 +17,12 @@ const ProjectItem: React.FC = ({ project }) => { style={{ backgroundImage: `url(${process.env.PUBLIC_URL}/${project.image})`, }} - initial={{ opacity: 0}} + initial={{ opacity: 0 }} animate={{ opacity: inView ? 1 : 0, scale: inView ? 1 : 0.99 }} transition={{ duration: 0.8 }} ref={ref} + role="region" + aria-labelledby={`project-title`} > {project.title} @@ -36,6 +38,7 @@ const ProjectItem: React.FC = ({ project }) => { className="ProjectLink" target="_blank" rel="noopener noreferrer" + aria-label={`View ${project.title} on GitHub`} > GitHub @@ -46,6 +49,7 @@ const ProjectItem: React.FC = ({ project }) => { className="ProjectLink" target="_blank" rel="noopener noreferrer" + aria-label={`Visit the website for ${project.title}`} > Website diff --git a/src/Components/Projects/Projects.tsx b/src/Components/Projects/Projects.tsx index 17669c9..603883f 100644 --- a/src/Components/Projects/Projects.tsx +++ b/src/Components/Projects/Projects.tsx @@ -5,11 +5,11 @@ import './Projects.scss'; const Projects: React.FC = () => { return ( - - + + Notable projects - + {projects.map((project, index) => ( ))}