Skip to content

Commit e3e713b

Browse files
committed
Adding Bootstrap
1 parent 670b920 commit e3e713b

File tree

5 files changed

+37
-52
lines changed

5 files changed

+37
-52
lines changed

Section9-React-with-TypeScript/reminders-app/package-lock.json

Lines changed: 31 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Section9-React-with-TypeScript/reminders-app/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"@types/node": "^16.18.108",
1111
"@types/react": "^18.3.5",
1212
"@types/react-dom": "^18.3.0",
13+
"bootstrap": "^5.3.3",
1314
"react": "^18.3.1",
1415
"react-dom": "^18.3.1",
1516
"react-scripts": "5.0.1",
Lines changed: 3 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,3 @@
1-
.App {
2-
text-align: center;
3-
}
4-
5-
.App-logo {
6-
height: 40vmin;
7-
pointer-events: none;
8-
}
9-
10-
@media (prefers-reduced-motion: no-preference) {
11-
.App-logo {
12-
animation: App-logo-spin infinite 20s linear;
13-
}
14-
}
15-
16-
.App-header {
17-
background-color: #282c34;
18-
min-height: 100vh;
19-
display: flex;
20-
flex-direction: column;
21-
align-items: center;
22-
justify-content: center;
23-
font-size: calc(10px + 2vmin);
24-
color: white;
25-
}
26-
27-
.App-link {
28-
color: #61dafb;
29-
}
30-
31-
@keyframes App-logo-spin {
32-
from {
33-
transform: rotate(0deg);
34-
}
35-
to {
36-
transform: rotate(360deg);
37-
}
38-
}
1+
body {
2+
padding: 20px;
3+
}

Section9-React-with-TypeScript/reminders-app/src/App.tsx

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,7 @@ import './App.css';
55
function App() {
66
return (
77
<div className="App">
8-
<header className="App-header">
9-
<img src={logo} className="App-logo" alt="logo" />
10-
<p>
11-
Edit <code>src/App.tsx</code> and save to reload.
12-
</p>
13-
<a
14-
className="App-link"
15-
href="https://reactjs.org"
16-
target="_blank"
17-
rel="noopener noreferrer"
18-
>
19-
Learn React
20-
</a>
21-
</header>
8+
<button className="btn btn-primary">Click Me</button>
229
</div>
2310
);
2411
}

Section9-React-with-TypeScript/reminders-app/src/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from 'react';
22
import ReactDOM from 'react-dom/client';
3+
import 'bootstrap/dist/css/bootstrap.css';
34
import './index.css';
45
import App from './App';
56
import reportWebVitals from './reportWebVitals';

0 commit comments

Comments
 (0)