Bhagavad-Gita-UI-Recreation--SvelteKit Svelte Themes

Bhagavad Gita Ui Recreation Sveltekit

πŸ•‰οΈ Bhagavad Gita web app | SvelteKit + TailwindCSS | 18 chapters with Sanskrit slokas via API | Responsive design with glass effects

πŸ“˜ Bhagavad Gita – UI Recreation (SvelteKit)

A fully responsive and visually accurate recreation of the Bhagavad Gita webpage
as assigned by Burning Desire Inclusive.
This version includes a polished UI built with SvelteKit + TailwindCSS,
following the exact design aesthetics of the reference website.


πŸš€ Technologies Used

  • SvelteKit
  • TailwindCSS
  • Lucide Icons
  • HTML / CSS
  • Responsive Design
  • Google Fonts (Cinzel, Noto Sans Devanagari, Edensor)

πŸš€ Features


  • 🎨 Complete UI Implementation
  • Header
  • Multi-level dropdown menu
  • Search icon
  • Responsive hamburger menu for mobile
  • Exact fonts, colors & layout matching reference design
  • Hero Section
  • Full-width background image
  • Centered banner image
  • BHAGAVAD GITA title overlapping header
  • Glass effect & soft shadows
  • Floating Image
  • Gita book image positioned between hero & chapters
  • Perfect alignment + shadow for depth
  • Chapters Section
  • Dynamic 18 chapter tiles
  • Custom diamond-shaped boxes
  • Rounded corners using rotation transform
  • Transparent bar behind chapter number
  • Fully responsive grid layout
  • Footer
  • Background image
  • Lucide icons with hover effect
  • Logo + β€œWELLBEING~SVASTI”
  • Copyright & credits

πŸ”— API Integration


  • Base URL https://sanskrit.ie/api/geeta.php?q={chapter}

Example

  • https://sanskrit.ie/api/geeta.php?q=1

API Data


  • API returns an array of objects.
  • Each object contains: sloka (Sanskrit verse) , meaning (English translation) , audio (optional)

Backend Proxy Used (CORS Fix)

Because the API doesn’t allow browser access, a custom SvelteKit endpoint was created:

src/routes/api/chapter/[chapter]/+server.js


πŸ“‚ Project Structure

src/
β”‚
β”œβ”€β”€ lib/
β”‚   β”‚
β”‚   β”œβ”€β”€ assets/
β”‚   β”‚   β”œβ”€β”€ logo.png
β”‚   β”‚   β”œβ”€β”€ logo1.png
β”‚   β”‚   β”œβ”€β”€ gita_banner.png
β”‚   β”‚   β”œβ”€β”€ gita_open.png
β”‚   β”‚   β”œβ”€β”€ pic1.jpg
β”‚   β”‚   β”œβ”€β”€ triangle-img.png
β”‚   β”‚   └── (all project images)
β”‚   β”‚
β”‚   β”‚
β”‚   β”œβ”€β”€ api/geeta.js        β†’ API helper
β”‚   β”œβ”€β”€ components/         β†’ UI components
β”‚   └── assets/             β†’ images
β”‚       └── (future API integration files)
β”‚
β”œβ”€β”€ routes/
β”‚   β”œβ”€β”€ api/chapter/[id]/+server.js  β†’ proxy
β”‚   └── +page.svelte        β†’ home UI
β”‚   
β”‚   
β”œβ”€β”€ app.css
β”‚
└── app.html
       


---

πŸ›  Installation & Setup

1️⃣ Install dependencies
npm install
2️⃣ Start development server
npm run dev
3️⃣ Build for production
npm run build

πŸ”— API Integration (Done)

  • UI is fully completed. API integration added here.

πŸ‘¨β€πŸ’» Developer Shubham Kendre Frontend Internship – Burning Desire Inclusive SvelteKit UI Development

Top categories

Loading Svelte Themes