This is a responsive, mobile-first React Single Page Application (SPA) designed with a Glassmorphism aesthetic for the ProCal mobile app.
index.html: Entry point.App.tsx: Router configuration (using HashRouter for compatibility with static hosts like GitHub Pages).pages/: Contains the Home, Privacy Policy, and Terms & Conditions pages.components/: Contains the shared Layout (Navbar, Footer).
Since this is a React SPA using HashRouter, it can be deployed easily as a static site.
-
Initialize Git:
git init git add . git commit -m "Initial commit"
-
Create a Repo: Create a new repository on GitHub.
-
Push Code:
git remote add origin https://github.com/YOUR_USERNAME/YOUR_REPO_NAME.git git push -u origin main
-
Build (if using a build tool like Vite/CRA): Run your build command (e.g.,
npm run build). -
Deploy:
- Go to your repository Settings > Pages.
- Select the branch (usually
mainorgh-pagesif you have a build action) and the folder (usually/or/dist). - Save.
To connect a custom domain (e.g., www.procal-app.com):
-
GitHub Settings:
- Go to Repo Settings > Pages > Custom domain.
- Enter
www.your-domain.comand save. - Check "Enforce HTTPS".
-
DNS Provider (GoDaddy, Namecheap, etc.):
- CNAME Record:
- Host:
www - Value:
YOUR_USERNAME.github.io
- Host:
- A Records (for root domain):
- Host:
@ - Value:
185.199.108.153 - Value:
185.199.109.153 - Value:
185.199.110.153 - Value:
185.199.111.153
- Host:
- CNAME Record:
To update the Privacy Policy or Terms, edit pages/Privacy.tsx or pages/Terms.tsx respectively.