Skip to content

Commit

Permalink
feat: 이미지 확장자 변경[#18]
Browse files Browse the repository at this point in the history
  • Loading branch information
j2h30728 committed Aug 27, 2024
1 parent 1578146 commit 4ec998a
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 11 deletions.
Binary file added public/images/main-image.webp
Binary file not shown.
Binary file added public/images/sub-image.webp
Binary file not shown.
4 changes: 2 additions & 2 deletions src/app/(auth)/log-in/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Image from "next/image";
import { ROUTE_PATHS } from "@/constants/routePath";
import LogInForm from "@/components/user/log-in-form";

import subImage from "../../../../public/images/sub-image.png";
import subImage from "../../../../public/images/sub-image.webp";

export default function LogInPage() {
return (
Expand All @@ -15,7 +15,7 @@ export default function LogInPage() {
<span className="text-primary font-semibold">오늘을 기록</span>하고 싶다면?
</h1>
<div className=" self-end w-48 h-52 relative overflow-clip">
<Image className="w-auto h-full" width={192} height={208} priority src={subImage} alt="sub-image" />
<Image width={192} height={208} priority src={subImage} alt="sub-image" />
</div>
</div>
<div className="flex flex-col">
Expand Down
9 changes: 1 addition & 8 deletions src/app/(tab)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,7 @@ export default async function Home() {
<span className="text-primary">응원</span>과 함께 오늘을 <span className="text-primary">기록</span>해보아요!
</h2>
<div className="w-full h-80 relative -z-10">
<Image
className="right-0 absolute w-auto h-full"
width={350}
height={400}
src="/images/main-image.png"
alt="main-image"
priority
/>
<Image className="right-0 absolute" width={350} height={400} src="/images/main-image.webp" alt="main-image" />
</div>
</div>
<div className="flex gap-2 pl-5 overflow-y-scroll">
Expand Down
2 changes: 1 addition & 1 deletion src/app/intro/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Link from "next/link";
import { ROUTE_PATHS } from "@/constants/routePath";
import Image from "next/image";

import mainImage from "../../../public/images/main-image.png";
import mainImage from "../../../public/images/main-image.webp";

export default function IntroPage() {
return (
Expand Down

0 comments on commit 4ec998a

Please sign in to comment.