JSFiddle - React, Tailwind, and code Playground
by artgas_pro
HTML
<!DOCTYPE html>
<html lang="uk">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Інвойс TLR-20-17</title>
<script src="https://cdn.tailwindcss.com"></script>
<style>
.table-header {
background-color: #ffffff;
font-weight: bold;
text-align: center;
vertical-align: middle;
border: 1px solid #000000;
font-size: 13px;
padding: 6px 4px;
}
.table-cell {
border: 1px solid #000000;
padding: 8px 6px;
text-align: center;
vertical-align: middle;
font-size: 13px;
}
.text-left-cell {
text-align: left;
}
</style>
</head>
<body class="bg-gray-50 p-6">
<div class="max-w-7xl mx-auto bg-white p-4 shadow-sm border border-gray-200">
<div class="text-center mb-4">
<h2 class="text-xl font-bold italic">Інвойс "TLR-20-17"</h2>
</div>
<div class="overflow-x-auto">
<table class="min-w-full border-collapse border border-black">
<thead>
<tr>
<th class="table-header">№ П/П</th>
<th class="table-header">3D Модель<br><span class="text-xs font-normal text-gray-500">(product.photo)</span></th>
<th class="table-header">Назва<br><span class="text-xs font-normal text-gray-500">(product.name)</span></th>
<th class="table-header">Код МБ<br><span class="text-xs font-normal text-gray-500">(product.name_1c)</span></th>
<th class="table-header">Код РН<br><span class="text-xs font-normal text-gray-500">(product.code)</span></th>
<th class="table-header">Код Австрі<br><span class="text-xs font-normal...