Glam up my markup: Space

This is a submission for Frontend Challenge v24.09.04, Glam Up My Markup: Space

What I Built

The space theme lent itself perfectly to an old computer terminal aesthetic, so I went for something loosely inspired by that. I wanted a page that…


This content originally appeared on DEV Community and was authored by Catherine Parkinson

This is a submission for Frontend Challenge v24.09.04, Glam Up My Markup: Space

What I Built

The space theme lent itself perfectly to an old computer terminal aesthetic, so I went for something loosely inspired by that. I wanted a page that was simple and keyboard navigable. I don't always design mobile-first, but that was something I really wanted to do for this challenge (and I break it down in the journey!)

The cover image, and all of the images used in this project, are from Wikimedia Commons and are credited in the CSS (see line 352).

Demo

View full-screen on Github Pages
View repo

Mobile screenshots

The screenshots below show the page on mobile, first when the page is loaded and then when an option is selected from the menu.

I toyed with color a lot but ended up going with purple, since it felt more appropriate to the space theme.
Mobile screenshots

Journey

I divided this project into three phases. I don't always start with a mobile-first design, but for this project I wanted to start with a mobile-first approach, ensuring that the page was browsable on a mobile phone.

Phase 1

For this phase I declared global variables, added a JS script that read all of the headings on the page, and created an unordered list that would be later used for navigation through the different planets, moons, and objects. I also declared a font variable that I ended up changing later.

I knew I wanted images to be used for this, so I used JavaScript to add a div with an image class. Then I could use CSS to control each image for each info card.

Image description

Phase 2

This is where I began designing for mobile. The navigation disappears when you click it, so that users can see the content underneath, but the "Explore" section still shows the current planet/moon/celestial object. This took a lot of trial and error, because I wasn't sure immediately how I wanted to handle it.

I also added in the actual images during this phase, instead of just divs with a solid background. It looks super simple, but it functioned!

Image description

Phase 3

The final product! In this one, I laid the content out side-by-side for a desktop resolution. During this phase I also integrated some CSS animations and refined the design with some lines (using css gradient). I also changed the font last-minute. This phase involved a lot of tweaking!

What would I do next?

There's a lot of clean-up that needs to happen! The JavaScript could be refactored - each list of planets, moons, and celestial objects is unique to that section, so I would probably create a usable function there. (A lot of JS variables were pulled automatically but had to be transformed manually - e.g. kuiper-belt became "Kuiper Belt.") It's not the cleanest project, but it was a fun exercise.


This content originally appeared on DEV Community and was authored by Catherine Parkinson


Print Share Comment Cite Upload Translate Updates
APA

Catherine Parkinson | Sciencx (2024-09-15T22:22:59+00:00) Glam up my markup: Space. Retrieved from https://www.scien.cx/2024/09/15/glam-up-my-markup-space/

MLA
" » Glam up my markup: Space." Catherine Parkinson | Sciencx - Sunday September 15, 2024, https://www.scien.cx/2024/09/15/glam-up-my-markup-space/
HARVARD
Catherine Parkinson | Sciencx Sunday September 15, 2024 » Glam up my markup: Space., viewed ,<https://www.scien.cx/2024/09/15/glam-up-my-markup-space/>
VANCOUVER
Catherine Parkinson | Sciencx - » Glam up my markup: Space. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/09/15/glam-up-my-markup-space/
CHICAGO
" » Glam up my markup: Space." Catherine Parkinson | Sciencx - Accessed . https://www.scien.cx/2024/09/15/glam-up-my-markup-space/
IEEE
" » Glam up my markup: Space." Catherine Parkinson | Sciencx [Online]. Available: https://www.scien.cx/2024/09/15/glam-up-my-markup-space/. [Accessed: ]
rf:citation
» Glam up my markup: Space | Catherine Parkinson | Sciencx | https://www.scien.cx/2024/09/15/glam-up-my-markup-space/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.