From 9725fd927876f312cf55456831b59ecc2a619411 Mon Sep 17 00:00:00 2001 From: Ruidy Nemausat Date: Tue, 12 May 2020 10:35:59 +0200 Subject: [PATCH] clean default project --- public/index.html | 30 ++++-------------------------- public/manifest.json | 10 +++++----- src/App.css | 38 -------------------------------------- src/App.test.tsx | 9 --------- src/App.tsx | 21 +-------------------- src/index.tsx | 5 +---- src/logo.svg | 7 ------- 7 files changed, 11 insertions(+), 109 deletions(-) delete mode 100644 src/App.css delete mode 100644 src/App.test.tsx delete mode 100644 src/logo.svg diff --git a/public/index.html b/public/index.html index aa069f2..112696b 100644 --- a/public/index.html +++ b/public/index.html @@ -4,40 +4,18 @@ - + - - - React App + DevBook
- diff --git a/public/manifest.json b/public/manifest.json index 080d6c7..82dcda3 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -1,6 +1,6 @@ { - "short_name": "React App", - "name": "Create React App Sample", + "short_name": "DevBook", + "name": "DevBook | Social App for devs", "icons": [ { "src": "favicon.ico", @@ -20,6 +20,6 @@ ], "start_url": ".", "display": "standalone", - "theme_color": "#000000", - "background_color": "#ffffff" -} + "theme_color": "#17a2b8", + "background_color": "#000000" +} \ No newline at end of file diff --git a/src/App.css b/src/App.css deleted file mode 100644 index 74b5e05..0000000 --- a/src/App.css +++ /dev/null @@ -1,38 +0,0 @@ -.App { - text-align: center; -} - -.App-logo { - height: 40vmin; - pointer-events: none; -} - -@media (prefers-reduced-motion: no-preference) { - .App-logo { - animation: App-logo-spin infinite 20s linear; - } -} - -.App-header { - background-color: #282c34; - min-height: 100vh; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - font-size: calc(10px + 2vmin); - color: white; -} - -.App-link { - color: #61dafb; -} - -@keyframes App-logo-spin { - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } -} diff --git a/src/App.test.tsx b/src/App.test.tsx deleted file mode 100644 index 4db7ebc..0000000 --- a/src/App.test.tsx +++ /dev/null @@ -1,9 +0,0 @@ -import React from 'react'; -import { render } from '@testing-library/react'; -import App from './App'; - -test('renders learn react link', () => { - const { getByText } = render(); - const linkElement = getByText(/learn react/i); - expect(linkElement).toBeInTheDocument(); -}); diff --git a/src/App.tsx b/src/App.tsx index a53698a..e91ac07 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,26 +1,7 @@ import React from 'react'; -import logo from './logo.svg'; -import './App.css'; function App() { - return ( -
-
- logo -

- Edit src/App.tsx and save to reload. -

- - Learn React - -
-
- ); + return
; } export default App; diff --git a/src/index.tsx b/src/index.tsx index f5185c1..3fe68ae 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -8,10 +8,7 @@ ReactDOM.render( , - document.getElementById('root') + document.getElementById('root'), ); -// If you want your app to work offline and load faster, you can change -// unregister() to register() below. Note this comes with some pitfalls. -// Learn more about service workers: https://bit.ly/CRA-PWA serviceWorker.unregister(); diff --git a/src/logo.svg b/src/logo.svg deleted file mode 100644 index 6b60c10..0000000 --- a/src/logo.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - -