Skip to content

Commit

Permalink
fix: Improve images sizes and remove old images (#3025)
Browse files Browse the repository at this point in the history
  • Loading branch information
LautaroPetaccio committed Jan 26, 2024
1 parent 6efce73 commit ec1e02b
Show file tree
Hide file tree
Showing 59 changed files with 16 additions and 128 deletions.
Binary file removed public/images/empty-ground.png
Binary file not shown.
Binary file added public/images/empty-ground.webp
Binary file not shown.
Binary file removed public/images/house-preview.png
Binary file not shown.
Binary file removed public/images/nightclub-preview.png
Binary file not shown.
Binary file removed public/images/office-preview.png
Binary file not shown.
Binary file removed public/images/scratch-preview-img.png
Binary file not shown.
Binary file added public/images/scratch-preview-img.webp
Binary file not shown.
Binary file removed public/images/template-preview-img.png
Binary file not shown.
Binary file added public/images/template-preview-img.webp
Binary file not shown.
Binary file removed public/images/theatre-preview.png
Binary file not shown.
2 changes: 1 addition & 1 deletion src/components/ErrorPage/ErrorPage.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

/* This is attached to the body */
.error-body {
background-image: url('../../images/dev-hero.png');
background-image: url('../../images/dev-hero.webp');
background-repeat: no-repeat;
background-size: cover;
background-position: 50%;
Expand Down
8 changes: 4 additions & 4 deletions src/components/HomePage/HomePage.css
Original file line number Diff line number Diff line change
Expand Up @@ -69,20 +69,20 @@
}

.HomePage .ui.cards .ui.card > .content > .description > .card-image.collections {
background-image: url('../../images/home-page-collections.png');
background-image: url('../../images/home-page-collections.webp');
}

.HomePage .ui.cards .ui.card > .content > .description > .card-image.scenes {
background-image: url('../../images/home-page-scenes.png');
background-image: url('../../images/home-page-scenes.webp');
background-size: 90%;
}

.HomePage .ui.cards .ui.card > .content > .description > .card-image.land {
background-image: url('../../images/home-page-land.png');
background-image: url('../../images/home-page-land.webp');
}

.HomePage .ui.cards .ui.card > .content > .description > .card-image.names {
background-image: url('../../images/home-page-names.png');
background-image: url('../../images/home-page-names.webp');
background-size: 60%;
}

Expand Down
37 changes: 0 additions & 37 deletions src/components/HomePage/PromoBanner/PromoBanner.css

This file was deleted.

22 changes: 0 additions & 22 deletions src/components/HomePage/PromoBanner/PromoBanner.tsx

This file was deleted.

3 changes: 0 additions & 3 deletions src/components/HomePage/PromoBanner/PromoBanner.types.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions src/components/HomePage/PromoBanner/index.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/MobilePage/MobilePage.css
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
}

.MobilePage .thumbnail.thumb-2 {
background-image: url('../../images/mobile-thumb-2.jpg');
background-image: url('../../images/mobile-thumb-2.webp');
}

.MobilePage .thumbnail.thumb-3 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { fromLayout } from 'modules/template/utils'
import { ProjectLayout } from 'modules/project/types'
import { Props, SceneCreationStep, State } from './CustomLayoutModal.types'
import { SDKVersion } from 'modules/scene/types'
import webEditorSrc from 'images/web-editor-image.png'
import webEditorSrc from 'images/web-editor-image.webp'
import styles from './CustomLayoutModal.module.css'
export default class CustomLayoutModal extends React.PureComponent<Props, State> {
state: State = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Modals/ExportModal/ExportModal.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}

