Skip to content

Commit ee60393

Browse files
committed
first commit
1 parent 76a4d9c commit ee60393

17 files changed

+673
-130
lines changed

.eslintcache

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[{"C:\\Users\\Sebas\\Documents\\ProdCode\\codecademy\\src\\index.js":"1","C:\\Users\\Sebas\\Documents\\ProdCode\\codecademy\\src\\App.js":"2","C:\\Users\\Sebas\\Documents\\ProdCode\\codecademy\\src\\components\\header\\NavBar.js":"3"},{"size":406,"mtime":1606964373187,"results":"4","hashOfConfig":"5"},{"size":172,"mtime":1606969775166,"results":"6","hashOfConfig":"5"},{"size":586,"mtime":1606970037139,"results":"7","hashOfConfig":"5"},{"filePath":"8","messages":"9","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1be71of",{"filePath":"10","messages":"11","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"12","messages":"13","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"C:\\Users\\Sebas\\Documents\\ProdCode\\codecademy\\src\\index.js",[],"C:\\Users\\Sebas\\Documents\\ProdCode\\codecademy\\src\\App.js",[],"C:\\Users\\Sebas\\Documents\\ProdCode\\codecademy\\src\\components\\header\\NavBar.js",[]]

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"@testing-library/jest-dom": "^5.11.4",
77
"@testing-library/react": "^11.1.0",
88
"@testing-library/user-event": "^12.1.10",
9+
"node-sass": "4.14.1",
910
"react": "^17.0.1",
1011
"react-dom": "^17.0.1",
1112
"react-scripts": "4.0.1",

src/App.css

-38
This file was deleted.

src/App.js

+7-20
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,12 @@
1-
import logo from './logo.svg';
2-
import './App.css';
1+
import "./App.scss";
2+
import NavBar from "./components/header/NavBar";
33

44
function App() {
5-
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>
22-
);
5+
return (
6+
<div className="App">
7+
<NavBar />
8+
</div>
9+
);
2310
}
2411

2512
export default App;

src/App.scss

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
$margin-sml: 0.25em;
2+
$margin-md: 0.5em;
3+
$margin-lg: 1em;
4+
$margin-xlg: 1.5em;
5+
6+
$padding-sml: 0.25em;
7+
$padding-md: 0.5em;
8+
$padding-lg: 1em;
9+
$padding-xlg: 1.5em;
10+
11+
:root {
12+
box-sizing: border-box;
13+
}
14+
15+
*,
16+
::before,
17+
::after {
18+
box-sizing: inherit;
19+
}
20+
21+
body {
22+
background-color: #fff0e5;
23+
margin: 0;
24+
}
25+
26+
@import "./components/header/navbar";

src/App.test.js

-8
This file was deleted.

src/assests/svg/codecademy-logo.com.svg

+17
Loading

src/assests/svg/menu.svg

+1
Loading

src/assests/svg/notification.svg

+60
Loading

src/components/header/NavBar.js

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import React from "react";
2+
import logo from "../../assests/svg/codecademy-logo.com.svg";
3+
import notification from "../../assests/svg/notification.svg";
4+
import menu from "../../assests/svg/menu.svg";
5+
6+
const NavBar = () => {
7+
return (
8+
<div className="navbar">
9+
<img src={logo} alt="logo" className="navbar__icon" />
10+
<div className="move-right">
11+
<img
12+
src={notification}
13+
alt="notification"
14+
className=" navbar__icon--sml"
15+
/>
16+
<img src={menu} alt="menu" className="navbar__icon--sml" />
17+
</div>
18+
</div>
19+
);
20+
};
21+
22+
export default NavBar;

src/components/header/_navbar.scss

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.navbar {
2+
background-color: hsl(0, 0%, 98%);
3+
padding: $padding-lg;
4+
border-bottom: 1px solid black;
5+
display: flex;
6+
justify-content: space-between;
7+
align-items: baseline;
8+
&__icon {
9+
height: 27px;
10+
}
11+
&__icon--sml {
12+
height: 20px;
13+
padding-left: $padding-xlg;
14+
}
15+
}

src/index.css

-13
This file was deleted.

src/index.js

+8-10
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
1-
import React from 'react';
2-
import ReactDOM from 'react-dom';
3-
import './index.css';
4-
import App from './App';
5-
import reportWebVitals from './reportWebVitals';
1+
import React from "react";
2+
import ReactDOM from "react-dom";
3+
4+
import App from "./App";
65

76
ReactDOM.render(
8-
<React.StrictMode>
9-
<App />
10-
</React.StrictMode>,
11-
document.getElementById('root')
7+
<React.StrictMode>
8+
<App />
9+
</React.StrictMode>,
10+
document.getElementById("root")
1211
);
1312

1413
// If you want to start measuring performance in your app, pass a function
1514
// to log results (for example: reportWebVitals(console.log))
1615
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
17-
reportWebVitals();

src/logo.svg

-1
This file was deleted.

src/reportWebVitals.js

-13
This file was deleted.

src/setupTests.js

-5
This file was deleted.

0 commit comments

Comments
 (0)