feat: [claude-code] 요금정책 PPTX 다운로드 기능 추가

- 7페이지 상세 PPTX 생성 (표지/API단가/비용비교/팀비용/상세비교/전환가이드/결론)
- PricingController download 메서드 추가
- 페이지 헤더에 PPTX 다운로드 버튼 추가
- .gitignore에 public/downloads/*.pptx 예외 추가
This commit is contained in:
김보곤
2026-03-02 11:25:22 +09:00
parent d9cd5d3526
commit e1289e0f82
5 changed files with 24 additions and 2 deletions

3
.gitignore vendored
View File

@@ -162,3 +162,6 @@ package-lock.json
# 아카데미 SVG 일러스트는 프로젝트 자산으로 추적 # 아카데미 SVG 일러스트는 프로젝트 자산으로 추적
!public/images/academy/**/*.svg !public/images/academy/**/*.svg
# 다운로드용 PPTX 파일은 프로젝트 자산으로 추적
!public/downloads/*.pptx

View File

@@ -6,6 +6,7 @@
use Illuminate\Http\Request; use Illuminate\Http\Request;
use Illuminate\Http\Response; use Illuminate\Http\Response;
use Illuminate\View\View; use Illuminate\View\View;
use Symfony\Component\HttpFoundation\BinaryFileResponse;
class PricingController extends Controller class PricingController extends Controller
{ {
@@ -17,4 +18,13 @@ public function index(Request $request): View|Response
return view('claude-code.pricing.index'); return view('claude-code.pricing.index');
} }
public function download(): BinaryFileResponse
{
$path = public_path('downloads/claude-code-pricing.pptx');
abort_unless(file_exists($path), 404, 'PPTX 파일을 찾을 수 없습니다.');
return response()->download($path, 'Claude_Code_요금정책_비교분석.pptx');
}
} }

Binary file not shown.

View File

@@ -22,9 +22,17 @@
<div class="flex items-center justify-between"> <div class="flex items-center justify-between">
<div> <div>
<h1 class="text-2xl font-bold text-gray-900">Claude Code 요금정책</h1> <h1 class="text-2xl font-bold text-gray-900">Claude Code 요금정책</h1>
<p class="mt-1 text-sm text-gray-500">Max 20x vs Max 5x + API vs Team Premium 비용 비교 분석 (2026 2 기준)</p> <p class="mt-1 text-sm text-gray-500">Max 20x vs Max 5x + API vs Team Premium 비용 비교 분석 (2026 3 기준)</p>
</div>
<div class="flex items-center gap-3">
<span class="text-xs text-gray-400">CodeBridgeX 개발팀 | 2026.03</span>
<a href="{{ route('claude-code.pricing.download') }}"
class="inline-flex items-center gap-1.5 px-3 py-1.5 text-sm font-medium text-white bg-indigo-600 rounded-lg hover:bg-indigo-700 transition-colors"
title="상세 PPTX 다운로드">
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"/></svg>
PPTX
</a>
</div> </div>
<span class="text-xs text-gray-400">CodeBridgeX 개발팀 | 2026.02.28</span>
</div> </div>
{{-- 핵심 요약 카드 --}} {{-- 핵심 요약 카드 --}}

View File

@@ -726,6 +726,7 @@
}); });
Route::get('/pricing', [ClaudeCodePricingController::class, 'index'])->name('pricing.index'); Route::get('/pricing', [ClaudeCodePricingController::class, 'index'])->name('pricing.index');
Route::get('/pricing/download', [ClaudeCodePricingController::class, 'download'])->name('pricing.download');
}); });
/* /*