A Persian website for Kodara, a digital solutions company. This project is configured for static deployment on Cloudflare Workers.
- Responsive design optimized for Persian (RTL) content
- Modern CSS Grid and Flexbox layout
- Custom Persian font (BYekan)
- Mobile-first responsive design
- Static file serving with Cloudflare Workers
kodara/
├── index.html # Main HTML file
├── style.css # Stylesheet
├── worker.js # Cloudflare Worker script
├── wrangler.toml # Cloudflare Workers configuration
├── package.json # Node.js dependencies
├── fonts/ # Custom fonts
├── logos/ # Client logos
└── assets/ # Images and other assets
- Node.js (v16 or higher)
- npm or yarn
- Cloudflare account
- Clone the repository:
git clone <repository-url>
cd kodara- Install dependencies:
npm installTo run the project locally with Cloudflare Workers:
npm run devThis will start a local development server at http://localhost:8787
- Install Wrangler globally (if not already installed):
npm install -g wrangler- Login to Cloudflare:
wrangler login- Deploy the project:
npm run deploy- Go to Cloudflare Workers & Pages
- Create a new Worker
- Upload the
worker.jsfile - Configure the Worker settings:
- Set the main module to
worker.js - Add KV namespace for assets
- Set the main module to
- Deploy
The wrangler.toml file contains the basic configuration:
name = "kodara"
main = "worker.js"
compatibility_date = "2024-01-01"
[site]
bucket = "./"To use a custom domain:
- In your Cloudflare dashboard, go to Workers & Pages
- Select your worker
- Go to Settings > Triggers
- Add your custom domain
This setup provides:
- Global CDN distribution
- Edge caching
- Automatic HTTPS
- Fast response times worldwide
- Modern browsers (Chrome, Firefox, Safari, Edge)
- Mobile browsers
- RTL language support
MIT License - All rights reserved to Kodara.