-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
202 lines (180 loc) · 8.33 KB
/
Copy pathindex.html
File metadata and controls
202 lines (180 loc) · 8.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
---
layout: home
---
<!-- ===== 1. HERO SECTION ===== -->
<section class="hero-section">
<div class="hero-section__code-bg" aria-hidden="true">
<pre id="hero-code-output" class="hero-code"></pre>
</div>
<div class="hero-section__inner">
<div class="hero-section__content">
<span class="hero-section__badge">Product Studio & Tech Blog</span>
<h1 class="hero-section__title">Build & Share,<br>Moony01 Studio</h1>
<p class="hero-section__subtitle">소프트웨어 개발과 IT 혁신을 위한 기술 지식을 공유합니다. AI, 보안, 인프라, 그리고 재밌는 프로덕트까지.</p>
<div class="hero-section__cta-group">
<a href="#blog" class="hero-cta hero-cta--primary">블로그 보기 ↓</a>
<a href="#products" class="hero-cta hero-cta--secondary">프로덕트 보기 ↓</a>
</div>
</div>
</div>
<span class="hero-section__scroll-cue" aria-hidden="true"></span>
</section>
<!-- ===== 2. PRODUCTS SECTION ===== -->
<section class="home-products-section" id="products">
<span class="home-section-label">Products</span>
<h2 class="home-section-title">Our Products</h2>
<!-- K-Pop Face Test Featured Banner -->
<a href="/kpopface/" class="kft-banner" target="_blank" rel="noopener noreferrer">
<div class="kft-banner__glow"></div>
<div class="kft-banner__content">
<div class="kft-banner__logo">
<img src="/static/img/kft-logo.svg" alt="K-Pop Face Test" width="56" height="56" />
</div>
<div class="kft-banner__text">
<span class="kft-banner__badge">AI Powered</span>
<h3 class="kft-banner__title">K-Pop Face Test</h3>
<p class="kft-banner__desc">AI가 분석하는 나의 케이팝 얼굴상</p>
</div>
<div class="kft-banner__cta">
<span class="kft-banner__cta-btn">테스트 하기 <span class="kft-banner__arrow">→</span></span>
</div>
</div>
<div class="kft-banner__sparkles">
<span class="kft-sparkle kft-sparkle--1"></span>
<span class="kft-sparkle kft-sparkle--2"></span>
<span class="kft-sparkle kft-sparkle--3"></span>
</div>
</a>
<div class="products-grid">
<a href="/mentalage/" class="product-card" target="_blank" rel="noopener noreferrer">
<div class="product-icon product-icon--emoji">🧠</div>
<div class="product-info">
<h3>Mental Age Test</h3>
<p>나의 정신 연령은 몇 살일까?</p>
</div>
</a>
<a href="https://kclhq.com/" class="product-card" target="_blank" rel="noopener noreferrer">
<div class="product-icon">
<img src="/static/img/kcl-logo.svg" alt="K-Pop Company League" width="48" height="48" />
</div>
<div class="product-info">
<h3>K-Pop Company League</h3>
<p>케이팝 기획사 랭킹 리그</p>
</div>
</a>
<a href="/sanggyeonrye-test/" class="product-card" target="_blank" rel="noopener noreferrer">
<div class="product-icon">
<img src="/static/img/sgt-logo.svg" alt="상견례 얼굴상 테스트" width="48" height="48" />
</div>
<div class="product-info">
<h3>상견례 얼굴상 테스트</h3>
<p>상견례에서 나는 어떤 인상일까?</p>
</div>
</a>
<a href="/braintype/" class="product-card" target="_blank" rel="noopener noreferrer">
<div class="product-icon product-icon--emoji">🧬</div>
<div class="product-info">
<h3>Brain Type Test</h3>
<p>나의 두뇌 성향은 어떤 유형일까?</p>
</div>
</a>
</div>
</section>
<!-- ===== ADSENSE ===== -->
<div class="home-adsense">
{% include blog-main.html %}
</div>
<!-- ===== 3. BLOG SECTION ===== -->
<section class="blog-section" id="blog">
<div class="blog-section__inner">
<span class="home-section-label">Blog</span>
<h2 class="home-section-title">Latest Posts</h2>
<!-- Category Filter Tabs -->
<div class="category-filter">
<button type="button" class="category-filter__btn category-filter__btn--active" data-filter="all">전체</button>
<button type="button" class="category-filter__btn" data-filter="ai">AI</button>
<button type="button" class="category-filter__btn" data-filter="security">Security</button>
<button type="button" class="category-filter__btn" data-filter="infra">Infra</button>
<button type="button" class="category-filter__btn" data-filter="javascript">JavaScript</button>
<button type="button" class="category-filter__btn" data-filter="others">기타</button>
</div>
{% assign all_posts = paginator.posts %}
{% if all_posts.size > 0 %}
{% if paginator.page == 1 %}
<!-- Featured Post (first page only) -->
{% assign featured = all_posts | first %}
{% include post-card.html post=featured featured=true %}
<!-- Post Grid (remaining posts) -->
{% if all_posts.size > 1 %}
<div class="post-grid">
{% for post in all_posts offset:1 %}
{% include post-card.html post=post %}
{% endfor %}
</div>
{% endif %}
{% else %}
<!-- Page 2+: no featured card, show full grid -->
<div class="post-grid">
{% for post in all_posts %}
{% include post-card.html post=post %}
{% endfor %}
</div>
{% endif %}
{% endif %}
<!-- Pagination -->
{% if paginator.total_pages > 1 %}
<div class="blog-pagination">
<div class="blog-pagination__row">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}#blog" class="blog-pagination__link blog-pagination__link--compact blog-pagination__link--prev">← 이전</a>
{% else %}
<span class="blog-pagination__link blog-pagination__link--compact is-disabled" aria-disabled="true">← 이전</span>
{% endif %}
<div class="blog-pagination__numbers" aria-label="페이지 번호">
{% assign total_pages = paginator.total_pages %}
{% assign current_page = paginator.page %}
{% assign left_bound = current_page | minus: 1 %}
{% assign right_bound = current_page | plus: 1 %}
{% assign near_end_cutoff = total_pages | minus: 2 %}
{% assign start_tail = total_pages | minus: 4 %}
{% assign last_shown = 0 %}
{% for page_num in (1..total_pages) %}
{% assign show_page = false %}
{% if total_pages <= 7 %}
{% assign show_page = true %}
{% elsif page_num == 1 or page_num == total_pages %}
{% assign show_page = true %}
{% elsif current_page <= 3 and page_num <= 5 %}
{% assign show_page = true %}
{% elsif current_page >= near_end_cutoff and page_num >= start_tail %}
{% assign show_page = true %}
{% elsif page_num >= left_bound and page_num <= right_bound %}
{% assign show_page = true %}
{% endif %}
{% if show_page %}
{% assign expected_next = last_shown | plus: 1 %}
{% if last_shown != 0 and page_num > expected_next %}
<span class="blog-pagination__dots" aria-hidden="true">...</span>
{% endif %}
{% if page_num == 1 %}
{% assign page_url = '/' | prepend: site.baseurl | replace: '//', '/' %}
{% else %}
{% assign page_url = site.paginate_path | replace: ':num', page_num | prepend: site.baseurl | replace: '//', '/' %}
{% endif %}
<a href="{{ page_url }}#blog" class="blog-pagination__number{% if page_num == current_page %} is-active{% endif %}">{{ page_num }}</a>
{% assign last_shown = page_num %}
{% endif %}
{% endfor %}
</div>
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}#blog" class="blog-pagination__link blog-pagination__link--compact blog-pagination__link--next">다음 →</a>
{% else %}
<span class="blog-pagination__link blog-pagination__link--compact is-disabled" aria-disabled="true">다음 →</span>
{% endif %}
</div>
</div>
{% endif %}
</div>
</section>
<!-- ===== 5. FOOTER ===== -->
{% include footer-enhanced.html %}