Skip to content

Commit

Permalink
Merge pull request #268 from boostcampwm-2024/Feature/#267_이미지_최적화
Browse files Browse the repository at this point in the history
Feature/#267 이미지 최적화
  • Loading branch information
github-actions[bot] authored Dec 2, 2024
2 parents 371099a + cd32303 commit 427b4d4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Binary file added client/src/assets/images/background.avif
Binary file not shown.
Binary file added client/src/assets/images/background.webp
Binary file not shown.
11 changes: 10 additions & 1 deletion client/src/styles/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,16 @@ export const globalStyles = defineGlobalStyles({
},

"html, body": {
backgroundImage: 'url("./assets/images/background.png")',
// 기본 이미지
backgroundImage: 'url("./assets/images/background.jpg")',
// WebP 지원
"@supports (background-image: url('./assets/images/background.webp'))": {
backgroundImage: 'url("./assets/images/background.webp")',
},
// AVIF 지원
"@supports (background-image: url('./assets/images/background.avif'))": {
backgroundImage: 'url("./assets/images/background.avif")',
},
backgroundSize: "cover",
fontFamily: "Pretendard, sans-serif",
boxSizing: "border-box",
Expand Down

0 comments on commit 427b4d4

Please sign in to comment.