Skip to content

Commit

Permalink
Update button styling
Browse files Browse the repository at this point in the history
  • Loading branch information
dvsu committed Jul 12, 2022
1 parent 4d562e4 commit 60f4418
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
17 changes: 16 additions & 1 deletion src/components/SelectorButton.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
position: relative;
border-radius: 0.7rem;

&:hover,
&:active {
cursor: pointer;
}

&--selected {
background-image: linear-gradient(
to bottom right,
Expand Down Expand Up @@ -48,7 +53,17 @@
&__text {
font-size: 3rem;
color: rgb(64, 64, 64);
// text-shadow: 0 0 5px rgb(251, 100, 100);
display: block;

&--selected {
color: rgb(203, 68, 0);
text-shadow: 0 0 3px rgb(255, 85, 0);
}
}

&__subtext {
font-size: 1.3rem;
font-weight: 600;

&--selected {
color: rgb(203, 68, 0);
Expand Down
11 changes: 10 additions & 1 deletion src/components/SelectorButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ export const SelectorButton: React.FC<SelectorButtonProps> = ({
? "selector-button__text--selected"
: "";

const selectedSubtextStyle =
selectedTimeSeconds === timeSecondsLabel
? "selector-button__subtext--selected"
: "";

const selectedBackgroundStyle =
selectedTimeSeconds === timeSecondsLabel
? "selector-button__background--selected"
Expand All @@ -40,7 +45,11 @@ export const SelectorButton: React.FC<SelectorButtonProps> = ({
>
{minutes}
</div>
<div>minutes</div>
<div
className={`${styles["selector-button__subtext"]} ${styles[selectedSubtextStyle]}`}
>
min
</div>
</div>
</div>
);
Expand Down
5 changes: 5 additions & 0 deletions src/components/StartButton.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
position: relative;
border-radius: 0.7rem;

&:hover,
&:active {
cursor: pointer;
}

&__content {
position: absolute;
width: 96%;
Expand Down

0 comments on commit 60f4418

Please sign in to comment.