mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-24 05:05:20 -04:00
#19 formy wymienne - banner
This commit is contained in:
parent
a410f8f5fc
commit
c4c6fe9b76
@ -47,8 +47,9 @@ export default async function (req, res, next) {
|
|||||||
context.font = 'regular 48pt Quicksand'
|
context.font = 'regular 48pt Quicksand'
|
||||||
context.fillText('Moje zaimki to:', width / leftRatio + imageSize / 1.5, height / 2 - 36)
|
context.fillText('Moje zaimki to:', width / leftRatio + imageSize / 1.5, height / 2 - 36)
|
||||||
|
|
||||||
context.font = 'bold 70pt Quicksand'
|
const templateNameOptions = template.nameOptions();
|
||||||
context.fillText(template.name(), width / leftRatio + imageSize / 1.5, height / 2 + 72)
|
context.font = `bold ${templateNameOptions.length <= 2 ? '70' : '36'}pt Quicksand`
|
||||||
|
context.fillText(templateNameOptions.join('\n'), width / leftRatio + imageSize / 1.5, height / 2 + (templateNameOptions.length <= 2 ? 72 : 24))
|
||||||
} else {
|
} else {
|
||||||
context.font = 'regular 120pt Quicksand'
|
context.font = 'regular 120pt Quicksand'
|
||||||
context.fillText('Zaimki.pl', width / leftRatio + imageSize / 1.5, height / 2 + 48)
|
context.fillText('Zaimki.pl', width / leftRatio + imageSize / 1.5, height / 2 + 48)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user