Skip to content

Commit 1ab30a7

Browse files
author
Robert Zhu
committed
Create learn directory and add landing page
1 parent a3b66f2 commit 1ab30a7

File tree

3 files changed

+33
-2
lines changed

3 files changed

+33
-2
lines changed

site/_core/HeaderLinks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
var React = require('react');
1010

1111
const links = [
12-
{ section: 'docs', text: 'Learn', href: '/docs/' },
12+
{ section: 'learn', text: 'Learn', href: '/learn/' },
1313
{ section: 'code', text: 'Code', href: '/code/' },
1414
{ section: 'help', text: 'Community', href: '/help/' },
1515
{ section: 'blog', text: 'Blog', href: '/blog/' },

site/docs/Placeholder.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Placedholer
2+
title: Placeholder
33
layout: ../_core/DocsLayout
44
category: Walkthrough
55
permalink: /docs/todo/

site/learn/index.html.js

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/**
2+
* Copyright (c) 2015, Facebook, Inc.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the license found in the
6+
* LICENSE file in the root directory of this source tree.
7+
*/
8+
9+
var React = require('react');
10+
var Site = require('../_core/Site');
11+
12+
var Learn = React.createClass({
13+
render: function() {
14+
return (
15+
<Site section="learn" title="Learn">
16+
17+
<section className="content documentationContent nosidebar">
18+
<div className="inner-content">
19+
<h1>Learn</h1>
20+
<p>
21+
Content coming soon...
22+
</p>
23+
</div>
24+
</section>
25+
26+
</Site>
27+
);
28+
}
29+
});
30+
31+
module.exports = Learn;

0 commit comments

Comments
 (0)