-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from aashutoshPanda/integrate-auth-flow
Add guest login and integrate auth
- Loading branch information
Showing
12 changed files
with
263 additions
and
48 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
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
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// src/components/ResumeCard.js | ||
import React from "react"; | ||
import { Typography, Box, Button, Grid, Container } from "@mui/material"; | ||
import logo from "../assets/logo.png"; | ||
import { useNavigate } from "react-router-dom"; | ||
import { localStorageKeyAPIToken } from "../constants/api"; | ||
|
||
const Header = () => { | ||
const navigate = useNavigate(); | ||
|
||
const handleLogout = () => { | ||
localStorage.removeItem(localStorageKeyAPIToken); | ||
navigate("/"); | ||
}; | ||
|
||
return ( | ||
<Container maxWidth="lg"> | ||
<Grid container alignItems="center"> | ||
{/* Logo and Title */} | ||
<Grid item xs={6}> | ||
<Box display="flex" alignItems="center"> | ||
<img src={logo} alt="Logo" style={{ width: "55px", marginRight: "10px", marginBottom: "10px" }} /> | ||
<Typography variant="h5">TAILOR MY RESUME</Typography> | ||
</Box> | ||
</Grid> | ||
|
||
{/* Logout Button */} | ||
<Grid item xs={6} container justifyContent="flex-end"> | ||
<Button variant="outlined" color="primary" onClick={handleLogout}> | ||
Logout | ||
</Button> | ||
</Grid> | ||
</Grid> | ||
</Container> | ||
); | ||
}; | ||
|
||
export default Header; |
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
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
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 +1,2 @@ | ||
export const baseURL = "http://localhost:3030"; // Replace with your actual API endpoint | ||
export const localStorageKeyAPIToken = "tailor-my-resume-key"; |
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
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
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
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.