mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-24 05:05:20 -04:00
#113 [nouns] dictionary cards / images - move lower
This commit is contained in:
parent
4f73bfa1e4
commit
8a8947d4ab
@ -160,14 +160,14 @@ router.get('/nouns/:word.png', async (req, res) => {
|
|||||||
context.fillStyle = '#000';
|
context.fillStyle = '#000';
|
||||||
|
|
||||||
context.font = 'bold 64pt Quicksand';
|
context.font = 'bold 64pt Quicksand';
|
||||||
context.fillText(base, width / 2 - context.measureText(base).width / 2, 100);
|
context.fillText(base, width / 2 - context.measureText(base).width / 2, 120);
|
||||||
|
|
||||||
for (let [column, key, icon] of [[0, 'masculine', '\uf222'], [1, 'feminine', '\uf221'], [2, 'neuter', '\uf22c']]) {
|
for (let [column, key, icon] of [[0, 'masculine', '\uf222'], [1, 'feminine', '\uf221'], [2, 'neuter', '\uf22c']]) {
|
||||||
context.font = 'regular 24pt FontAwesome';
|
context.font = 'regular 24pt FontAwesome';
|
||||||
context.fillText(icon, column * (width - 2 * padding) / 3 + padding, 172);
|
context.fillText(icon, column * (width - 2 * padding) / 3 + padding, 192);
|
||||||
|
|
||||||
context.font = 'bold 24pt Quicksand';
|
context.font = 'bold 24pt Quicksand';
|
||||||
context.fillText(translations.nouns[key], column * (width - 2 * padding) / 3 + padding + 36, 172);
|
context.fillText(translations.nouns[key], column * (width - 2 * padding) / 3 + padding + 36, 192);
|
||||||
}
|
}
|
||||||
|
|
||||||
context.font = 'regular 24pt Quicksand';
|
context.font = 'regular 24pt Quicksand';
|
||||||
@ -175,7 +175,7 @@ router.get('/nouns/:word.png', async (req, res) => {
|
|||||||
let i = 0;
|
let i = 0;
|
||||||
for (let [key, symbol] of [['', '⋅'], ['Pl', '⁖']])
|
for (let [key, symbol] of [['', '⋅'], ['Pl', '⁖']])
|
||||||
noun[form + key].split('|').forEach(part => {
|
noun[form + key].split('|').forEach(part => {
|
||||||
context.fillText(symbol + ' ' + part, column * (width - 2 * padding) / 3 + padding, 224 + i * 48);
|
context.fillText(symbol + ' ' + part, column * (width - 2 * padding) / 3 + padding, 244 + i * 48);
|
||||||
i++;
|
i++;
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user