Skip to content

Commit db056c5

Browse files
committed
Add text shadow to hero text
1 parent c53a919 commit db056c5

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

client/src/components/Dashboard/style.module.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,13 @@
6464
background-size: 500%;
6565
animation: gradient-in 2.5s 0.5s both;
6666

67+
// Wrap each shadow in drop-shadow()
68+
$drop-shadows: ();
69+
@each $shadow in vars.$text-shadow {
70+
$drop-shadows: append($drop-shadows, drop-shadow(#{$shadow}));
71+
}
72+
filter: #{$drop-shadows};
73+
6774
@keyframes gradient-in {
6875
from {
6976
background-position: right;
@@ -75,6 +82,7 @@
7582
}
7683

7784
.subtitle {
85+
text-shadow: vars.$text-shadow;
7886
animation: fade-in 1s 1.5s backwards;
7987
}
8088

client/src/components/Footer/style.module.scss

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
padding: 8rem 0;
1010
position: relative;
1111

12-
text-shadow:
13-
0 1px 4px rgba(0, 0, 0, 0.5),
14-
0 3px 15px rgba(0, 0, 0, 0.7);
12+
text-shadow: vars.$text-shadow;
1513
}
1614

1715
.backgroundLeft {

client/src/styles/vars.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ $breakpoint-sm: 425px; //
2222
$breakpoint-md: 870px; // Use this breakpoint for most mobile-first CSS designs
2323
$breakpoint-lg: 1024px;
2424

25+
$text-shadow:
26+
0 1px 4px rgba(0, 0, 0, 0.5),
27+
0 3px 15px rgba(0, 0, 0, 0.7);
28+
2529
$side-padding: 4rem;
2630
$side-padding-mobile: 1rem;
2731

0 commit comments

Comments
 (0)