Github pages help please

Hi can you help me please,

I have created a react website and tried to deploy it on gh pages but one pages loads without all the details on it and the button linked in the nav bar wont load and say 404 error.

link to page: My Portfolio
my github: saqib10661 · GitHub

Is your page static or run on server. If it run on server did you setup GitHub actions?

GitHub pages can host simple html static files easily. if you want to host any SSG website then setup GitHub actions. Wait till some other people can help more.

Thank you for replying but I’m still a little confused

There are few type of websites.

  1. There are html file and all you need it to publish and it will render it self. Known as frontend.

  2. There are different file and configurations and you need a backend to process it and then make it into HTML file. Then it will be sent to user specific. Known as backend+frontend.

  3. SSG Static site generater.

When you require node js to run ur website then. It can’t published normally on GitHub. As GitHub pages only render frontend not backend. SOOOOOO
Your website require to run a command to serve the page. SO you need to setup GitHub actions to run that command. Also you can host there on any server which support backend.

GitHub default doesn’t support backend. It just serve the html file as it is.

Thank you and have you checked my gihub portfolio repository to see if this is what i need to do and hopefully a member of github staff also replies.

I completed the actions but still the same

Have a look here: GitHub - rafgraph/spa-github-pages: Host single page apps with GitHub Pages

Thank you for showing me but im still confused this is longer process than actually making the site lol

Hi can you help me please,

I have created a react website and tried to deploy it on gh pages but one pages loads without all the details on it and the button linked in the nav bar wont load and say 404 error. Is there a member of the github staff that could help me please.

link to page: My Portfolio
my github: saqib10661 · GitHub