Skip to content

Commit 6f6278c

Browse files
committed
Fix image loading
1 parent b76cb30 commit 6f6278c

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules/
22
build/
3-
public/
3+
public/
4+
src/constants/posts/

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"predeploy": "npm run build",
1313
"deploy": "gh-pages -d dist",
1414
"lint:ts": "eslint 'src/**/*.{ts,tsx}'",
15-
"lint:md": "markdownlint '**/*.md' --ignore node_modules",
15+
"lint:md": "markdownlint '**/*.md' --ignore-path .prettierignore",
1616
"format": "prettier --write 'src/**/*.{js,jsx,ts,tsx,json,css,md}'",
1717
"format:file": "prettier --write",
1818
"format:check": "prettier --check 'src/**/*.{js,jsx,ts,tsx,json,css,md}'"

src/components/AboutUs/TextMaskSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const TextMaskSection = () => {
4040
<motion.div
4141
className="absolute inset-0 w-full h-full"
4242
style={{
43-
backgroundImage: "url('/assets/Images/teach.jpg')",
43+
backgroundImage: "url('assets/Images/teach.jpg')",
4444
backgroundSize: 'cover',
4545
backgroundPosition: 'center',
4646
filter: 'contrast(1.1) saturate(1.2)',

src/constants/aboutUs/principles.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,35 +11,35 @@ export const principles: Principle[] = [
1111
title: 'Open Learning',
1212
description:
1313
'We believe in making education accessible to everyone through open-source software and collaborative learning environments.',
14-
image: '/assets/Images/teach.jpg',
14+
image: 'assets/Images/teach.jpg',
1515
},
1616
{
1717
id: 2,
1818
title: 'Community Driven',
1919
description:
2020
'Our success relies on active participation from a diverse community of contributors who share common educational goals.',
21-
image: '/assets/Images/teach1.jpg',
21+
image: 'assets/Images/teach1.jpg',
2222
},
2323
{
2424
id: 3,
2525
title: 'Innovation',
2626
description:
2727
'We encourage creative problem-solving and innovative approaches to educational technology development.',
28-
image: '/assets/Images/teach2.jpeg',
28+
image: 'assets/Images/teach2.jpeg',
2929
},
3030
{
3131
id: 4,
3232
title: 'Collaboration',
3333
description:
3434
'Working together while maintaining independence allows each participant to contribute their unique perspective.',
35-
image: '/assets/Images/teach.jpg',
35+
image: 'assets/Images/teach.jpg',
3636
},
3737
{
3838
id: 5,
3939
title: 'Sustainability',
4040
description:
4141
'Building lasting solutions that can be maintained and improved by the community over time.',
42-
image: '/assets/Images/teach1.jpg',
42+
image: 'assets/Images/teach1.jpg',
4343
},
4444
];
4545

src/constants/aboutUs/projects.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,31 @@ export const projects: Project[] = [
1212
title: 'Sugar on a Stick',
1313
description: 'A live USB version of the Sugar platform',
1414
tags: ['Distribution', 'Portable'],
15-
imageUrl: '/assets/Images/SOAS.jpeg',
15+
imageUrl: 'assets/Images/SOAS.jpeg',
1616
link: '/projects/sugar-on-a-stick',
1717
},
1818
{
1919
title: 'Google Summer of Code',
2020
description:
2121
'GSOC is a global program focused on bringing more student developers into open source software development',
2222
tags: ['Community', 'Development'],
23-
imageUrl: '/assets/Images/GSOC.png',
23+
imageUrl: 'assets/Images/GSOC.png',
2424
link: '/projects/gsoc',
2525
},
2626
{
2727
title: 'Music Blocks',
2828
description: 'A programming environment for exploring musical concepts',
2929
tags: ['Education', 'Creative'],
3030
progress: 75,
31-
imageUrl: '/assets/Images/default-project.png', // Added a default image
31+
imageUrl: 'assets/Images/default-project.png',
3232
link: '/projects/music-blocks',
3333
},
3434
{
3535
title: 'Sugarizer',
3636
description: 'Web implementation of the Sugar platform for modern browsers',
3737
tags: ['Web', 'Mobile'],
3838
progress: 80,
39-
imageUrl: '/assets/Images/default-project.png', // Added a default image
39+
imageUrl: 'assets/Images/default-project.png',
4040
link: '/projects/sugarizer',
4141
},
4242
];

0 commit comments

Comments
 (0)