Skip to content

Fix accessibility issues relating to landmarks #2321

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
182 changes: 92 additions & 90 deletions themes/vue/layout/index.ejs
Original file line number Diff line number Diff line change
@@ -1,108 +1,110 @@
<div class="sidebar">
<div class="sidebar-inner-index">
<ul class="main-menu">
<%- partial('partials/main_menu', { context: 'sidebar' }) %>
</ul>
<main role="main">
<div class="sidebar">
<div class="sidebar-inner-index">
<ul class="main-menu">
<%- partial('partials/main_menu', { context: 'sidebar' }) %>
</ul>
</div>
</div>
</div>

<div id="hero">
<div class="inner">
<div class="left">
<img class="hero-logo" src="<%- url_for("/images/logo.png") %>" alt="vue logo">
</div><div class="right">
<h2 class="vue">Vue.js</h2>
<h1>
The Progressive<br>JavaScript Framework
</h1>
<p>
<a id="modal-player" class="button has-icon" href="javascript:;">
<%- partial('icons/play') %>
WHY VUE.JS?</a>
<a class="button white" href="<%- url_for("/v2/guide/") %>">GET STARTED</a>
<a class="button gray has-icon" href="https://github.com/vuejs/vue" target="_blank" rel="noopener">
<%- partial('icons/github-dark') %>
GITHUB</a>
</p>
<div id="hero">
<div class="inner">
<div class="left">
<img class="hero-logo" src="<%- url_for("/images/logo.png") %>" alt="vue logo">
</div><div class="right">
<h2 class="vue">Vue.js</h2>
<h1>
The Progressive<br>JavaScript Framework
</h1>
<p>
<a id="modal-player" class="button has-icon" href="javascript:;">
<%- partial('icons/play') %>
WHY VUE.JS?</a>
<a class="button white" href="<%- url_for("/v2/guide/") %>">GET STARTED</a>
<a class="button gray has-icon" href="https://github.com/vuejs/vue" target="_blank" rel="noopener">
<%- partial('icons/github-dark') %>
GITHUB</a>
</p>
</div>
</div>
</div>
</div>

<div id="special">
<h3>Special Sponsor</h3>
<% var specialSponsor = theme.special_sponsors[0]; %>
<a href="<%- specialSponsor.url %>" target="_blank" rel="noopener sponsored">
<img src="<%- url_for(`/images/${specialSponsor.img}`) %>" style="width:160px" alt="Code.xyz Logo">
<br>
<span><%- specialSponsor.description %></span>
</a>
</div>
<div id="special">
<h3>Special Sponsor</h3>
<% var specialSponsor = theme.special_sponsors[0]; %>
<a href="<%- specialSponsor.url %>" target="_blank" rel="noopener sponsored">
<img src="<%- url_for(`/images/${specialSponsor.img}`) %>" style="width:160px" alt="Code.xyz Logo">
<br>
<span><%- specialSponsor.description %></span>
</a>
</div>

<div id="highlights">
<div class="inner">
<div class="point">
<h2>Approachable</h2>
<p>Already know HTML, CSS and JavaScript? Read the guide and start building things in no time!</p>
</div>
<div id="highlights">
<div class="inner">
<div class="point">
<h2>Approachable</h2>
<p>Already know HTML, CSS and JavaScript? Read the guide and start building things in no time!</p>
</div>

<div class="point">
<h2>Versatile</h2>
<p>An incrementally adoptable ecosystem that scales between a library and a full-featured framework.</p>
</div>
<div class="point">
<h2>Versatile</h2>
<p>An incrementally adoptable ecosystem that scales between a library and a full-featured framework.</p>
</div>

<div class="point">
<h2>Performant</h2>
<p>
20KB min+gzip Runtime<br>
Blazing Fast Virtual DOM<br>
Minimal Optimization Efforts
</p>
<div class="point">
<h2>Performant</h2>
<p>
20KB min+gzip Runtime<br>
Blazing Fast Virtual DOM<br>
Minimal Optimization Efforts
</p>
</div>
</div>
</div>
</div>

<div id="sponsors">
<div class="inner">
<%- partial('partials/sponsors') %>
<div id="sponsors">
<div class="inner">
<%- partial('partials/sponsors') %>
</div>
</div>
</div>

<div id="news">
<div class="inner">
<h3><label for="member_email">Subscribe to our Weekly Newsletter</label></h3>
<form
class="newsletter-form"
id="revue-form"
name="revue-form"
target="_blank"
rel="noopener"
action="https://www.getrevue.co/profile/vuenewsletter/add_subscriber"
method="post"
@submit="subscribe"
>
<input
class="newsletter-input"
type="email"
name="member[email]"
id="member_email"
required
placeholder="Email address"
>
<input
class="button newsletter-button"
type="submit"
value="Subscribe"
name="member[subscribe]"
id="member_submit"
<div id="news">
<div class="inner">
<h3><label for="member_email">Subscribe to our Weekly Newsletter</label></h3>
<form
class="newsletter-form"
id="revue-form"
name="revue-form"
target="_blank"
rel="noopener"
action="https://www.getrevue.co/profile/vuenewsletter/add_subscriber"
method="post"
@submit="subscribe"
>
</form>
<p>
You can read the previous issues and listen to our podcast at <a href="https://news.vuejs.org" target="_blank" rel="noopener">news.vuejs.org</a>.
</p>
<input
class="newsletter-input"
type="email"
name="member[email]"
id="member_email"
required
placeholder="Email address"
>
<input
class="button newsletter-button"
type="submit"
value="Subscribe"
name="member[subscribe]"
id="member_submit"
>
</form>
<p>
You can read the previous issues and listen to our podcast at <a href="https://news.vuejs.org" target="_blank" rel="noopener">news.vuejs.org</a>.
</p>
</div>
</div>
</div>
</main>

<div id="footer">
<footer id="footer" role="contentinfo">
<p>
<a class="social-icon" href="https://github.com/vuejs/vue" target="_blank" rel="noopener">
<%- partial('icons/github') %>
Expand All @@ -116,7 +118,7 @@
</p>
<p>Released under the <a href="https://opensource.org/licenses/MIT" target="_blank" rel="noopener">MIT License</a><br>
Copyright &copy; 2014-<%- new Date().getFullYear() %> Evan You</p>
</div>
</footer>

<div id="video-modal" class="modal">
<div class="video-space" style="padding: 56.25% 0 0 0; position: relative;">
Expand Down
4 changes: 2 additions & 2 deletions themes/vue/layout/partials/header.ejs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<div id="header">
<header id="header">
<a id="logo" href="<%- url_for("/") %>">
<img src="<%- url_for("/images/logo.png") %>" alt="vue logo">
<span>Vue.js</span>
</a>
<ul id="nav">
<%- partial('partials/main_menu', { context: 'nav' }) %>
</ul>
</div>
</header>