HerveDelaunay / Astro

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Advice generator app

Table of contents

Overview

The App

This app presents the several planets of our solar system and sums up what we know about them. The website is also available on tablet and mobile devices.

Check it out here : https://actually-way-test.surge.sh/

What it looks like

Desktop version overview :

Internal structure of the planet :

Surface geology of the planet :

Tablet version overview :

Mobile version overview :

How to run the app locally ?

Clone the project, then jump into your command line and run these :

# install dependencies
yarn

# start the application
yarn start

# open the application in the browser
open http://localhost:3000

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • SCSS
  • Mobile-first workflow
  • React - JS library
  • Typescript - JS with an emphasis on types
  • Figma

What I learned

It was my first time working with figma designs, while discovering the tool I quickly got trapped in the "pixel perfect" mindset and so abused the

position: absolute;

atribute. That mistake cost me a lot while trying to make the website responsive. I'll have a completely different approach in my future projects, and I pretty much think that I won't use absolute position anymore except for rare cases.

I've learned how to dynamically change my css classes thanks to javascript like so :

className={`planetLink ${window.location.pathname === `/${planet.name}` ? `planetLink--${planetId}` : '' }`}

Here the default className will be "planetLink" but if the slug matchs a planet name then the class

planetLink--*

will be added.

Continued development

I witnessed some issues concerning the routing of the website. I also witnessed that the website doesn't display properly on laptop screensizes, it is due to the font-size that is not adaptating to the loss of screen size and also to the absolute position of some elements.

I will try to fix all of these in the near future.

About


Languages

Language:SCSS 60.3%Language:TypeScript 35.2%Language:HTML 4.5%