@farisabid/foliokit 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +151 -2
- package/bin/foliokit.js +476 -0
- package/package.json +46 -4
- package/public/css/main.css +915 -0
- package/public/css/tokens.css +29 -0
- package/public/favicon.svg +17 -0
- package/public/index.html +747 -0
- package/public/js/core/pdf-engine.js +69 -0
- package/public/js/core/state.js +365 -0
- package/public/js/tools/dev-tools.js +1508 -0
- package/public/js/tools/edit-pdf.js +1618 -0
- package/public/js/tools/office-tools.js +221 -0
- package/public/js/tools/pdf-ops.js +949 -0
- package/public/js/tools/sign-pdf.js +198 -0
- package/public/manifest.json +26 -0
- package/public/sw.js +88 -0
- package/public/vendor/fonts/inter-1.woff2 +0 -0
- package/public/vendor/fonts/inter-2.woff2 +0 -0
- package/public/vendor/fonts/inter-3.woff2 +0 -0
- package/public/vendor/fonts/inter-4.woff2 +0 -0
- package/public/vendor/fonts/inter-5.woff2 +0 -0
- package/public/vendor/fonts/inter-6.woff2 +0 -0
- package/public/vendor/fonts/inter-7.woff2 +0 -0
- package/public/vendor/fonts/inter.css +316 -0
- package/public/vendor/fonts/jbmono-1.woff2 +0 -0
- package/public/vendor/fonts/jbmono-2.woff2 +0 -0
- package/public/vendor/fonts/jbmono-3.woff2 +0 -0
- package/public/vendor/fonts/jbmono-4.woff2 +0 -0
- package/public/vendor/fonts/jbmono-5.woff2 +0 -0
- package/public/vendor/fonts/jbmono-6.woff2 +0 -0
- package/public/vendor/fonts/jbmono.css +109 -0
- package/public/vendor/jszip.min.js +13 -0
- package/public/vendor/pdf-lib.min.js +16 -0
- package/public/vendor/pdf.min.js +22 -0
- package/public/vendor/pdf.worker.min.js +22 -0
- package/public/vendor/qrcode.min.js +1 -0
- package/server.js +125 -0
- package/start.bat +19 -0
- package/start.sh +12 -0
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
/* Foliokit — Sign PDF
|
|
2
|
+
* Workspace Tanda Tangan Dokumen (canvas, stempel drag/resize/hapus, export).
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
// ==========================================
|
|
6
|
+
// 8. SIGN PDF (Figma workspace)
|
|
7
|
+
// ==========================================
|
|
8
|
+
let signCanvas, signCtx, signDrawing = false, signInk = '#18181B';
|
|
9
|
+
|
|
10
|
+
function initSignTool() {
|
|
11
|
+
if (!signCanvas) {
|
|
12
|
+
signCanvas = document.getElementById('sign-draw-canvas');
|
|
13
|
+
signCtx = signCanvas.getContext('2d');
|
|
14
|
+
signCtx.lineCap = 'round';
|
|
15
|
+
signCtx.lineJoin = 'round';
|
|
16
|
+
signCtx.strokeStyle = signInk;
|
|
17
|
+
signCtx.lineWidth = 2.5;
|
|
18
|
+
attachDraw(signCanvas, signCtx, () => signDrawing, v => signDrawing = v);
|
|
19
|
+
}
|
|
20
|
+
setSignSource(signSource);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function attachDraw(canvas, ctx, getDrawing, setDrawing) {
|
|
24
|
+
const pos = e => {
|
|
25
|
+
const r = canvas.getBoundingClientRect();
|
|
26
|
+
const t = e.touches ? e.touches[0] : e;
|
|
27
|
+
return { x: (t.clientX - r.left) * (canvas.width / r.width), y: (t.clientY - r.top) * (canvas.height / r.height) };
|
|
28
|
+
};
|
|
29
|
+
const start = e => { e.preventDefault(); setDrawing(true); const p = pos(e); ctx.beginPath(); ctx.moveTo(p.x, p.y); };
|
|
30
|
+
const move = e => { if (!getDrawing()) return; e.preventDefault(); const p = pos(e); ctx.lineTo(p.x, p.y); ctx.stroke(); signSignatureDataUrl = null; };
|
|
31
|
+
const end = e => { setDrawing(false); };
|
|
32
|
+
canvas.addEventListener('mousedown', start);
|
|
33
|
+
canvas.addEventListener('mousemove', move);
|
|
34
|
+
window.addEventListener('mouseup', end);
|
|
35
|
+
canvas.addEventListener('touchstart', start, { passive: false });
|
|
36
|
+
canvas.addEventListener('touchmove', move, { passive: false });
|
|
37
|
+
canvas.addEventListener('touchend', end);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function setSignSource(src) {
|
|
41
|
+
signSource = src;
|
|
42
|
+
document.getElementById('sign-src-draw').classList.toggle('active', src === 'draw');
|
|
43
|
+
document.getElementById('sign-src-upload').classList.toggle('active', src === 'upload');
|
|
44
|
+
document.getElementById('sign-pane-draw').classList.toggle('hidden', src !== 'draw');
|
|
45
|
+
document.getElementById('sign-pane-upload').classList.toggle('hidden', src !== 'upload');
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function clearSignPad() { if (signCtx && signCanvas) signCtx.clearRect(0, 0, signCanvas.width, signCanvas.height); signSignatureDataUrl = null; }
|
|
49
|
+
|
|
50
|
+
function setSignInk(color, btn) {
|
|
51
|
+
signInk = color;
|
|
52
|
+
if (signCtx) signCtx.strokeStyle = color;
|
|
53
|
+
document.querySelectorAll('#sign-pane-draw .ink-dot').forEach(b => b.classList.remove('active'));
|
|
54
|
+
if (btn) btn.classList.add('active');
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
async function loadSignFile(file) {
|
|
58
|
+
if (!file) return;
|
|
59
|
+
try {
|
|
60
|
+
signEngine.bytes = await file.arrayBuffer();
|
|
61
|
+
signEngine.name = file.name;
|
|
62
|
+
signEngine.doc = await pdfjsLib.getDocument({ data: signEngine.bytes.slice(0) }).promise;
|
|
63
|
+
signEngine.page = 1;
|
|
64
|
+
signEngine.pageCount = signEngine.doc.numPages;
|
|
65
|
+
document.getElementById('sign-file-name').textContent = '• ' + file.name;
|
|
66
|
+
document.getElementById('sign-empty').classList.add('hidden');
|
|
67
|
+
const canvas = document.getElementById('sign-preview');
|
|
68
|
+
canvas.classList.remove('hidden');
|
|
69
|
+
signStamps.length = 0;
|
|
70
|
+
document.getElementById('sign-stamp-layer').classList.add('hidden');
|
|
71
|
+
await signRenderPage();
|
|
72
|
+
showToast('Dokumen dimuat.');
|
|
73
|
+
} catch (err) { console.error(err); showToast('Gagal membaca PDF: ' + err.message, false); }
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
async function signRenderPage() {
|
|
77
|
+
if (!signEngine.doc) return;
|
|
78
|
+
await renderPageToCanvas(signEngine.doc, signEngine.page, document.getElementById('sign-preview'), 440);
|
|
79
|
+
document.getElementById('sign-page-label').textContent = `Hal ${signEngine.page} / ${signEngine.pageCount}`;
|
|
80
|
+
document.getElementById('sign-caption').textContent = `A4 Portrait • ${signEngine.name || 'Dokumen'}`;
|
|
81
|
+
document.getElementById('sign-stamp-page').textContent = signEngine.page;
|
|
82
|
+
renderSignStamps();
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
function signPrevPage() { if (signEngine.doc && signEngine.page > 1) { signEngine.page--; signRenderPage(); } }
|
|
86
|
+
function signNextPage() { if (signEngine.doc && signEngine.page < signEngine.pageCount) { signEngine.page++; signRenderPage(); } }
|
|
87
|
+
|
|
88
|
+
function loadSignStamp(file) {
|
|
89
|
+
if (!file) return;
|
|
90
|
+
const reader = new FileReader();
|
|
91
|
+
reader.onload = e => {
|
|
92
|
+
signSignatureDataUrl = e.target.result;
|
|
93
|
+
showToast('Gambar tanda tangan siap ditempel.');
|
|
94
|
+
};
|
|
95
|
+
reader.readAsDataURL(file);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
function stampSignatureToDoc() {
|
|
99
|
+
if (!signEngine.doc) return showToast('Pilih berkas PDF terlebih dahulu.', false);
|
|
100
|
+
let dataUrl = signSignatureDataUrl;
|
|
101
|
+
if (signSource === 'draw') {
|
|
102
|
+
if (!signCanvas) return;
|
|
103
|
+
dataUrl = hasInk(signCanvas) ? signCanvas.toDataURL('image/png') : null;
|
|
104
|
+
signSignatureDataUrl = dataUrl;
|
|
105
|
+
}
|
|
106
|
+
if (!dataUrl) return showToast('Buat atau unggah tanda tangan terlebih dahulu.', false);
|
|
107
|
+
signStamps.push({ id: ++signStampSeq, page: signEngine.page, x: 0.5, y: 0.5, w: 0.38, dataUrl });
|
|
108
|
+
renderSignStamps();
|
|
109
|
+
showToast(`Tanda tangan ditempelkan di halaman ${signEngine.page}.`);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
function hasInk(canvas) {
|
|
113
|
+
const ctx = canvas.getContext('2d');
|
|
114
|
+
const d = ctx.getImageData(0, 0, canvas.width, canvas.height).data;
|
|
115
|
+
for (let i = 3; i < d.length; i += 4) if (d[i] !== 0) return true;
|
|
116
|
+
return false;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
function renderSignStamps() {
|
|
120
|
+
const layer = document.getElementById('sign-stamp-layer');
|
|
121
|
+
const paper = document.getElementById('sign-paper');
|
|
122
|
+
const stamps = signStamps.filter(s => s.page === signEngine.page);
|
|
123
|
+
if (!stamps.length) { layer.classList.add('hidden'); layer.innerHTML = ''; return; }
|
|
124
|
+
layer.classList.remove('hidden');
|
|
125
|
+
layer.style.pointerEvents = 'none';
|
|
126
|
+
layer.innerHTML = stamps.map(s => `
|
|
127
|
+
<div class="sign-stamp-item${s.moved ? ' moved' : ''}" data-id="${s.id}"
|
|
128
|
+
style="left:${s.x * 100}%;top:${s.y * 100}%;width:${(s.w || 0.38) * 100}%;">
|
|
129
|
+
<img src="${s.dataUrl}" alt="Tanda tangan" draggable="false">
|
|
130
|
+
<button class="sign-stamp-del" title="Hapus" data-act="del">×</button>
|
|
131
|
+
<span class="sign-stamp-resize" title="Ubah ukuran" data-act="resize"></span>
|
|
132
|
+
</div>`).join('');
|
|
133
|
+
layer.querySelectorAll('.sign-stamp-item').forEach(el => {
|
|
134
|
+
const s = stamps.find(x => String(x.id) === el.dataset.id);
|
|
135
|
+
if (s && paper) attachSignStamp(el, s, paper);
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
function attachSignStamp(el, s, paper) {
|
|
140
|
+
const clamp = (v, a, b) => Math.min(b, Math.max(a, v));
|
|
141
|
+
const setPos = () => { el.style.left = s.x * 100 + '%'; el.style.top = s.y * 100 + '%'; el.style.width = (s.w || 0.38) * 100 + '%'; };
|
|
142
|
+
el.addEventListener('pointerdown', e => {
|
|
143
|
+
if (e.target.dataset && e.target.dataset.act === 'del') {
|
|
144
|
+
e.preventDefault(); e.stopPropagation();
|
|
145
|
+
const idx = signStamps.indexOf(s);
|
|
146
|
+
if (idx >= 0) signStamps.splice(idx, 1);
|
|
147
|
+
renderSignStamps();
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
const mode = (e.target.dataset && e.target.dataset.act === 'resize') ? 'resize' : 'move';
|
|
151
|
+
e.preventDefault(); e.stopPropagation();
|
|
152
|
+
try { el.setPointerCapture(e.pointerId); } catch (_) {}
|
|
153
|
+
el.classList.add('dragging');
|
|
154
|
+
const r = paper.getBoundingClientRect();
|
|
155
|
+
const move = ev => {
|
|
156
|
+
if (mode === 'move') {
|
|
157
|
+
s.x = clamp((ev.clientX - r.left) / r.width, 0.05, 0.95);
|
|
158
|
+
s.y = clamp((ev.clientY - r.top) / r.height, 0.05, 0.95);
|
|
159
|
+
s.moved = true;
|
|
160
|
+
} else {
|
|
161
|
+
const halfW = Math.abs(ev.clientX - (r.left + s.x * r.width));
|
|
162
|
+
s.w = clamp((halfW * 2) / r.width, 0.10, 0.85);
|
|
163
|
+
}
|
|
164
|
+
setPos();
|
|
165
|
+
};
|
|
166
|
+
const up = () => {
|
|
167
|
+
try { el.releasePointerCapture(e.pointerId); } catch (_) {}
|
|
168
|
+
el.removeEventListener('pointermove', move);
|
|
169
|
+
el.removeEventListener('pointerup', up);
|
|
170
|
+
el.removeEventListener('pointercancel', up);
|
|
171
|
+
el.classList.remove('dragging');
|
|
172
|
+
};
|
|
173
|
+
el.addEventListener('pointermove', move);
|
|
174
|
+
el.addEventListener('pointerup', up);
|
|
175
|
+
el.addEventListener('pointercancel', up);
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
async function signDownload() {
|
|
180
|
+
if (!signEngine.doc) return showToast('Pilih berkas PDF terlebih dahulu.', false);
|
|
181
|
+
if (!signStamps.length) return showToast('Belum ada tanda tangan ditempel.', false);
|
|
182
|
+
try {
|
|
183
|
+
const { PDFDocument } = PDFLib;
|
|
184
|
+
const doc = await PDFDocument.load(signEngine.bytes.slice(0), { ignoreEncryption: true });
|
|
185
|
+
const pages = doc.getPages();
|
|
186
|
+
for (const s of signStamps) {
|
|
187
|
+
const png = await doc.embedPng(s.dataUrl);
|
|
188
|
+
const page = pages[s.page - 1];
|
|
189
|
+
const { width, height } = page.getSize();
|
|
190
|
+
const w = width * (s.w || 0.38);
|
|
191
|
+
const h = w * (png.height / png.width);
|
|
192
|
+
page.drawImage(png, { x: s.x * width - w / 2, y: (1 - s.y) * height - h / 2, width: w, height: h });
|
|
193
|
+
}
|
|
194
|
+
downloadBlob(new Blob([await doc.save()], { type: 'application/pdf' }), tsName('Bertanda_Tangan', 'pdf'));
|
|
195
|
+
showToast('PDF bertanda tangan berhasil diunduh.');
|
|
196
|
+
} catch (err) { console.error(err); showToast('Gagal menyimpan: ' + err.message, false); }
|
|
197
|
+
}
|
|
198
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Foliokit",
|
|
3
|
+
"short_name": "Foliokit",
|
|
4
|
+
"description": "Local-first PDF, Document & Developer Toolkit — 30 alat, 100% client-side, zero upload.",
|
|
5
|
+
"start_url": "./",
|
|
6
|
+
"scope": "./",
|
|
7
|
+
"display": "standalone",
|
|
8
|
+
"orientation": "any",
|
|
9
|
+
"background_color": "#FAFAFA",
|
|
10
|
+
"theme_color": "#0F172A",
|
|
11
|
+
"lang": "id",
|
|
12
|
+
"icons": [
|
|
13
|
+
{
|
|
14
|
+
"src": "./favicon.svg",
|
|
15
|
+
"sizes": "any",
|
|
16
|
+
"type": "image/svg+xml",
|
|
17
|
+
"purpose": "any"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"src": "./favicon.svg",
|
|
21
|
+
"sizes": "any",
|
|
22
|
+
"type": "image/svg+xml",
|
|
23
|
+
"purpose": "maskable"
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
package/public/sw.js
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/* Foliokit — Service Worker (offline app shell)
|
|
2
|
+
* Strategi: vendor/* cache-first (immutable), app shell network-first (selalu fresh saat online,
|
|
3
|
+
* tetap jalan saat offline). Tidak pernah mengirim data ke jaringan luar. */
|
|
4
|
+
const VERSION = 'foliokit-v1';
|
|
5
|
+
const CORE = [
|
|
6
|
+
'./',
|
|
7
|
+
'./index.html',
|
|
8
|
+
'./manifest.json',
|
|
9
|
+
'./favicon.svg',
|
|
10
|
+
'./css/tokens.css',
|
|
11
|
+
'./css/main.css',
|
|
12
|
+
'./js/core/state.js',
|
|
13
|
+
'./js/core/pdf-engine.js',
|
|
14
|
+
'./js/tools/office-tools.js',
|
|
15
|
+
'./js/tools/pdf-ops.js',
|
|
16
|
+
'./js/tools/sign-pdf.js',
|
|
17
|
+
'./js/tools/edit-pdf.js',
|
|
18
|
+
'./js/tools/dev-tools.js',
|
|
19
|
+
'./vendor/fonts/inter.css',
|
|
20
|
+
'./vendor/fonts/jbmono.css',
|
|
21
|
+
];
|
|
22
|
+
const VENDOR = [
|
|
23
|
+
'./vendor/pdf-lib.min.js',
|
|
24
|
+
'./vendor/pdf.min.js',
|
|
25
|
+
'./vendor/pdf.worker.min.js',
|
|
26
|
+
'./vendor/qrcode.min.js',
|
|
27
|
+
'./vendor/jszip.min.js',
|
|
28
|
+
];
|
|
29
|
+
|
|
30
|
+
self.addEventListener('install', (event) => {
|
|
31
|
+
event.waitUntil((async () => {
|
|
32
|
+
const cache = await caches.open(VERSION);
|
|
33
|
+
await Promise.all([...CORE, ...VENDOR].map((url) =>
|
|
34
|
+
cache.add(url).catch(() => { /* lewati aset yang tidak ada */ })
|
|
35
|
+
));
|
|
36
|
+
self.skipWaiting();
|
|
37
|
+
})());
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
self.addEventListener('activate', (event) => {
|
|
41
|
+
event.waitUntil((async () => {
|
|
42
|
+
const keys = await caches.keys();
|
|
43
|
+
await Promise.all(keys.filter((k) => k !== VERSION).map((k) => caches.delete(k)));
|
|
44
|
+
await self.clients.claim();
|
|
45
|
+
})());
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
self.addEventListener('fetch', (event) => {
|
|
49
|
+
const req = event.request;
|
|
50
|
+
if (req.method !== 'GET') return;
|
|
51
|
+
const url = new URL(req.url);
|
|
52
|
+
if (url.origin !== self.location.origin) return;
|
|
53
|
+
|
|
54
|
+
const isVendor = url.pathname.includes('/vendor/');
|
|
55
|
+
|
|
56
|
+
if (isVendor) {
|
|
57
|
+
event.respondWith((async () => {
|
|
58
|
+
const cache = await caches.open(VERSION);
|
|
59
|
+
const hit = await cache.match(req, { ignoreSearch: true });
|
|
60
|
+
if (hit) return hit;
|
|
61
|
+
try {
|
|
62
|
+
const res = await fetch(req);
|
|
63
|
+
if (res && res.ok) cache.put(req, res.clone());
|
|
64
|
+
return res;
|
|
65
|
+
} catch (err) {
|
|
66
|
+
return hit || Response.error();
|
|
67
|
+
}
|
|
68
|
+
})());
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
event.respondWith((async () => {
|
|
73
|
+
const cache = await caches.open(VERSION);
|
|
74
|
+
try {
|
|
75
|
+
const res = await fetch(req);
|
|
76
|
+
if (res && res.ok) cache.put(req, res.clone());
|
|
77
|
+
return res;
|
|
78
|
+
} catch (err) {
|
|
79
|
+
const hit = await cache.match(req, { ignoreSearch: true });
|
|
80
|
+
if (hit) return hit;
|
|
81
|
+
if (req.mode === 'navigate') {
|
|
82
|
+
const shell = await cache.match('./index.html');
|
|
83
|
+
if (shell) return shell;
|
|
84
|
+
}
|
|
85
|
+
return Response.error();
|
|
86
|
+
}
|
|
87
|
+
})());
|
|
88
|
+
});
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
/* cyrillic-ext */
|
|
2
|
+
@font-face {
|
|
3
|
+
font-family: 'Inter';
|
|
4
|
+
font-style: normal;
|
|
5
|
+
font-weight: 300;
|
|
6
|
+
font-display: swap;
|
|
7
|
+
src: url(./inter-1.woff2) format('woff2');
|
|
8
|
+
unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
|
9
|
+
}
|
|
10
|
+
/* cyrillic */
|
|
11
|
+
@font-face {
|
|
12
|
+
font-family: 'Inter';
|
|
13
|
+
font-style: normal;
|
|
14
|
+
font-weight: 300;
|
|
15
|
+
font-display: swap;
|
|
16
|
+
src: url(./inter-2.woff2) format('woff2');
|
|
17
|
+
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
|
18
|
+
}
|
|
19
|
+
/* greek-ext */
|
|
20
|
+
@font-face {
|
|
21
|
+
font-family: 'Inter';
|
|
22
|
+
font-style: normal;
|
|
23
|
+
font-weight: 300;
|
|
24
|
+
font-display: swap;
|
|
25
|
+
src: url(./inter-3.woff2) format('woff2');
|
|
26
|
+
unicode-range: U+1F00-1FFF;
|
|
27
|
+
}
|
|
28
|
+
/* greek */
|
|
29
|
+
@font-face {
|
|
30
|
+
font-family: 'Inter';
|
|
31
|
+
font-style: normal;
|
|
32
|
+
font-weight: 300;
|
|
33
|
+
font-display: swap;
|
|
34
|
+
src: url(./inter-4.woff2) format('woff2');
|
|
35
|
+
unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
|
|
36
|
+
}
|
|
37
|
+
/* vietnamese */
|
|
38
|
+
@font-face {
|
|
39
|
+
font-family: 'Inter';
|
|
40
|
+
font-style: normal;
|
|
41
|
+
font-weight: 300;
|
|
42
|
+
font-display: swap;
|
|
43
|
+
src: url(./inter-5.woff2) format('woff2');
|
|
44
|
+
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
|
|
45
|
+
}
|
|
46
|
+
/* latin-ext */
|
|
47
|
+
@font-face {
|
|
48
|
+
font-family: 'Inter';
|
|
49
|
+
font-style: normal;
|
|
50
|
+
font-weight: 300;
|
|
51
|
+
font-display: swap;
|
|
52
|
+
src: url(./inter-6.woff2) format('woff2');
|
|
53
|
+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
54
|
+
}
|
|
55
|
+
/* latin */
|
|
56
|
+
@font-face {
|
|
57
|
+
font-family: 'Inter';
|
|
58
|
+
font-style: normal;
|
|
59
|
+
font-weight: 300;
|
|
60
|
+
font-display: swap;
|
|
61
|
+
src: url(./inter-7.woff2) format('woff2');
|
|
62
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
63
|
+
}
|
|
64
|
+
/* cyrillic-ext */
|
|
65
|
+
@font-face {
|
|
66
|
+
font-family: 'Inter';
|
|
67
|
+
font-style: normal;
|
|
68
|
+
font-weight: 400;
|
|
69
|
+
font-display: swap;
|
|
70
|
+
src: url(./inter-1.woff2) format('woff2');
|
|
71
|
+
unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
|
72
|
+
}
|
|
73
|
+
/* cyrillic */
|
|
74
|
+
@font-face {
|
|
75
|
+
font-family: 'Inter';
|
|
76
|
+
font-style: normal;
|
|
77
|
+
font-weight: 400;
|
|
78
|
+
font-display: swap;
|
|
79
|
+
src: url(./inter-2.woff2) format('woff2');
|
|
80
|
+
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
|
81
|
+
}
|
|
82
|
+
/* greek-ext */
|
|
83
|
+
@font-face {
|
|
84
|
+
font-family: 'Inter';
|
|
85
|
+
font-style: normal;
|
|
86
|
+
font-weight: 400;
|
|
87
|
+
font-display: swap;
|
|
88
|
+
src: url(./inter-3.woff2) format('woff2');
|
|
89
|
+
unicode-range: U+1F00-1FFF;
|
|
90
|
+
}
|
|
91
|
+
/* greek */
|
|
92
|
+
@font-face {
|
|
93
|
+
font-family: 'Inter';
|
|
94
|
+
font-style: normal;
|
|
95
|
+
font-weight: 400;
|
|
96
|
+
font-display: swap;
|
|
97
|
+
src: url(./inter-4.woff2) format('woff2');
|
|
98
|
+
unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
|
|
99
|
+
}
|
|
100
|
+
/* vietnamese */
|
|
101
|
+
@font-face {
|
|
102
|
+
font-family: 'Inter';
|
|
103
|
+
font-style: normal;
|
|
104
|
+
font-weight: 400;
|
|
105
|
+
font-display: swap;
|
|
106
|
+
src: url(./inter-5.woff2) format('woff2');
|
|
107
|
+
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
|
|
108
|
+
}
|
|
109
|
+
/* latin-ext */
|
|
110
|
+
@font-face {
|
|
111
|
+
font-family: 'Inter';
|
|
112
|
+
font-style: normal;
|
|
113
|
+
font-weight: 400;
|
|
114
|
+
font-display: swap;
|
|
115
|
+
src: url(./inter-6.woff2) format('woff2');
|
|
116
|
+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
117
|
+
}
|
|
118
|
+
/* latin */
|
|
119
|
+
@font-face {
|
|
120
|
+
font-family: 'Inter';
|
|
121
|
+
font-style: normal;
|
|
122
|
+
font-weight: 400;
|
|
123
|
+
font-display: swap;
|
|
124
|
+
src: url(./inter-7.woff2) format('woff2');
|
|
125
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
126
|
+
}
|
|
127
|
+
/* cyrillic-ext */
|
|
128
|
+
@font-face {
|
|
129
|
+
font-family: 'Inter';
|
|
130
|
+
font-style: normal;
|
|
131
|
+
font-weight: 500;
|
|
132
|
+
font-display: swap;
|
|
133
|
+
src: url(./inter-1.woff2) format('woff2');
|
|
134
|
+
unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
|
135
|
+
}
|
|
136
|
+
/* cyrillic */
|
|
137
|
+
@font-face {
|
|
138
|
+
font-family: 'Inter';
|
|
139
|
+
font-style: normal;
|
|
140
|
+
font-weight: 500;
|
|
141
|
+
font-display: swap;
|
|
142
|
+
src: url(./inter-2.woff2) format('woff2');
|
|
143
|
+
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
|
144
|
+
}
|
|
145
|
+
/* greek-ext */
|
|
146
|
+
@font-face {
|
|
147
|
+
font-family: 'Inter';
|
|
148
|
+
font-style: normal;
|
|
149
|
+
font-weight: 500;
|
|
150
|
+
font-display: swap;
|
|
151
|
+
src: url(./inter-3.woff2) format('woff2');
|
|
152
|
+
unicode-range: U+1F00-1FFF;
|
|
153
|
+
}
|
|
154
|
+
/* greek */
|
|
155
|
+
@font-face {
|
|
156
|
+
font-family: 'Inter';
|
|
157
|
+
font-style: normal;
|
|
158
|
+
font-weight: 500;
|
|
159
|
+
font-display: swap;
|
|
160
|
+
src: url(./inter-4.woff2) format('woff2');
|
|
161
|
+
unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
|
|
162
|
+
}
|
|
163
|
+
/* vietnamese */
|
|
164
|
+
@font-face {
|
|
165
|
+
font-family: 'Inter';
|
|
166
|
+
font-style: normal;
|
|
167
|
+
font-weight: 500;
|
|
168
|
+
font-display: swap;
|
|
169
|
+
src: url(./inter-5.woff2) format('woff2');
|
|
170
|
+
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
|
|
171
|
+
}
|
|
172
|
+
/* latin-ext */
|
|
173
|
+
@font-face {
|
|
174
|
+
font-family: 'Inter';
|
|
175
|
+
font-style: normal;
|
|
176
|
+
font-weight: 500;
|
|
177
|
+
font-display: swap;
|
|
178
|
+
src: url(./inter-6.woff2) format('woff2');
|
|
179
|
+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
180
|
+
}
|
|
181
|
+
/* latin */
|
|
182
|
+
@font-face {
|
|
183
|
+
font-family: 'Inter';
|
|
184
|
+
font-style: normal;
|
|
185
|
+
font-weight: 500;
|
|
186
|
+
font-display: swap;
|
|
187
|
+
src: url(./inter-7.woff2) format('woff2');
|
|
188
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
189
|
+
}
|
|
190
|
+
/* cyrillic-ext */
|
|
191
|
+
@font-face {
|
|
192
|
+
font-family: 'Inter';
|
|
193
|
+
font-style: normal;
|
|
194
|
+
font-weight: 600;
|
|
195
|
+
font-display: swap;
|
|
196
|
+
src: url(./inter-1.woff2) format('woff2');
|
|
197
|
+
unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
|
198
|
+
}
|
|
199
|
+
/* cyrillic */
|
|
200
|
+
@font-face {
|
|
201
|
+
font-family: 'Inter';
|
|
202
|
+
font-style: normal;
|
|
203
|
+
font-weight: 600;
|
|
204
|
+
font-display: swap;
|
|
205
|
+
src: url(./inter-2.woff2) format('woff2');
|
|
206
|
+
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
|
207
|
+
}
|
|
208
|
+
/* greek-ext */
|
|
209
|
+
@font-face {
|
|
210
|
+
font-family: 'Inter';
|
|
211
|
+
font-style: normal;
|
|
212
|
+
font-weight: 600;
|
|
213
|
+
font-display: swap;
|
|
214
|
+
src: url(./inter-3.woff2) format('woff2');
|
|
215
|
+
unicode-range: U+1F00-1FFF;
|
|
216
|
+
}
|
|
217
|
+
/* greek */
|
|
218
|
+
@font-face {
|
|
219
|
+
font-family: 'Inter';
|
|
220
|
+
font-style: normal;
|
|
221
|
+
font-weight: 600;
|
|
222
|
+
font-display: swap;
|
|
223
|
+
src: url(./inter-4.woff2) format('woff2');
|
|
224
|
+
unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
|
|
225
|
+
}
|
|
226
|
+
/* vietnamese */
|
|
227
|
+
@font-face {
|
|
228
|
+
font-family: 'Inter';
|
|
229
|
+
font-style: normal;
|
|
230
|
+
font-weight: 600;
|
|
231
|
+
font-display: swap;
|
|
232
|
+
src: url(./inter-5.woff2) format('woff2');
|
|
233
|
+
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
|
|
234
|
+
}
|
|
235
|
+
/* latin-ext */
|
|
236
|
+
@font-face {
|
|
237
|
+
font-family: 'Inter';
|
|
238
|
+
font-style: normal;
|
|
239
|
+
font-weight: 600;
|
|
240
|
+
font-display: swap;
|
|
241
|
+
src: url(./inter-6.woff2) format('woff2');
|
|
242
|
+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
243
|
+
}
|
|
244
|
+
/* latin */
|
|
245
|
+
@font-face {
|
|
246
|
+
font-family: 'Inter';
|
|
247
|
+
font-style: normal;
|
|
248
|
+
font-weight: 600;
|
|
249
|
+
font-display: swap;
|
|
250
|
+
src: url(./inter-7.woff2) format('woff2');
|
|
251
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
252
|
+
}
|
|
253
|
+
/* cyrillic-ext */
|
|
254
|
+
@font-face {
|
|
255
|
+
font-family: 'Inter';
|
|
256
|
+
font-style: normal;
|
|
257
|
+
font-weight: 700;
|
|
258
|
+
font-display: swap;
|
|
259
|
+
src: url(./inter-1.woff2) format('woff2');
|
|
260
|
+
unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
|
261
|
+
}
|
|
262
|
+
/* cyrillic */
|
|
263
|
+
@font-face {
|
|
264
|
+
font-family: 'Inter';
|
|
265
|
+
font-style: normal;
|
|
266
|
+
font-weight: 700;
|
|
267
|
+
font-display: swap;
|
|
268
|
+
src: url(./inter-2.woff2) format('woff2');
|
|
269
|
+
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
|
270
|
+
}
|
|
271
|
+
/* greek-ext */
|
|
272
|
+
@font-face {
|
|
273
|
+
font-family: 'Inter';
|
|
274
|
+
font-style: normal;
|
|
275
|
+
font-weight: 700;
|
|
276
|
+
font-display: swap;
|
|
277
|
+
src: url(./inter-3.woff2) format('woff2');
|
|
278
|
+
unicode-range: U+1F00-1FFF;
|
|
279
|
+
}
|
|
280
|
+
/* greek */
|
|
281
|
+
@font-face {
|
|
282
|
+
font-family: 'Inter';
|
|
283
|
+
font-style: normal;
|
|
284
|
+
font-weight: 700;
|
|
285
|
+
font-display: swap;
|
|
286
|
+
src: url(./inter-4.woff2) format('woff2');
|
|
287
|
+
unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
|
|
288
|
+
}
|
|
289
|
+
/* vietnamese */
|
|
290
|
+
@font-face {
|
|
291
|
+
font-family: 'Inter';
|
|
292
|
+
font-style: normal;
|
|
293
|
+
font-weight: 700;
|
|
294
|
+
font-display: swap;
|
|
295
|
+
src: url(./inter-5.woff2) format('woff2');
|
|
296
|
+
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
|
|
297
|
+
}
|
|
298
|
+
/* latin-ext */
|
|
299
|
+
@font-face {
|
|
300
|
+
font-family: 'Inter';
|
|
301
|
+
font-style: normal;
|
|
302
|
+
font-weight: 700;
|
|
303
|
+
font-display: swap;
|
|
304
|
+
src: url(./inter-6.woff2) format('woff2');
|
|
305
|
+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
306
|
+
}
|
|
307
|
+
/* latin */
|
|
308
|
+
@font-face {
|
|
309
|
+
font-family: 'Inter';
|
|
310
|
+
font-style: normal;
|
|
311
|
+
font-weight: 700;
|
|
312
|
+
font-display: swap;
|
|
313
|
+
src: url(./inter-7.woff2) format('woff2');
|
|
314
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
315
|
+
}
|
|
316
|
+
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|