PDF 뷰어 페이지 추가

This commit is contained in:
김창수 2025-05-19 15:16:30 +09:00
parent bbe1be5b58
commit 05850f797c
5 changed files with 242 additions and 2 deletions

15
src/app/pdfview/page.tsx Normal file
View File

@ -0,0 +1,15 @@
import Footer from "@/components/layouts/Footer";
import Header from "@/components/layouts/Header";
import PDFViewContents from "@/components/pdfview/PDFViewContents";
export default function PDFView(){
return(
<div className="wrap">
<Header name={"Hanasys 現地調査"} backBtn={true}/>
<div className="container">
<PDFViewContents/>
</div>
<Footer/>
</div>
)
}

View File

@ -212,7 +212,7 @@ export default function PublishList (){
<td className='c red'>2025/04/30</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td>
<Link href={'roofcompliance'}>RoofCompliancePage.tsx</Link>
@ -233,6 +233,18 @@ export default function PublishList (){
</td>
<td className='c red'>2025/05/08</td>
</tr>
<tr>
<td>PDF </td>
<td>PDF </td>
<td>
<Link href={'pdfview'}>PDFView.tsx</Link>
</td>
<td className='c'>
</td>
<td className='c red'>
</td>
<td className='c red'>2025/05/19</td>
</tr>
</tbody>
</table>
</div>

View File

@ -0,0 +1,155 @@
export default function PDFViewContents(){
return(
<div className="pdf-contents">
<div className="pdf-cont-head">
<div className="pdf-cont-head-tit">HWJ 調1/2</div>
<div className="pdf-cont-head-data-wrap">
<div className="pdf-cont-head-data-bx">
<div className="pdf-cont-head-data-tit"></div>
<div className="pdf-cont-head-data">Interplug</div>
</div>
<div className="pdf-cont-head-data-bx">
<div className="pdf-cont-head-data-tit"></div>
<div className="pdf-cont-head-data">2025-04-05</div>
</div>
</div>
</div>
<div className="pdf-cont-body">
<div className="pdf-table">
<table>
<colgroup>
<col width={72}/>
<col />
</colgroup>
<tbody>
<tr>
<th></th>
<td> </td>
</tr>
<tr>
<th></th>
<td>1620042宿</td>
</tr>
</tbody>
</table>
</div>
<div className="pdf-table">
<div className="pdf-data-tit"></div>
<table>
<colgroup>
<col width={110}/>
<col />
</colgroup>
<tbody>
<tr>
<th></th>
<td>3kVA(or A)</td>
</tr>
<tr>
<th></th>
<td>Interplug</td>
</tr>
<tr>
<th></th>
<td></td>
</tr>
<tr>
<th></th>
<td></td>
</tr>
</tbody>
</table>
</div>
<div className="pdf-table">
<div className="pdf-data-tit"></div>
<table>
<colgroup>
<col width={110}/>
<col />
</colgroup>
<tbody>
<tr>
<th></th>
<td></td>
</tr>
<tr>
<th></th>
<td></td>
</tr>
<tr>
<th></th>
<td></td>
</tr>
<tr>
<th></th>
<td>4</td>
</tr>
<tr>
<th></th>
<td></td>
</tr>
<tr>
<th></th>
<td></td>
</tr>
<tr>
<th></th>
<td>35mm以上×48mm以上</td>
</tr>
<tr>
<th></th>
<td>455mm以下</td>
</tr>
<tr>
<th></th>
<td></td>
</tr>
<tr>
<th></th>
<td></td>
</tr>
<tr>
<th></th>
<td>12mm</td>
</tr>
<tr>
<th></th>
<td></td>
</tr>
<tr>
<th></th>
<td>94022kg以上</td>
</tr>
<tr>
<th></th>
<td></td>
</tr>
<tr>
<th></th>
<td>///</td>
</tr>
</tbody>
</table>
</div>
<div className="pdf-table">
<table>
<colgroup>
<col width={150}/>
<col />
</colgroup>
<tbody>
<tr>
<th></th>
<td></td>
</tr>
</tbody>
</table>
</div>
<div className="pdf-textarea">
<div className="pdf-data-tit"></div>
<div className="pdf-textarea-data">No.25</div>
</div>
</div>
</div>
)
}

View File

@ -2,3 +2,4 @@
@forward 'login';
@forward 'pop-contents';
@forward 'sub';
@forward 'pdfview';

View File

@ -0,0 +1,57 @@
@use "../abstracts" as *;
.pdf-contents{
padding: 0 20px;
border-top: 1px solid #ececec;
}
.pdf-cont-head{
align-items: center;
padding: 24px 0 15px;
border-bottom: 2px solid $black-1010;
.pdf-cont-head-tit{
@include defaultFont($font-s-16, $font-w-600, $black-1010);
margin-bottom: 10px;
}
}
.pdf-cont-head-data-wrap{
@include flex(20px);
align-items: center;
.pdf-cont-head-data-tit{
@include defaultFont($font-s-13, $font-w-500, $black-1010);
}
.pdf-cont-head-data{
@include defaultFont($font-s-13, $font-w-400, #FF5656);
}
}
.pdf-cont-body{
padding: 24px 0 0;
}
.pdf-data-tit{
@include defaultFont($font-s-13, $font-w-500, $black-1010);
margin-bottom: 5px;
}
.pdf-table{
margin-bottom: 24px;
table{
width: 100%;
table-layout: fixed;
border-collapse: collapse;
th{
padding: 9.5px;
@include defaultFont($font-s-11, $font-w-500, $black-1010);
border: 1px solid #2E3A59;
background-color: #F5F6FA;
}
td{
padding: 9.5px;
@include defaultFont($font-s-11, $font-w-400, #FF5656);
border: 1px solid #2E3A59;
}
}
}
.pdf-textarea-data{
padding: 10px;
@include defaultFont($font-s-11, $font-w-400, #FF5656);
border: 1px solid $black-1010;
min-height: 150px;
}