Skip to content
Snippets Groups Projects
Commit 9fcbd333 authored by [yejinj]'s avatar [yejinj]
Browse files

fix: 즐겨찾기 레이아웃 수정

parent 72a52542
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,7 @@ const MyFavoritesList = ({ userId, username }) => {
return (
<div className="my-favorites-container">
<h2>{username}님의 즐겨찾기 목록</h2>
<h2>{username}</h2>
<div className="favorites-list">
{favorites.length === 0 ? (
<p className="no-favorites">즐겨찾기한 장소가 없습니다.</p>
......
......@@ -5,7 +5,7 @@ import axios from 'axios';
import { toast } from 'react-toastify';
import MyFavoritesList from '../components/MyFavoritesList';
import MyReviewsList from '../components/MyReviewsList';
import '../styles/MyPage.css';
import '../styles/MyFavoritesList.css';
import { FaPen } from 'react-icons/fa';
const API_URL = process.env.REACT_APP_SERVER_URL;
......
.my-favorites-container {
max-width: 800px;
margin: 2rem auto;
padding: 0 1rem;
}
.my-favorites-container h2 {
color: #333;
font-size: 1.8rem;
margin-bottom: 2rem;
text-align: center;
}
.favorites-list {
display: grid;
gap: 1.5rem;
}
.favorite-item {
background-color: #fff;
border-radius: 10px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
padding: 1.5rem;
transition: transform 0.2s ease;
}
.favorite-item:hover {
transform: translateY(-3px);
}
.favorite-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
}
.favorite-header h3 {
color: #333;
font-size: 1.2rem;
margin: 0;
}
.delete-favorite-btn {
background-color: #ff4757;
color: white;
border: none;
border-radius: 4px;
padding: 0.3rem 0.7rem;
cursor: pointer;
font-size: 0.8rem;
transition: all 0.2s ease;
}
.delete-favorite-btn:hover {
background-color: #ff6b81;
transform: scale(0.95);
}
.favorite-content {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.favorite-info {
display: flex;
align-items: center;
gap: 0.5rem;
}
.favorite-type {
color: #666;
font-size: 0.9rem;
background-color: #f1f2f6;
padding: 0.2rem 0.8rem;
border-radius: 15px;
}
.favorite-address {
color: #666;
font-size: 0.9rem;
margin: 0;
}
.no-favorites {
text-align: center;
color: #666;
padding: 2rem;
background-color: #f8f9fa;
border-radius: 10px;
}
.loading, .error {
text-align: center;
padding: 2rem;
color: #666;
}
@media (max-width: 600px) {
.my-favorites-container {
margin: 1rem auto;
}
.favorite-item {
padding: 1rem;
}
.favorite-header h3 {
font-size: 1.1rem;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment