This is a space-themed, single-page static website for a blockchain validator, compatible with GitHub Pages hosting.
To deploy this website to GitHub Pages, follow these steps:
- Create a new repository on GitHub or use an existing one.
- Push the contents of this project to the repository.
- Go to the repository settings on GitHub.
- Scroll down to the "GitHub Pages" section.
- Under "Source", select the branch you want to use for GitHub Pages (usually "main" or "master").
- Select the root folder (/) as the source.
- Click "Save".
- GitHub will provide you with a URL where your site is published.
The contact form uses Formspree for handling form submissions. To set it up:
- Go to Formspree and create an account.
- Create a new form and get the form's endpoint URL.
- Replace the placeholder URL in the
action
attribute of the form inscript.js
with your Formspree endpoint.
Example:
'#contact': `
<h2>Contact Us</h2>
<form id="contact-form" action="https://formspree.io/f/your_formspree_endpoint" method="POST">
...
</form>
<div id="form-status"></div>
`
Replace your_formspree_endpoint
with the actual endpoint provided by Formspree.
To customize the content of the website, modify the getContent
function in script.js
. Each section's content is defined there and can be easily updated.
To run the website locally for development:
- Install a local web server (e.g.,
python -m http.server
or Live Server extension in VS Code). - Open the project folder in your preferred code editor.
- Start the local web server.
- Open a web browser and navigate to
http://localhost:8000
(or the port specified by your local server).
Remember to replace the Formspree endpoint with your actual endpoint before deploying to GitHub Pages.