Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanu-Shree22 authored Jun 2, 2024
1 parent cc174c1 commit 6e15a1f
Show file tree
Hide file tree
Showing 16 changed files with 211 additions and 0 deletions.
39 changes: 39 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
.App {
text-align: center;
}

.App-logo {
height: 40vmin;
pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 20s linear;
}
}

.App-header {
background-color: #282c34;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
}

.App-link {
color: #61dafb;
}

@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}

23 changes: 23 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import logo from './logo.svg';
import React from 'react';
import Navbar from './components/Navbar';
import './App.css'; // Assuming you have a CSS file for styling
import Routes from './Routes'; // Import the Routes component

function App() {
return (
<div className="App">

<header className="App-header">
<h1>Hii there👋🏻</h1>
<h1>I'm Tanu Shree</h1>

</header>



</div>
);
}

export default App;
8 changes: 8 additions & 0 deletions src/App.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { render, screen } from '@testing-library/react';
import App from './App';

test('renders learn react link', () => {
render(<App />);
const linkElement = screen.getByText(/learn react/i);
expect(linkElement).toBeInTheDocument();
});
33 changes: 33 additions & 0 deletions src/Routes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// Routes.js
import React from 'react';
import {
BrowserRouter,
RouterProvider,
Route,
Routes,
Switch,
Link,
useParams,
} from "react-router-dom";


import Home from './pages/Home';
import About from './pages/About';
import Resume from './pages/Resume';
import Projects from './pages/Projects';

const Router = () => {
return (
<BrowserRouter>
{/* User pvt routes */}
<Routes>
<Route path="/" exact component={Home} />
<Route path="/about" component={About} />
<Route path="/resume" component={Resume} />
<Route path="/projects" component={Projects} />
</Routes>
</BrowserRouter>
);
}

export default Routes;
33 changes: 33 additions & 0 deletions src/Routes.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// Routes.js
import React from 'react';
import {
BrowserRouter,
RouterProvider,
Route,
Routes,
Switch,
Link,
useParams,
} from "react-router-dom";


import Home from './pages/Home';
import About from './pages/About';
import Resume from './pages/Resume';
import Projects from './pages/Projects';

const Router = () => {
return (
<BrowserRouter>
{/* User pvt routes */}
<Routes>
<Route path="/" exact component={Home} />
<Route path="/about" component={About} />
<Route path="/resume" component={Resume} />
<Route path="/projects" component={Projects} />
</Routes>
</BrowserRouter>
);
}

export default Routes;
Empty file added src/components/Footer.js
Empty file.
25 changes: 25 additions & 0 deletions src/components/Navbar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// Navbar.js
import React from 'react';
import { Link } from 'react-router-dom';


function Navbar() {
return (
<nav>
<ul className="navbar">
<li><Link to="/">Home</Link></li>
<li className="dropdown">
<a href="#portfolio" className="dropbtn">Portfolio</a>
<div className="dropdown-content">
<Link to="/about">About</Link>
<Link to="/resume">Resume</Link>
<Link to="/projects">Projects</Link>
</div>
</li>
<li><Link to="/contact">Contact</Link></li>
</ul>
</nav>
);
}

export default Navbar;
13 changes: 13 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}
17 changes: 17 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<React.StrictMode>
<App />
</React.StrictMode>
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
1 change: 1 addition & 0 deletions src/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file added src/pages/About.js
Empty file.
1 change: 1 addition & 0 deletions src/pages/Home.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Empty file added src/pages/Projects.js
Empty file.
Empty file added src/pages/Resume.js
Empty file.
13 changes: 13 additions & 0 deletions src/reportWebVitals.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const reportWebVitals = onPerfEntry => {
if (onPerfEntry && onPerfEntry instanceof Function) {
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
getCLS(onPerfEntry);
getFID(onPerfEntry);
getFCP(onPerfEntry);
getLCP(onPerfEntry);
getTTFB(onPerfEntry);
});
}
};

export default reportWebVitals;
5 changes: 5 additions & 0 deletions src/setupTests.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// jest-dom adds custom jest matchers for asserting on DOM nodes.
// allows you to do things like:
// expect(element).toHaveTextContent(/react/i)
// learn more: https://github.com/testing-library/jest-dom
import '@testing-library/jest-dom';

0 comments on commit 6e15a1f

Please sign in to comment.