Namaste dev community! 👋
Today, I’m sharing a very special project of mine. It's a web page featuring all the states of India.
Before you dive into the code, let me be completely honest—I know this project isn't perfect, and it probably has quite a few bugs because this is literally my very first project!
And yes, I know that today AI can generate an HTML file in just a second. You ask for it, and AI puts the whole code right in front of you.
Even so, I chose to build this myself, using my own mind and some ai. Because as a beginner, when you struggle through errors and write the code yourself, the learning you get is something you can never get from a simple copy-paste.
Demo
One more thing... 🌍
I don’t just love my own country; I deeply respect and appreciate all countries around the world. I love learning about different cultures and places, and I just wanted to start by showcasing all the states of my own beloved country, India!
🛠️ My Tech Stack
- HTML & CSS
- JavaScript (Still learning and applying step by step!)
Happy coding🗽
not cool.😔
Top comments (39)
very good start star!!!
that's nice bharat darshan 🔥🔥
to make it look more better can you add a india's map and when we click a state suppose assam or punjab etc then the map highlights that particular state and in that 3-4 small points shows up and if we hover cursor over it or click it then that point show the famous tourist place of that like golden temple of punjab
you understand?
👆 random uncles advise lol never mind if you think it is good then apply it. if not then you can ignore :)
Thanks bro ⭐ Your suggestion is really good. Thank you so much! But I was already thinking about something like this. Unfortunately, my phone with just 2GB RAM refused to cooperate.
મારા પપ્પા કહે છે કે જ્યારે હું 11 વર્ષની થઈ જઈશ, ત્યારે તેઓ મને લેપટોપ અપાવશે.
But bro, I still have to wait another 1.5 years! 😔
hmm, you do these in that mobile? hand's off to you
hmm 1.5 years is a waste of time actually, okay I will try to find a solution for you.
@star123 you've a pull request check out github accept it only when you really like it.
Thanks Anmol sir!🗽
woah woah who I feel after being called as sir
but no need we've just 3years age gap
Okay sir!😊🗽⭐
bruh do not say me sir It is making me feel like I'm a 20year+ system architect uh
Okay sir⭐🗽
okay mam
No🙅🏻♀️
okay mam
जैसा को तैसा 😂
yeah tit for tat lol madam, so now let's end sir mam or you don't how mad I can go 😂 peak mental issues by the way what are you doing now? like focusing on your new project or improving your india.github.io?
Yeah working on another project!
Building your first project while still learning is a big deal, and every first project has bugs. I like that you included all 36 states and UTs with a dropdown to jump between them.
One small tip from me: try to avoid using AI for now and focus on getting the basics of HTML, CSS and JavaScript really solid first. When you write and fix things yourself, it sticks so much better. Once you understand the foundations, AI becomes a really helpful tool because you’ll know when its code is right or wrong.
How is your studying going so far? And did you find the w3schools to be helpful?
Thanks! I used AI a little for research to find information about the states and other details, but I wrote all the code myself.
And yeah, W3Schools is really helpful. Its online editor is also pretty cool! I'm learning from YouTube too.
Thanks for your support, ma'am! ❤️
That’s great, writing all the code yourself is the best way to really learn. Using AI to look up information is fine too, it’s just another research tool.
W3Schools and YouTube are a good combo. When you want something more, try freeCodeCamp. It’s free and you build small projects step by step.
A fun next step for this project could be adding a search box so people can type a state’s name and find it quickly. It’s great JavaScript practice. Keep sharing what you build, I’d love to see your next project!
Yeah for sure!!😊
Congratulation for you first project seems at least usefull for me at least, because I have so many indian collegue, but I don't know anything India region. 👏
Thanks sir! 😊
Not cool? No way! 😸
I actually think this is really cool, especially for a first project. 🙌
You already have a lot of important UI basics in there: dropdowns, tabs, cards, toasts, responsive behavior, and more.
And I really like the hover effects too. They make the page feel much more alive. 👀✨
I honestly didn’t know much about India’s different states before, but the “HUD FACT” sections made me want to explore and learn a little more.
Most importantly, you can really feel how much you care about your country through the project. 💚
I think this is a great first project, and I’m looking forward to seeing what you build next! 😸🚀
Thanks so much!!!!!!!!!!!!!!!!!!!!🗽🥰❤️⭐😊
Congratulation for your first project star. Honestly, the first project is never about perfection; it's about taking that first step from being a consumer of technology to becoming a creator. AI can certainly speed up development, but understanding why something works, debugging it, and making your own decisions is what builds a developer.
Keep building, keep experimenting, and most importantly, don't let the fear of imperfect code stop you. Every experienced developer once had a first project. Looking forward to seeing what you build next! 🚀
One suggestion for improvement: When someone clicks the HUD Fact button, instead of displaying the fact at the bottom of the page, consider showing it in a small, centered popup or modal.
You could also make it more interactive by maintaining a collection of facts, almost like a mini-dictionary. Every time someone clicks the button, a random fact appears in the popup.
This would make the experience more engaging and give users something new to discover with every click!
Here's a simple JavaScript implementation:
Just an idea to make an already interesting first project even more interactive. Keep building! 🚀.
Thanks for the help bro!😊
🙌🙌
People start coding when they reach college and till the final year, they get very less time to learn fundamentals fully.
Its a really good thing that you are starting at a young age.
You have a lot of time, so take your time, explore the field and learn the fundamentals well!
Happy coding 😊
Yeah bro !🗽⭐ Thanks ❤️🥰
Good work!
Thanks sir ⭐🗽
Nice design!
Thanks you sir🗽
Very good @star123 . The Styling looks really nine and so does the layout. The site is also very interactive which is something I love to see.
Thanks!!!!!!!😊
Any time.
Congrats on your first project! I’m looking forward to lots more awesome work and articles from you, hahaha 😜
Thanks Sir 😅