70 lines
3.2 KiB
TypeScript
70 lines
3.2 KiB
TypeScript
import React from 'react';
|
|
import SrsCoverPage from './srs/sections/SrsCoverPage.tsx';
|
|
import SrsIntroduction from './srs/sections/SrsIntroduction.tsx';
|
|
import SrsOverallDescription from './srs/sections/SrsOverallDescription.tsx';
|
|
import SrsFunctionalRequirements from './srs/sections/SrsFunctionalRequirements.tsx';
|
|
import SrsExternalInterfaceRequirements from './srs/sections/SrsExternalInterfaceRequirements.tsx';
|
|
import SrsNonFunctionalRequirements from './srs/sections/SrsNonFunctionalRequirements.tsx';
|
|
import SrsAppendix from './srs/sections/SrsAppendix.tsx';
|
|
|
|
const SrsDocument: React.FC = () => {
|
|
const toc = [
|
|
{ id: 'srs-0', title: 'Cover Page', level: 1 },
|
|
{ id: 'srs-1', title: '1. Pendahuluan', level: 1 },
|
|
{ id: 'srs-1.1', title: '1.1 Tujuan', level: 2 },
|
|
{ id: 'srs-1.2', title: '1.2 Konvensi Dokumen', level: 2 },
|
|
{ id: 'srs-1.3', title: '1.3 Audiens yang Dituju', level: 2 },
|
|
{ id: 'srs-1.4', title: '1.4 Ruang Lingkup Proyek', level: 2 },
|
|
{ id: 'srs-1.5', title: '1.5 Referensi', level: 2 },
|
|
{ id: 'srs-2', title: '2. Deskripsi Keseluruhan', level: 1 },
|
|
{ id: 'srs-2.1', title: '2.1 Perspektif Produk', level: 2 },
|
|
{ id: 'srs-2.2', title: '2.2 Fitur Produk', level: 2 },
|
|
{ id: 'srs-3', title: '3. Kebutuhan Fungsional', level: 1 },
|
|
{ id: 'srs-3.1', title: '3.1 Pemantauan Visual', level: 2 },
|
|
{ id: 'srs-3.2', title: '3.2 Manajemen Pakan', level: 2 },
|
|
{ id: 'srs-3.3', title: '3.3 Manajemen Lingkungan', level: 2 },
|
|
{ id: 'srs-4', title: '4. Kebutuhan Antarmuka Eksternal', level: 1 },
|
|
{ id: 'srs-4.2', title: '4.2 Antarmuka Perangkat Keras', level: 2 },
|
|
{ id: 'srs-5', title: '5. Kebutuhan Non-Fungsional', level: 1 },
|
|
{ id: 'srs-5.1', title: '5.1 Kebutuhan Kinerja', level: 2 },
|
|
{ id: 'srs-5.2', title: '5.2 Kebutuhan Keamanan', level: 2 },
|
|
{ id: 'srs-5.3', title: '5.3 Atribut Kualitas', level: 2 },
|
|
{ id: 'srs-appendix-a', title: 'Appendix A: Glosarium', level: 1 },
|
|
];
|
|
return (
|
|
<div className="container mx-auto px-4 sm:px-6 lg:px-8 py-8">
|
|
<div className="flex flex-col lg:flex-row lg:space-x-8">
|
|
<aside className="w-full lg:w-1/4 mb-8 lg:mb-0">
|
|
<div className="sticky top-24 self-start bg-white p-4 rounded-lg shadow-md border border-gray-200">
|
|
<h3 className="font-bold text-lg mb-3">Daftar Isi</h3>
|
|
<ul className="space-y-2">
|
|
{toc.map((item) => (
|
|
<li key={item.id} className={item.level === 2 ? 'ml-4' : ''}>
|
|
<a
|
|
href={`#${item.id}`}
|
|
className="text-gray-600 hover:text-red-600 text-sm hover:underline transition-colors"
|
|
>
|
|
{item.title}
|
|
</a>
|
|
</li>
|
|
))}
|
|
</ul>
|
|
</div>
|
|
</aside>
|
|
|
|
<main className="w-full lg:w-3/4 bg-white p-6 sm:p-8 md:p-12 rounded-lg shadow-lg prose max-w-none">
|
|
<SrsCoverPage />
|
|
<SrsIntroduction />
|
|
<SrsOverallDescription />
|
|
<SrsFunctionalRequirements />
|
|
<SrsExternalInterfaceRequirements />
|
|
<SrsNonFunctionalRequirements />
|
|
<SrsAppendix />
|
|
</main>
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default SrsDocument;
|