Skip to content

structbase/Blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📝 Blog App

A simple client-side blog application built with HTML, CSS, JavaScript, and Bootstrap 5, featuring a dark/light theme toggle and localStorage persistence for posts. Users can create, edit, and delete posts directly in the browser without a backend.


🌟 Features

  • Create, Edit, Delete Posts – All posts are saved in localStorage.
  • Dynamic Blog Cards – Posts are rendered dynamically as Bootstrap cards.
  • Dark/Light Theme Toggle – Switch between dark and light themes with a responsive icon.
  • Modal Form – Create or edit posts using a Bootstrap modal.
  • Persistent Storage – Posts remain available even after page reloads.

📂 Project Structure

/blog
│
├── index.html          # Main HTML file
├── style.css           # Custom styles
├── index.js            # JavaScript logic
├── screenshots         
│   ├── desktop.png     # Desktop screenshot
│   └── mobile.png      # Mobile screenshot 
└── README.md           # Project documentation

⚡ How to Use

  1. Open index.html in your browser.
  2. Click Create Post to open the modal.
  3. Enter a Title and Content, then click Save Post.
  4. Your post appears as a card in the main area.
  5. Edit or delete posts directly using the buttons on each card.
  6. Toggle between Dark/Light theme using the sun/moon icon.

🚀 Live Demo

🌐 Live Demo: Click Here for Live Demo

💻 Repository: View Source on GitHub


📸 Screenshots

🖥️ Desktop Layout

Desktop Screenshot

📱 Mobile Layout

Desktop Screenshot

🛠 Technologies Used

  • HTML5 & CSS3
  • JavaScript (ES6+)
  • Bootstrap 5
  • Bootstrap Icons
  • LocalStorage API

💡 Notes

  • This project is purely client-side; there is no backend.
  • Data persists via localStorage, so clearing browser data will remove all posts.
  • The theme preference is saved in localStorage to persist user choice.

🏁 Credits & Resources


✍️ Author

Developed by Abenezer

Junior developer

About

SBA 5 - The Document Object Model

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors