Skip to content

Commit

Permalink
feat: Compress help images (#32)
Browse files Browse the repository at this point in the history
* feat: compress help images

* feat: webp

* fix: webp in help modal
  • Loading branch information
jsun969 authored Dec 4, 2024
1 parent 6bf625e commit 88e505a
Show file tree
Hide file tree
Showing 17 changed files with 8 additions and 8 deletions.
Binary file removed public/help/access-adelaide.png
Binary file not shown.
Binary file added public/help/access-adelaide.webp
Binary file not shown.
Binary file removed public/help/calendar.png
Binary file not shown.
Binary file added public/help/calendar.webp
Binary file not shown.
Binary file removed public/help/change-week.png
Binary file not shown.
Binary file added public/help/change-week.webp
Binary file not shown.
Binary file removed public/help/click-course.png
Binary file not shown.
Binary file added public/help/click-course.webp
Binary file not shown.
Binary file removed public/help/modal.png
Binary file not shown.
Binary file added public/help/modal.webp
Binary file not shown.
Binary file removed public/help/search-course.png
Binary file not shown.
Binary file added public/help/search-course.webp
Binary file not shown.
Binary file removed public/help/select-term.png
Binary file not shown.
Binary file added public/help/select-term.webp
Binary file not shown.
Binary file removed public/help/welcome.png
Binary file not shown.
Binary file added public/help/welcome.webp
Binary file not shown.
16 changes: 8 additions & 8 deletions src/components/HelpModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,50 +26,50 @@ export const HelpModal = () => {
{
content: t('help.steps.welcome'),
image: {
path: '/help/welcome.png',
path: '/help/welcome.webp',
alt: 'Website preview',
},
},
{
content: t('help.steps.select-term'),
image: {
path: '/help/select-term.png',
path: '/help/select-term.webp',
alt: 'Select a term',
},
},
{
content: t('help.steps.search-course'),
image: { path: '/help/search-course.png', alt: 'Search a course' },
image: { path: '/help/search-course.webp', alt: 'Search a course' },
},
{
content: t('help.steps.calendar-dnd'),
image: {
path: '/help/calendar.png',
path: '/help/calendar.webp',
alt: 'Drag and drop a course in calendar',
},
},
{
content: t('help.steps.change-week'),
image: { path: '/help/change-week.png', alt: 'Change calendar week' },
image: { path: '/help/change-week.webp', alt: 'Change calendar week' },
},
{
content: t('help.steps.course-details'),
image: {
path: '/help/click-course.png',
path: '/help/click-course.webp',
alt: 'Highlighted enrolled course',
},
},
{
content: t('help.steps.course-modal'),
image: {
path: '/help/modal.png',
path: '/help/modal.webp',
alt: 'Course modal to change class time',
},
},
{
content: t('help.steps.access-adelaide'),
image: {
path: '/help/access-adelaide.png',
path: '/help/access-adelaide.webp',
alt: 'Access Adelaide enrolment',
},
},
Expand Down

0 comments on commit 88e505a

Please sign in to comment.