fr hide default values, app now modular, and easy to add templates + new template
Deploy static content to Pages / deploy (push) Has been cancelled

This commit is contained in:
2026-03-22 00:24:30 +05:00
parent 5437bcf721
commit e67cc4ca9c
8 changed files with 354 additions and 216 deletions
+12
View File
@@ -0,0 +1,12 @@
{
"templates": [
{
"id": "rs-auto",
"name": "RS AUTO"
},
{
"id": "motca",
"name": "Min. of Transport & Civil Aviation"
}
]
}
+73
View File
@@ -0,0 +1,73 @@
/* Min. of Transport & Civil Aviation Template Styles */
.sticker-motca {
width: 280px;
border: 2px solid #000;
font-family: Arial, sans-serif;
font-size: 11px;
background: #fff;
color: #000;
}
.sticker-motca .sticker-header {
background-color: #000;
color: #fff;
display: flex;
justify-content: space-between;
align-items: center;
padding: 6px 8px;
font-size: 14px;
font-weight: bold;
}
.sticker-motca .sticker-header .reg-number {
letter-spacing: 1px;
}
.sticker-motca .sticker-header .barcode-number {
font-size: 12px;
}
.sticker-motca .sticker-dates-row {
display: flex;
justify-content: space-between;
padding: 4px 8px;
font-size: 10px;
border-bottom: 1px solid #000;
}
.sticker-motca .sticker-body {
display: flex;
border-bottom: 1px solid #000;
}
.sticker-motca .sticker-info {
flex: 1;
padding: 4px 8px;
font-size: 10px;
line-height: 1.4;
}
.sticker-motca .sticker-info .barcode {
height: 25px;
width: 100%;
margin-top: 4px;
}
.sticker-motca .sticker-values {
width: 80px;
padding: 4px 8px;
font-size: 10px;
font-weight: bold;
text-align: right;
display: flex;
flex-direction: column;
justify-content: flex-start;
gap: 2px;
}
.sticker-motca .sticker-footer {
text-align: center;
padding: 4px 8px;
font-size: 9px;
font-weight: 500;
}
+23
View File
@@ -0,0 +1,23 @@
<div class="sticker sticker-motca">
<div class="sticker-header">
<span class="reg-number">{{regNumber}}</span>
<span class="barcode-number">{{barcodeNumber}}</span>
</div>
<div class="sticker-dates-row">
<span><strong>From</strong> {{fromDate}}</span>
<span><strong>To</strong> {{toDate}}</span>
</div>
<div class="sticker-body">
<div class="sticker-info">
<div>{{modelNumber}}</div>
<div>{{chassisNumber}}</div>
<div>{{engineSerial}}</div>
<svg class="barcode"></svg>
</div>
<div class="sticker-values">
<div>0 sc</div>
<div>{{engineCapacity}} cc</div>
</div>
</div>
<div class="sticker-footer">Min. of Transport & Civil Aviation</div>
</div>
+74
View File
@@ -0,0 +1,74 @@
/* RS AUTO Template Styles */
.sticker-rs-auto {
width: 280px;
border: 2px solid #000;
font-family: Arial, sans-serif;
font-size: 11px;
background: #fff;
color: #000;
}
.sticker-rs-auto .sticker-header {
background-color: #000;
color: #fff;
text-align: center;
padding: 6px 8px;
font-size: 18px;
font-weight: bold;
letter-spacing: 4px;
}
.sticker-rs-auto .sticker-barcode-row {
display: flex;
align-items: center;
border-bottom: 1px solid #000;
padding: 4px 8px;
gap: 8px;
}
.sticker-rs-auto .sticker-barcode-row .barcode-number {
font-size: 11px;
font-weight: 500;
}
.sticker-rs-auto .sticker-barcode-row .barcode {
height: 30px;
flex: 1;
}
.sticker-rs-auto .sticker-body {
display: flex;
border-bottom: 1px solid #000;
}
.sticker-rs-auto .sticker-info {
flex: 1;
padding: 6px 8px;
font-size: 10px;
line-height: 1.4;
}
.sticker-rs-auto .sticker-info .date-row {
margin-bottom: 2px;
}
.sticker-rs-auto .sticker-logo {
width: 80px;
border-left: 1px solid #000;
display: flex;
align-items: center;
justify-content: center;
padding: 4px;
}
.sticker-rs-auto .sticker-logo .logo-svg {
width: 70px;
height: 70px;
}
.sticker-rs-auto .sticker-footer {
text-align: center;
padding: 4px 8px;
font-size: 10px;
font-weight: 500;
}
+30
View File
@@ -0,0 +1,30 @@
<div class="sticker sticker-rs-auto">
<div class="sticker-header">
<span class="reg-number">{{regNumber}}</span>
</div>
<div class="sticker-barcode-row">
<span class="barcode-number">{{barcodeNumber}}</span>
<svg class="barcode"></svg>
</div>
<div class="sticker-body">
<div class="sticker-info">
<div class="date-row"><strong>From:</strong> {{fromDate}}</div>
<div class="date-row"><strong>To:</strong> {{toDate}}</div>
<div>{{modelNumber}}</div>
<div>{{chassisNumber}}</div>
<div>{{engineSerial}}</div>
<div>{{engineCapacity}}</div>
</div>
<div class="sticker-logo">
<svg viewBox="0 0 80 80" class="logo-svg">
<circle cx="40" cy="40" r="38" fill="none" stroke="#000" stroke-width="2"/>
<text x="40" y="18" text-anchor="middle" font-size="8" font-weight="bold">RS AUTO</text>
<text x="40" y="45" text-anchor="middle" font-size="24" font-weight="bold">S</text>
<path d="M20 50 Q40 35 60 50" fill="none" stroke="#000" stroke-width="2"/>
<text x="40" y="58" text-anchor="middle" font-size="6">P:0085037</text>
<text x="40" y="70" text-anchor="middle" font-size="8" font-weight="bold">MALDIVES</text>
</svg>
</div>
</div>
<div class="sticker-footer">RS AUTO, TEL: 775 8999</div>
</div>