DEV Community

Cover image for [Frontend Challenge] Space Markup 🚀
Arnav
Arnav

Posted on

[Frontend Challenge] Space Markup 🚀

Screenshot of solar markupThis is a submission for Frontend Challenge v24.09.04, Glam Up My Markup: Space

Demo

https://4rnv.github.io/solar-markup/

About

This demo is made using vanilla HTML, CSS and JS. I believe that the form of a page must follow its function, and the content should be displayed in a concise yet visually appealing manner. With these tenets in mind, I went for a gradient blue background with a grid layout for the planets and moons.

A canvas element was added with moving particles representing stars. Subtle animations are added for each section, along with appropriate styling. The distinct "leaf" shape for the info cards was achieved simply through asymmetric border radius.


.planets > *, .moons > *, .solar-system-objects > * {
    padding: 1rem;
    border: 4px dashed rgba(255, 255, 255, 0.5);
    transition: all 0.5s;
    cursor: pointer;
}

.planets>*:hover, .moons>*:hover, .solar-system-objects>*:hover {
    border-radius: 2rem 0;
    transform: scale(1.03);
}
Enter fullscreen mode Exit fullscreen mode

I had a lot of fun designing this page. When you think about it, space is such a fascinating topic. As a child I had learnt this planetary mnemonic while in school:-

My Very Excited Mother Just Served Us Nine Pizzas.

Since then, Pluto's planetary status has been deprecated. Now, instead of Nine Pizzas the mother serves Nachos. Oh well.

Code

You can view the source code on Github.

Top comments (0)

This post blew up on DEV in 2020:

js visualized

🚀⚙️ JavaScript Visualized: the JavaScript Engine

As JavaScript devs, we usually don't have to deal with compilers ourselves. However, it's definitely good to know the basics of the JavaScript engine and see how it handles our human-friendly JS code, and turns it into something machines understand! 🥳

Happy coding!

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay