Skip to content

Commit

Permalink
fix(styles): add global styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Facundo Ledesma authored and Facundo Ledesma committed Dec 30, 2022
1 parent 609d45a commit 28f15cc
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 15 deletions.
18 changes: 10 additions & 8 deletions src/components/card/card.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
@import '../../utils/variables';

.card,
.card-loading,
.card-empty {
height: 400px;
width: 300px;
border: 2px solid black;
border: 2px solid $secondary-color;
border-radius: 8px;
background-color: #FFFCF3;
box-shadow: 0px 4px 0px black;
background-color: $primary-color;
box-shadow: 0px 4px 0px $secondary-color;

&-empty {
display: flex;
Expand All @@ -16,21 +18,21 @@

&-header {
height: 30%;
background-color: #FFCD69;
background-color: $highlight-color-dark;
display: flex;
align-items: center;
justify-content: center;
border-bottom: 2px solid black;
border-bottom: 2px solid $secondary-color;
border-radius: 8px 8px 0 0;

.image-container {
position: relative;
width: 150px;
height: 150px;
border-radius: 50%;
border: 2px solid black;
border: 2px solid $secondary-color;
transform: translateY(37%);
background-color: #FFFCF3;
background-color: $primary-color;

img {
position: absolute;
Expand Down Expand Up @@ -80,7 +82,7 @@
display: flex;
align-items: center;
justify-content: space-around;
border-top: 2px solid black;
border-top: 2px solid $secondary-color;

.stat {
height: 100%;
Expand Down
10 changes: 6 additions & 4 deletions src/components/home/home.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import '../../utils/variables';

.home {
min-width: 100%;
min-height: 100%;
Expand All @@ -14,7 +16,7 @@
align-items: center;

.table {
background-color: #fffcf3;
background-color: $primary-color;

thead {
th {
Expand All @@ -29,19 +31,19 @@
cursor: pointer;

&:hover {
background-color: #fbd68b;
background-color: $highlight-color;
}

&:active {
background-color: #ffcd69;
background-color: $highlight-color-dark;
}
}
}
}

.table-skeleton {
height: 528px;
background-color: #fffcf3;
background-color: $primary-color;
}

.pagination {
Expand Down
6 changes: 4 additions & 2 deletions src/index.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
@import './utils/variables';

body {
font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
font-family: $primary-font;
font-size: 16px;
line-height: 24px;
font-weight: 400;
width: 100%;
margin: 0;
min-height: 100vh;
color: #242424;
color: $secondary-color;
}

h1 {
Expand Down
9 changes: 8 additions & 1 deletion src/utils/_variables.scss
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
// fonts
$primary-font: 'Inter', sans-serif;

// colors
$primary-colors: #fdf8e3;
$primary-color: #fffcf3;
$secondary-color: #242424;
$highlight-color: #fbd68b;
$highlight-color-dark: #ffcd69;

0 comments on commit 28f15cc

Please sign in to comment.