Skip to content
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

How can I added more pages? #122

Closed
ifsheldon opened this issue May 12, 2021 · 3 comments
Closed

How can I added more pages? #122

ifsheldon opened this issue May 12, 2021 · 3 comments

Comments

@ifsheldon
Copy link

I am completely new to React, but when I tried to modify your code, I kinda understand the architecture. But, what places I need to add more code in order to add a new page? say, I'd like to have a page "Interest" that details my hobbies etc.

@sahilg50
Copy link

image

As you can see that in the main.js there are different routes for different pages of the website, there you can add a route for your page too. You can continue to work on your page. Now the last step is to show the page name on the header.

image

You can add the page link and page name In the header by adding the Navlink in the header.js

@gabrieloliveirasobrinho

I want this page to be exactly like contact page, how can I do it?

@saiteja13427
Copy link
Collaborator

@gabrieloliveirasobrinho Follow these steps

  1. Just copy the contact folder content under src/pages.
  2. Make a new folder.
  3. Paste the copied contents into this new folder.
  4. Create a new route and navlink as mentioned by sahilg50.
  5. And you will be good to go.

Please raise a new issue if you still have a problem.

Closing this for now, due to inactivity.

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

No branches or pull requests

4 participants