Written in the Stars: Unraveling Cosmic Love, Destiny, and Your Love Story" โœจ๐Ÿ’–๐ŸŒŒ๐Ÿ’ซ

Divya - Feb 19 - - Dev Community

This is a submission for Frontend Challenge - February Edition, CSS Art: February.

๐Ÿ’– A Celestial Love Quiz

Love is in the air, and what better way to celebrate it than with a fun, interactive love quiz? But waitโ€”this isn't your regular "type-your-names-get-a-random-love-score" quiz!

I wanted something more... celestial. โœจ

๐ŸŒŸ Inspiration

Love and astrology have always been intertwined. People look to the stars for guidance in their relationships, so I thoughtโ€” why not blend zodiac compatibility with romance and make a quiz out of it โ˜บ๏ธ๐Ÿ˜?

And thus, this Celestial Love Quiz was born! ๐Ÿฅฐ๐Ÿ’ซ๐Ÿ‘ผ๐Ÿป

This web app asks for two people's dates of birth, calculates their astrological signs, and then determines how well they match based on their celestial compatibility. Instead of just a boring number, I also wanted to make it more story-driven, so each couple gets a unique great love story from the stars. ๐ŸŒ 


๐ŸŽฌ Demo Time!

๐Ÿš€ Experience the magic here: - Celestial Love Destiny

๐Ÿ“ฝ๏ธ See it in action:

๐Ÿ’ป Or try it directly here itself:

๐Ÿ‘ฉโ€๐Ÿ’ป Or, if you are more of a coding person, check out the code below:

โœจ Celestial Love Destiny Calculator

A magical web application that calculates cosmic compatibility between two people based on their names and birthdates. Experience the mystical journey of discovering your celestial love destiny!

Demo

Try it out at:- Love Fate Simulator

Celestial Love Destiny Calculator

โœจ Features

  • Calculates love compatibility based on names and birthdates
  • Beautiful cosmic-themed user interface
  • Interactive form with real-time validation
  • Responsive design that works on all devices
  • Engaging animations and transitions

๐Ÿ’ซ How to Use

  1. Enter your first name
  2. Enter your partner's/crush's name
  3. Input your birthdate (mm/dd/yyyy format)
  4. Input your partner's birthdate (mm/dd/yyyy format)
  5. Click "Reveal Cosmic Destiny" to see your compatibility results

โšก Installation

To run this project locally:

  1. Clone the repository:
git clone https://github.com/divya4879/Love-Fate-Simulator.git
Enter fullscreen mode Exit fullscreen mode
  1. Open the project folder:
cd Love-Fate-Simulator
Enter fullscreen mode Exit fullscreen mode
  1. Open index.html in your preferred browser

๐ŸŒŸ Accessibility Features

The application is designed with accessibility in mind:

Keyboard Navigation

  • All form fields are keyboard accessible
  • Tab order follows aโ€ฆ

๐Ÿ‘ฉ๐Ÿปโ€๐Ÿ”ฌ๐Ÿ‘ฉ๐Ÿปโ€๐Ÿ’ป๐Ÿ‘ฉ๐Ÿปโ€๐ŸŽจ๐Ÿค“ My Journey โ€“ A Tale of Curiosity, Chaos, Grit & Glory ๐Ÿ’ป๐Ÿ’˜

Bringing this project to life was a rollercoaster of code, creativity, and a lot of trial & error! ๐Ÿ˜… But here are some of the coolest things I learned and built along the way:

โœจ 1. A Sky Full of Stars

I wanted the background to be more than just a static image. It had to feel alive, representing the night sky, in all its glory ๐Ÿ’ซ๐ŸŒƒโœจ

So, I created a dynamic starry night where stars:

  • Twinkle in different colors
  • Move at different speeds
  • Vary in size to represent depth

It wasnโ€™t easy, but it turned out great. โ˜บ๏ธโ˜บ๏ธ

โ™ˆโ™‰โ™Š 2. Zodiac Matchmaking โ€“ The Cosmic Connection

Finding zodiac signs from a date of birth? Easy ๐Ÿ˜†๐Ÿ™‚

  • I researched zodiac compatibility and created a system that assigns love scores based on the harmony between signs(not really, it was random scoring ๐Ÿ˜…๐Ÿ˜).
  • While planetary positions matter more than just the date, this was a fun way to create a dreamy, astrology-based love quiz.

๐Ÿ“– 3. AI-Generated Love Stories (The Unexpected Twist)

Originally, I wanted the love stories to be AI-generated in real time, but... ๐Ÿ˜ญ the Gemini API ghosted me sometimes, leaving some results empty.

So, I pre-generated the love stories using AI, then curated them to ensure each story felt romantic and celestial. Now, every couple gets a beautifully written love tale! ๐Ÿ’•

โค๏ธ๐Ÿฉท๐Ÿงก๐Ÿ’› 4. Love in Living Colors ๐Ÿ’š๐Ÿ’™๐Ÿฉต๐Ÿ’œ

Different love scores = different colored hearts.

This subtle touch makes the quiz results feel more alive and personal. Every love story gets the color it deserves.

๐Ÿ”— 5. Share the Love!

What's the fun in taking a love quiz if you can't share your cosmic fate?

At the bottom of the results, I added a share button for X (ex of Twitter) so people can spread their celestial love scores with the world. ๐ŸŒ๐Ÿ’Œ


๐Ÿš€ Whatโ€™s Next?

This is just the beginning! Hereโ€™s what I want to improve next:

โœ… More interactive elements โ€“ Maybe an animation when the love score appears? ๐ŸŽ‡

โœ… Custom-generated love stories per couple โ€“ Making each story even more personalized. ๐Ÿ’ž

โœ… More zodiac accuracy โ€“ Factoring in more astrological details! ๐ŸŒ 


๐Ÿ“œ License & Open Source

This project is open-source under the MIT License!

Feel free to check out the repo, fork it, and make it even better. ๐Ÿ› ๏ธโœจ

๐Ÿ‘‰ GitHub โ€“ Celestial Love Destiny


๐Ÿ’ฌ Final Thoughts

If you made it this farโ€”THANK YOU! ๐Ÿฅน๐Ÿ’•

Celestial Love Destiny was a fusion of code, creativity, and cosmic wonder โœจ๐Ÿ’–. From dynamic stars to celestial love stories, every detail was crafted to make love feel magical. It was a journey of learning, experimenting, and storytellingโ€” one that truly felt written in the stars. ๐ŸŒŒ๐Ÿ’•

๐Ÿš€ Iโ€™d love your feedback! Drop a comment, tell me what you think, and if you tried the quiz, let me know your love score! ๐Ÿ’˜

Happy coding, and may your love be as infinite as the stars! โœจ๐Ÿ’ซ


๐Ÿ’– P.S. If you liked this, please give it a heart on Dev.to! It would mean the world to me. ๐Ÿ˜Š๐Ÿ’

GIF showing galaxy and a message- I Love You

. . . . . . . . . . . .