Skip to content

Commit badf78f

Browse files
committed
remove commented and dead code
1 parent a67abfc commit badf78f

File tree

8 files changed

+10
-42
lines changed

8 files changed

+10
-42
lines changed

components/blog/BlogPostsContainer/BlogPostsContainer.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import CardsColumns from '@/components/containers/CardColumns/CardsColumns';
22
import Card from '@/components/containers/Card/Card';
33
import Title from '@/components/snippets/Title';
44
import Link from 'next/link';
5-
// import styles from '@/styles/Blog.module.scss';
65
import RevealContentContainer from '@/components/containers/RevealContentContainer/RevealContentContainer';
76
import S from './styles';
87
import { tagToHeading } from '@/utils/blogCategories';

components/buttons/ButtonLink/ButtonLink.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ import S from './styles';
33
/* The component supports the use of target with the property "openNewTab" to open the
44
link in a new tab.*/
55
export default function ButtonLink({
6-
customClassName,
76
link,
87
children,
98
styles,
9+
$colorScheme,
1010
openNewTab,
1111
}) {
1212
return (
1313
<S.ButtonLink
1414
href={link}
1515
style={styles}
16-
$colorScheme={customClassName}
16+
$colorScheme={$colorScheme}
1717
target={openNewTab ? '_blank' : undefined}
1818
rel='noopener noreferrer'
1919
>

components/containers/Card/Card.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import Image from 'next/image';
22
import Link from 'next/link';
3-
// import styles from '@/styles/Card.module.scss';
43
import S from './styles';
54
import { Tag } from '@/components/blog/Tag/Tag';
65

components/containers/RevealContentContainer/RevealContentContainer.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { useEffect, useState } from 'react';
22
import { useIntersect } from '@/hooks/useIntersect';
3-
// import styles from '@/styles/RevealContainer.module.scss';
43
import S from './styles';
54

65
const RevealContentContainer = ({ children }) => {

components/containers/TwoColumn/TwoColumn.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export default function TwoColumn({
1414
link,
1515
customInnerClass,
1616
customBtnClass,
17+
$btnColorScheme,
1718
linkText = 'Learn more',
1819
secondTextColumn,
1920
openNewTab,
@@ -24,8 +25,6 @@ export default function TwoColumn({
2425
? TwoColumnStyles[$contentType]
2526
: TwoColumnStyles.base;
2627

27-
console.log();
28-
2928
// Add rowOrder="row-reverse" prop to the component to reverse its order on desktop
3029
return (
3130
<S.TwoColumnWrapper $color={color} $bgColor={bgColor}>
@@ -39,7 +38,7 @@ export default function TwoColumn({
3938
{link && (
4039
<ButtonLink
4140
link={link}
42-
customClassName={customBtnClass}
41+
$colorScheme={$btnColorScheme}
4342
openNewTab={openNewTab}
4443
>
4544
{linkText}

pages/_document.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,6 @@
11
import Document, { Html, Head, Main, NextScript } from 'next/document';
22
import { ServerStyleSheet } from 'styled-components';
33

4-
// export default function Document() {
5-
// return (
6-
// <Html>
7-
// <Head>
8-
// <link
9-
// rel='stylesheet'
10-
// href='https://fonts.googleapis.com/css2?family=Assistant:wght@400;700&family=Open+Sans:wght@700&display=swap'
11-
// />
12-
// </Head>
13-
// <body>
14-
// <Main />
15-
// <NextScript />
16-
// </body>
17-
// </Html>
18-
// );
19-
// }
20-
214
class MyDocument extends Document {
225
static async getInitialProps(ctx) {
236
const sheet = new ServerStyleSheet();

pages/about.js

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ export default function AboutUs() {
3838
color={$primaryContentColor}
3939
bgColor={$primaryAccentColor}
4040
$contentType='our-background'
41-
customInnerClass='our-background'
4241
/>
4342
</RevealContentContainer>
4443

@@ -80,7 +79,6 @@ export default function AboutUs() {
8079
color={$primaryContentColor}
8180
bgColor={$white}
8281
$contentType='our-process'
83-
customInnerClass='our-process'
8482
/>
8583
<TwoColumn
8684
title='Version control'
@@ -103,7 +101,6 @@ export default function AboutUs() {
103101
color={$primaryContentColor}
104102
bgColor={$white}
105103
$contentType='our-process'
106-
customInnerClass='our-process'
107104
/>
108105
</RevealContentContainer>
109106
<RevealContentContainer>
@@ -148,7 +145,6 @@ export default function AboutUs() {
148145
color={$primaryContentColor}
149146
bgColor={$white}
150147
$contentType='our-purpose'
151-
customInnerClass='our-purpose'
152148
/>
153149
</RevealContentContainer>
154150
<RevealContentContainer>
@@ -160,7 +156,6 @@ export default function AboutUs() {
160156
color={$primaryContentColor}
161157
bgColor={$lightBgColor}
162158
$contentType='wanna-learn-more'
163-
customInnerClass='wanna-learn-more'
164159
/>
165160
<TwoColumn
166161
title='Junior Developers'
@@ -174,11 +169,10 @@ export default function AboutUs() {
174169
linkText='Our wiki'
175170
openNewTab
176171
link='https://github.com/Web-Dev-Path/web-dev-path/wiki'
177-
customBtnClass='inverted-grey'
172+
$btnColorScheme='inverted-grey'
178173
color={$primaryContentColor}
179174
bgColor={$lightBgColor}
180175
$contentType='two-text-columns'
181-
customInnerClass='two-text-columns'
182176
secondTextColumn={
183177
<TwoColumn
184178
title='Experienced Developers'
@@ -190,11 +184,10 @@ export default function AboutUs() {
190184
}
191185
linkText='Contact us'
192186
link='/contact'
193-
customBtnClass='inverted-grey'
187+
$btnColorScheme='inverted-grey'
194188
color={$primaryContentColor}
195189
bgColor={$lightBgColor}
196190
$contentType='second-text-column'
197-
customInnerClass='second-text-column'
198191
/>
199192
}
200193
/>
@@ -232,10 +225,9 @@ export default function AboutUs() {
232225
color={$primaryContentColor}
233226
bgColor={$white}
234227
$contentType='get-started'
235-
customInnerClass='get-started'
236228
link='mailto:[email protected]'
237229
linkText='Ping us'
238-
customBtnClass='inverted-grey'
230+
$btnColorScheme='inverted-grey'
239231
/>
240232
</RevealContentContainer>
241233
<RevealContentContainer>
@@ -270,10 +262,9 @@ export default function AboutUs() {
270262
color={$primaryContentColor}
271263
bgColor={$white}
272264
$contentType='questions'
273-
customInnerClass='questions'
274265
link='/contact'
275266
linkText='Contact us'
276-
customBtnClass='inverted-grey'
267+
$btnColorScheme='inverted-grey'
277268
/>
278269
</RevealContentContainer>
279270
</div>

pages/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default function Home() {
1818
altTag='Join the project'
1919
content='The Web Dev Path is a team of professional developers project that aims to provide a comprehensive path for people who seek to begin their web development journey.'
2020
link='/about'
21-
customBtnClass='inverted-grey'
21+
$btnColorScheme='inverted-grey'
2222
bgColor={$lightBgColor}
2323
/>
2424
</RevealContentContainer>
@@ -30,7 +30,6 @@ export default function Home() {
3030
content='Web Dev Path runs on volunteers. Here are the ways you can get involved with us:'
3131
rowOrder='row-reverse'
3232
$contentType='get-involved'
33-
customInnerClass='get-involved'
3433
bgColor={$white}
3534
/>
3635
</RevealContentContainer>
@@ -79,8 +78,7 @@ export default function Home() {
7978
bgColor={$primaryContentColor}
8079
link='/about'
8180
$contentType='non-profit'
82-
customInnerClass='non-profit'
83-
customBtnClass='inverted-white'
81+
$btnColorScheme='inverted-white'
8482
/>
8583
</RevealContentContainer>
8684
</>

0 commit comments

Comments
 (0)