This is a solution to the Profile card component challenge on Frontend Mentor.
The challenge was to build a profile card component and get the design to look as close as possible to the provided design images.
- Solution URL: https://github.com/VTickner/frontend-mentor-profile-card-component
- Live Site URL: https://vtickner.github.io/frontend-mentor-profile-card-component/
- Created semantic HTML first
- Created CSS selectors to:
- create custom variables to contain the various colours, font sizes font weights used in the design
- used a CSS reset
- layout the design using Flexbox
- style the various elements
- added in
:focus
styling for accessibility purposes
- Semantic HTML markup
- CSS custom properties
- Flexbox
- Google Font
I had difficulties in aligning the svg images that are used in the background behind the profile card. I ended up looking at another user's solution in order to understand how they had done it using background-position
.
background-position: right 50vw bottom 40vh, top 50vh left 45vw;
Gain extra practice in laying out more complicated background images.
- Google Fonts - The font used in this design was Kumbh Sans.
- Frontend Mentor - @VTickner