Skip to content

Commit c738620

Browse files
committed
Merge branch 'develop' of https://github.com/pirogramming/Moodico into main-test
2 parents 08ee4e3 + 29bc2da commit c738620

File tree

11 files changed

+94
-60
lines changed

11 files changed

+94
-60
lines changed

static/css/main/main.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ a.model-card {
154154
}
155155

156156
.ranking-section .section-header p {
157-
color: #666;
158-
font-size: 1.1em;
157+
color: mediumpurple;
158+
font-size: 1em;
159159
}
160160

161161
.ranking-preview {
@@ -179,8 +179,8 @@ a.model-card {
179179
flex-direction: column;
180180
align-items: center;
181181
text-align: center;
182-
width: 250px;
183-
max-width: 300px;
182+
width: 215px;
183+
max-width: 240px;
184184
}
185185

186186
.ranking-item:hover {

static/css/products/crawled_detail.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
.crawled-product-detail-container {
3-
max-width: 1200px;
3+
max-width: 860px;
44
margin: 0 auto;
55
padding: 40px 20px;
66
}
@@ -219,3 +219,8 @@
219219
font-size: 1.5em;
220220
}
221221
}
222+
223+
.image-box.image-preview {
224+
width: 22%;
225+
height: 150px;
226+
}

static/css/products/rating.css

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* 별점 섹션 스타일 */
22
.rating-section {
3-
max-width: 1300px;
3+
max-width: 860px;
44
margin: 0 auto;
55
padding: 20px;
66
background-color: #f8f9fa;
@@ -117,7 +117,7 @@
117117

118118
/* 별점 목록 섹션 */
119119
.ratings-list-section {
120-
max-width: 1300px;
120+
max-width: 860px;
121121
margin-top: 30px;
122122
padding: 20px;
123123
background-color: #fff;
@@ -213,10 +213,11 @@
213213
gap: 8px;
214214
margin-top: 10px;
215215
flex-wrap: wrap;
216+
justify-content: start;
216217
}
217218

218219
.image-box {
219-
width: 80px;
220+
width: 95%;
220221
height: 80px;
221222
border: 2px dashed #ccc;
222223
display: flex;
@@ -226,6 +227,7 @@
226227
position: relative;
227228
overflow: hidden;
228229
border-radius: 8px;
230+
margin: 0 auto;
229231
}
230232

231233
.image-box img {
@@ -235,8 +237,16 @@
235237
}
236238

237239
.add-image .plus-icon {
240+
display: flex;
241+
background-color: rgb(255, 255, 255);
242+
border-radius: 50%;
243+
margin: 0 auto;
244+
width: 45px;
245+
height: 45px;
238246
font-size: 28px;
239-
color: #aaa;
247+
justify-content: center;
248+
align-items: center;
249+
color: mediumpurple;
240250
}
241251

242252
/* 이미지 4개 이상 -> 업로드 불가(disabled) 상태 버튼 */
@@ -262,8 +272,11 @@
262272
height: 20px;
263273
font-size: 14px;
264274
cursor: pointer;
265-
line-height: 18px;
266275
padding: 0;
276+
display: flex;
277+
align-items: center;
278+
justify-content: center;
279+
text-align: center;
267280
}
268281

