Skip to content

Commit

Permalink
added skip-to-content link
Browse files Browse the repository at this point in the history
  • Loading branch information
nwanduka authored Aug 20, 2024
1 parent 3c5410c commit 5cc445f
Showing 1 changed file with 24 additions and 5 deletions.
29 changes: 24 additions & 5 deletions apps/landing/landing.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,29 @@
<!-- common styling -->
<link rel='stylesheet' type='text/css' media='all' href='../common.css'/>
<link rel="shortcut icon" type="image/x-icon" href="favicon.png">
<style>
.skip-link {
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%);
background: #212529;
color: white;
padding: 8px;
z-index: 9999;
text-decoration: none;
opacity: 0;
pointer-events: none;
}
.skip-link:focus {
opacity: 1;
pointer-events: auto;
}
</style>

</head>
<body>

<a class="skip-link" href="#main-content">Skip to main content</a>
<!-- loading animation -->
<div class="main-site">
<!-- adding css -->
Expand Down Expand Up @@ -57,8 +76,8 @@


<!-- Main -->

<section id="main" class="wrapper">
<main id="main-content">
<section id="main" class="wrapper">

<div class="inner">

Expand Down Expand Up @@ -93,8 +112,8 @@ <h2>Documentation</h2>
</div>
</section>
</div>
</section>

</section>
</main>


<!-- Footer -->
Expand Down

0 comments on commit 5cc445f

Please sign in to comment.