페이지오류 수정 .htaccess 추가

This commit is contained in:
choibk 2026-01-19 17:31:26 +09:00
parent 4059c194c5
commit 058f427072
4 changed files with 23 additions and 2 deletions

8
public/.htaccess Normal file
View File

@ -0,0 +1,8 @@
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>

BIN
src/assets/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 487 KiB

View File

@ -1,5 +1,6 @@
import { useState } from 'react';
import { Link } from 'react-router-dom';
import logo from '../assets/logo.png';
const Navbar = () => {
const [isOpen, setIsOpen] = useState(false);
@ -11,7 +12,10 @@ const Navbar = () => {
return (
<nav className="navbar">
<div className="container navbar-container">
<Link to="/about" className="logo">Sokuree Consultant</Link>
<Link to="/about" className="logo">
<img src={logo} alt="Sokuree Logo" className="logo-image" />
Sokuree Consultant
</Link>
<div className={`nav-links ${isOpen ? 'active' : ''}`}>
<Link to="/about" onClick={toggleMenu}>회사소개</Link>

View File

@ -85,9 +85,18 @@ body {
.logo {
font-size: 1.5rem;
font-weight: bold;
font-weight: 700;
color: var(--primary-color);
text-decoration: none;
display: flex !important;
align-items: center;
gap: 0.75rem;
}
.logo-image {
height: 45px;
width: auto;
object-fit: contain;
}
.nav-links a {