Skip to content

Repository files navigation

CHG News — Contextual Headline Generator

A satirical "breaking news" headline generator styled like a live Indian TV newsroom. Pick a random subject, action, and place, and it "breaks" a new headline on a flickering monitor with a scrolling news ticker.

Live demo: add your deployed link here after Step 3 of DEPLOY.md

What's inside

This repo has two versions of the same idea:

Version Where Tech
Web app / (root) HTML, CSS, vanilla JavaScript
Desktop app /python-version Python, Tkinter

The web app is the one meant to be deployed and linked from a resume or portfolio. The Python version is the original desktop prototype, kept for reference.

Features

  • Randomly generated headlines from subject / action / place word banks
  • Broadcast-style UI: live clock, "ON AIR" indicator, flicker-in animation
  • Scrolling ticker tape that keeps a running history of generated headlines
  • Copy-to-clipboard and reset controls
  • Fully responsive, no build step, no dependencies

Project structure

contextual-headline-generator/
├── index.html              # markup
├── style.css                # newsroom console styling
├── script.js                 # headline logic, clock, ticker
├── python-version/
│   └── gui_contextual_headline_generator.py
├── README.md
└── .gitignore

Run it locally

No build tools needed — it's a static site.

Option A — just open it Double-click index.html, or right-click it and choose "Open with" your browser.

Option B — local server (recommended, avoids browser file-access quirks)

cd contextual-headline-generator
python -m http.server 5500

Then visit http://localhost:5500.

Run the Python desktop version

cd contextual-headline-generator/python-version
python gui_contextual_headline_generator.py

Requires Python 3 with Tkinter (bundled with most Python installs on Windows/Mac; on Linux you may need sudo apt install python3-tk).

Tech stack

HTML5, CSS3, JavaScript (ES6) for the web app · Python 3 + Tkinter for the desktop app · Google Fonts (Anton, Space Grotesk, Space Mono)

Author

Prachi Verma GitHub · LinkedIn · Portfolio

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages