Skip to content

Commit

Permalink
Merge pull request #101 from softeerbootcamp4th/lighthouse-performance
Browse files Browse the repository at this point in the history
[Perf] lighthouse 웹폰트 로드 개선 & 용량 큰 svg 파일 webp로 교체
  • Loading branch information
nim-od authored Aug 21, 2024
2 parents 2fc7c37 + 6e89a55 commit 1ca5bc1
Show file tree
Hide file tree
Showing 73 changed files with 40 additions and 308 deletions.
11 changes: 0 additions & 11 deletions packages/admin/public/casper/khaki.svg

This file was deleted.

Binary file added packages/admin/public/casper/khaki.webp
Binary file not shown.
9 changes: 0 additions & 9 deletions packages/admin/public/casper/orange.svg

This file was deleted.

Binary file added packages/admin/public/casper/orange.webp
Binary file not shown.
5 changes: 0 additions & 5 deletions packages/admin/public/casper/white.svg

This file was deleted.

Binary file added packages/admin/public/casper/white.webp
Binary file not shown.
5 changes: 0 additions & 5 deletions packages/admin/public/casper/yellow.svg

This file was deleted.

Binary file added packages/admin/public/casper/yellow.webp
Binary file not shown.
11 changes: 0 additions & 11 deletions packages/common/public/casper/khaki.svg

This file was deleted.

Binary file added packages/common/public/casper/khaki.webp
Binary file not shown.
9 changes: 0 additions & 9 deletions packages/common/public/casper/orange.svg

This file was deleted.

Binary file added packages/common/public/casper/orange.webp
Binary file not shown.
5 changes: 0 additions & 5 deletions packages/common/public/casper/white.svg

This file was deleted.

Binary file added packages/common/public/casper/white.webp
Binary file not shown.
5 changes: 0 additions & 5 deletions packages/common/public/casper/yellow.svg

This file was deleted.

Binary file added packages/common/public/casper/yellow.webp
Binary file not shown.
12 changes: 6 additions & 6 deletions packages/common/src/components/chat/Message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ interface MessageProps extends Pick<MessageChatProps, 'sender' | 'team'> {
}

const TYPES: Record<SocketCategory | 'default', { casper: string; textColor: string }> = {
default: { casper: '/casper/white.svg', textColor: 'text-skyblue-500' },
p: { casper: '/casper/yellow.svg', textColor: 'text-cream-600' },
l: { casper: '/casper/khaki.svg', textColor: 'text-khaki-400' },
t: { casper: '/casper/orange.svg', textColor: 'text-orange-500' },
s: { casper: '/casper/white.svg', textColor: 'text-gray-300' },
default: { casper: '/casper/white.webp', textColor: 'text-skyblue-500' },
p: { casper: '/casper/yellow.webp', textColor: 'text-cream-600' },
l: { casper: '/casper/khaki.webp', textColor: 'text-khaki-400' },
t: { casper: '/casper/orange.webp', textColor: 'text-orange-500' },
s: { casper: '/casper/white.webp', textColor: 'text-gray-300' },
};

export default function Message({
Expand All @@ -21,7 +21,7 @@ export default function Message({
isMyMessage = false,
children,
}: PropsWithChildren<MessageProps>) {
const category = ['p', 't', 'l', 's'].includes(team)
const category = ['p', 't', 'l', 's'].includes(team?.toLowerCase())
? (team.toLowerCase() as SocketCategory)
: 'default';
const { casper, textColor } = TYPES[category];
Expand Down
11 changes: 0 additions & 11 deletions packages/user/public/casper/khaki.svg

This file was deleted.

Binary file added packages/user/public/casper/khaki.webp
Binary file not shown.
9 changes: 0 additions & 9 deletions packages/user/public/casper/orange.svg

This file was deleted.

Binary file added packages/user/public/casper/orange.webp
Binary file not shown.
5 changes: 0 additions & 5 deletions packages/user/public/casper/white.svg

This file was deleted.

Binary file added packages/user/public/casper/white.webp
Binary file not shown.
5 changes: 0 additions & 5 deletions packages/user/public/casper/yellow.svg

This file was deleted.

Binary file added packages/user/public/casper/yellow.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
9 changes: 0 additions & 9 deletions packages/user/src/assets/icons/casper-white.svg

This file was deleted.

9 changes: 0 additions & 9 deletions packages/user/src/assets/icons/event-tab-tag.svg

This file was deleted.

3 changes: 0 additions & 3 deletions packages/user/src/assets/icons/lighting.svg

This file was deleted.

Loading

0 comments on commit 1ca5bc1

Please sign in to comment.