Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes
3 changes: 1 addition & 2 deletions frontend/src/Home.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from "react";
import { useNavigate } from "react-router-dom";
import styles from "./Home.module.css";
import logo from "./assets/img/logo.svg";

const Home = () => {
const navigate = useNavigate();
Expand All @@ -23,7 +22,7 @@ const Home = () => {
<p>ATTENDANCE</p>
<p>CHECK</p>
</button>
<img src={logo} alt="로고" />
<img src="/assets/img/logo.svg" alt="로고" />
</div>
</div>
);
Expand Down
18 changes: 13 additions & 5 deletions frontend/src/components/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import React from "react";
import { useNavigate, useLocation } from "react-router-dom";
import { ArrowLeft, Wallet } from "lucide-react";
import "./componentsCss/Header.css";
import arrowIcon from "../assets/img/arrowicon.svg";
import moneyIcon from "../assets/img/moneyicon.svg";
const Header = () => {
const navigate = useNavigate();
const location = useLocation();
Expand All @@ -23,7 +21,12 @@ const Header = () => {
onClick={() => navigate(-1)}
aria-label="뒤로가기"
>
<img src={arrowIcon} alt="Back" width={34} height={34} />
<img
src="/assets/img/arrowicon.svg"
alt="Back"
width={34}
height={34}
/>
</button>
<h1 className="header-title">{title}</h1>
{showRightButton ? (
Expand All @@ -32,10 +35,15 @@ const Header = () => {
onClick={() => navigate("/deposit")}
aria-label="보증금 페이지 이동"
>
<img src={moneyIcon} alt="Deposit" width={30} height={30} />
<img
src="/assets/img/moneyicon.svg"
alt="Deposit"
width={30}
height={30}
/>
</button>
) : (
<div style={{ width: "30px" }} /> // 오른쪽 공백 유지
<div style={{ width: "30px" }} />
)}
</header>
);
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/main.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { createRoot } from "react-dom/client";
import App from "./App.jsx";
import "./assets/root.css";
import "./root.css";
import { BrowserRouter } from "react-router-dom";
import "./assets/reset.css";
import "./reset.css";
import { StrictMode } from "react";

createRoot(document.getElementById("root")).render(
Expand Down
File renamed without changes.
File renamed without changes.
Loading