Skip to content

Commit

Permalink
feat: webp, avif 지원되는 파일 보내도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
pipisebastian committed Dec 2, 2024
1 parent d3ea056 commit cd32303
Showing 1 changed file with 10 additions and 1 deletion.
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 cd32303

Please sign in to comment.