Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/(routes)/etf/_components/etf-page-container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const ETFPageContainer = ({ session }: Props) => {
: '몇 가지 질문에 답하면, 당신에게 어울리는 테마를 추천해드릴게요'}
</span>
</div>
<div className='flex gap-1 justify-center items-center absolute top-3 right-3'>
<div className='flex gap-1 justify-center items-center absolute bottom-3 right-3'>
<span>
{investType ? '테스트 다시 하기 ' : '테스트 하러 가기 '}
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ export default function CategoryNameContainer({
className='hover:shadow-md transition-shadow cursor-pointer'
onClick={() => router.push('/guide/articles/' + article.id)}
>
<CardContent className='p-4'>
<CardContent>
<div className='flex gap-4'>
<div className='w-20 h-16 bg-gray-200 rounded-lg overflow-hidden flex-shrink-0'>
<div className='h-26 rounded-lg overflow-hidden flex-shrink-0'>
<img
src={article.image || '/images/star-boy-finger.svg'}
alt={article.title}
Expand Down
7 changes: 3 additions & 4 deletions app/(routes)/guide/category/[category-name]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ import { articles } from '../../data/category-data';
import CategoryNameContainer from './_components/category-name-container';

type ArticleCategory = '투자 기초' | '절세 전략' | '상품 비교';
type Params = Promise<{ 'category-name': string | string[] }>;

export default function Page({ params }: { params: any }) {
const raw = (params as { 'category-name': string | string[] })[
'category-name'
];
export default async function Page({ params }: { params: Params }) {
const { 'category-name': raw } = await params;
const categoryName = Array.isArray(raw) ? raw[0] : raw;
const decoded = decodeURIComponent(categoryName) as ArticleCategory;

Expand Down
2 changes: 1 addition & 1 deletion app/(routes)/guide/data/category-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export interface Article {
tags: string[];
image: string;
}
const imagePath = '/images/star-boy-finger.svg';
const imagePath = '/images/quiz/Star_Pro_Quiz.svg';

export const articles: Record<ArticleCategory, Article[]> = {
'투자 기초': [
Expand Down
2 changes: 1 addition & 1 deletion app/(routes)/main/_components/main-page-container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export default function MainPageContainer({ userName, savedTax }: Props) {
{accountInfo && (
<AccountSummaryCard account={accountInfo} savedTax={savedTax} />
)}
<BeginnerGuideCard />
{/*<BeginnerGuideCard />*/}

{/* 약관 개요 모달 */}
{showModal && (
Expand Down
1 change: 1 addition & 0 deletions components/header-bar/page-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export default function PageHeader() {
pathname === '/register' ||
pathname === '/' ? null : pathname === '/main' ||
pathname === '/isa' ||
pathname === '/guide' ||
pathname === '/etf' ? (
<MainHeader title={title} subtitle={subtitle} onMenuClick={userClick} />
) : pathname === '/mypage' ? (
Expand Down