-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f6ed8f5
commit 08f1eb2
Showing
26 changed files
with
1,368 additions
and
1,368 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,47 @@ | ||
{ | ||
"name": "frontend", | ||
"version": "0.1.0", | ||
"private": true, | ||
"dependencies": { | ||
"@sanity/client": "^2.23.2", | ||
"@sanity/image-url": "^1.0.1", | ||
"react": "^17.0.2", | ||
"react-dom": "^17.0.2", | ||
"react-google-login": "^5.2.2", | ||
"react-icons": "^4.3.1", | ||
"react-loader-spinner": "^4.0.0", | ||
"react-masonry-css": "^1.0.16", | ||
"react-router-dom": "^6.2.1", | ||
"react-scripts": "^5.0.0", | ||
"uuid": "^8.3.2" | ||
}, | ||
"scripts": { | ||
"start": "react-scripts start", | ||
"build": "react-scripts build", | ||
"test": "react-scripts test", | ||
"eject": "react-scripts eject" | ||
}, | ||
"eslintConfig": { | ||
"extends": [ | ||
"react-app", | ||
"react-app/jest" | ||
] | ||
}, | ||
"browserslist": { | ||
"production": [ | ||
">0.2%", | ||
"not dead", | ||
"not op_mini all" | ||
], | ||
"development": [ | ||
"last 1 chrome version", | ||
"last 1 firefox version", | ||
"last 1 safari version" | ||
] | ||
}, | ||
"devDependencies": { | ||
"autoprefixer": "^10.4.0", | ||
"postcss": "^8.4.5", | ||
"tailwindcss": "^3.0.7" | ||
} | ||
"name": "frontend", | ||
"version": "0.1.0", | ||
"private": true, | ||
"dependencies": { | ||
"@sanity/client": "^2.23.2", | ||
"@sanity/image-url": "^1.0.1", | ||
"react": "^17.0.2", | ||
"react-dom": "^17.0.2", | ||
"react-google-login": "^5.2.2", | ||
"react-icons": "^4.3.1", | ||
"react-loader-spinner": "^4.0.0", | ||
"react-masonry-css": "^1.0.16", | ||
"react-router-dom": "^6.2.1", | ||
"react-scripts": "^5.0.0", | ||
"uuid": "^8.3.2" | ||
}, | ||
"scripts": { | ||
"start": "react-scripts start", | ||
"build": "react-scripts build", | ||
"test": "react-scripts test", | ||
"eject": "react-scripts eject" | ||
}, | ||
"eslintConfig": { | ||
"extends": [ | ||
"react-app", | ||
"react-app/jest" | ||
] | ||
}, | ||
"browserslist": { | ||
"production": [ | ||
">0.2%", | ||
"not dead", | ||
"not op_mini all" | ||
], | ||
"development": [ | ||
"last 1 chrome version", | ||
"last 1 firefox version", | ||
"last 1 safari version" | ||
] | ||
}, | ||
"devDependencies": { | ||
"autoprefixer": "^10.4.0", | ||
"postcss": "^8.4.5", | ||
"tailwindcss": "^3.0.7" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module.exports = { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<link rel="icon" href="./favicon.svg" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name="theme-color" content="#000000" /> | ||
<title>Pin it!</title> | ||
</head> | ||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="root"></div> | ||
</body> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<link rel="icon" href="./favicon.svg" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name="theme-color" content="#000000" /> | ||
<title>Pin it!</title> | ||
</head> | ||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="root"></div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
import { useEffect } from "react" | ||
import { Routes, Route, useNavigate } from "react-router-dom" | ||
import { useEffect } from 'react' | ||
import { Routes, Route, useNavigate } from 'react-router-dom' | ||
|
||
import { Login } from "./components" | ||
import { Home } from "./containers" | ||
import { Login } from './components' | ||
import { Home } from './containers' | ||
|
||
const App = () => { | ||
const navigate = useNavigate() | ||
useEffect(() => { | ||
const User = | ||
localStorage.getItem("user") !== "undefined" | ||
? JSON.parse(localStorage.getItem("user")) | ||
: localStorage.clear() | ||
const navigate = useNavigate() | ||
useEffect(() => { | ||
const User = | ||
localStorage.getItem('user') !== 'undefined' | ||
? JSON.parse(localStorage.getItem('user')) | ||
: localStorage.clear() | ||
|
||
if (!User) navigate("/login") | ||
}, [navigate]) | ||
if (!User) navigate('/login') | ||
}, [navigate]) | ||
|
||
return ( | ||
<Routes> | ||
<Route path='login' element={<Login />} /> | ||
<Route path='/*' element={<Home />} /> | ||
</Routes> | ||
) | ||
return ( | ||
<Routes> | ||
<Route path='login' element={<Login />} /> | ||
<Route path='/*' element={<Home />} /> | ||
</Routes> | ||
) | ||
} | ||
|
||
export default App |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
08f1eb2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
pinit – ./
pinit-git-main-jainpranayr.vercel.app
pinit.vercel.app
pinit-jainpranayr.vercel.app
pinit.pranay.tech