Skip to content

Commit 1e1522c

Browse files
committed
update analytics and cleanup dead code
1 parent dc9aa2e commit 1e1522c

File tree

19 files changed

+66
-351
lines changed

19 files changed

+66
-351
lines changed

public/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
href="https://fonts.googleapis.com/css2?family=Nunito&display=swap"
1515
rel="stylesheet"
1616
/>
17+
<script defer src="https://umami.kutavi.org/script.js" data-website-id="6876f6e2-d053-47d6-93e6-23cb73ab499f"></script>
1718
<title>Growth Toolkit · Online tools for personal development</title>
1819
</head>
1920
<body>

src/app.tsx

Lines changed: 0 additions & 36 deletions
This file was deleted.

src/components/Credits/Credits.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
margin-top: 8px;
2323
}
2424
img {
25-
width: 260px;
25+
width: 220px;
2626
}
2727
}
2828

src/components/Credits/Credits.tsx

Lines changed: 45 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -25,54 +25,80 @@ const Credits = () => {
2525
track('Closed credits');
2626
}}>
2727
<div className={styles.wrapper}>
28-
<h3>{'Credits'}</h3>
29-
<div onClick={() => track('Clicked credit links')}>
28+
<div>
3029
<p>
31-
Site&apos;s favicon - Leaf icon -{' '}
30+
Created by{' '}
3231
<a
32+
onClick={() => track('Clicked website link')}
3333
target='_blank'
34-
href='https://www.flaticon.com/authors/roundicons'
35-
title='leaf icon'
34+
href='https://kutavi.weebly.com/'
3635
rel='noreferrer'>
37-
created by Roundicons - Flaticon
36+
{'Alexandra Tseniklidou'}
3837
</a>
3938
.
4039
</p>
40+
</div>
41+
<div>
4142
<p>
42-
Moving motivators images and concept created by{' '}
43+
This project&apos;s source code is on{' '}
4344
<a
45+
onClick={() => track('Clicked Github link')}
4446
target='_blank'
45-
href='https://management30.com/practice/moving-motivators/'
46-
title='management 3.0 moving motivators'
47+
href='https://github.com/kutavi/growth-toolkit'
4748
rel='noreferrer'>
48-
management 3.0, Jurgen Appelo
49+
{'Github'}
4950
</a>
5051
.
5152
</p>
5253
</div>
53-
<h3>{'About this project'}</h3>
5454
<div>
5555
<p>
56-
Created by{' '}
56+
Have a tool you wish to see a digital version of or encountered
57+
any issues?
58+
</p>
59+
<p>
60+
You can contact me via the form{' '}
5761
<a
58-
onClick={() => track('Clicked website link')}
5962
target='_blank'
60-
href='https://kutavi.weebly.com/'
63+
href='https://kutavi.weebly.com/#contact'
6164
rel='noreferrer'>
62-
{'Alexandra Tseniklidou'}
65+
here
6366
</a>
6467
.
6568
</p>
6669
</div>
6770
<div>
6871
<p>
69-
This project&apos;s source code is on{' '}
7072
<a
71-
onClick={() => track('Clicked Github link')}
73+
onClick={() => track('Clicked Privacy Policy')}
7274
target='_blank'
73-
href='https://github.com/kutavi/growth-toolkit'
75+
href='https://kutavi.weebly.com/privacy-policy'
7476
rel='noreferrer'>
75-
{'Github'}
77+
{'Privacy Policy'}
78+
</a>
79+
</p>
80+
</div>
81+
<h3>{'Credits'}</h3>
82+
<div onClick={() => track('Clicked credit links')}>
83+
<p>
84+
Site&apos;s favicon - Leaf icon -{' '}
85+
<a
86+
target='_blank'
87+
href='https://www.flaticon.com/authors/roundicons'
88+
title='leaf icon'
89+
rel='noreferrer'>
90+
created by Roundicons - Flaticon
91+
</a>
92+
.
93+
</p>
94+
<p>
95+
Moving motivators images and concept created by{' '}
96+
<a
97+
target='_blank'
98+
href='https://management30.com/practice/moving-motivators/'
99+
title='management 3.0 moving motivators'
100+
rel='noreferrer'>
101+
management 3.0, Jurgen Appelo
76102
</a>
77103
.
78104
</p>
Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
@use '../../styles/_base.module.scss' as *;
22

3-
.feedback {
4-
display: flex;
5-
flex-direction: column;
6-
margin: auto;
7-
max-width: 300px;
8-
align-items: center;
9-
> svg {
10-
margin: 24px 0;
11-
}
12-
}
133
.title {
144
text-align: center;
155
}
16-
.send {
17-
margin-top: 8px;
18-
}

src/components/ErrorBoundary/ErrorBoundary.tsx

Lines changed: 5 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
import React from 'react';
2-
import { Button } from '../../library/Button/Button';
32
import { Icon } from '../../library/Icon/Icon';
4-
import { InputArea } from '../../library/InputArea/InputArea';
53
import * as colors from '../../styles/_base.module.scss';
64
import { track } from '../../utils/helpers';
75
import * as styles from './ErrorBoundary.module.scss';
86

97
interface ErrorState {
108
hasError: boolean;
11-
feedback: string;
12-
sentFeedback: boolean;
139
}
1410

1511
interface ErrorBoundaryProps {
@@ -22,7 +18,7 @@ export class ErrorBoundary extends React.Component<
2218
> {
2319
constructor(props: ErrorBoundaryProps) {
2420
super(props);
25-
this.state = { hasError: false, feedback: '', sentFeedback: false };
21+
this.state = { hasError: false };
2622
}
2723

2824
static getDerivedStateFromError(_error: Error): { hasError: boolean } {
@@ -31,45 +27,20 @@ export class ErrorBoundary extends React.Component<
3127
}
3228

3329
componentDidCatch(error: Error): void {
34-
track('REPORT', { value: `error log: ${error?.message}` });
30+
track('ERROR', { value: `error log: ${error?.message}` });
3531
}
3632

3733
render(): React.ReactNode {
3834
if (this.state.hasError) {
3935
return (
4036
<>
37+
<h1 className={styles.title}>
38+
<Icon icon='bug' size={42} color={colors.noDarker} />
39+
</h1>
4140
<h1 className={styles.title}>Oh no! Something went wrong.</h1>
4241
<h2 className={styles.title}>
4342
Try refreshing the page or going back
4443
</h2>
45-
{!this.state.sentFeedback ? (
46-
<div className={styles.feedback}>
47-
<Icon icon='bug' size={42} color={colors.noDarker} />
48-
<InputArea
49-
placeholder='You can use this form to report the issue.'
50-
rows={10}
51-
value={this.state.feedback}
52-
onChange={value => this.setState({ feedback: value })}
53-
/>
54-
<Button
55-
disabled={!this.state.feedback.trim()}
56-
className={styles.send}
57-
type={'secondary'}
58-
onClick={() => {
59-
this.setState({ sentFeedback: true });
60-
track('REPORT', {
61-
value: `report from user: ${this.state.feedback}`,
62-
});
63-
}}>
64-
{'Send'}
65-
</Button>
66-
</div>
67-
) : (
68-
<div className={styles.feedback}>
69-
<Icon icon='check' size={42} color={colors.yes} />
70-
{'Thank you for helping out!'}
71-
</div>
72-
)}
7344
</>
7445
);
7546
}

src/components/Feedback/Feedback.module.scss

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/components/Feedback/Feedback.tsx

Lines changed: 0 additions & 75 deletions
This file was deleted.

src/components/Subscribe/Subscribe.module.scss

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)