.ui.small.modal.ExportModal .content .export-modal-content-image {
background-image: url('../../../images/export_modal_img.png');
background-image: url('../../../images/export_modal_img.webp');
height: 180px;
width: 100%;
background-size: contain;
Expand Down
2 changes: 1 addition & 1 deletion src/components/NotFoundPage/NotFoundPage.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

/* This is attached to the body */
.notfound-body {
background-image: url('../../images/dev-hero.png');
background-image: url('../../images/dev-hero.webp');
background-repeat: no-repeat;
background-size: cover;
background-position: 50%;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ const videoSrc = {
template: `${PUBLIC_URL}/videos/template-preview.mp4`
}
const imgSrc = {
scratch: `${PUBLIC_URL}/images/scratch-preview-img.png`,
template: `${PUBLIC_URL}/images/template-preview-img.png`
scratch: `${PUBLIC_URL}/images/scratch-preview-img.webp`,
template: `${PUBLIC_URL}/images/template-preview-img.webp`
}

export default function SceneCreationSelector({ onOpenModal, onNavigate }: Props) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { useCallback, useMemo, useState } from 'react'
import { Button, Checkbox, Loader, Modal, ModalActions, ModalContent, ModalNavigation } from 'decentraland-ui'
import { t } from 'decentraland-dapps/dist/modules/translation/utils'
import { locations } from 'routing/locations'
import automaticMigrateImg from 'images/automatic_migrate.png'
import migrateWithSmartItemsImg from 'images/migrate_smart_items.png'
import infoImg from 'images/web-editor-image.png'
import automaticMigrateImg from 'images/automatic_migrate.webp'
import migrateWithSmartItemsImg from 'images/migrate_smart_items.webp'
import infoImg from 'images/web-editor-image.webp'
import { MigrateStep, Props } from './MigrateSceneToSDK7.types'
import { getSmartItemsCount } from './utils'
import styles from './MigrateSceneToSDK7.module.css'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

/* This is attached to the body */
.unsupported-browser-body {
background-image: url('../../images/dev-hero.png');
background-image: url('../../images/dev-hero.webp');
background-repeat: no-repeat;
background-size: cover;
background-position: 50%;
Expand Down
Binary file removed src/images/automatic_migrate.png
Binary file not shown.
Binary file added src/images/automatic_migrate.webp
Binary file not shown.
19 changes: 0 additions & 19 deletions src/images/avatar-friends.svg

This file was deleted.

6 changes: 0 additions & 6 deletions src/images/back.svg

This file was deleted.

Binary file removed src/images/dev-hero.png
Binary file not shown.
Binary file added src/images/dev-hero.webp
Binary file not shown.
1 change: 0 additions & 1 deletion src/images/email.svg

This file was deleted.

Binary file removed src/images/emoteV2.png
Binary file not shown.
Binary file removed src/images/empty_names.png
Binary file not shown.
Binary file removed src/images/export_modal_img.png
Binary file not shown.
Binary file added src/images/export_modal_img.webp
Binary file not shown.
6 changes: 0 additions & 6 deletions src/images/guest.svg

This file was deleted.

Binary file removed src/images/hands_category_img.png
Binary file not shown.
Binary file removed src/images/home-page-collections.png
Binary file not shown.
Binary file added src/images/home-page-collections.webp
Binary file not shown.
Binary file removed src/images/home-page-land.png
Binary file not shown.
Binary file added src/images/home-page-land.webp
Binary file not shown.
Binary file removed src/images/home-page-names.png
Binary file not shown.
Binary file added src/images/home-page-names.webp
Binary file not shown.
Binary file removed src/images/home-page-scenes.png
Binary file not shown.
Binary file added src/images/home-page-scenes.webp
Binary file not shown.
1 change: 0 additions & 1 deletion src/images/migrate.svg

This file was deleted.

Binary file removed src/images/migrate_smart_items.png
Binary file not shown.
Binary file added src/images/migrate_smart_items.webp
Binary file not shown.
Binary file removed src/images/mobile-thumb-2.jpg
Binary file not shown.
Binary file added src/images/mobile-thumb-2.webp
Binary file not shown.
Binary file removed src/images/mvmf-1064x100.gif
Binary file not shown.
Binary file removed src/images/promo-home.png
Diff not rendered.
Binary file removed src/images/purple_banner_bg.png
Diff not rendered.
3 changes: 0 additions & 3 deletions src/images/signout.svg
Diff not rendered.
Binary file removed src/images/skull.png
Diff not rendered.
3 changes: 0 additions & 3 deletions src/images/switch.svg
Diff not rendered.
9 changes: 0 additions & 9 deletions src/images/template-preview.svg
Diff not rendered.
Binary file removed src/images/web-editor-image.png
Diff not rendered.
Binary file added src/images/web-editor-image.webp
Binary file not shown.
2 changes: 1 addition & 1 deletion src/lib/api/builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const FORUM_URL = config.get('FORUM_URL', '')
export const getContentsStorageUrl = (hash = '') => `${BUILDER_SERVER_URL}/storage/contents/${hash}`
export const getAssetPackStorageUrl = (hash = '') => `${BUILDER_SERVER_URL}/storage/assetPacks/${hash}`
export const getPreviewUrl = (projectId: string) => `${BUILDER_SERVER_URL}/projects/${projectId}/media/preview.png`
export const getEmptySceneUrl = () => `${PUBLIC_URL}/images/empty-ground.png`
export const getEmptySceneUrl = () => `${PUBLIC_URL}/images/empty-ground.webp`

export type FetchCollectionsParams = {
assignee?: string
Expand Down

0 comments on commit ec1e02b

Please sign in to comment.