Skip to content

Commit 84e6979

Browse files
committed
changes made during video
1 parent 54c8ab8 commit 84e6979

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

src/containers/css-modules-container/container-styles.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ interface ContainerStyles {
1313
/** elevate element using box-shadow */
1414
effect__elevate: string;
1515
/** hide element on mobile screen */
16-
effect__hideOnMobile: string;
16+
effect__hideOnTablet: string;
1717
/** show element on mobile screen */
18-
effect__showOnMobile: string;
18+
effect__showOnTablet: string;
1919
}
2020

2121
export const containerStyles: ContainerStyles = csjs`
@@ -36,30 +36,30 @@ export const containerStyles: ContainerStyles = csjs`
3636
3737
.effect__elevate {
3838
box-shadow: none;
39-
transition: box-shadow 0.5s linear;
39+
transition: box-shadow 0.6s ease-out;
4040
}
4141
.effect__elevate:hover {
4242
box-shadow: 0 6px 20px 0 ${colors.shadowColor};
4343
}
4444
45-
.effect__hideOnMobile {
45+
.effect__hideOnTablet {
4646
margin: 0px 30px;
4747
opacity: 1;
4848
transition:
4949
margin 1s 0.5s,
5050
opacity 1s 0.5s;
5151
}
5252
53-
.effect__showOnMobile {
53+
.effect__showOnTablet {
5454
margin: 0px 50px;
5555
opacity: 0;
5656
transition:
5757
margin 1s,
5858
opacity 1s;
5959
}
6060
61-
@media (max-width: 450px) {
62-
.effect__hideOnMobile {
61+
@media (max-width: 740px) {
62+
.effect__hideOnTablet {
6363
margin: 0px 50px;
6464
opacity: 0;
6565
transition:
@@ -68,7 +68,7 @@ export const containerStyles: ContainerStyles = csjs`
6868
box-shadow 0.5s linear;
6969
}
7070
71-
.effect__showOnMobile {
71+
.effect__showOnTablet {
7272
margin: 0px 30px;
7373
opacity: 1;
7474
transition:

src/containers/css-modules-container/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function CssModulesContainer() {
2727
</ul>
2828
<br />
2929
<PageSection className={containerStyles.textCentered}>
30-
<div className={containerStyles.effect__hideOnMobile}>
30+
<div className={containerStyles.effect__hideOnTablet}>
3131
<div className={[containerStyles.darkBg, containerStyles.effect__elevate].join(' ')}>
3232
<p className={containerStyles.glowingText}>
3333
<br />
@@ -37,7 +37,7 @@ export function CssModulesContainer() {
3737
</p>
3838
</div>
3939
</div>
40-
<div className={containerStyles.effect__showOnMobile}>
40+
<div className={containerStyles.effect__showOnTablet}>
4141
<div className={[containerStyles.darkBg, containerStyles.effect__elevate].join(' ')}>
4242
<p className={containerStyles.glowingText}>
4343
SUPRISE!!!

src/themes/colors.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const DARK_THEME = 'darkTheme';
2-
const selectedTheme = null;
2+
const selectedTheme = DARK_THEME;
33

44
export default {
55
get textColor() {
@@ -9,7 +9,7 @@ export default {
99
}
1010
},
1111
borderColor: '#222',
12-
backgroundColor: '#444',
12+
backgroundColor: 'gold',
1313
shadowColor: '#000',
1414
shadowColorLight: '#888'
1515
};

0 commit comments

Comments
 (0)