Skip to content

Commit ba6f015

Browse files
committed
destructure compontents
1 parent e393195 commit ba6f015

File tree

8 files changed

+55
-45
lines changed

8 files changed

+55
-45
lines changed

src/App.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import './App.css';
2-
import Header from "./components/Header/Header";
1+
import "./App.css";
2+
import Header from "./components/Header";
33
import DownloadButton from "./components/DownloadButton";
44
import ProgrammingExpertise from "./components/ProgrammingExpertise";
5-
import Education from './components/Education';
5+
import Education from "./components/Education";
66

77
function App() {
88
return (

src/Components/DownloadButton.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import React from "react";
2+
3+
const DownloadButton = () => {
4+
return (
5+
<button
6+
style={{
7+
display: "flex",
8+
alignItems: "center",
9+
}}
10+
>
11+
<img
12+
src="/images/download.svg"
13+
alt=""
14+
style={{
15+
padding: "5px",
16+
}}
17+
></img>
18+
Download
19+
</button>
20+
);
21+
};
22+
23+
export default DownloadButton;

src/Components/Header.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import React from "react";
2+
import "../Header.css";
3+
4+
const Header = () => {
5+
return (
6+
<div>
7+
<nav>
8+
<div className="logo">
9+
<img
10+
className="imagelogo"
11+
src="https://logo.clearbit.com/spotify.com"
12+
alt="logo"
13+
/>
14+
</div>
15+
<div className="name">
16+
<h2>Name</h2>
17+
</div>
18+
</nav>
19+
</div>
20+
);
21+
};
22+
23+
export default Header;

src/components/DownloadButton.jsx

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/components/Header/Header.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import React from 'react';
2-
import ReactDOM from 'react-dom/client';
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/client";
3+
import "./index.css";
4+
import App from "./App";
5+
import reportWebVitals from "./reportWebVitals";
66

7-
const root = ReactDOM.createRoot(document.getElementById('root'));
7+
const root = ReactDOM.createRoot(document.getElementById("root"));
88
root.render(
99
<React.StrictMode>
1010
<App />

0 commit comments

Comments
 (0)