Advertisement
Guest User

Untitled

a guest
Oct 13th, 2015
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. import React from 'react';
  2. import Reflux from 'reflux';
  3. import SocialStore from '../stores/socialStore';
  4. import Card from './shared/card.js'
  5.  
  6.  
  7. var Social = React.createClass({
  8. mixins: [Reflux.connect(SocialStore, 'socialstore')],
  9.  
  10. render: function() {
  11. if(this.state.socialstore){
  12. var tempSocialStore = this.state.socialstore
  13. }else{
  14. var tempSocialStore = [];
  15. }
  16.  
  17. return <div className="android-be-together-section">
  18. <div className="mdl-layout mdl-js-layout mdl-layout--fixed-header">
  19. <header className="mdl-layout__header">
  20. <div className="mdl-layout__header-row">
  21. <span className="mdl-layout-title">Portfolio</span>
  22. </div>
  23. <div className="mdl-layout__tab-bar mdl-js-ripple-effect">
  24. <a href="#scroll-tab-1" className="mdl-layout__tab is-active">Stackoverflow</a>
  25. <a href="#scroll-tab-2" className="mdl-layout__tab">GitHub</a>
  26. <a href="#scroll-tab-3" className="mdl-layout__tab">Twitter</a>
  27. <a href="#scroll-tab-4" className="mdl-layout__tab">Instagram</a>
  28. </div>
  29. </header>
  30. <main className="mdl-layout__content">
  31. <section className="mdl-layout__tab-panel is-active" id="scroll-tab-1">
  32. <div className="page-content">
  33. <div className="content">
  34. {
  35. tempSocialStore.map(function (item){
  36. return <Card title={item.title_description} description={item.summary_description} btnTitle="View" link={item.id_description} />
  37. })
  38. }
  39. </div>
  40. </div>
  41. </section>
  42. <section className="mdl-layout__tab-panel" id="scroll-tab-2">
  43. <div className="page-content">content 2</div>
  44. </section>
  45. <section className="mdl-layout__tab-panel" id="scroll-tab-3">
  46. <div className="page-content">content 3</div>
  47. </section>
  48. <section className="mdl-layout__tab-panel" id="scroll-tab-4">
  49. <div className="page-content">content 4</div>
  50. </section>
  51. </main>
  52. </div>
  53. </div>
  54. }
  55. });
  56.  
  57. export default Social;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement