mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-24 05:05:20 -04:00
#149 make page title lowercase and matching the domain
This commit is contained in:
parent
b9c5e0b449
commit
0a891b02fa
@ -4,7 +4,7 @@
|
||||
<h1 class="text-nowrap">
|
||||
<nuxt-link to="/">
|
||||
<Icon v="tags"/>
|
||||
<T>title</T>
|
||||
<span class="higher"><T>title</T></span>
|
||||
</nuxt-link>
|
||||
</h1>
|
||||
<!--
|
||||
@ -227,4 +227,9 @@
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
.higher {
|
||||
position: relative;
|
||||
top: -0.1em;
|
||||
}
|
||||
</style>
|
||||
|
@ -1,4 +1,4 @@
|
||||
title: 'Pronouns.page'
|
||||
title: 'en.pronouns.page'
|
||||
description: 'Usage examples of personal pronouns and gender neutral language.'
|
||||
|
||||
home:
|
||||
|
@ -1,4 +1,4 @@
|
||||
title: 'Pronouns.page'
|
||||
title: 'es.pronouns.page'
|
||||
description: 'Ejemplos de uso de pronombres personales y lenguaje neutro.'
|
||||
|
||||
home:
|
||||
|
@ -1,4 +1,4 @@
|
||||
title: 'Zaimki.pl'
|
||||
title: 'zaimki.pl'
|
||||
description: 'Udostępniamy tutaj linki do przykładów użycia zaimków i innych form płciowych – nie tylko normatywnych „on” i „ona”, lecz także form niebinarnych.'
|
||||
|
||||
home:
|
||||
|
@ -47,8 +47,8 @@ router.get('/banner/:pronounName*.png', async (req, res) => {
|
||||
const logo = await loadImage('node_modules/@fortawesome/fontawesome-pro/svgs/light/tags.svg');
|
||||
leftRatio = 5;
|
||||
context.drawImage(logo, width / leftRatio - imageSize / 2, height / 2 - imageSize / 1.25 / 2, imageSize, imageSize / 1.25);
|
||||
context.font = `regular ${translations.title.length < 10 ? 120 : 80}pt Quicksand`;
|
||||
context.fillText(translations.title, width / leftRatio + imageSize / 1.5, height / 2 + (translations.title.length < 10 ? 48 : 36));
|
||||
context.font = `regular ${translations.title.length < 10 ? 120 : translations.title.length < 14 ? 80 : 72}pt Quicksand`;
|
||||
context.fillText(translations.title, width / leftRatio + imageSize / 1.5, height / 2 + (translations.title.length < 10 ? 48 : translations.title.length < 14 ? 24 : 24));
|
||||
}
|
||||
|
||||
if (pronounName.startsWith('@')) {
|
||||
|
@ -186,7 +186,7 @@ router.get('/nouns/:word.png', async (req, res) => {
|
||||
context.font = 'regular 24pt FontAwesome';
|
||||
context.fillText('\uf02c', padding, height - padding);
|
||||
context.font = `regular 24pt Quicksand`;
|
||||
context.fillText(translations.title, padding + 48, height - padding);
|
||||
context.fillText(translations.title, padding + 48, height - padding - 4);
|
||||
|
||||
return res.set('content-type', mime).send(canvas.toBuffer(mime));
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user