Skip to content

Commit 5103645

Browse files
committed
[fix] main페이지 외의 페이지에서 nav 안보이던 오류 수정
1 parent ae38f81 commit 5103645

3 files changed

Lines changed: 4 additions & 14 deletions

File tree

static/css/style.css

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ header {
1414
background-color: transparent;
1515
background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
1616
padding: 20px 40px;
17-
transform: translateY(-100%);
18-
opacity: 0;
19-
transition: transform 0.4s ease-out, opacity 0.4s ease-out, background 0.5s ease;
17+
opacity: 1;
18+
transition: background 0.5s ease;
2019
position: sticky;
2120
top: 0;
2221
z-index: 999;
@@ -26,10 +25,6 @@ header:hover {
2625
background: linear-gradient(135deg, #fce4ec 0%, #f3e5f5 50%, #fff8e1 100%);
2726
}
2827

29-
header.is-visible {
30-
transform: translateY(0);
31-
opacity: 1;
32-
}
3328

3429
header nav {
3530
display: flex;

static/js/main/main.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,6 @@ document.addEventListener('DOMContentLoaded', function() {
5555
}, 100);
5656
}
5757

58-
//헤더 위에서 아래로 내려오는 애니메이션
59-
const header = document.querySelector('header');
60-
if (header) {
61-
setTimeout(() => {
62-
header.classList.add('is-visible');
63-
}, 100);
64-
}
6558

6659
// =============================
6760
// 컬러 투표 기능

templates/products/product_ranking_grid.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
{% extends 'base.html' %}
2+
{% load static %}
13
{% for product in top_products %}
24
<div
35
class="ranking-card {% if forloop.counter <= 3 %}top-3 rank-{{ forloop.counter }}{% endif %}"

0 commit comments

Comments
 (0)