File tree Expand file tree Collapse file tree 9 files changed +104
-12
lines changed
components/ContactUs/ContactUsCards Expand file tree Collapse file tree 9 files changed +104
-12
lines changed Original file line number Diff line number Diff line change @@ -152,3 +152,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
152
152
- Updated outdated dependencies
153
153
154
154
### Fixed
155
+
156
+ ### Changed
157
+ - Started migrating styles from Styled Components to CSS Modules (ContactUsCard)
Original file line number Diff line number Diff line change
1
+ .contactCards {
2
+ background-color : var (--bg-contact-card );
3
+ }
Original file line number Diff line number Diff line change 1
- import { ContactCardsColumns } from './containers/CardColumns/ContactCardsColumns' ;
2
- import RevealContentContainer from './containers/RevealContentContainer' ;
3
- import styled from 'styled-components ' ;
1
+ import { ContactCardsColumns } from '../.. /containers/CardColumns/ContactCardsColumns' ;
2
+ import RevealContentContainer from '../.. /containers/RevealContentContainer' ;
3
+ import styles from './ContactUsCards.module.scss ' ;
4
4
5
5
const cards = [
6
-
7
6
{
8
7
title : 'FAQ' ,
9
8
image : '/images/svg/faq-icon.svg' ,
@@ -31,16 +30,12 @@ const cards = [
31
30
} ,
32
31
] ;
33
32
34
- const ContactCardsContainer = styled . div `
35
- background-color: ${ ( { theme } ) => theme . colors . white } ;
36
- ` ;
37
-
38
33
export default function ContactUsCards ( ) {
39
34
return (
40
- < ContactCardsContainer >
35
+ < article className = { styles . contactCards } >
41
36
< RevealContentContainer >
42
37
< ContactCardsColumns cards = { cards } />
43
38
</ RevealContentContainer >
44
- </ ContactCardsContainer >
39
+ </ article >
45
40
) ;
46
41
}
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ import Layout from '@/components/layout/Layout';
2
2
import { useState } from 'react' ;
3
3
import { ThemeProvider } from 'styled-components' ;
4
4
import { lightTheme , darkTheme , GlobalStyles } from '@/styles/themeConfig' ;
5
+ import '@/styles/index.scss' ;
5
6
6
7
function MyApp ( { Component, pageProps } ) {
7
-
8
8
// Only uncomment when the darkTheme is set
9
9
// const [theme, setTheme] = useState('light');
10
10
// const toggleTheme = () => {
Original file line number Diff line number Diff line change 1
1
import { useState } from 'react' ;
2
2
import ContactUsFormSubscribe from '@/components/ContactUs' ;
3
- import ContactUsCards from '@/components/ContactUsCards' ;
3
+ import ContactUsCards from '@/components/ContactUs/ ContactUsCards' ;
4
4
import S from '@/styles/pages/contactStyles' ;
5
5
6
6
export default function ContactUs ( ) {
Original file line number Diff line number Diff line change
1
+ @use ' ./variables' as * ;
2
+
3
+ @mixin transition ($args ...) {
4
+ -webkit-transition : $args ;
5
+ -moz-transition : $args ;
6
+ -ms-transition : $args ;
7
+ -o-transition : $args ;
8
+ transition : $args ;
9
+ }
10
+
11
+ @mixin tablet {
12
+ @media (min-width : $tablet-breakpoint ) {
13
+ @content ;
14
+ }
15
+ }
16
+
17
+ @mixin desktop {
18
+ @media (min-width : $desktop-breakpoint ) {
19
+ @content ;
20
+ }
21
+ }
22
+
23
+ @mixin desktop-breakpoint-plus {
24
+ @media (min-width : $desktop-breakpoint-plus ) {
25
+ @content ;
26
+ }
27
+ }
28
+
29
+ @mixin medium-desktop {
30
+ @media (min-width : $medium-desktop-breakpoint ) {
31
+ @content ;
32
+ }
33
+ }
34
+
35
+ @mixin large-desktop {
36
+ @media (min-width : $large-desktop-breakpoint ) {
37
+ @content ;
38
+ }
39
+ }
40
+
41
+ @mixin desktop-breakpoint-minus {
42
+ @media (max-width : $desktop-breakpoint-minus ) {
43
+ @content ;
44
+ }
45
+ }
46
+
47
+ @mixin mobile {
48
+ @media (max-width : $lg-mobile-breakpoint ) {
49
+ @content ;
50
+ }
51
+ }
52
+
53
+ @mixin small-mobile {
54
+ @media (max-width : $sm-mobile-breakpoint ) {
55
+ @content ;
56
+ }
57
+ }
Original file line number Diff line number Diff line change
1
+ // Media Query Breakpoints
2
+ $sm-mobile-breakpoint : 350px ;
3
+ $mobile-breakpoint : 578px ;
4
+ $lg-mobile-breakpoint : 767px ;
5
+ $tablet-breakpoint : 768px ;
6
+ $desktop-breakpoint-minus : 1023px ;
7
+ $desktop-breakpoint : 1024px ;
8
+ $desktop-breakpoint-plus : 1025px ;
9
+ $medium-desktop-breakpoint : 1250px ;
10
+ $large-desktop-breakpoint : 1440px ;
11
+ $extra-large-breakpoint : 2560px ;
12
+
13
+ // Fonts
14
+ $copy-font : ' Assistant' ;
15
+ $heading-font : ' Open Sans' ;
Original file line number Diff line number Diff line change
1
+ @use ' ./themes' ;
2
+ @use ' ./mixins' ;
3
+ @use ' ./variables' ;
Original file line number Diff line number Diff line change
1
+ :root {
2
+ --bg-contact-card : #ffffff ;
3
+ --bg-color : #eaeaea ;
4
+ }
5
+
6
+ // placeholder colors
7
+ [data-theme = ' dark' ] {
8
+ --bg-contact-card : #232431 ;
9
+ --bg-color : #333 ;
10
+ }
11
+
12
+ // Theming notes:
13
+ /*
14
+ Set document data-theme to dark to activate dark theme, for example
15
+ document.documentElement.setAttribute('data-theme', 'dark');
16
+ */
You can’t perform that action at this time.
0 commit comments