Skip to content

Added React Router For Navigation #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 1, 2024
Merged

Added React Router For Navigation #22

merged 2 commits into from
Jul 1, 2024

Conversation

bhagirathpaliyal
Copy link
Collaborator

No description provided.


const LandingPage = () => {
return (
<div className="h-[100vh] flex flex-col justify-center items-center">
<h1 className="text-[128px] font-medium-">LibraryHub</h1>
<p className="text-[36px] font-medium">Your central place for all library needs</p>
<div className="flex gap-[20px] mt-[50px]">
<Button variant="outline">Create A Library</Button>
<Button >Join A Library</Button>
<Link to={'Login'}><Button variant="outline">Create A Library</Button></Link>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Link should be like 'management/login'

<Button variant="outline">Create A Library</Button>
<Button >Join A Library</Button>
<Link to={'Login'}><Button variant="outline">Create A Library</Button></Link>
<Link to={'SignUp'}><Button >Join A Library</Button></Link>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Link should be like 'user/login'

src/App.tsx Outdated
<Route path="*" element={<NotFound />} />
<Route path='LibraryManagement' element={<LandingPage/>}/>
<Route path='LibraryManagement/Login' element={<LandingPage/>}/>
<Route path='LibraryManagement/SignUp' element={<LandingPage/>}/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change paths here as well

@yogeshpaliyal yogeshpaliyal merged commit 746c27d into main Jul 1, 2024
1 check passed
@yogeshpaliyal yogeshpaliyal deleted the Router-Setup branch July 1, 2024 04:55
@bhagirathpaliyal bhagirathpaliyal restored the Router-Setup branch July 3, 2024 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants