+ );
+ }
+}
+
+export default CreativityPage;
\ No newline at end of file
diff --git a/social-network/src/CreativityPage/missed-articles.json b/social-network/src/CreativityPage/missed-articles.json
new file mode 100644
index 0000000..d783e3e
--- /dev/null
+++ b/social-network/src/CreativityPage/missed-articles.json
@@ -0,0 +1,47 @@
+[
+ {
+ "title": "What Would Happen If You Did These Things Every Day...",
+ "description": "For thirty days...",
+ "image": "https://cdn-images-1.medium.com/max/800/1*NosScbnZp8m_clHHaPQ3mg.jpeg",
+ "link": "https://entrepreneurs.maqtoob.com/what-would-happen-if-you-did-these-things-every-day-7e39f62a6335",
+ "author": {
+ "name": "Alex Mathers",
+ "image": "https://cdn-images-1.medium.com/fit/c/80/80/1*wsP97tix16onOIkq4STxuw.jpeg",
+ "isMediumMember": true
+ },
+ "postedDate": "2018-04-22T07:00:00.000Z",
+ "minutesToRead": 3,
+ "hasAudioAvailable": false,
+ "memberPreview": false
+ },
+ {
+ "title": "10 Strategies for Creating Viral and Powerful Content",
+ "description": "",
+ "image": "https://cdn-images-1.medium.com/max/800/0*jxP3G649xndI9S_m.",
+ "link": "https://medium.com/@zdravko/10-strategies-for-creating-viral-and-powerful-content-b4ce7bbb4904",
+ "author": {
+ "name": "Zdravko Cvijetic",
+ "image": "https://cdn-images-1.medium.com/fit/c/80/80/1*0OAF2WviyXwa7MuRKtKUpA@2x.jpeg",
+ "isMediumMember": true
+ },
+ "postedDate": "2018-04-22T07:00:00.000Z",
+ "minutesToRead": 6,
+ "hasAudioAvailable": false,
+ "memberPreview": false
+ },
+ {
+ "title": "Useful Tools for Writers",
+ "description": "Jumpstart your process.",
+ "image": "https://cdn-images-1.medium.com/max/800/1*Msq_1dsr2maPq3ujjTVu3w.jpeg",
+ "link": "https://medium.com/@jaxonleerose/useful-tools-for-writers-46eb0736d660",
+ "author": {
+ "name": "JLRose",
+ "image": "https://cdn-images-1.medium.com/fit/c/80/80/1*-W7euf25bzL36c83YA5qeQ.jpeg",
+ "isMediumMember": true
+ },
+ "postedDate": "2018-04-21T07:00:00.000Z",
+ "minutesToRead": 8,
+ "hasAudioAvailable": false,
+ "memberPreview": true
+ }
+]
\ No newline at end of file
diff --git a/social-network/src/CreativityPage/your-articles.json b/social-network/src/CreativityPage/your-articles.json
new file mode 100644
index 0000000..bb947fb
--- /dev/null
+++ b/social-network/src/CreativityPage/your-articles.json
@@ -0,0 +1,62 @@
+[
+ {
+ "title": "The 7 Habits of Highly Creative People",
+ "description": "\"What a good artist understands is that nothing comes from nowhere. Nothing is completely original.\"",
+ "image": "https://cdn-images-1.medium.com/max/800/1*PIC-U670COEqmGwt4cvXAA.jpeg",
+ "link": "https://artplusmarketing.com/the-7-habits-of-highly-creative-people-6cfe6471af31",
+ "author": {
+ "name": "Louis Chew",
+ "image": "https://cdn-images-1.medium.com/fit/c/80/80/1*NGHEMBPNbIQmmAkvCjaspA.jpeg",
+ "isMediumMember": true
+ },
+ "postedDate": "2018-04-04T07:00:00.000Z",
+ "minutesToRead": 8,
+ "hasAudioAvailable": false,
+ "memberPreview": false
+ },
+ {
+ "title": "This Handy Chart Automatically Generates a Pitch for Your New Novel",
+ "description": "Feeling stuck? We help you skip the writing and go straight to the press release",
+ "image": "https://cdn-images-1.medium.com/max/800/1*KHs6OgOb7_aJhmQvOKj_dg.jpeg",
+ "link": "https://electricliterature.com/how-to-write-elevator-pitch-novel-publicity-infographic-a8ec74ecf7ce",
+ "author": {
+ "name": "Electric Literature",
+ "image": "https://cdn-images-1.medium.com/fit/c/80/80/1*bs47qwmiIR_bU01Jm6ZI9Q.jpeg",
+ "isMediumMember": false
+ },
+ "postedDate": "2018-03-28T07:00:00.000Z",
+ "minutesToRead": 2,
+ "hasAudioAvailable": false,
+ "memberPreview": false
+ },
+ {
+ "title": "Do Something You Can't Win At",
+ "description": "And make it something you love",
+ "image": "https://cdn-images-1.medium.com/max/800/1*cioT9CBBV2s0svet9LqKZA.png",
+ "link": "https://medium.com/@krisgage/do-something-you-cant-win-at-cb2e5d2ad3c1",
+ "author": {
+ "name": "Kris Gage",
+ "image": "https://cdn-images-1.medium.com/fit/c/80/80/1*e7o4kbk8ofT6eKaLrO0jaw.png",
+ "isMediumMember": false
+ },
+ "postedDate": "2018-03-30T07:00:00.000Z",
+ "minutesToRead": 3,
+ "hasAudioAvailable": false,
+ "memberPreview": false
+ },
+ {
+ "title": "Art as a Second Language",
+ "description": "Drawing is a translation of all my voices and words — an attempt to draw nothing",
+ "image": "https://cdn-images-1.medium.com/max/800/1*_NTwW2r8Konom4d5vIPkuw.png",
+ "link": "https://medium.com/@bluebed/speaking-different-languages-through-art-710e0a992dd3",
+ "author": {
+ "name": "Roman Muradov",
+ "image": "https://cdn-images-1.medium.com/fit/c/80/80/0*3PeNTwOh_hQpAuw0.png",
+ "isMediumMember": false
+ },
+ "postedDate": "2018-03-27T07:00:00.000Z",
+ "minutesToRead": 6,
+ "hasAudioAvailable": true,
+ "memberPreview": true
+ }
+]
\ No newline at end of file
diff --git a/social-network/src/index.css b/social-network/src/index.css
new file mode 100644
index 0000000..b4cc725
--- /dev/null
+++ b/social-network/src/index.css
@@ -0,0 +1,5 @@
+body {
+ margin: 0;
+ padding: 0;
+ font-family: sans-serif;
+}
diff --git a/social-network/src/index.js b/social-network/src/index.js
new file mode 100644
index 0000000..fae3e35
--- /dev/null
+++ b/social-network/src/index.js
@@ -0,0 +1,8 @@
+import React from 'react';
+import ReactDOM from 'react-dom';
+import './index.css';
+import App from './App';
+import registerServiceWorker from './registerServiceWorker';
+
+ReactDOM.render(, document.getElementById('root'));
+registerServiceWorker();
diff --git a/social-network/src/logo.svg b/social-network/src/logo.svg
new file mode 100644
index 0000000..6b60c10
--- /dev/null
+++ b/social-network/src/logo.svg
@@ -0,0 +1,7 @@
+
diff --git a/social-network/src/registerServiceWorker.js b/social-network/src/registerServiceWorker.js
new file mode 100644
index 0000000..a3e6c0c
--- /dev/null
+++ b/social-network/src/registerServiceWorker.js
@@ -0,0 +1,117 @@
+// In production, we register a service worker to serve assets from local cache.
+
+// This lets the app load faster on subsequent visits in production, and gives
+// it offline capabilities. However, it also means that developers (and users)
+// will only see deployed updates on the "N+1" visit to a page, since previously
+// cached resources are updated in the background.
+
+// To learn more about the benefits of this model, read https://goo.gl/KwvDNy.
+// This link also includes instructions on opting out of this behavior.
+
+const isLocalhost = Boolean(
+ window.location.hostname === 'localhost' ||
+ // [::1] is the IPv6 localhost address.
+ window.location.hostname === '[::1]' ||
+ // 127.0.0.1/8 is considered localhost for IPv4.
+ window.location.hostname.match(
+ /^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/
+ )
+);
+
+export default function register() {
+ if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {
+ // The URL constructor is available in all browsers that support SW.
+ const publicUrl = new URL(process.env.PUBLIC_URL, window.location);
+ if (publicUrl.origin !== window.location.origin) {
+ // Our service worker won't work if PUBLIC_URL is on a different origin
+ // from what our page is served on. This might happen if a CDN is used to
+ // serve assets; see https://github.com/facebookincubator/create-react-app/issues/2374
+ return;
+ }
+
+ window.addEventListener('load', () => {
+ const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;
+
+ if (isLocalhost) {
+ // This is running on localhost. Lets check if a service worker still exists or not.
+ checkValidServiceWorker(swUrl);
+
+ // Add some additional logging to localhost, pointing developers to the
+ // service worker/PWA documentation.
+ navigator.serviceWorker.ready.then(() => {
+ console.log(
+ 'This web app is being served cache-first by a service ' +
+ 'worker. To learn more, visit https://goo.gl/SC7cgQ'
+ );
+ });
+ } else {
+ // Is not local host. Just register service worker
+ registerValidSW(swUrl);
+ }
+ });
+ }
+}
+
+function registerValidSW(swUrl) {
+ navigator.serviceWorker
+ .register(swUrl)
+ .then(registration => {
+ registration.onupdatefound = () => {
+ const installingWorker = registration.installing;
+ installingWorker.onstatechange = () => {
+ if (installingWorker.state === 'installed') {
+ if (navigator.serviceWorker.controller) {
+ // At this point, the old content will have been purged and
+ // the fresh content will have been added to the cache.
+ // It's the perfect time to display a "New content is
+ // available; please refresh." message in your web app.
+ console.log('New content is available; please refresh.');
+ } else {
+ // At this point, everything has been precached.
+ // It's the perfect time to display a
+ // "Content is cached for offline use." message.
+ console.log('Content is cached for offline use.');
+ }
+ }
+ };
+ };
+ })
+ .catch(error => {
+ console.error('Error during service worker registration:', error);
+ });
+}
+
+function checkValidServiceWorker(swUrl) {
+ // Check if the service worker can be found. If it can't reload the page.
+ fetch(swUrl)
+ .then(response => {
+ // Ensure service worker exists, and that we really are getting a JS file.
+ if (
+ response.status === 404 ||
+ response.headers.get('content-type').indexOf('javascript') === -1
+ ) {
+ // No service worker found. Probably a different app. Reload the page.
+ navigator.serviceWorker.ready.then(registration => {
+ registration.unregister().then(() => {
+ window.location.reload();
+ });
+ });
+ } else {
+ // Service worker found. Proceed as normal.
+ registerValidSW(swUrl);
+ }
+ })
+ .catch(() => {
+ console.log(
+ 'No internet connection found. App is running in offline mode.'
+ );
+ });
+}
+
+export function unregister() {
+ if ('serviceWorker' in navigator) {
+ navigator.serviceWorker.ready.then(registration => {
+ registration.unregister();
+ });
+ }
+}