diff --git a/.gitignore b/.gitignore index 4d29575..d94b699 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,6 @@ npm-debug.log* yarn-debug.log* yarn-error.log* + +# Editors +Session.vim diff --git a/src/App.tsx b/src/App.tsx deleted file mode 100644 index 871d6f7..0000000 --- a/src/App.tsx +++ /dev/null @@ -1,27 +0,0 @@ -import React from 'react' - -import logo from './logo.svg' -import './App.sass' - -function App() { - return ( -
-
- logo -

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

- - Learn React - -
-
- ) -} - -export default App diff --git a/src/App.sass b/src/Bootstrap.sass similarity index 69% rename from src/App.sass rename to src/Bootstrap.sass index ef89776..8a8eb24 100644 --- a/src/App.sass +++ b/src/Bootstrap.sass @@ -1,15 +1,15 @@ -.App +.Bootstrap text-align: center -.App-logo +.Bootstrap-logo height: 40vmin pointer-events: none @media (prefers-reduced-motion: no-preference) - .App-logo - animation: App-logo-spin infinite 20s linear + .Bootstrap-logo + animation: Bootstrap-logo-spin infinite 20s linear -.App-header +.Bootstrap-header background-color: #282c34 min-height: 100vh display: flex @@ -19,10 +19,10 @@ font-size: calc(10px + 2vmin) color: white -.App-link +.Bootstrap-link color: #61dafb -@keyframes App-logo-spin +@keyframes Bootstrap-logo-spin from transform: rotate(0deg) to diff --git a/src/App.test.tsx b/src/Bootstrap.test.tsx similarity index 78% rename from src/App.test.tsx rename to src/Bootstrap.test.tsx index 2ed68e1..728516f 100644 --- a/src/App.test.tsx +++ b/src/Bootstrap.test.tsx @@ -1,10 +1,10 @@ import React from 'react' import { render, screen } from '@testing-library/react' -import App from './App' +import Bootstrap from './Bootstrap' test('renders learn react link', () => { - render() + render() const linkElement = screen.getByText(/learn react/i) expect(linkElement).toBeInTheDocument() }) diff --git a/src/Bootstrap.tsx b/src/Bootstrap.tsx new file mode 100644 index 0000000..d59749a --- /dev/null +++ b/src/Bootstrap.tsx @@ -0,0 +1,27 @@ +import React from 'react' + +import logo from './logo.svg' +import './Bootstrap.sass' + +function Bootstrap() { + return ( +
+
+ logo +

+ Edit src/Bootstrap.tsx and save to reload. +

+ + Learn React + +
+
+ ) +} + +export default Bootstrap diff --git a/src/index.tsx b/src/index.tsx index 541cabb..aaa1ebf 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -4,14 +4,14 @@ import { HashRouter as Router } from 'react-router-dom' import * as serviceWorkerRegistration from './serviceWorkerRegistration' import './index.sass' -import App from './App' +import Bootstrap from './Bootstrap' import reportWebVitals from './reportWebVitals' const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement) root.render( - + )