Skip to content

Commit

Permalink
Tighten up heading code
Browse files Browse the repository at this point in the history
  • Loading branch information
milofultz committed Nov 24, 2023
1 parent 1c0b63c commit 80eec96
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/pages/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,15 @@ const Home = () => {
const handleClick = () => aboutRef.current.scrollIntoView({ behavior: 'smooth' });

// Logo section elements
const heading = 'PASS';
const punctuation = (
<Box component="span" sx={visuallyHidden}>
:
</Box>
const heading = (
<>
PASS
{/* This is added for better screen reader experience by adding a pause
between the acronym and the expanded acronym. */}
<Box component="span" sx={visuallyHidden}>
:
</Box>
</>
);
const subheading = 'Personal Access System for Services';

Expand All @@ -46,7 +50,6 @@ const Home = () => {
<Stack component="span" justifyContent="center" alignItems="center" spacing={2} mb={2}>
<Typography variant="h1" component="span" fontWeight="500" fontSize="72px">
{heading}
{punctuation}
</Typography>
<Box component="img" src="/assets/PASSLogolightmode.png" alt="" width="50%" />
<Typography variant="h4" component="span" fontWeight="600" mb={8}>
Expand All @@ -67,7 +70,6 @@ const Home = () => {
<Box component="img" src="/assets/PASSLogolightmode.png" alt="" width="150px" />
<Typography variant="h1" component="span" fontWeight="500" fontSize="144px">
{heading}
{punctuation}
</Typography>
</Stack>
<Typography variant="h3" component="span" fontWeight="600">
Expand Down

0 comments on commit 80eec96

Please sign in to comment.