While people using screen readers already have keyboard shortcuts to jump to the <main> tag, there are people who navigate the page with the keyboard using just the tab key, and for them, this link provides a way to save time and start reading the main content instead of having to manually go through all the navigation links every time a new page is loaded. Note that we had to add an additional `width: 0` rule because Foundation's `element-invisible` would apply `1px` and the test checking for `visible: :hidden` would faile.
33 lines
1.1 KiB
Plaintext
33 lines
1.1 KiB
Plaintext
<!DOCTYPE html>
|
|
<html <%= common_html_attributes %> data-current-user-id="<%= current_user&.id %>">
|
|
<head>
|
|
<%= render "layouts/common_head", default_title: setting["org_name"] %>
|
|
<%= render "layouts/meta_tags" %>
|
|
<%= content_for :canonical %>
|
|
<%= favicon_link_tag image_path_for("apple-touch-icon-200.png"),
|
|
rel: "icon apple-touch-icon",
|
|
sizes: "200x200",
|
|
type: "image/png" %>
|
|
<%= content_for :social_media_meta_tags %>
|
|
|
|
<%= raw setting["html.per_page_code_head"] %>
|
|
</head>
|
|
<body class="<%= yield(:body_class) %> public">
|
|
<%= render Layout::SkipToMainContentComponent.new %>
|
|
<%= raw setting["html.per_page_code_body"] %>
|
|
|
|
<div class="wrapper <%= yield(:wrapper_class) %>">
|
|
<%= render "layouts/header", with_subnavigation: true %>
|
|
|
|
<main id="main" class="public-content <%= yield(:main_class) %>">
|
|
<%= render "layouts/flash" %>
|
|
<%= yield %>
|
|
</main>
|
|
</div>
|
|
|
|
<div class="footer">
|
|
<%= render Layout::FooterComponent.new %>
|
|
</div>
|
|
</body>
|
|
</html>
|