Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
hiteshvijayhv committed Feb 17, 2022
1 parent 966e31f commit 2c2e49e
Show file tree
Hide file tree
Showing 19 changed files with 1,071 additions and 53 deletions.
160 changes: 160 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@
"@testing-library/jest-dom": "^5.16.2",
"@testing-library/react": "^12.1.2",
"@testing-library/user-event": "^13.5.0",
"axios": "^0.25.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-file-base64": "^1.0.3",
"react-router-dom": "^6.2.1",
"react-scripts": "5.0.0",
"universal-cookie": "^4.0.4",
"web-vitals": "^2.1.4"
},
"scripts": {
Expand Down
4 changes: 4 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
Expand All @@ -24,6 +25,9 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Lobster&family=Open+Sans&family=Permanent+Marker&family=Roboto&display=swap" rel="stylesheet">
<title>React App</title>
</head>
<body>
Expand Down
41 changes: 3 additions & 38 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -1,38 +1,3 @@
.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);
}
}
* {
font-family: 'Poppins', sans-serif;
}
37 changes: 22 additions & 15 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,30 @@
import logo from './logo.svg';
import { BrowserRouter as Router, Routes, Route, Link } from "react-router-dom";
import './App.css';
import Edit from "./components/Edit";
import Home from "./components/Home";
import LinksPage from "./components/LinksPage";
import Login from "./components/Login";
import Register from "./components/Register";
import Profile from './components/Profile'
import Nav from "./components/Nav";
import { useState } from "react";

import Cookies from "universal-cookie";

function App() {

return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
<Router>
<Routes>
<Route path="/" exact element={<Home />} />
<Route path="/register" exact element={<Register />} />
<Route path="/login" exact element={<Login />} />
<Route path="/:username/view" element={<LinksPage />} />
<Route path="/:username/edit" exact element={<Edit />} />
<Route path='/:username' element={<Profile />} />
</Routes>
</Router>
</div>
);
}
Expand Down
Loading

0 comments on commit 2c2e49e

Please sign in to comment.