Files
micro-frontend/ng-ttc-frontend/src/app/component/main-landing/main-landing.component.html
x2Skyz 368f2ef5e6 .
2025-11-25 21:11:57 +07:00

233 lines
14 KiB
HTML

<div class="min-h-screen bg-gray-100 p-4">
<header class="flex justify-between items-center py-4 px-2">
<h1 class="text-xl font-semibold text-gray-800">หน้าหลัก ( landing )</h1>
<div class="flex space-x-4 text-2xl text-gray-600">
<svg xmlns="http://www.w3.org/2000/svg" class="h-7 w-7" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z" />
</svg>
<svg xmlns="http://www.w3.org/2000/svg" class="h-7 w-7" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9" />
</svg>
<!-- <svg xmlns="http://www.w3.org/2000/svg" class="h-7 w-7" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8.228 9c0-.542.448-.99 1.042-.99.594 0 1.042.448 1.042.99 0 1.62-.99 2.534-1.99 3.438-1.042 1.042-2.042 2.042-2.042 3.042h4" />
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 21a9 9 0 110-18 9 9 0 010 18z" />
</svg> -->
<img src="interrogation.png" alt="" class="h-7 w-7 opacity-70">
<div class="h-7 w-7 rounded-full bg-gray-300">
<img src="user_0.png" alt="">
</div>
</div>
</header>
<main class="grid grid-cols-1 md:grid-cols-3 gap-6 mt-6">
<div class="md:col-span-2 ">
<div class="bg-white p-6 rounded-xl shadow-lg">
<h2 class="text-lg font-medium text-gray-700 mb-4">เมนู</h2>
<div class="grid grid-cols-2 gap-4">
<!-- <button class="flex items-center space-x-3 p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition duration-150 cursor-pointer">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 text-gray-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 9V7a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2m4 2h10a2 2 0 002-2v-6a2 2 0 00-2-2H9a2 2 0 00-2 2v6a2 2 0 002 2zm7-5a2 2 0 11-4 0 2 2 0 014 0z" />
</svg>
<span class="text-gray-700">การเบิกงวดงบ</span>
</button> -->
<!-- <button class="flex items-center space-x-3 p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition duration-150 cursor-pointer">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 text-gray-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z" />
</svg>
<span class="text-gray-700">สัญญา / ข้อตกลง</span>
</button> -->
<!-- <button class="flex items-center space-x-3 p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition duration-150 cursor-pointer">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 text-gray-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.102a9 9 0 11-12.728 0m12.728 0a9 9 0 00-12.728 0M3 12a9 9 0 1118 0" />
</svg>
<img src="stamp_0.png" alt="" class="h-6 w-6 text-gray-500 opacity-50">
<span class="text-gray-700">การอนุมัติโครงการ</span>
</button> -->
<!-- <button class="flex items-center space-x-3 p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition duration-150 cursor-pointer">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 text-gray-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 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>
<span class="text-gray-700">เอกสารฟอร์มวิทยาลัย</span>
</button> -->
<button class="flex items-center space-x-3 p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition duration-150 cursor-pointer" (click)="navigate('main/manager')">
<!-- <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 text-gray-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 3.055A9.992 9.992 0 0112 21c-3.142 0-6.186-1.042-8.625-2.999M21 12a9.992 9.992 0 00-3-6.945M3 12a9.992 9.992 0 013-6.945M12 15a3 3 0 100-6 3 3 0 000 6z" />
</svg> -->
<img src="chart-simple.png" alt="" class="h-6 w-6 text-gray-500 opacity-50">
<span class="text-gray-700">จัดสรรงบประมาณ</span>
</button>
<button class="flex items-center space-x-3 p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition duration-150 cursor-pointer" (click)="navigate('main/report')">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 text-gray-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 10h16M4 14h16M4 18h16" />
</svg>
<span class="text-gray-700">วิเคราะห์ & รายงาน</span>
</button>
</div>
</div>
</div>
<div>
<div class="bg-white p-6 rounded-xl shadow-lg">
<h2 class="text-lg font-medium text-gray-700 mb-4">กล่องแจ้งเตือน</h2>
<div class="space-y-4">
<div class="flex items-start space-x-3 p-3 bg-red-50 rounded-lg border-l-4 border-red-500 hover:bg-red-100 transition duration-150 cursor-pointer">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mt-0.5 text-red-600 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" />
</svg>
<div>
<p class="text-sm font-medium text-gray-800">มี **โครงการ 3 รายการ** รออนุมัติ</p>
<p class="text-xs text-red-600 mt-0.5">ครบกำหนด: วันนี้, 15:00 น.</p>
</div>
</div>
<div class="flex items-start space-x-3 p-3 bg-blue-50 rounded-lg border-l-4 border-blue-500 hover:bg-blue-100 transition duration-150 cursor-pointer">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mt-0.5 text-blue-600 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
</svg>
<div>
<p class="text-sm font-medium text-gray-800">เอกสารฟอร์มวิทยาลัย **ฉบับใหม่** พร้อมดาวน์โหลดแล้ว</p>
<p class="text-xs text-gray-500 mt-0.5">ประกาศเมื่อ: 17 พ.ย. 2568</p>
</div>
</div>
<div class="flex items-start space-x-3 p-3 bg-green-50 rounded-lg border-l-4 border-green-500 hover:bg-green-100 transition duration-150 cursor-pointer">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mt-0.5 text-green-600 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.102a9 9 0 11-12.728 0m12.728 0a9 9 0 00-12.728 0" />
</svg>
<div>
<p class="text-sm font-medium text-gray-800">การเปิดงบประมาณ **ไตรมาส 4** ได้รับการอนุมัติแล้ว</p>
<p class="text-xs text-gray-500 mt-0.5">สำเร็จเมื่อ: 15 พ.ย. 2568</p>
</div>
</div>
</div>
</div>
</div>
</main>
<!-- <section class="mt-6">
<div class="bg-white p-6 rounded-xl shadow-lg flex items-center space-x-6">
<div class="shrink-0">
<div class="h-24 w-24 rounded-full bg-white flex items-center justify-center overflow-hidden">
<img src="logo.png" alt="">
<span class="text-center text-white font-bold text-sm leading-tight">วิทยาลัยเทคนิคตรัง</span>
</div>
</div>
<div>
<h2 class="text-lg font-medium text-gray-700 mb-3">อัพเดตซอฟต์แวร์</h2>
<div class="space-y-2">
<div class="h-4 bg-red-100 rounded w-64"></div>
<div class="h-4 bg-red-100 rounded w-56"></div>
</div>
<table>
<tbody>
<td>sdsd</td>
<td>sdasds</td>
</tbody>
</table>
</div>
</div>
</section> -->
<section class="mt-6">
<div class="bg-white p-6 rounded-xl shadow-lg flex items-start space-x-6">
<div class="shrink-0">
<div class="h-24 w-24 rounded-full bg-white flex items-center justify-center overflow-hidden border border-gray-200">
<img src="logo.png" alt="Trang Technical College Logo" class="h-full w-full object-cover">
</div>
</div>
<div class="grow">
<h2 class="text-xl font-semibold text-gray-800 mb-3">อัพเดตซอฟต์แวร์ล่าสุด</h2>
<div class="flex text-sm font-medium text-gray-500 border-b pb-1 mb-2">
<span class="w-2/5 pr-2">รายการ</span>
<span class="w-1/5">ประเภท</span>
<span class="w-1/5 text-right">เวอร์ชัน</span>
<span class="w-1/5 pl-2">สถานะ</span>
</div>
<div class="flex items-center py-2 border-b last:border-b-0 hover:bg-gray-50 transition duration-100">
<div class="w-2/5 flex items-center space-x-3 pr-2">
<div>
<p class="text-sm font-medium text-gray-900">แก้ไขบั๊ก (Patch Fix)</p>
<p class="text-xs text-gray-500">18 พ.ย. 2568</p>
</div>
</div>
<span class="w-1/5">
<span class="inline-block px-2 py-0.5 text-xs font-semibold rounded-full bg-green-100 text-green-800">
ปรับปรุง
</span>
</span>
<span class="w-1/5 text-sm font-medium text-right text-green-600">
1.0.1
</span>
<span class="w-1/5 text-sm text-gray-600 pl-2 truncate">
เสร็จสมบูรณ์
</span>
</div>
<div class="flex items-center py-2 border-b last:border-b-0 hover:bg-gray-50 transition duration-100">
<div class="w-2/5 flex items-center space-x-3 pr-2">
<div>
<p class="text-sm font-medium text-gray-900">อัปเดตระบบหลัก (Major Update)</p>
<p class="text-xs text-gray-500">25 ต.ค. 2568</p>
</div>
</div>
<span class="w-1/5">
<span class="inline-block px-2 py-0.5 text-xs font-semibold rounded-full bg-red-100 text-red-800">
คุณสมบัติใหม่
</span>
</span>
<span class="w-1/5 text-sm font-medium text-right text-red-600">
2.0.0
</span>
<span class="w-1/5 text-sm text-gray-600 pl-2 truncate">
รอตรวจสอบ
</span>
</div>
<div class="flex items-center py-2 last:border-b-0 hover:bg-gray-50 transition duration-100">
<div class="w-2/5 flex items-center space-x-3 pr-2">
<div>
<p class="text-sm font-medium text-gray-900">แก้ไขช่องโหว่ความปลอดภัย</p>
<p class="text-xs text-gray-500">5 พ.ย. 2568</p>
</div>
</div>
<span class="w-1/5">
<span class="inline-block px-2 py-0.5 text-xs font-semibold rounded-full bg-green-100 text-green-800">
ปรับปรุง
</span>
</span>
<span class="w-1/5 text-sm font-medium text-right text-green-600">
1.0.0
</span>
<span class="w-1/5 text-sm text-gray-600 pl-2 truncate">
เสร็จสมบูรณ์
</span>
</div>
</div>
</div>
</section>
</div>