{"action":"created","comment":{"url":"https://api.github.com/repos/Thinkful/ui/pulls/comments/32070222","id":32070222,"diff_hunk":"@@ -0,0 +1,74 @@\n+const React = require('react');\n+const classnames = require('classnames');\n+\n+require('./sidebarlayout.less');\n+\n+\n+/**\n+ *  Menu item element\n+ *  @property displayName {String} of the display name of the item\n+ *  @property classes {Array} of class names\n+ *  @property isActive {Boolean} indictaing if the item is currently active\n+ */\n+class MenuItem extends React.Component {\n+  render() {\n+    const {displayName, classes, isActive} = this.props;\n+    const itemClasses = classnames(classes, 'menu-item', {'active-topic': isActive});\n+\n+    return (\n+      <div className={itemClasses}>\n+        <span aria-hidden=\"true\" className=\"icon-navigateright\"></span>\n+        {displayName}\n+      </div>\n+    );\n+  }\n+}\n+\n+\n+/**\n+ *  Menu element for sidebar\n+ *  @property heading {String} of the heading to display above the menu\n+ *  @property items {Array} of components to include in the menu\n+ */\n+class SidebarMenu extends React.Component {\n+  getDefaultProps() {\n+    return {items: []}\n+  }\n+\n+  render() {\n+    const {heading, items} = this.props;\n+\n+    return (\n+      <div className=\"sidebar-menu\">\n+        <p className=\"heading-small\">{heading}</p>\n+        {items}\n+      </div>\n+    );\n+  }\n+}\n+\n+/**\n+ *  Base layout for pages that have a sidebar element.\n+ *  @property sidebarMenuSets {Array} of objects of the menu sets to include.\n+ *    @property heading {String} of the heading to display above the menu","path":"src/SidebarLayout.jsx","position":53,"original_position":53,"commit_id":"1019868c53b86743f6402d9d4549a737e49fa1c5","original_commit_id":"1019868c53b86743f6402d9d4549a737e49fa1c5","user":{"login":"ripleyaffect","id":1026406,"avatar_url":"https://avatars.githubusercontent.com/u/1026406?v=3","gravatar_id":"","url":"https://api.github.com/users/ripleyaffect","html_url":"https://github.com/ripleyaffect","followers_url":"https://api.github.com/users/ripleyaffect/followers","following_url":"https://api.github.com/users/ripleyaffect/following{/other_user}","gists_url":"https://api.github.com/users/ripleyaffect/gists{/gist_id}","starred_url":"https://api.github.com/users/ripleyaffect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ripleyaffect/subscriptions","organizations_url":"https://api.github.com/users/ripleyaffect/orgs","repos_url":"https://api.github.com/users/ripleyaffect/repos","events_url":"https://api.github.com/users/ripleyaffect/events{/privacy}","received_events_url":"https://api.github.com/users/ripleyaffect/received_events","type":"User","site_admin":false},"body":"OMG SPACE DISCREPANCY","created_at":"2015-06-09T22:09:00Z","updated_at":"2015-06-09T22:09:00Z","html_url":"https://github.com/Thinkful/ui/pull/66#discussion_r32070222","pull_request_url":"https://api.github.com/repos/Thinkful/ui/pulls/66","_links":{"self":{"href":"https://api.github.com/repos/Thinkful/ui/pulls/comments/32070222"},"html":{"href":"https://github.com/Thinkful/ui/pull/66#discussion_r32070222"},"pull_request":{"href":"https://api.github.com/repos/Thinkful/ui/pulls/66"}}},"pull_request":{"url":"https://api.github.com/repos/Thinkful/ui/pulls/66","id":37258253,"html_url":"https://github.com/Thinkful/ui/pull/66","diff_url":"https://github.com/Thinkful/ui/pull/66.diff","patch_url":"https://github.com/Thinkful/ui/pull/66.patch","issue_url":"https://api.github.com/repos/Thinkful/ui/issues/66","number":66,"state":"open","locked":false,"title":"Flexbox sidebar layout.","user":{"login":"learykara","id":7073794,"avatar_url":"https://avatars.githubusercontent.com/u/7073794?v=3","gravatar_id":"","url":"https://api.github.com/users/learykara","html_url":"https://github.com/learykara","followers_url":"https://api.github.com/users/learykara/followers","following_url":"https://api.github.com/users/learykara/following{/other_user}","gists_url":"https://api.github.com/users/learykara/gists{/gist_id}","starred_url":"https://api.github.com/users/learykara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/learykara/subscriptions","organizations_url":"https://api.github.com/users/learykara/orgs","repos_url":"https://api.github.com/users/learykara/repos","events_url":"https://api.github.com/users/learykara/events{/privacy}","received_events_url":"https://api.github.com/users/learykara/received_events","type":"User","site_admin":false},"body":"Adds shared component for layout with sidebar","created_at":"2015-06-09T14:20:27Z","updated_at":"2015-06-09T22:09:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3d69af39a8bb99e4602cf9e9224f0f59c99db86e","assignee":{"login":"evanrs","id":297455,"avatar_url":"https://avatars.githubusercontent.com/u/297455?v=3","gravatar_id":"","url":"https://api.github.com/users/evanrs","html_url":"https://github.com/evanrs","followers_url":"https://api.github.com/users/evanrs/followers","following_url":"https://api.github.com/users/evanrs/following{/other_user}","gists_url":"https://api.github.com/users/evanrs/gists{/gist_id}","starred_url":"https://api.github.com/users/evanrs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evanrs/subscriptions","organizations_url":"https://api.github.com/users/evanrs/orgs","repos_url":"https://api.github.com/users/evanrs/repos","events_url":"https://api.github.com/users/evanrs/events{/privacy}","received_events_url":"https://api.github.com/users/evanrs/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Thinkful/ui/pulls/66/commits","review_comments_url":"https://api.github.com/repos/Thinkful/ui/pulls/66/comments","review_comment_url":"https://api.github.com/repos/Thinkful/ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Thinkful/ui/issues/66/comments","statuses_url":"https://api.github.com/repos/Thinkful/ui/statuses/1019868c53b86743f6402d9d4549a737e49fa1c5","head":{"label":"Thinkful:feature/flexbox-layout","ref":"feature/flexbox-layout","sha":"1019868c53b86743f6402d9d4549a737e49fa1c5","user":{"login":"Thinkful","id":2779782,"avatar_url":"https://avatars.githubusercontent.com/u/2779782?v=3","gravatar_id":"","url":"https://api.github.com/users/Thinkful","html_url":"https://github.com/Thinkful","followers_url":"https://api.github.com/users/Thinkful/followers","following_url":"https://api.github.com/users/Thinkful/following{/other_user}","gists_url":"https://api.github.com/users/Thinkful/gists{/gist_id}","starred_url":"https://api.github.com/users/Thinkful/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Thinkful/subscriptions","organizations_url":"https://api.github.com/users/Thinkful/orgs","repos_url":"https://api.github.com/users/Thinkful/repos","events_url":"https://api.github.com/users/Thinkful/events{/privacy}","received_events_url":"https://api.github.com/users/Thinkful/received_events","type":"Organization","site_admin":false},"repo":{"id":35639490,"name":"ui","full_name":"Thinkful/ui","owner":{"login":"Thinkful","id":2779782,"avatar_url":"https://avatars.githubusercontent.com/u/2779782?v=3","gravatar_id":"","url":"https://api.github.com/users/Thinkful","html_url":"https://github.com/Thinkful","followers_url":"https://api.github.com/users/Thinkful/followers","following_url":"https://api.github.com/users/Thinkful/following{/other_user}","gists_url":"https://api.github.com/users/Thinkful/gists{/gist_id}","starred_url":"https://api.github.com/users/Thinkful/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Thinkful/subscriptions","organizations_url":"https://api.github.com/users/Thinkful/orgs","repos_url":"https://api.github.com/users/Thinkful/repos","events_url":"https://api.github.com/users/Thinkful/events{/privacy}","received_events_url":"https://api.github.com/users/Thinkful/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Thinkful/ui","description":"Shared navigation and UI resources for Thinkful SPAs.","fork":false,"url":"https://api.github.com/repos/Thinkful/ui","forks_url":"https://api.github.com/repos/Thinkful/ui/forks","keys_url":"https://api.github.com/repos/Thinkful/ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Thinkful/ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Thinkful/ui/teams","hooks_url":"https://api.github.com/repos/Thinkful/ui/hooks","issue_events_url":"https://api.github.com/repos/Thinkful/ui/issues/events{/number}","events_url":"https://api.github.com/repos/Thinkful/ui/events","assignees_url":"https://api.github.com/repos/Thinkful/ui/assignees{/user}","branches_url":"https://api.github.com/repos/Thinkful/ui/branches{/branch}","tags_url":"https://api.github.com/repos/Thinkful/ui/tags","blobs_url":"https://api.github.com/repos/Thinkful/ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Thinkful/ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Thinkful/ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/Thinkful/ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Thinkful/ui/statuses/{sha}","languages_url":"https://api.github.com/repos/Thinkful/ui/languages","stargazers_url":"https://api.github.com/repos/Thinkful/ui/stargazers","contributors_url":"https://api.github.com/repos/Thinkful/ui/contributors","subscribers_url":"https://api.github.com/repos/Thinkful/ui/subscribers","subscription_url":"https://api.github.com/repos/Thinkful/ui/subscription","commits_url":"https://api.github.com/repos/Thinkful/ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/Thinkful/ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/Thinkful/ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/Thinkful/ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/Thinkful/ui/contents/{+path}","compare_url":"https://api.github.com/repos/Thinkful/ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Thinkful/ui/merges","archive_url":"https://api.github.com/repos/Thinkful/ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Thinkful/ui/downloads","issues_url":"https://api.github.com/repos/Thinkful/ui/issues{/number}","pulls_url":"https://api.github.com/repos/Thinkful/ui/pulls{/number}","milestones_url":"https://api.github.com/repos/Thinkful/ui/milestones{/number}","notifications_url":"https://api.github.com/repos/Thinkful/ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Thinkful/ui/labels{/name}","releases_url":"https://api.github.com/repos/Thinkful/ui/releases{/id}","created_at":"2015-05-14T22:07:39Z","updated_at":"2015-05-20T19:32:53Z","pushed_at":"2015-06-09T21:26:33Z","git_url":"git://github.com/Thinkful/ui.git","ssh_url":"git@github.com:Thinkful/ui.git","clone_url":"https://github.com/Thinkful/ui.git","svn_url":"https://github.com/Thinkful/ui","homepage":null,"size":720,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"develop"}},"base":{"label":"Thinkful:develop","ref":"develop","sha":"e832cfaf10dea124fc1b0e2b2c8b10f4904fb9dc","user":{"login":"Thinkful","id":2779782,"avatar_url":"https://avatars.githubusercontent.com/u/2779782?v=3","gravatar_id":"","url":"https://api.github.com/users/Thinkful","html_url":"https://github.com/Thinkful","followers_url":"https://api.github.com/users/Thinkful/followers","following_url":"https://api.github.com/users/Thinkful/following{/other_user}","gists_url":"https://api.github.com/users/Thinkful/gists{/gist_id}","starred_url":"https://api.github.com/users/Thinkful/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Thinkful/subscriptions","organizations_url":"https://api.github.com/users/Thinkful/orgs","repos_url":"https://api.github.com/users/Thinkful/repos","events_url":"https://api.github.com/users/Thinkful/events{/privacy}","received_events_url":"https://api.github.com/users/Thinkful/received_events","type":"Organization","site_admin":false},"repo":{"id":35639490,"name":"ui","full_name":"Thinkful/ui","owner":{"login":"Thinkful","id":2779782,"avatar_url":"https://avatars.githubusercontent.com/u/2779782?v=3","gravatar_id":"","url":"https://api.github.com/users/Thinkful","html_url":"https://github.com/Thinkful","followers_url":"https://api.github.com/users/Thinkful/followers","following_url":"https://api.github.com/users/Thinkful/following{/other_user}","gists_url":"https://api.github.com/users/Thinkful/gists{/gist_id}","starred_url":"https://api.github.com/users/Thinkful/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Thinkful/subscriptions","organizations_url":"https://api.github.com/users/Thinkful/orgs","repos_url":"https://api.github.com/users/Thinkful/repos","events_url":"https://api.github.com/users/Thinkful/events{/privacy}","received_events_url":"https://api.github.com/users/Thinkful/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Thinkful/ui","description":"Shared navigation and UI resources for Thinkful SPAs.","fork":false,"url":"https://api.github.com/repos/Thinkful/ui","forks_url":"https://api.github.com/repos/Thinkful/ui/forks","keys_url":"https://api.github.com/repos/Thinkful/ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Thinkful/ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Thinkful/ui/teams","hooks_url":"https://api.github.com/repos/Thinkful/ui/hooks","issue_events_url":"https://api.github.com/repos/Thinkful/ui/issues/events{/number}","events_url":"https://api.github.com/repos/Thinkful/ui/events","assignees_url":"https://api.github.com/repos/Thinkful/ui/assignees{/user}","branches_url":"https://api.github.com/repos/Thinkful/ui/branches{/branch}","tags_url":"https://api.github.com/repos/Thinkful/ui/tags","blobs_url":"https://api.github.com/repos/Thinkful/ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Thinkful/ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Thinkful/ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/Thinkful/ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Thinkful/ui/statuses/{sha}","languages_url":"https://api.github.com/repos/Thinkful/ui/languages","stargazers_url":"https://api.github.com/repos/Thinkful/ui/stargazers","contributors_url":"https://api.github.com/repos/Thinkful/ui/contributors","subscribers_url":"https://api.github.com/repos/Thinkful/ui/subscribers","subscription_url":"https://api.github.com/repos/Thinkful/ui/subscription","commits_url":"https://api.github.com/repos/Thinkful/ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/Thinkful/ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/Thinkful/ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/Thinkful/ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/Thinkful/ui/contents/{+path}","compare_url":"https://api.github.com/repos/Thinkful/ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Thinkful/ui/merges","archive_url":"https://api.github.com/repos/Thinkful/ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Thinkful/ui/downloads","issues_url":"https://api.github.com/repos/Thinkful/ui/issues{/number}","pulls_url":"https://api.github.com/repos/Thinkful/ui/pulls{/number}","milestones_url":"https://api.github.com/repos/Thinkful/ui/milestones{/number}","notifications_url":"https://api.github.com/repos/Thinkful/ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Thinkful/ui/labels{/name}","releases_url":"https://api.github.com/repos/Thinkful/ui/releases{/id}","created_at":"2015-05-14T22:07:39Z","updated_at":"2015-05-20T19:32:53Z","pushed_at":"2015-06-09T21:26:33Z","git_url":"git://github.com/Thinkful/ui.git","ssh_url":"git@github.com:Thinkful/ui.git","clone_url":"https://github.com/Thinkful/ui.git","svn_url":"https://github.com/Thinkful/ui","homepage":null,"size":720,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Thinkful/ui/pulls/66"},"html":{"href":"https://github.com/Thinkful/ui/pull/66"},"issue":{"href":"https://api.github.com/repos/Thinkful/ui/issues/66"},"comments":{"href":"https://api.github.com/repos/Thinkful/ui/issues/66/comments"},"review_comments":{"href":"https://api.github.com/repos/Thinkful/ui/pulls/66/comments"},"review_comment":{"href":"https://api.github.com/repos/Thinkful/ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Thinkful/ui/pulls/66/commits"},"statuses":{"href":"https://api.github.com/repos/Thinkful/ui/statuses/1019868c53b86743f6402d9d4549a737e49fa1c5"}}}}