# 🚀 Gizverse Coin Presale - cPanel Deployment Guide (Latest Build)

## 📦 What's Included

The `gizverse-coin-presale-cpanel.zip` file contains a complete static website ready for deployment on cPanel hosting.

### ✨ Latest Build Features:
- ✅ **Updated Branding**: Now branded as "Gizverse Coin" throughout the application
- ✅ **Updated Logo**: Now uses `logo-4.png` from public folder
- ✅ **Fixed Footer Links**: All navigation links are now clickable and functional
- ✅ **Improved Asset Paths**: Proper relative paths for static deployment
- ✅ **Enhanced UI**: Modern glassmorphism design with smooth animations
- ✅ **Responsive Design**: Works perfectly on all devices
- ✅ **Token-2022 Support**: Compatible with both standard SPL and Token-2022 tokens
- ✅ **Real-time Updates**: Live SOL balance and presale data updates

## 🛠️ cPanel Deployment Steps

### Step 1: Access cPanel
1. Log into your cPanel hosting account
2. Navigate to the **File Manager** section

### Step 2: Navigate to Public HTML
1. In File Manager, navigate to the `public_html` folder
2. This is where your website files will be uploaded

### Step 3: Upload the ZIP File
1. Click **Upload** in the File Manager
2. Upload the `gizverse-coin-presale-cpanel.zip` file
3. Wait for the upload to complete

### Step 4: Extract the ZIP File
1. Right-click on the uploaded ZIP file
2. Select **Extract** or **Extract Files**
3. Extract to the current directory (`public_html`)
4. **Important**: Delete the ZIP file after extraction

### Step 5: Set Permissions
1. Select all extracted files and folders
2. Right-click and select **Change Permissions**
3. Set permissions to:
   - **Files**: `644`
   - **Folders**: `755`

### Step 6: Configure Domain
1. If you have a custom domain, point it to your hosting
2. The app will be accessible at: `https://yourdomain.com/`

## 🔧 Configuration Options

### Environment Variables (Optional)
If you need to customize the RPC endpoint, you can add a `.env.local` file in the root directory:

```env
NEXT_PUBLIC_RPC_URL=https://solana-mainnet.api.syndica.io/api-key/4J4fH9ePWjSJUFMVaY3wqwhJmiEfDcnREv61xMXsCM77urfGT5cBpNMmgq5dVMbBmriust1U2wNmGkM2EbHGqsSW1GKiV14KQnL
```

### Custom Domain Setup
1. In cPanel, go to **Domains** or **Subdomains**
2. Add your custom domain
3. Point it to the `public_html` directory

## 📱 Features Overview

### For Users:
- **Connect Wallet**: Supports Phantom, Solflare, and other Solana wallets
- **Buy Tokens**: Purchase Gizverse Coin with SOL
- **Real-time Balance**: See SOL balance updates instantly
- **Token Information**: View token details and program type
- **Responsive Design**: Perfect experience on mobile and desktop

### For Admins:
- **Initialize Presale**: Set up new token presales
- **Manage Presale**: End presale and withdraw remaining tokens
- **Collect SOL**: Automatic SOL collection to admin wallet
- **Admin Panel**: Full control over presale operations

## 🔒 Security Features

- **Wallet Integration**: Secure wallet connection via Solana wallet adapters
- **Transaction Validation**: All transactions are validated on-chain
- **Error Handling**: Comprehensive error handling and user feedback
- **No Server-side Code**: Static deployment for maximum security
- **HTTPS Ready**: Secure connections for all transactions

## 🎨 UI Features

- **Responsive Design**: Works perfectly on all devices
- **Dark Theme**: Beautiful dark gradient background
- **Animations**: Smooth fade-in and pulse animations
- **Glassmorphism**: Modern glass-like UI elements
- **Real-time Updates**: Live balance and presale data updates
- **Updated Logo**: Fresh logo-4.png branding
- **New Branding**: "Gizverse Coin" branding throughout

## 🚀 Performance

- **Static Export**: Fast loading with no server-side rendering
- **Optimized Assets**: Compressed images and minified code
- **CDN Ready**: Can be served from any CDN
- **Lightweight**: Minimal bundle size for fast loading
- **Caching**: Proper cache headers for static assets

## 📞 Support

If you encounter any issues during deployment:

1. **Check File Permissions**: Ensure files have correct permissions (644 for files, 755 for folders)
2. **Verify Domain**: Make sure domain is properly configured
3. **Clear Cache**: Clear browser cache if changes don't appear
4. **Check Console**: Use browser developer tools to check for errors
5. **Verify .htaccess**: Ensure .htaccess file is present and readable

## 🔄 Updates

To update the application:

1. Download the new ZIP file
2. Backup your current files
3. Upload and extract the new ZIP
4. Replace existing files
5. Clear browser cache
6. Test all functionality

## 📊 Analytics (Optional)

To add analytics, you can include tracking scripts in the HTML head section of your pages.

## 🎯 Deployment Checklist

- [ ] ZIP file uploaded to cPanel
- [ ] Files extracted to public_html
- [ ] Permissions set correctly (644 for files, 755 for folders)
- [ ] Domain configured (if custom)
- [ ] Website accessible via browser
- [ ] Wallet connection working
- [ ] SOL balance displaying
- [ ] Token information showing
- [ ] All footer links clickable
- [ ] Logo displaying correctly
- [ ] "Gizverse Coin" branding visible
- [ ] All features functioning properly

## 🎉 Success!

Once deployed, your Gizverse Coin Presale will be live and ready for users to connect their wallets and participate in the presale!

**Live URL**: `https://yourdomain.com/`

---

## 📋 File Structure After Deployment

```
public_html/
├── .htaccess                 # Apache configuration
├── index.html               # Main page
├── 404.html                # Error page
├── logo.png                # Main logo
├── theblockchaincoders.png # Additional branding
├── _next/                  # Next.js static assets
│   ├── static/
│   │   ├── css/           # Stylesheets
│   │   ├── chunks/        # JavaScript chunks
│   │   └── [hash]/        # Build manifests
│   └── ...
└── 404/                    # 404 page assets
```

## 🔍 Troubleshooting

### Common Issues:

1. **Logo Not Displaying**: Check if logo.png is in the root directory
2. **CSS Not Loading**: Verify .htaccess file is present and readable
3. **Links Not Working**: Ensure all files have correct permissions
4. **Wallet Not Connecting**: Check browser console for JavaScript errors

### Performance Tips:

1. **Enable Gzip**: Most cPanel hosts have this enabled by default
2. **Use CDN**: Consider using a CDN for faster global delivery
3. **Optimize Images**: Ensure images are properly compressed
4. **Cache Headers**: .htaccess file includes proper cache headers

---

*Built with Next.js, Solana Web3.js, and Anchor Framework*
*Latest Build: Updated to "Gizverse Coin" Branding with Fixed Footer Links*

