Skip to content

Commit 73863d4

Browse files
committed
feat: added compressr information, dependency upgrades
1 parent e1a7521 commit 73863d4

5 files changed

Lines changed: 833 additions & 808 deletions

File tree

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
"dependencies": {
1818
"@emotion/react": "^11.11.4",
1919
"@emotion/styled": "^11.11.5",
20-
"@mui/icons-material": "^5.15.17",
21-
"@mui/material": "^5.15.17",
22-
"axios": "^1.6.8",
23-
"gatsby": "^5.13.4",
20+
"@mui/icons-material": "^5.15.18",
21+
"@mui/material": "^5.15.18",
22+
"axios": "^1.7.2",
23+
"gatsby": "^5.13.5",
2424
"gatsby-plugin-catch-links": "^5.13.1",
2525
"gatsby-plugin-google-gtag": "^5.13.1",
2626
"gatsby-plugin-image": "^3.13.1",
@@ -38,7 +38,7 @@
3838
"react-helmet": "^6.1.0"
3939
},
4040
"devDependencies": {
41-
"eslint": "^9.2.0",
41+
"eslint": "^9.3.0",
4242
"eslint-config-airbnb": "^19.0.4",
4343
"eslint-plugin-import": "^2.29.1",
4444
"eslint-plugin-jsx-a11y": "^6.8.0",

src/components/Application/index.jsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,16 @@ import CardHeader from '@mui/material/CardHeader';
99
import { GatsbyImage } from 'gatsby-plugin-image';
1010

1111
const Application = ({
12-
name, description, url, image,
12+
name, description, url, image, newTab,
1313
}) => {
1414
/**
1515
* Go to the designated URL
1616
*/
1717
const goToUrl = () => {
18+
if (newTab) {
19+
window.open(url, '_blank');
20+
return;
21+
}
1822
navigate(url);
1923
};
2024

src/images/Compressr/compressr.png

103 KB
Loading

src/pages/software/index.jsx

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,12 @@ const Software = () => {
7171
childImageSharp {
7272
gatsbyImageData(layout: CONSTRAINED, height: 160)
7373
}
74-
}
74+
},
75+
compressr: file(relativePath: { eq: "Compressr/compressr.png" }) {
76+
childImageSharp {
77+
gatsbyImageData(layout: CONSTRAINED, height: 160)
78+
}
79+
}
7580
}`);
7681

7782
const applications = [{
@@ -134,7 +139,14 @@ const Software = () => {
134139
description: 'Opal is a free and open source music player that will help you relax. It runs on Windows and Linux.',
135140
tags: ['Opal', 'music', 'relax', 'sound', 'relaxation', 'relaxing', 'linux'],
136141
image: imageData.opal.childImageSharp.gatsbyImageData,
137-
}];
142+
},
143+
{
144+
name: 'Compressr',
145+
url: 'https://compressr.codedead.com/',
146+
description: 'Compressr is a free and open source bulk image compressor / compression tool that you can use in the browser ',
147+
tags: ['image', 'compression', 'compress', 'bulk', 'art', 'pixel', 'lossless', 'lossy'],
148+
image: imageData.compressr.childImageSharp.gatsbyImageData,
149+
}];
138150

139151
useEffect(() => {
140152
dispatch(setPageIndex(1));
@@ -144,7 +156,8 @@ const Software = () => {
144156
if (searchValue && searchValue.length > 0) {
145157
searchResult = applications.filter((application) => {
146158
for (let i = 0; i < application.tags.length; i += 1) {
147-
if (application.tags[i].toLowerCase().indexOf(searchValue.toLowerCase()) !== -1) {
159+
if (application.tags[i].toLowerCase()
160+
.indexOf(searchValue.toLowerCase()) !== -1) {
148161
return true;
149162
}
150163
}
@@ -164,7 +177,7 @@ const Software = () => {
164177

165178
return (
166179
<Layout>
167-
<PageHeader title="Software" subTitle="Our work" />
180+
<PageHeader title="Software" subTitle="Our work"/>
168181
<Container maxWidth="xl" style={{ marginTop: 10 }}>
169182
<Grid container spacing={2}>
170183
<Grid item xs={12} md={12} lg={12}>
@@ -188,12 +201,12 @@ const Software = () => {
188201
<>
189202
<Grid item xs={12} md={12} lg={12}>
190203
<Typography variant="h5" color="textPrimary">
191-
<SecurityIcon color="inherit" />
204+
<SecurityIcon color="inherit"/>
192205
{' Security'}
193206
</Typography>
194207
</Grid>
195208
<Grid item xs={12} md={12} lg={12}>
196-
<Divider />
209+
<Divider/>
197210
</Grid>
198211
</>
199212
)}
@@ -256,12 +269,12 @@ const Software = () => {
256269
<Grid container spacing={2} style={{ marginTop: 20 }}>
257270
<Grid item xs={12} md={12} lg={12}>
258271
<Typography variant="h5" color="textPrimary">
259-
<ComputerIcon color="inherit" />
272+
<ComputerIcon color="inherit"/>
260273
{' System'}
261274
</Typography>
262275
</Grid>
263276
<Grid item xs={12} md={12} lg={12}>
264-
<Divider />
277+
<Divider/>
265278
</Grid>
266279
</Grid>
267280
)}
@@ -306,12 +319,12 @@ const Software = () => {
306319
<Grid container spacing={2} style={{ marginTop: 20 }}>
307320
<Grid item xs={12} md={12} lg={12}>
308321
<Typography variant="h5" color="textPrimary">
309-
<AppsIcon color="inherit" />
322+
<AppsIcon color="inherit"/>
310323
{' Utilities'}
311324
</Typography>
312325
</Grid>
313326
<Grid item xs={12} md={12} lg={12}>
314-
<Divider />
327+
<Divider/>
315328
</Grid>
316329
</Grid>
317330

@@ -348,6 +361,15 @@ const Software = () => {
348361
image={applications.filter((item) => item.name === 'EGLD Price Calculator')[0].image}
349362
/>
350363
</Grid>
364+
<Grid item xs={12} md={3} lg={4}>
365+
<Application
366+
name={applications.filter((item) => item.name === 'Compressr')[0].name}
367+
description={applications.filter((item) => item.name === 'Compressr')[0].description}
368+
url={applications.filter((item) => item.name === 'Compressr')[0].url}
369+
image={applications.filter((item) => item.name === 'Compressr')[0].image}
370+
newTab={true}
371+
/>
372+
</Grid>
351373
</Grid>
352374
</>
353375
)}

0 commit comments

Comments
 (0)