π Introduction
Ever thought of wishing someone Happy Birthday in a creative and unforgettable way? How about sending them a customized web page with their name, a photo, and a heartfelt message β all built by you?
In this blog, Iβll walk you through building a simple yet elegant Birthday Wisher website using HTML, CSS, and JavaScript, with multiple pages, image upload, and direct shareable link support. A perfect mini-project to showcase your frontend skills and make someone feel special!
π Project Structure
bash
Copy
Edit
birthday-wisher/
βββ index.html # Home Page
βββ upload.html # Upload birthday image
βββ wish.html # Personalized birthday wish
βββ style.css # Shared styles
βββ assets/ # Images & uploaded files
βββ README.md # Project info
π§ Features at a Glance
β
Multi-page website
β
Image upload & preview
β
Birthday message display
β
Direct sharable link (yourname.github.io/birthday-wisher/wish.html)
β
Fully responsive & colorful interface
π» Key HTML Pages
π index.html β Home Page
html
Copy
Edit
π Make Someone's Day Special!
Celebrate birthdays with personalized wishes and joyful memories.
π€ upload.html β Upload Image Page
html
Copy
Edit
function previewImage(e) {
const preview = document.getElementById('preview');
preview.src = URL.createObjectURL(e.target.files[0]);
preview.style.display = 'block';
}
π wish.html β Birthday Message Page
html
Copy
Edit
π Happy Birthday, [Name]!
Wishing you love, laughter, and happiness on your special day!
css
Copy
Edit
body {
background-color: #fff0f5;
font-family: 'Segoe UI', sans-serif;
text-align: center;
}
nav {
background-color: #ff69b4;
padding: 15px;
}
nav a {
color: white;
text-decoration: none;
margin: 0 15px;
}
.hero {
padding: 50px;
background: linear-gradient(#ffe4e1, #fff0f5);
}
π Making the Link Shareable
Once you host it on GitHub Pages, you can share your wish.html page as a unique link like:
arduino
Copy
Edit
https://yourusername.github.io/birthday-wisher/wish.html
That link is clickable, no login required, and works on any device.
π‘ Unique & Commonly Used Code Snippets
πΈ JavaScript Image Preview
js
Copy
Edit
function previewImage(event) {
const output = document.getElementById('preview');
output.src = URL.createObjectURL(event.target.files[0]);
output.style.display = 'block';
}
π Navbar Code (Used on all pages)
html
Copy
Edit
π¬ Final Thoughts
This simple yet meaningful project brings together HTML, CSS, and JavaScript to create a gift thatβs digital, personalized, and shareable. Itβs perfect for beginners, portfolio builders, or just spreading smiles!
"Code a wish. Share a smile. Celebrate life β the dev way!" π₯³
GitHub Repository: github.com/rohanharne45/birthday-wisher
rohanharne45.github.io/birthday-wisher

Top comments (0)