<<<<<<< HEAD
A modern color utility library for developers and designers.
- Color conversion between multiple formats (HEX, RGB, HSL, HSV)
- Color manipulation (lighten, darken, saturate, etc.)
- Color palette generation
- Accessibility contrast checking
- Color harmony calculations
npm install codexcolorimport { Color } from 'codexcolor';
const color = new Color('#3498db');
console.log(color.toRGB()); // rgb(52, 152, 219)
console.log(color.lighten(0.2)); // Lighten by 20%A professional website for CodexColor, specializing in mobile website optimization, GA4 analytics implementation, conversion tracking troubleshooting, and performance optimization for small businesses in Bangladesh.
- Mobile-First Design: Responsive design optimized for all devices
- Lead Generation Forms: Advanced contact forms with service-specific questions and lead quality scoring
- Comprehensive Services: Four core service areas with detailed explanations and pricing
- SEO Optimized: Mobile-first indexing ready with structured data and meta tags
- Analytics Integration: GA4 event tracking with comprehensive user journey analytics
- Production Ready: Complete with professional positioning, case studies, and certifications
- Frontend: HTML5, Tailwind CSS
- JavaScript: Vanilla JS with ES6+ features
- Build Tools: npm, PostCSS, Autoprefixer
- Analytics: Google Analytics 4 (GA4)
- Performance: Core Web Vitals optimized
/Users/bakibillahsakib/Herd/codexcolor/
βββ index.html # Homepage with hero and service overview
βββ about/
β βββ index.html # About page with team and client stories
βββ services/
β βββ index.html # Detailed services page
βββ contact/
β βββ index.html # Contact form with lead scoring
βββ news/
β βββ index.html # Blog/news section
βββ css/
β βββ style.css # Compiled Tailwind styles
β βββ animations.css # Custom animations
β βββ navigation.css # Navigation styles
βββ js/
β βββ analytics.js # GA4 implementation
β βββ contact.js # Form validation and lead scoring
β βββ main.js # Main functionality
β βββ animations.js # Animation utilities
β βββ lazy-load.js # Image lazy loading
β βββ navigation.js # Mobile menu handling
βββ tasks/
β βββ *.md # PRD and task management files
βββ rules/
β βββ *.md # Development guidelines
βββ mockup/ # Design mockups
βββ package.json # Project dependencies and scripts
- Node.js 16+ and npm
- Git
- Web server (for local development: Live Server, Apache, Nginx)
-
Clone the repository
git clone https://github.com/sakibian/codexcolor.git cd codexcolor -
Install dependencies
npm install
-
Build the project
npm run build
-
Start development server
# Option 1: Live Server (Recommended) npx live-server # Option 2: Included build server npm run build && npx live-server
-
View the website
- Open
http://localhost:8080in your browser
- Open
# Build CSS only
npm run build:css
# Build JavaScript only
npm run build:js
# Full build (CSS + JS)
npm run build
# Start development server
npx live-serverBefore deploying to production, configure these environment variables and settings:
Required for tracking and analytics
-
Create GA4 Property:
- Go to Google Analytics
- Create a new GA4 property for CodexColor
- Note the Measurement ID (format:
G-XXXXXXXXXX)
-
Update Analytics Configuration:
- Open
js/analytics.js - Replace the placeholder
GA_MEASUREMENT_IDwith your actual GA4 Measurement ID:
const GA_MEASUREMENT_ID = 'G-YOUR-ACTUAL-MEASUREMENT-ID'; // Replace with your GA4 ID
- Open
-
Verify Analytics:
- Deploy and check that GA4 receives events
- Use Google Analytics Realtime reports to verify tracking
-
Purchase Domain:
- Domain recommendation:
codexcolor.com(currently referenced in meta tags)
- Domain recommendation:
-
DNS Setup (if using hosting service):
- Point domain A records to your hosting provider's IP
- Set up SSL certificate (Let's Encrypt recommended)
Currently using placeholder email. Set up production email:
-
Professional Email:
- Set up
codexcolorinfo@gmail.comor similar - Consider business email hosting (GSuite, Outlook, etc.)
- Set up
-
Contact Form Emails:
- Form submissions are currently logged to console
- Implement email service integration (SendGrid, Mailgun, etc.)
Apache (.htaccess)
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.html [QSA,L]
</IfModule>
# Enable compression
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
</IfModule>
# Security headers
<IfModule mod_headers.c>
Header always set X-Frame-Options DENY
Header always set X-Content-Type-Options nosniff
Header always set Referrer-Policy strict-origin-when-cross-origin
</IfModule>Nginx Configuration
server {
listen 80;
server_name codexcolor.com www.codexcolor.com;
root /var/www/codexcolor;
index index.html;
# Enable gzip compression
gzip on;
gzip_vary on;
gzip_min_length 1024;
gzip_types text/plain text/css text/xml text/javascript application/javascript application/xml+rss application/json;
# Security headers
add_header X-Frame-Options "DENY" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
# Handle client-side routing
location / {
try_files $uri $uri/ /index.html;
}
# Cache static assets
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
expires 1y;
add_header Cache-Control "public, immutable";
}
# SSL redirect (if HTTPS enabled)
if ($scheme != "https") {
return 301 https://$server_name$request_uri;
}
}-
Let's Encrypt (Free):
sudo certbot --nginx -d codexcolor.com -d www.codexcolor.com
-
Commercial SSL: Purchase from providers like DigiCert, GlobalSign
Configure Cloudflare or similar for:
- Global content distribution
- DDoS protection
- SSL termination
- Performance optimization
# Install Netlify CLI
npm install -g netlify-cli
# Deploy
netlify init
netlify deploy --prod --dir=.# Install Vercel CLI
npm i -g vercel
# Deploy
vercel --prod- Upload files to any static hosting provider
- Ensure server supports SSL and proper MIME types
- Recommended: DigitalOcean, AWS S3, Hostinger, etc.
- GA4 Working: Events appear in Google Analytics
- Forms Working: Contact form submissions function
- Mobile Friendly: Test on multiple devices
- SSL Active: HTTPS certificate valid
- Email Setup: Contact emails operational
- SEO Verified: Search Console submission complete
- Primary:
#E7A547(fulvous-500) - Primary Light:
#F4C47F(fulvous-400) - Primary Dark:
#D99739(fulvous-600) - Accent:
#37B1E7(blue-500) - Accent Green:
#10B981(emerald-500) - Accent Purple:
#8B5CF6(violet-500)
- Font Family: Inter (Google Fonts)
- Headings: Bold weights
- Body: Regular weight
- Container: Max-width 7xl (1280px)
- Grid: Responsive columns (1/2/3/4 on mobile/tablet/desktop)
- Spacing: Consistent 16px/24px/32px scale
- LCP: < 2.5 seconds
- FID: < 100 milliseconds
- CLS: < 0.1
- Meta Tags: Complete coverage across all pages
- Structured Data: Organization, Service, and Blog schemas
- Mobile-First: Viewport and responsive meta tags
- Canonical URLs: Avoid duplicate content issues
- Chrome 90+
- Firefox 88+
- Safari 14+
- Edge 90+
- Desktop: 1920x1080, 1366x768
- Tablet: iPad, various Android tablets
- Mobile: iPhone, Android phones (multiple screen sizes)
# Run Lighthouse audit
npx lighthouse http://localhost:8080 --output html --output-path ./reports/lighthouse.html-
Analytics Not Working
- Verify GA4 Measurement ID in
js/analytics.js - Check browser developer console for errors
- Wait 24-48 hours for GA4 data to populate
- Verify GA4 Measurement ID in
-
Forms Not Submitting
- Check browser console for JavaScript errors
- Verify form validation logic
- Ensure server-side email handler is configured
-
Styles Not Loading
- Run
npm run build:cssto generate styles - Check file paths in HTML
- Verify Tailwind configuration
- Run
-
Images Not Loading
- Check image file paths
- Ensure lazy loading is not preventing display
- Verify build process copies assets
- GitHub Issues: Report bugs and request features
- Documentation: Comprehensive setup and troubleshooting guides
- Email: Contact form or direct support email
Built with β€οΈ for small businesses seeking mobile optimization and analytics excellence.
cdc25e4 (Foundation build up)