mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 07:38:07 -05:00
Merge pull request #319 from mewtaylor/feature/gh-288-accessibility
GH-288: accessibility
This commit is contained in:
commit
dddc867c1e
7 changed files with 35 additions and 30 deletions
|
@ -46,7 +46,7 @@ var Activity = React.createClass({
|
|||
return (
|
||||
<li key={item.pk}>
|
||||
<a href={actorProfileUrl}>
|
||||
<img src={item.actor.thumbnail_url} width="34" height="34" />
|
||||
<img src={item.actor.thumbnail_url} width="34" height="34" alt="" />
|
||||
<p dangerouslySetInnerHTML={{__html: activityMessageHTML}}></p>
|
||||
<p>
|
||||
<span className="stamp">
|
||||
|
|
|
@ -196,7 +196,7 @@ var Navigation = React.createClass({
|
|||
return (
|
||||
<div className={classes}>
|
||||
<ul>
|
||||
<li className="logo"><a href="/"></a></li>
|
||||
<li className="logo"><a href="/" aria-label="Scratch"></a></li>
|
||||
|
||||
<li className="link create">
|
||||
<a href="/projects/editor">
|
||||
|
@ -237,7 +237,10 @@ var Navigation = React.createClass({
|
|||
<li className="search">
|
||||
<form action="/search/google_results" method="get">
|
||||
<Input type="submit" value="" />
|
||||
<Input type="text" placeholder={formatMessage(defaultMessages.search)} name="q" />
|
||||
<Input type="text"
|
||||
aria-label={formatMessage(defaultMessages.search)}
|
||||
placeholder={formatMessage(defaultMessages.search)}
|
||||
name="q" />
|
||||
<Input type="hidden" name="date" value="anytime" />
|
||||
<Input type="hidden" name="sort_by" value="datetime_shared" />
|
||||
</form>
|
||||
|
@ -262,7 +265,7 @@ var Navigation = React.createClass({
|
|||
</li>,
|
||||
<li className="link right account-nav" key="account-nav">
|
||||
<a className="userInfo" href="#" onClick={this.handleAccountNavClick}>
|
||||
<Avatar src={this.state.session.user.thumbnailUrl} />
|
||||
<Avatar src={this.state.session.user.thumbnailUrl} alt="" />
|
||||
{this.state.session.user.username}
|
||||
</a>
|
||||
<Dropdown
|
||||
|
|
|
@ -31,7 +31,7 @@ var News = React.createClass({
|
|||
return (
|
||||
<li key={item.id}>
|
||||
<a href={item.url}>
|
||||
<img src={item.image} width="53" height="53" />
|
||||
<img src={item.image} width="53" height="53" alt="" />
|
||||
<h4>{item.headline}</h4>
|
||||
<p>{item.copy}</p>
|
||||
</a>
|
||||
|
|
|
@ -15,7 +15,8 @@ var Thumbnail = React.createClass({
|
|||
src: '',
|
||||
type: 'project',
|
||||
showLoves: false,
|
||||
showRemixes: false
|
||||
showRemixes: false,
|
||||
alt: ''
|
||||
};
|
||||
},
|
||||
render: function () {
|
||||
|
@ -57,7 +58,7 @@ var Thumbnail = React.createClass({
|
|||
return (
|
||||
<div className={classes} >
|
||||
<a className="thumbnail-image" href={this.props.href}>
|
||||
<img src={this.props.src} />
|
||||
<img src={this.props.src} alt={this.props.alt} />
|
||||
</a>
|
||||
<div className="thumbnail-title">
|
||||
<a href={this.props.href}>{this.props.title}</a>
|
||||
|
|
|
@ -38,7 +38,7 @@ var Welcome = React.createClass({
|
|||
</a>
|
||||
</h4>
|
||||
<a href="/projects/editor/?tip_bar=getStarted">
|
||||
<img src="/images/welcome-learn.png" />
|
||||
<img src="/images/welcome-learn.png" alt="Get Started" />
|
||||
</a>
|
||||
</div>
|
||||
<div className="welcome-col green">
|
||||
|
@ -48,7 +48,7 @@ var Welcome = React.createClass({
|
|||
</a>
|
||||
</h4>
|
||||
<a href="/starter_projects/">
|
||||
<img src="/images/welcome-try.png" />
|
||||
<img src="/images/welcome-try.png" alt="Starter Projects" />
|
||||
</a>
|
||||
</div>
|
||||
<div className="welcome-col pink">
|
||||
|
@ -58,7 +58,7 @@ var Welcome = React.createClass({
|
|||
</a>
|
||||
</h4>
|
||||
<a href="/studios/146521/">
|
||||
<img src="/images/welcome-connect.png" />
|
||||
<img src="/images/welcome-connect.png" alt="Connect" />
|
||||
</a>
|
||||
</div>
|
||||
</Box>
|
||||
|
|
|
@ -27,6 +27,7 @@ var About = React.createClass({
|
|||
|
||||
<div>
|
||||
<iframe
|
||||
title="Scratch Overview Video"
|
||||
src="https://player.vimeo.com/video/65583694?title=0&byline=0&portrait=0"
|
||||
frameBorder="0"
|
||||
webkitAllowFullScreen
|
||||
|
|
|
@ -51,7 +51,7 @@ var Hoc = React.createClass({
|
|||
<div className="card">
|
||||
<a href="/projects/editor/?tip_bar=name">
|
||||
<div className="card-info" onMouseEnter={this.onCardEnter.bind(this, 'name-bg')}>
|
||||
<img src="/images/hoc2015/name-tutorial.jpg" />
|
||||
<img src="/images/hoc2015/name-tutorial.jpg" alt="" />
|
||||
<Button>
|
||||
<FormattedMessage
|
||||
id='general.tipsAnimateYourNameTitle'
|
||||
|
@ -64,7 +64,7 @@ var Hoc = React.createClass({
|
|||
<div className="card" onMouseEnter={this.onCardEnter.bind(this, 'wbb-bg')}>
|
||||
<a href="/hide/">
|
||||
<div className="card-info">
|
||||
<img src="/images/hoc2015/hide-seek-tutorial.jpg" />
|
||||
<img src="/images/hoc2015/hide-seek-tutorial.jpg" alt="" />
|
||||
<Button>
|
||||
<FormattedMessage
|
||||
id='general.tipsHideAndSeekTitle'
|
||||
|
@ -77,7 +77,7 @@ var Hoc = React.createClass({
|
|||
<div className="card" onMouseEnter={this.onCardEnter.bind(this, 'dance-bg')}>
|
||||
<a href="/projects/editor/?tip_bar=dance">
|
||||
<div className="card-info">
|
||||
<img src="/images/hoc2015/dance-tutorial.jpg" />
|
||||
<img src="/images/hoc2015/dance-tutorial.jpg" alt="" />
|
||||
<Button>
|
||||
<FormattedMessage
|
||||
id='general.tipsDanceTitle'
|
||||
|
@ -143,7 +143,7 @@ var Hoc = React.createClass({
|
|||
</div>
|
||||
|
||||
<div className="resource">
|
||||
<img src="/svgs/tips-card.svg" />
|
||||
<img src="/svgs/tips-card.svg" alt="" />
|
||||
<div className="resource-info">
|
||||
<h5>
|
||||
<FormattedMessage
|
||||
|
@ -164,7 +164,7 @@ var Hoc = React.createClass({
|
|||
</div>
|
||||
|
||||
<div className="resource">
|
||||
<img src="/svgs/tips-card.svg" />
|
||||
<img src="/svgs/tips-card.svg" alt="" />
|
||||
<div className="resource-info">
|
||||
<h5>
|
||||
<FormattedMessage
|
||||
|
@ -185,7 +185,7 @@ var Hoc = React.createClass({
|
|||
</div>
|
||||
|
||||
<div className="resource">
|
||||
<img src="/svgs/tips-card.svg" />
|
||||
<img src="/svgs/tips-card.svg" alt="" />
|
||||
<div className="resource-info">
|
||||
<h5>
|
||||
<FormattedMessage
|
||||
|
@ -224,7 +224,7 @@ var Hoc = React.createClass({
|
|||
</p>
|
||||
</div>
|
||||
<div className="column">
|
||||
<img src="/images/hoc2015/tips-test-animation.gif" />
|
||||
<img src="/images/hoc2015/tips-test-animation.gif" alt="Tips Window Animation" />
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
@ -249,7 +249,7 @@ var Hoc = React.createClass({
|
|||
<div className="card">
|
||||
<a href="/projects/editor/?tip_bar=getStarted">
|
||||
<div className="card-info">
|
||||
<img src="/images/hoc2015/getting-started-tutorial.jpg" />
|
||||
<img src="/images/hoc2015/getting-started-tutorial.jpg" alt="" />
|
||||
<Button>
|
||||
<FormattedMessage
|
||||
id='general.tipsGetStarted'
|
||||
|
@ -262,7 +262,7 @@ var Hoc = React.createClass({
|
|||
<div className="card">
|
||||
<a href="/bearstack/">
|
||||
<div className="card-info">
|
||||
<img src="/images/hoc2015/bearstack-tutorial.jpg" />
|
||||
<img src="/images/hoc2015/bearstack-tutorial.jpg" alt="" />
|
||||
<Button>
|
||||
<FormattedMessage
|
||||
id='general.tipsBearstack'
|
||||
|
@ -275,7 +275,7 @@ var Hoc = React.createClass({
|
|||
<div className="card">
|
||||
<a href="/hoops">
|
||||
<div className="card-info">
|
||||
<img src="/images/hoc2015/bball-tutorial.jpg" />
|
||||
<img src="/images/hoc2015/bball-tutorial.jpg" alt="" />
|
||||
<Button>
|
||||
<FormattedMessage
|
||||
id='general.tipsBBallHoops'
|
||||
|
@ -306,7 +306,7 @@ var Hoc = React.createClass({
|
|||
</div>
|
||||
|
||||
<div className="studio">
|
||||
<img src="/svgs/studio.svg" />
|
||||
<img src="/svgs/studio.svg" alt="" />
|
||||
<div className="studio-info">
|
||||
<a href="/studios/432299/">
|
||||
<h5>
|
||||
|
@ -319,7 +319,7 @@ var Hoc = React.createClass({
|
|||
</div>
|
||||
|
||||
<div className="studio">
|
||||
<img src="/svgs/studio.svg" />
|
||||
<img src="/svgs/studio.svg" alt="" />
|
||||
<div className="studio-info">
|
||||
<a href="/studios/1672166/">
|
||||
<h5>
|
||||
|
@ -332,7 +332,7 @@ var Hoc = React.createClass({
|
|||
</div>
|
||||
|
||||
<div className="studio">
|
||||
<img src="/svgs/studio.svg" />
|
||||
<img src="/svgs/studio.svg" alt="" />
|
||||
<div className="studio-info">
|
||||
<a href="/studios/1065372/">
|
||||
<h5>
|
||||
|
@ -345,7 +345,7 @@ var Hoc = React.createClass({
|
|||
</div>
|
||||
|
||||
<div className="studio">
|
||||
<img src="/svgs/studio.svg" />
|
||||
<img src="/svgs/studio.svg" alt="" />
|
||||
<div className="studio-info">
|
||||
<a href="/studios/1672164/">
|
||||
<h5>
|
||||
|
@ -367,22 +367,22 @@ var Hoc = React.createClass({
|
|||
</h3>
|
||||
<div className="logos">
|
||||
<a href="http://scratched.gse.harvard.edu/">
|
||||
<img src="/images/hoc2015/scratchEd-logo.png" />
|
||||
<img src="/images/hoc2015/scratchEd-logo.png" alt="ScratchEd" />
|
||||
</a>
|
||||
<a href="https://code.org/">
|
||||
<img src="/images/hoc2015/code-org-logo.png" />
|
||||
<img src="/images/hoc2015/code-org-logo.png" alt="code.org" />
|
||||
</a>
|
||||
<a href="http://www.cartoonnetwork.com/">
|
||||
<img src="/images/hoc2015/cn-logo.png" />
|
||||
<img src="/images/hoc2015/cn-logo.png" alt="Cartoon Network" />
|
||||
</a>
|
||||
<a href="http://www.madewithcode.com/">
|
||||
<img src="/images/hoc2015/made-with-code-logo.png" />
|
||||
<img src="/images/hoc2015/made-with-code-logo.png" alt="Made with Code" />
|
||||
</a>
|
||||
<a href="http://www.paalive.org/">
|
||||
<img src="/images/hoc2015/paa-logo.png" />
|
||||
<img src="/images/hoc2015/paa-logo.png" alt="Progressive Arts Alliance" />
|
||||
</a>
|
||||
<a href="http://www.catrobat.org/">
|
||||
<img src="/images/hoc2015/pocketcode-logo.png" />
|
||||
<img src="/images/hoc2015/pocketcode-logo.png" alt="Pocket Code" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in a new issue