269282
.delete-image-btn:hover {
@@ -362,15 +375,16 @@
362375

363376
.rating-actions {
364377
display: flex;
365-
justify-content: space-between;
378+
justify-content: end;
366379
align-items: center;
380+
gap: 10px;
367381
}
368382
.delete-rating-btn {
369383
background-color: #e74c3c;
370384
color: white;
371385
border: none;
372386
padding: 10px 15px;
373-
border-radius: 5px;
387+
border-radius: 10px;
374388
cursor: pointer;
375389
}
376390

static/css/recommendation/color_matrix_style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,10 @@ main {
534534
pointer-events: none;
535535
white-space: nowrap;
536536
opacity: 0.6;
537+
position: absolute;
538+
top: 50%;
539+
left: 50%;
540+
transform: translate(-50%, -50%);
537541
}
538542

539543
.resizer {

static/css/style.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@ body {
22
font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', '맑은 고딕', sans-serif;
33
margin: 0;
44
padding: 0;
5+
color: mediumpurple;
56
background-color: #f4f7f6;
67
color: #333;
78
line-height: 1.6;
9+
cursor: url("{% static 'images/purple_cursor.svg' %}"), auto;
810
}
911

1012
header {

static/images/purple_cursor.svg

Lines changed: 1 addition & 0 deletions
Loading

static/images/purple_hand.svg

Lines changed: 1 addition & 0 deletions
Loading

static/js/products/like_button.js

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -457,20 +457,7 @@ document.addEventListener('DOMContentLoaded', function () {
457457

458458
return observer;
459459
}
460-
// 랭킹페이지에서 제품 디테일 페이지로 이동하는거
461-
const rankingGrid = document.querySelector('.ranking-grid');
462-
if (rankingGrid) {
463-
rankingGrid.addEventListener('click', function (e) {
464-
const rankingCard = e.target.closest('.ranking-card');
465-
466-
if (rankingCard) {
467-
const productId = rankingCard.dataset.productId;
468-
if (productId) {
469-
window.open(`/products/detail/${productId}/`, '_blank');
470-
}
471-
}
472-
});
473-
}
460+
474461

475462
// CSS 애니메이션 추가
476463
const style = document.createElement('style');

templates/base.html

Lines changed: 37 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,42 @@
11
{% load static %}
22
<!DOCTYPE html>
33
<html lang="ko">
4-
<head>
5-
<meta charset="UTF-8" />
6-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>Moodico"</title>
8-
<link rel="stylesheet" href="{% static 'css/style.css' %}" />
9-
{% block extra_head %}{% endblock %}
10-
</head>
11-
<body>
12-
<header>
13-
<nav>
14-
<a href="{% url 'main' %}" class="logo" style="text-decoration: none"
15-
>Moodico"</a
16-
>
17-
<div class="nav-links">
18-
<a
19-
href="{% url 'liked_products' %}"
20-
class="nav-link liked-products-link"
21-
>
22-
💖 찜한 아이템
23-
</a>
24-
<a href="{% url 'login' %}" class="login-icon">👤 마이페이지 </a>
25-
</div>
26-
</nav>
27-
</header>
284

29-
<main>{% block content %} {% endblock %}</main>
5+
<head>
6+
<meta charset="UTF-8" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8+
<title>Moodico"</title>
9+
<link rel="stylesheet" href="{% static 'css/style.css' %}" />
10+
<style>
11+
body {
12+
cursor: url("{% static 'images/purple_cursor.svg' %}"),
13+
auto;
14+
}
15+
</style>
16+
{% block extra_head %}{% endblock %}
17+
</head>
3018

31-
<footer>
32-
<p>&copy; 2025 Moodico" All rights reserved.</p>
33-
</footer>
34-
<script src="{% static 'js/main/main.js' %}"></script>
35-
<script src="{% static 'js/products/like_button.js' %}"></script>
36-
{% block extra_js %}{% endblock %}
37-
</body>
38-
</html>
19+
<body>
20+
<header>
21+
<nav>
22+
<a href="{% url 'main' %}" class="logo" style="text-decoration: none">Moodico"</a>
23+
<div class="nav-links">
24+
<a href="{% url 'liked_products' %}" class="nav-link liked-products-link">
25+
💖 찜한 아이템
26+
</a>
27+
<a href="{% url 'login' %}" class="login-icon">👤 마이페이지 </a>
28+
</div>
29+
</nav>
30+
</header>
31+
32+
<main>{% block content %} {% endblock %}</main>
33+
34+
<footer>
35+
<p>&copy; 2025 Moodico" All rights reserved.</p>
36+
</footer>
37+
<script src="{% static 'js/main/main.js' %}"></script>
38+
<script src="{% static 'js/products/like_button.js' %}"></script>
39+
{% block extra_js %}{% endblock %}
40+
</body>
41+
42+
</html>

templates/products/crawled_detail.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ <h3>제품 색상</h3>
123123
</div>
124124

125125
<div class="user-rating">
126-
<h3>내 리뷰</h3>
126+
<h3>리뷰 작성하기</h3>
127127
{% if user_review %}
128128
<!-- 기존 리뷰가 있는 경우 -->
129129
<div class="existing-review">

0 commit comments

Comments
 (0)