Giter Site home page Giter Site logo

fem-profile-card-component's Introduction

Frontend Mentor - Profile card component solution

This is my solution to the Profile card component challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Note: Delete this note and update the table of contents based on what sections you keep.

Overview

The challenge

Build out the project to the designs provided - pretty simple right?!? ๐Ÿคฃ There's always a gotcha in there somewhere. ๐Ÿ˜„

Screenshot

Here is the Figma design: Figma Designs

And my solution: My solution

Links

My process

As usual I designed this mobile-first, although there really weren't too many differences between screen sizes. ๐Ÿคฃ

I did attempt a more professional workflow by adhering to good commits. So trying to label them correctly, and only doing one thing per commit. ๐Ÿ˜ฑ

Usually I like to start by styling the typography, but found it made more sense to start with the layout here.

basic layout

This gave me a much better idea of both the container and card space I was working with! ๐Ÿ˜ƒ

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • CSS Grid
  • Flexbox
  • Mobile-first workflow
  • Positioning

What I learned

Basically, my biggest win was not being so wary of using position: relative and position: absolute! I usually only use these as a last resort, but I had planned to use it for the background images right from the start.

I had to Google which value to use on the parent again, but reading the MDN docs helped:

relative creates a new stacking context, while absolute makes it positioned relative to it's closest positioned ancestor

Now on to my biggest headache...

Figuring out 'just how the H***' to position those really cool circles in the background!

the problem circles in the background

I first tried my hardest to use the top, right, left, and bottom properties open once you use position, but no dice! ๐ŸŽฒ ๐Ÿ˜  I played around with that and width and height for awhile, getting interesting cut off circles... Then there was that bit I had to check if I had mistakenly placed it in div class="card", because I couldn't get them out of the middle of the page. ๐Ÿคฏ

But I found using the background properties were what really helped me out. Through quite a lot of trial and error, background-position came in for the win! ๐Ÿ†

Continued development

I will continue working on only doing one change per commit. I will; promise! ๐Ÿคž I changed from simply typing git add . to adding the actual files and quite liked it, but still find myself jumping from file to file and forgetting to commit. ๐Ÿคฃ Oh well, baby steps!

Useful resources

Author

Hiya! ๐Ÿ‘‹ My name is Jolene Kearse.

I was an English as a Foreign Language Teacher ๏ธ๐ŸŒ๐Ÿง‘โ€๐Ÿซ for over 15 years - so, yeah, for a little bit ๐ŸคŒ... I lived all over the world, including China, England & South Korea.

Now I'm an awesome Software Engineer! ๐Ÿ’ƒ I'm a proud, self-taught individual.

I'm also proud of how far I came in 2022. I finally learned JavaScript! ๐Ÿป _I had struggled for about a year before I finally could add that to my skillset. If you're interested in an awesome ๐Ÿ”ฅ course check out Class Central's Bootcamp YouTube Playlist going through freeCodeCamp's Algorithms and Data Structures Certification.

Then I met an awesome group of fellow-learning devs, The Explorers. This exposed me to the myriad and oft-confusing ways of using Git in a team - loving it now! But also projects using so many kinds of tech that would've just blown my mind a year before ๐Ÿคฏ including:

  • React
  • TypeScript
  • Tailwind

I even participated in #Hacktoberfest and earned the coveted T-shirt! ๐ŸŽ‰๐Ÿ‘•

In 2023 I've been boning up on React, and just taking so many courses to learn Backend Development and navigate the process of earning my first tech job!

One of those courses has seen me going back to Python - which I had treated as my crutch language to understand JavaScript. ๐Ÿคฃ But I've been loving navigating in multiple languages.

Another challenge I am undertaking this year is Exercism's #12in23. This is a cool ๐Ÿ˜Ž opportunity to try out 12 different languages this year. Each month has a theme, like Functional February and Mechanical March to encourage you to check out different language paradims. I'm loving this chance to dip my toe in other types of programming. I find I'm gaining the ability to evaluate various languages' strengths and project needs.

Let's connect! ๐Ÿ’ฌ

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.