Skip to content

[Bug]: Route Corrections and Code Refactoring for About and Landing Page #256

@sohan9819

Description

@sohan9819

Describe the bug

The route for the home page and about page are currently like this
about page : http://localhost:3000/templates/ebraj/about

Also there are components that are shared by about.tsx - (about page) and index.tsx - (landing or home page) currently and the entire landing page is imported from the pages\templates\ebraj\index.tsx.

To Reproduce

  1. Go to landing page - http://localhost:3000
  2. Click on about on navbar.
  3. See the route.
  4. Go to the file pages\index.tsx check the code.
  5. Also check the files index.tsx and about.tsx from folder pages\templates\ebraj

Expected behavior

The route for the home page and about page are expected to be like this
about page : http://localhost:3000/about
We can refactor code and make a folder layout in components folder and move all the shared components of about.tsx and index.tsx there . Also move the entire code of landing page from pages\templates\ebraj\index.tsx to pages\index.tsx

Screenshots/Videos

Current route
Screenshot 2023-10-24 131724

Expected route
image

Additional context

I am already working on this issue so please assign this issue to me 😊.

Please checkmark the following checklist

  • I make sure that similar issue is not opened

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions