Skip to content

Commit efe7389

Browse files
Video 5 completed
1 parent 3fd911c commit efe7389

File tree

4 files changed

+33
-53
lines changed

4 files changed

+33
-53
lines changed

public/index.html

+4-22
Original file line numberDiff line numberDiff line change
@@ -10,34 +10,16 @@
1010
content="Web site created using create-react-app"
1111
/>
1212
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
13-
<!--
14-
manifest.json provides metadata used when your web app is installed on a
15-
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
16-
-->
1713
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
18-
<!--
19-
Notice the use of %PUBLIC_URL% in the tags above.
20-
It will be replaced with the URL of the `public` folder during the build.
21-
Only files inside the `public` folder can be referenced from the HTML.
14+
<!-- Bootstrap CSS -->
15+
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KyZXEAg3QhqLMpG8r+8fhAXLRk2vvoC2f3B09zVXn8CA5QIVfZOJ3BCsw2P0p/We" crossorigin="anonymous">
2216

23-
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
24-
work correctly both with client-side routing and a non-root public URL.
25-
Learn how to configure a non-root public URL by running `npm run build`.
26-
-->
2717
<title>React App</title>
2818
</head>
2919
<body>
3020
<noscript>You need to enable JavaScript to run this app.</noscript>
3121
<div id="root"></div>
32-
<!--
33-
This HTML file is a template.
34-
If you open it directly in the browser, you will see an empty page.
3522

36-
You can add webfonts, meta tags, or analytics to this file.
37-
The build step will place the bundled scripts into the <body> tag.
38-
39-
To begin the development, run `npm start` or `yarn start`.
40-
To create a production bundle, use `npm run build` or `yarn build`.
41-
-->
23+
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-U1DAWAznBHeqEIlVSCgzq+c9gqGAJn5c/t99JyeKa9xxaYpSvHU5awsuZVVFIhvj" crossorigin="anonymous"></script>
4224
</body>
43-
</html>
25+
</html>

src/App.css

+4
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,7 @@
3636
transform: rotate(360deg);
3737
}
3838
}
39+
40+
.blank{
41+
color: rgb(32, 8, 246);
42+
}

src/App.js

+25-18
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,31 @@
1-
import logo from './logo.svg';
21
import './App.css';
3-
2+
43
function App() {
54
return (
6-
<div className="App">
7-
<header className="App-header">
8-
<img src={logo} className="App-logo" alt="logo" />
9-
<p>
10-
Edit <code>src/App.js</code> and save to reload.
11-
</p>
12-
<a
13-
className="App-link"
14-
href="https://reactjs.org"
15-
target="_blank"
16-
rel="noopener noreferrer"
17-
>
18-
Learn React
19-
</a>
20-
</header>
21-
</div>
5+
<>
6+
<nav className="navbar navbar-expand-lg navbar-light bg-light">
7+
<div className="container-fluid">
8+
<a className="navbar-brand" href="/">TextUtils</a>
9+
<button className="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
10+
<span className="navbar-toggler-icon"></span>
11+
</button>
12+
<div className="collapse navbar-collapse" id="navbarSupportedContent">
13+
<ul className="navbar-nav me-auto mb-2 mb-lg-0">
14+
<li className="nav-item">
15+
<a className="nav-link active" aria-current="page" href="/">Home</a>
16+
</li>
17+
<li className="nav-item">
18+
<a className="nav-link" href="/">About</a>
19+
</li>
20+
</ul>
21+
<form className="d-flex">
22+
<input className="form-control me-2" type="search" placeholder="Search" aria-label="Search"/>
23+
<button className="btn btn-outline-success" type="submit">Search</button>
24+
</form>
25+
</div>
26+
</div>
27+
</nav>
28+
</>
2229
);
2330
}
2431

src/index.css

-13
Original file line numberDiff line numberDiff line change
@@ -1,13 +0,0 @@
1-
body {
2-
margin: 0;
3-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4-
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5-
sans-serif;
6-
-webkit-font-smoothing: antialiased;
7-
-moz-osx-font-smoothing: grayscale;
8-
}
9-
10-
code {
11-
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12-
monospace;
13-
}

0 commit comments

Comments
 (0)