Skip to content

Commit d15c566

Browse files
committed
adding home page
1 parent 3e2bd1c commit d15c566

File tree

15 files changed

+608
-30
lines changed

15 files changed

+608
-30
lines changed

my-app/package-lock.json

Lines changed: 399 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

my-app/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@
99
"@testing-library/user-event": "^13.5.0",
1010
"bootstrap": "^3.4.1",
1111
"react": "^18.2.0",
12+
"react-bootstrap": "^2.9.0",
1213
"react-dom": "^18.2.0",
1314
"react-scripts": "5.0.1",
15+
"react-simple-maps": "^3.0.0",
16+
"reactstrap": "^9.2.0",
1417
"web-vitals": "^2.1.4"
1518
},
1619
"scripts": {
@@ -40,6 +43,7 @@
4043
]
4144
},
4245
"devDependencies": {
43-
"gh-pages": "^6.0.0"
46+
"gh-pages": "^6.0.0",
47+
"react-router-dom": "^6.16.0"
4448
}
4549
}

my-app/public/favicon.ico

-2.19 KB
Binary file not shown.

my-app/public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
work correctly both with client-side routing and a non-root public URL.
2525
Learn how to configure a non-root public URL by running `npm run build`.
2626
-->
27-
<title>React App</title>
27+
<title>Joseph Martinez</title>
2828
</head>
2929
<body>
3030
<noscript>You need to enable JavaScript to run this app.</noscript>

my-app/src/assets/JM.png

44.2 KB
Loading

my-app/src/assets/profile.jpeg

60.7 KB
Loading

my-app/src/index.css

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1 @@
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-
}
91

10-
code {
11-
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12-
monospace;
13-
}

my-app/src/index.js

Lines changed: 31 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,33 @@
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 { BrowserRouter, Routes, Route } from "react-router-dom";
5+
import Layout from "./pages/Layout";
6+
import Home from "./pages/Home";
7+
import Projects from "./pages/Projects";
8+
import Contact from "./pages/Contact";
9+
import NoPage from "./pages/NoPage";
610

7-
const root = ReactDOM.createRoot(document.getElementById('root'));
8-
root.render(
9-
<React.StrictMode>
10-
<App />
11-
</React.StrictMode>
12-
);
11+
export default function App() {
12+
return (
13+
<BrowserRouter>
14+
<link
15+
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
16+
rel="stylesheet"
17+
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN"
18+
crossOrigin="anonymous"
19+
/>
20+
<Routes>
21+
<Route path="/" element={<Layout />}>
22+
<Route index element={<Home />} />
23+
<Route path="projects" element={<Projects />} />
24+
<Route path="contact" element={<Contact />} />
25+
<Route path="*" element={<NoPage />} />
26+
</Route>
27+
</Routes>
28+
</BrowserRouter>
29+
);
30+
}
1331

14-
// If you want to start measuring performance in your app, pass a function
15-
// to log results (for example: reportWebVitals(console.log))
16-
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
17-
reportWebVitals();
32+
const root = ReactDOM.createRoot(document.getElementById("root"));
33+
root.render(<App />);

my-app/src/pages/Contact.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const Contact = () => {
2+
return <h1>Contact Me</h1>;
3+
};
4+
5+
export default Contact;

my-app/src/pages/Home.css

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
.main {
2+
height: 100vh;
3+
display: flex;
4+
justify-content: center;
5+
align-items: center;
6+
flex-direction: column;
7+
}
8+
9+
.home {
10+
justify-content: center;
11+
align-items: center;
12+
flex-direction: column;
13+
display: flex;
14+
}
15+
.image {
16+
width: 350px;
17+
background-image: url("../assets/profile.jpeg");
18+
height: 350px;
19+
border-radius: 50% !important;
20+
background-position: center;
21+
}
22+
23+
.text {
24+
color: rgb(154, 157, 158);
25+
}
26+
27+
.info {
28+
margin-left: 20px;
29+
width: 50vw;
30+
}
31+
32+
.flex {
33+
display: flex;
34+
justify-content: center;
35+
align-items: center;
36+
}
37+
38+
.title {
39+
width: fit-content;
40+
}
41+
42+
.body {
43+
width: 75vw;
44+
}
45+
46+
.button {
47+
background-image: linear-gradient(
48+
to right,
49+
rgb(157, 112, 247),
50+
rgb(31, 79, 182)
51+
);
52+
color: white;
53+
height: 40px;
54+
margin: 40px;
55+
border-radius: 12px;
56+
border: none;
57+
}

0 commit comments

Comments
 (0)