Skip to content

berta-rf/order-summary-component-main

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Order summary card solution

Table of contents

Overview

The challenge

Build a responsive design for an Order Summary card from mock-up pictures.

Users should be able to:

  • See hover states for interactive elements

Screenshot

desktop design screenshot

Links

My process

Built with

  • HTML5
  • CSS custom properties
  • Bootstrap 5.2
  • SCSS
  • Mobile-first workflow

What I learned

This is my first ever project using Bootstrap and SCSS. See a couple of code snippets that show how I used SCSS to add custom bootstrap theme colours and merged it with the theme colours.

#change-link {
    color: $brightblue;
    font-size: 12px;
}

#change-link:hover {
    color: $activepurple;
    text-decoration: none;

}
@import "../node_modules/bootstrap/scss/functions";
@import "../node_modules/bootstrap/scss/variables";

$custom-theme-colors: (
    "paleblue": hsl(225, 100%, 94%),
    "brightblue": hsl(245, 75%, 52%),
    "verypb": hsl(225, 100%, 98%),
    "desatblue": hsl(224, 23%, 55%),
    "darkblue": hsl(223, 47%, 23%),
    "activepurple":hsl(245, 63%, 65%),
);

$theme-colors: map-merge($custom-theme-colors, $theme-colors);

Useful resources

Author

About

Responsive design from mock-up.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors