From 80728226fcbe764c31080e1a54d13291c3625cd5 Mon Sep 17 00:00:00 2001 From: androidtrunkagent Date: Wed, 17 Feb 2016 11:36:46 -0800 Subject: [PATCH] Add video link and include new featured apps in showcase Summary: Closes https://github.com/facebook/react-native/pull/5923 Differential Revision: D2936878 fb-gh-sync-id: 7d5121e3bbe24be36808d1dc250c90308de0185d shipit-source-id: 7d5121e3bbe24be36808d1dc250c90308de0185d --- website/src/react-native/showcase.js | 88 ++++++++++++++++++---------- 1 file changed, 58 insertions(+), 30 deletions(-) diff --git a/website/src/react-native/showcase.js b/website/src/react-native/showcase.js index e6974558c..feb4d0ed9 100644 --- a/website/src/react-native/showcase.js +++ b/website/src/react-native/showcase.js @@ -76,6 +76,12 @@ var featured = [ link: 'https://itunes.apple.com/in/app/myntra-fashion-shopping-app/id907394059', author: 'Myntra Designs', }, + { + name: 'Noodler', + icon: 'http://a5.mzstatic.com/us/r30/Purple6/v4/d9/9a/69/d99a6919-7f11-35ad-76ea-f1741643d875/icon175x175.png', + link: 'http://www.noodler-app.com/', + author: 'Michele Humes & Joshua Sierles', + }, { name: 'React Native Playground', icon: 'http://is5.mzstatic.com/image/pf/us/r30/Purple1/v4/20/ec/8e/20ec8eb8-9e12-6686-cd16-7ac9e3ef1d52/mzl.ngvuoybx.png', @@ -83,6 +89,12 @@ var featured = [ linkPlayStore: 'https://play.google.com/store/apps/details?id=org.rnplay.playground', author: 'Joshua Sierles', }, + { + name: 'Round - A better way to remember your medicine', + icon: 'https://s3.mzstatic.com/us/r30/Purple69/v4/d3/ee/54/d3ee54cf-13b6-5f56-0edc-6c70ac90b2be/icon175x175.png', + link: 'https://itunes.apple.com/us/app/round-beautiful-medication/id1059591124?mt=8', + author: 'Circadian Design', + }, { name: 'Running', icon: 'http://a1.mzstatic.com/us/r30/Purple3/v4/33/eb/4f/33eb4f73-c7e3-8659-9285-f758e403485b/icon175x175.jpeg', @@ -92,6 +104,15 @@ var featured = [ 'https://blog.gyrosco.pe/the-making-of-gyroscope-running-a4ad10acc0d0', ], }, + { + name: 'Spero for Cancer', + icon: 'https://s3-us-west-1.amazonaws.com/cancerspot/site_images/Spero1024.png', + link: 'https://geo.itunes.apple.com/us/app/spero-for-cancer/id1033923573?mt=8', + author: 'Spero.io', + videos: [ + 'https://www.youtube.com/watch?v=JImX3L6qnj8', + ], + }, { name: 'Squad', icon: 'http://a4.mzstatic.com/us/r30/Purple69/v4/e8/5b/3f/e85b3f52-72f3-f427-a32e-a73efe2e9682/icon175x175.jpeg', @@ -104,6 +125,12 @@ var featured = [ link: 'https://itunes.apple.com/us/app/start-medication-manager-for/id1012099928?mt=8', author: 'Iodine Inc.', }, + { + name: 'This AM', + icon: 'http://s3.r29static.com//bin/public/efe/x/1542038/image.png', + link: 'https://itunes.apple.com/us/app/refinery29-this-am-top-breaking/id988472315?mt=8', + author: 'Refinery29', + }, { name: 'Townske', icon: 'http://a3.mzstatic.com/us/r30/Purple69/v4/8b/42/20/8b4220af-5165-91fd-0f05-014332df73ef/icon175x175.png', @@ -120,6 +147,12 @@ var featured = [ 'https://medium.com/@clayallsopp/making-tucci-the-technical-details-cc7aded6c75f#.wf72nq372', ], }, + { + name: 'WPV', + icon: 'http://a2.mzstatic.com/us/r30/Purple49/v4/a8/26/d7/a826d7bf-337b-c6b8-488d-aca98027754d/icon350x350.png', + link: 'https://itunes.apple.com/us/app/wpv/id725222647?mt=8', + author: 'Yamill Vallecillo', + }, ]; var apps = [ @@ -393,18 +426,6 @@ var apps = [ link: 'https://play.google.com/store/apps/details?id=com.rhyble.nalathekerala', author: 'Rhyble', }, - { - name: 'Ncredible', - icon: 'http://a3.mzstatic.com/us/r30/Purple2/v4/a9/00/74/a9007400-7ccf-df10-553b-3b6cb67f3f5f/icon350x350.png', - link: 'https://itunes.apple.com/ca/app/ncredible/id1019662810?mt=8', - author: 'NBC News Digital, LLC', - }, - { - name: 'Noodler', - icon: 'http://a5.mzstatic.com/us/r30/Purple6/v4/d9/9a/69/d99a6919-7f11-35ad-76ea-f1741643d875/icon175x175.png', - link: 'https://itunes.apple.com/us/app/noodler-noodle-soup-oracle/id1013183002?mt=8', - author: 'Michele Humes & Joshua Sierles', - }, { name: 'Night Light', icon: 'http://is3.mzstatic.com/image/pf/us/r30/Purple7/v4/5f/50/5f/5f505fe5-0a30-6bbf-6ed9-81ef09351aba/mzl.lkeqxyeo.png', @@ -465,12 +486,6 @@ var apps = [ link: 'https://itunes.apple.com/us/app/rota-worker-shifts-on-demand/id1042111289?mt=8', author: 'Rota', }, - { - name: 'Round - A better way to remember your medicine', - icon: 'https://s3.mzstatic.com/us/r30/Purple69/v4/d3/ee/54/d3ee54cf-13b6-5f56-0edc-6c70ac90b2be/icon175x175.png', - link: 'https://itunes.apple.com/us/app/round-beautiful-medication/id1059591124?mt=8', - author: 'Circadian Design', - }, { name: 'RWpodPlayer - audio player for RWpod podcast', icon: 'http://a1.mzstatic.com/us/r30/Purple69/v4/a8/c0/b1/a8c0b130-e44b-742d-6458-0c89fcc15b6b/icon175x175.png', @@ -520,12 +535,6 @@ var apps = [ link: 'https://itunes.apple.com/us/app/text-blast-2016/id1023852862?mt=8', author: 'Sesh', }, - { - name: 'This AM', - icon: 'http://s3.r29static.com//bin/public/efe/x/1542038/image.png', - link: 'https://itunes.apple.com/us/app/refinery29-this-am-top-breaking/id988472315?mt=8', - author: 'Refinery29', - }, { name: 'Tong Xing Wang', icon: 'http://a3.mzstatic.com/us/r30/Purple1/v4/7d/52/a7/7d52a71f-9532-82a5-b92f-87076624fdb2/icon175x175.jpeg', @@ -545,12 +554,6 @@ var apps = [ link: 'https://itunes.apple.com/us/app/woop-app/id790247988?mt=8', author: 'Moritz Schwörer (@mosch)', }, - { - name: 'WPV', - icon: 'http://a2.mzstatic.com/us/r30/Purple49/v4/a8/26/d7/a826d7bf-337b-c6b8-488d-aca98027754d/icon350x350.png', - link: 'https://itunes.apple.com/us/app/wpv/id725222647?mt=8', - author: 'Yamill Vallecillo', - }, { name: 'Yoloci', icon: 'http://a5.mzstatic.com/eu/r30/Purple7/v4/fa/e5/26/fae52635-b97c-bd53-2ade-89e2a4326745/icon175x175.jpeg', @@ -615,6 +618,7 @@ var AppList = React.createClass({ {app.linkAppStore && app.linkPlayStore ? this._renderLinks(app) : null}

By {app.author}

{this._renderBlogPosts(app)} + {this._renderVideos(app)} ); @@ -655,6 +659,30 @@ var AppList = React.createClass({ ); }, + _renderVideos: function(app) { + if (!app.videos) { + return; + } + + if (app.videos.length === 1) { + return ( +

Video

+ ); + } else if (app.videos.length > 1) { + return ( +

Videos: {app.videos.map(this._renderVideo)}

+ ); + } + }, + + _renderVideo: function(url, i) { + return ( + + {i + 1}  + + ); + }, + _renderLinks: function(app) { return (