
Step 1: index.html
In your index.html
, you're adding different routes to create a page layout with user cards, utilizing Bootstrap for responsiveness. You’ve also added a profile section for each user with a distinct color. Here’s a revised version based on your request:
Step 2: assets/css/style.css
Your style.css
contains the custom styles to style the user cards. You are defining colors for each user card with specific borders, customizing the profile images, and adding styles for text and badges. Here's the complete style.css
based on your code:
Explanation:
-
HTML Structure: The structure of
index.html
includes acontainer
div, which holds the user cards, and the layout is responsive, thanks to Bootstrap. Each user is represented with afigure.user-card
element, which has different styles for background color based on the class (green
,blue
, etc.). -
CSS Styling: The
style.css
applies various background colors, borders, padding, and text styles to each user card. The.profile
class ensures that the images are rounded, while the badges give each user a set of tags (like#HTML5
,#CSS3
, etc.).