Skip to content

Latest commit

 

History

32 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎨 Mondrian Digital Atelier

A high-performance, interactive art engine inspired by the De Stijl movement and the works of Piet Mondrian. This project transforms images, text, and raw data into structured, geometric compositions.


Disclosure

The code in this repository was initially written in conjunction with another project. It has been restructured, optimised, and rewritten using Gemini AI Pro.


🚀 Core Features

1. The Landing Page (index.html)

  • Dual-Purpose Design: A high-impact "Hero" section with a custom-coded Mondrian Art-Button that transitions to the full app.
  • Quick Creator: An integrated, lightweight version of the tool located directly on the home page for instant experimentation.
  • Responsive Layout: Built with Bootstrap 5 to ensure the gallery looks like a professional exhibition on any device.

2. The Advanced Atelier (mondrian.html)

  • Nitro Load System: A specialised fetching engine that processes batch URL imports in small "bursts" (concurrency of 5) to keep the browser responsive.
  • Smart Aspect Ratio Detection: Automatically analyses imported images to assign span-wide or span-tall classes, maintaining the visual balance of the grid.
  • CORS Proxy Integration: Bypasses browser security restrictions to allow the loading and exporting of images from external domains.
  • Interactive Grid: Full drag-and-drop reordering powered by SortableJS and one-click tile resizing.

🛠️ Technical Stack

  • Frontend: HTML5, CSS3 (Custom Grid Logic), JavaScript (ES6+)
  • UI Framework: Bootstrap 5
  • Interactivity: SortableJS
  • Rendering: Html2Canvas
  • Proxy: CORS Anywhere (Public Middleman)

📦 Getting Started

  1. Clone the Repository:
    git clone [https://github.com/YOUR_USERNAME/YOUR_REPO_NAME.git](https://github.com/YOUR_USERNAME/YOUR_REPO_NAME.git)
  2. Open Locally: Open index.html in any modern web browser.
  3. Deploy to GitHub Pages: Push your code to a GitHub repository, go to Settings > Pages, and select the main branch as your source.

📖 Usage Guide

  1. Input: Paste an image URL or type a word into the "Smart Input" and hit ADD.
  2. Batch Import: Prepare a .txt file with one URL or text string per line. Upload it via the Import button to populate the grid instantly.
  3. Refine: * Drag tiles to find the perfect color balance.
    • Click a tile to cycle through sizes: Square → Wide → Tall → Large.
  4. Export: Click Export PNG to render your composition into a high-quality image file.

📝 Examples

Example image 1

Example image 2

📜 License

This project is licensed under the MIT License.

Copyright (c) 2026 [Areeb-Ahmad]

About

An interactive De Stijl art engine and composition tool. Transform images and text into structured geometric grids inspired by Piet Mondrian.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages