Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions components/ecosystem/Favorites.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ export default function Favorites(props: Props) {
<Button
text={
<FormattedMessage
defaultMessage="TRY OUT MEWFUND"
id="components.favorites.mewFund"
defaultMessage="ALL CROWDFUNDING OPTIONS ON ERGO"
id="components.favorites.crowdFund"
/>
}
url="http://fund.mewfinance.com"
url="https://docs.ergoplatform.com/uses/crowdfunding/"
newTab={true}
background={true}
textColor="white"
Expand Down
12 changes: 8 additions & 4 deletions components/home/UsingErg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ export default function UsingErg() {
let newFontSize = 96; // start at desktop target for short titles

// Measure width of each word separately and sum with line breaks
const words = intl.formatMessage({ id: 'components.usingErg.title', defaultMessage: 'GET ERG' }).split(' ');
const words = intl
.formatMessage({ id: 'components.usingErg.title', defaultMessage: 'GET ERG' })
.split(' ');
const totalChars = words.join('').length;
const minBound = totalChars <= 7 ? 72 : 32; // keep short titles larger
const canvas = document.createElement('canvas');
Expand All @@ -91,7 +93,7 @@ export default function UsingErg() {

context.font = `${newFontSize}px Arial, sans-serif`;
let totalWidth = 0;
words.forEach(word => {
words.forEach((word) => {
const metrics = context.measureText(word);
totalWidth = Math.max(totalWidth, metrics.width);
});
Expand All @@ -101,7 +103,7 @@ export default function UsingErg() {
newFontSize -= 1;
context.font = `${newFontSize}px Arial, sans-serif`;
totalWidth = 0;
words.forEach(word => {
words.forEach((word) => {
const metrics = context.measureText(word);
totalWidth = Math.max(totalWidth, metrics.width);
});
Expand All @@ -115,7 +117,9 @@ export default function UsingErg() {
return () => window.removeEventListener('resize', adjustFontSize);
}, [intl]);

const titleWords = intl.formatMessage({ id: 'components.usingErg.title', defaultMessage: 'GET ERG' }).split(' ');
const titleWords = intl
.formatMessage({ id: 'components.usingErg.title', defaultMessage: 'GET ERG' })
.split(' ');

return (
<div
Expand Down
3 changes: 3 additions & 0 deletions components/shared/Post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ export default function Post({
alt=""
layout="fill"
sizes="(max-width: 1280px) 100vw, 384px"
priority={false}
quality={75}
placeholder="empty"
/>
</div>
)}
Expand Down
4 changes: 2 additions & 2 deletions content/compiled-locales/cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -765,10 +765,10 @@
"value": "探索ERGO RAFFLE"
}
],
"components.favorites.mewFund": [
"components.favorites.crowdFund": [
{
"type": 0,
"value": "试用 MEWFUND"
"value": "所有 ERGO 众筹选项"
}
],
"components.favorites.raffleV2": [
Expand Down
4 changes: 2 additions & 2 deletions content/compiled-locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -793,10 +793,10 @@
"value": "ERKUNDE ERGO RAFFLE"
}
],
"components.favorites.mewFund": [
"components.favorites.crowdFund": [
{
"type": 0,
"value": "PROBIERE MEWFUND AUS"
"value": "ALLE CROWDFUNDING-OPTIONEN AUF ERGO"
}
],
"components.favorites.raffleV2": [
Expand Down
4 changes: 2 additions & 2 deletions content/compiled-locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -661,10 +661,10 @@
"value": "EXPLORE ERGO RAFFLE"
}
],
"components.favorites.mewFund": [
"components.favorites.crowdFund": [
{
"type": 0,
"value": "TRY OUT MEWFUND"
"value": "ALL CROWDFUNDING OPTIONS ON ERGO"
}
],
"components.favorites.raffleV2": [
Expand Down
4 changes: 2 additions & 2 deletions content/compiled-locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -769,10 +769,10 @@
"value": "EXPLORAR SORTEO DE ERGO"
}
],
"components.favorites.mewFund": [
"components.favorites.crowdFund": [
{
"type": 0,
"value": "PRUEBA MEWFUND"
"value": "TODAS LAS OPCIONES DE CROWDFUNDING EN ERGO"
}
],
"components.favorites.raffleV2": [
Expand Down
4 changes: 2 additions & 2 deletions content/compiled-locales/hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -749,10 +749,10 @@
"value": "ERGO RAFFLE FELFEDEZÉSE"
}
],
"components.favorites.mewFund": [
"components.favorites.crowdFund": [
{
"type": 0,
"value": "PRÓBÁLD KI A MEWFUND-OT"
"value": "MINDEN CROWDFUNDING LEHETŐSÉG ERGON"
}
],
"components.favorites.raffleV2": [
Expand Down
4 changes: 2 additions & 2 deletions content/compiled-locales/id.json
Original file line number Diff line number Diff line change
Expand Up @@ -669,10 +669,10 @@
"value": "JELAJAHI ERGO RAFFLE"
}
],
"components.favorites.mewFund": [
"components.favorites.crowdFund": [
{
"type": 0,
"value": "COBA MEWFUND"
"value": "SEMUA OPSI CROWDFUNDING DI ERGO"
}
],
"components.favorites.raffleV2": [
Expand Down
4 changes: 2 additions & 2 deletions content/compiled-locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -755,10 +755,10 @@
"value": "ESPLORA ERGO RAFFLE"
}
],
"components.favorites.mewFund": [
"components.favorites.crowdFund": [
{
"type": 0,
"value": "PROVA MEWFUND"
"value": "TUTTE LE OPZIONI DI CROWDFUNDING SU ERGO"
}
],
"components.favorites.raffleV2": [
Expand Down
4 changes: 2 additions & 2 deletions content/compiled-locales/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -765,10 +765,10 @@
"value": "ODKRYJ ERGO RAFFLE"
}
],
"components.favorites.mewFund": [
"components.favorites.crowdFund": [
{
"type": 0,
"value": "WYPRÓBUJ MEWFUND"
"value": "WSZYSTKIE OPCJE CROWDFUNDINGU NA ERGO"
}
],
"components.favorites.raffleV2": [
Expand Down
4 changes: 2 additions & 2 deletions content/compiled-locales/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -769,10 +769,10 @@
"value": "EXPLORE O ERGO RAFFLE"
}
],
"components.favorites.mewFund": [
"components.favorites.crowdFund": [
{
"type": 0,
"value": "EXPERIMENTE O MEWFUND"
"value": "TODAS AS OPÇÕES DE CROWDFUNDING NO ERGO"
}
],
"components.favorites.raffleV2": [
Expand Down
4 changes: 2 additions & 2 deletions content/compiled-locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -765,10 +765,10 @@
"value": "УЗНАТЬ ОБ ERGO RAFFLE"
}
],
"components.favorites.mewFund": [
"components.favorites.crowdFund": [
{
"type": 0,
"value": "ПОПРОБОВАТЬ MEWFUND"
"value": "ВСЕ ВАРИАНТЫ КРАУДФАНДИНГА НА ERGO"
}
],
"components.favorites.raffleV2": [
Expand Down
2 changes: 1 addition & 1 deletion content/compiled-locales/sk.json
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@
"value": "EXPLORE ERGO RAFFLE"
}
],
"components.favorites.mewFund": [
"components.favorites.crowdFund": [
{
"type": 0,
"value": "TRY OUT MEWFUND"
Expand Down
2 changes: 1 addition & 1 deletion content/compiled-locales/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@
"value": "ERGO ÇEKİLİŞLERİNİ KEŞFET"
}
],
"components.favorites.mewFund": [
"components.favorites.crowdFund": [
{
"type": 0,
"value": "MEWFUND'U DENE"
Expand Down
4 changes: 2 additions & 2 deletions content/locales/PL.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"components.faq.loading": "Ładowanie...",
"components.faq.text.2": "NIE MOŻESZ ZNALEŹĆ TEGO, {breakingLine} CZEGO SZUKASZ?",
"components.favorites.button1": "ODKRYJ ERGO RAFFLE",
"components.favorites.mewFund": "WYPRÓBUJ MEWFUND",
"components.favorites.crowdFund": "WSZYSTKIE OPCJE CROWDFUNDINGU NA ERGO",
"components.favorites.raffleV2": "PRZECZYTAJ O RAFFLE V2",
"components.featureCard.noImage": "Brak obrazu",
"components.grantsAndBounties.button1": "BONUSY",
Expand Down Expand Up @@ -290,4 +290,4 @@
"secondaryMenu.roadmap": "ROADMAP",
"secondaryMenu.sigmaverse": "SIGMAVERSE",
"secondaryMenu.wallets": "PORTFELE"
}
}
4 changes: 2 additions & 2 deletions content/locales/cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"components.faq.loading": "加载中...",
"components.faq.text.2": "找不到{breakingLine}您在找的内容?",
"components.favorites.button1": "探索ERGO RAFFLE",
"components.favorites.mewFund": "试用 MEWFUND",
"components.favorites.crowdFund": "所有 ERGO 众筹选项",
"components.favorites.raffleV2": "阅读关于 RAFFLE V2",
"components.featureCard.noImage": "无图片",
"components.grantsAndBounties.button1": "贡献",
Expand Down Expand Up @@ -291,4 +291,4 @@
"components.mining.button3": "Discord",
"components.mining.button4": "Subreddit",
"components.mining.button5": "挖矿博客文章"
}
}
4 changes: 2 additions & 2 deletions content/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"components.faq.loading": "Laden...",
"components.faq.text.2": "DU FINDEST NICHT, {breakingLine} WONACH DU SUCHST?",
"components.favorites.button1": "ERKUNDE ERGO RAFFLE",
"components.favorites.mewFund": "PROBIERE MEWFUND AUS",
"components.favorites.crowdFund": "ALLE CROWDFUNDING-OPTIONEN AUF ERGO",
"components.favorites.raffleV2": "LIES MEHR ÜBER RAFFLE V2",
"components.featureCard.noImage": "Kein Bild",
"components.grantsAndBounties.button1": "PRÄMIEN",
Expand Down Expand Up @@ -290,4 +290,4 @@
"components.mining.button3": "Discord",
"components.mining.button4": "Subreddit",
"components.mining.button5": "Mining-Blog-Posts"
}
}
2 changes: 1 addition & 1 deletion content/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"components.faq.loading": "Loading...",
"components.faq.text.2": "CAN'T FIND WHAT {breakingLine} YOU’RE LOOKING FOR?",
"components.favorites.button1": "EXPLORE ERGO RAFFLE",
"components.favorites.mewFund": "TRY OUT MEWFUND",
"components.favorites.crowdFund": "ALL CROWDFUNDING OPTIONS ON ERGO",
"components.favorites.raffleV2": "READ ABOUT RAFFLE V2",
"components.featureCard.noImage": "No image",
"components.getErg.BuyIt.text": "Available across popular centralized and decentralized exchanges.",
Expand Down
4 changes: 2 additions & 2 deletions content/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"components.faq.loading": "Cargando...",
"components.faq.text.2": "¿NO ENCUENTRAS LO QUE {breakingLine} BUSCAS?",
"components.favorites.button1": "EXPLORAR SORTEO DE ERGO",
"components.favorites.mewFund": "PRUEBA MEWFUND",
"components.favorites.crowdFund": "TODAS LAS OPCIONES DE CROWDFUNDING EN ERGO",
"components.favorites.raffleV2": "LEE SOBRE RAFFLE V2",
"components.featureCard.noImage": "Sin imagen",
"components.grantsAndBounties.button1": "CONTRIBUIR",
Expand Down Expand Up @@ -290,4 +290,4 @@
"secondaryMenu.roadmap": "HOJA DE RUTA",
"secondaryMenu.sigmaverse": "SIGMAVERSE",
"secondaryMenu.wallets": "BILLETERAS"
}
}
4 changes: 2 additions & 2 deletions content/locales/hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"components.faq.loading": "Betöltés...",
"components.faq.text.2": "NEM TALÁLOD, {breakingLine} AMIT KERESTÉL?",
"components.favorites.button1": "ERGO RAFFLE FELFEDEZÉSE",
"components.favorites.mewFund": "PRÓBÁLD KI A MEWFUND-OT",
"components.favorites.crowdFund": "MINDEN CROWDFUNDING LEHETŐSÉG ERGON",
"components.favorites.raffleV2": "OLVASS A RAFFLE V2-RŐL",
"components.featureCard.noImage": "Nincs kép",
"components.grantsAndBounties.button1": "ADOMÁNYOK",
Expand Down Expand Up @@ -285,4 +285,4 @@
"secondaryMenu.roadmap": "ÜTEMTERV",
"secondaryMenu.sigmaverse": "SIGMAVERSE",
"secondaryMenu.wallets": "TÁRCÁK"
}
}
4 changes: 2 additions & 2 deletions content/locales/id.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"components.faq.loading": "Memuat...",
"components.faq.text.2": "TIDAK MENEMUKAN APA {breakingLine} YANG ANDA CARI?",
"components.favorites.button1": "JELAJAHI ERGO RAFFLE",
"components.favorites.mewFund": "COBA MEWFUND",
"components.favorites.crowdFund": "SEMUA OPSI CROWDFUNDING DI ERGO",
"components.favorites.raffleV2": "BACA TENTANG RAFFLE V2",
"components.featureCard.noImage": "Tidak ada gambar",
"components.getErg.BuyIt.text": "Tersedia di berbagai bursa terpusat dan terdesentralisasi yang populer.",
Expand Down Expand Up @@ -255,4 +255,4 @@
"secondaryMenu.roadmap": "PETA JALAN",
"secondaryMenu.sigmaverse": "SIGMAVERSE",
"secondaryMenu.wallets": "DOMPET"
}
}
4 changes: 2 additions & 2 deletions content/locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"components.faq.loading": "Caricamento...",
"components.faq.text.2": "NON TROVI QUELLO {breakingLine}CHE CERCHI?",
"components.favorites.button1": "ESPLORA ERGO RAFFLE",
"components.favorites.mewFund": "PROVA MEWFUND",
"components.favorites.crowdFund": "TUTTE LE OPZIONI DI CROWDFUNDING SU ERGO",
"components.favorites.raffleV2": "LEGGI SU RAFFLE V2",
"components.featureCard.noImage": "Nessuna immagine",
"components.grantsAndBounties.button1": "BOUNTIES",
Expand Down Expand Up @@ -290,4 +290,4 @@
"components.mining.button3": "DISCORD",
"components.mining.button4": "SUBREDDIT",
"components.mining.button5": "POST DEL BLOG DI MINING"
}
}
4 changes: 2 additions & 2 deletions content/locales/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"components.faq.loading": "Carregando...",
"components.faq.text.2": "NÃO CONSEGUE ACHAR O QUE {breakingLine} ESTÁ PROCURANDO?",
"components.favorites.button1": "EXPLORE O ERGO RAFFLE",
"components.favorites.mewFund": "EXPERIMENTE O MEWFUND",
"components.favorites.crowdFund": "TODAS AS OPÇÕES DE CROWDFUNDING NO ERGO",
"components.favorites.raffleV2": "LEIA SOBRE O RAFFLE V2",
"components.featureCard.noImage": "Sem imagem",
"components.grantsAndBounties.button1": "PRÊMIOS",
Expand Down Expand Up @@ -290,4 +290,4 @@
"secondaryMenu.roadmap": "ROADMAP",
"secondaryMenu.sigmaverse": "SIGMAVERSE",
"secondaryMenu.wallets": "CARTEIRAS"
}
}
4 changes: 2 additions & 2 deletions content/locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"components.faq.loading": "Загрузка...",
"components.faq.text.2": "НЕ МОЖЕТЕ НАЙТИ ТО, {breakingLine} ЧТО ИЩЕТЕ?",
"components.favorites.button1": "УЗНАТЬ ОБ ERGO RAFFLE",
"components.favorites.mewFund": "ПОПРОБОВАТЬ MEWFUND",
"components.favorites.crowdFund": "ВСЕ ВАРИАНТЫ КРАУДФАНДИНГА НА ERGO",
"components.favorites.raffleV2": "ПРОЧИТАТЬ О RAFFLE V2",
"components.featureCard.noImage": "Нет изображения",
"components.grantsAndBounties.button1": "СОТРУДНИЧЕСТВО",
Expand Down Expand Up @@ -290,4 +290,4 @@
"secondaryMenu.roadmap": "ДОРОЖНАЯ КАРТА",
"secondaryMenu.sigmaverse": "SIGMAVERSE",
"secondaryMenu.wallets": "КОШЕЛЬКИ"
}
}
2 changes: 1 addition & 1 deletion content/locales/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"components.faq.loading": "Yükleniyor...",
"components.faq.text.2": "ARADIĞINIZI {breakingLine} BULAMIYOR MUSUNUZ?",
"components.favorites.button1": "ERGO ÇEKİLİŞLERİNİ KEŞFET",
"components.favorites.mewFund": "MEWFUND'U DENE",
"components.favorites.crowdFund": "MEWFUND'U DENE",
"components.favorites.raffleV2": "RAFFLE V2 HAKKINDA OKU",
"components.featureCard.noImage": "Resim yok",
"components.getErg.BuyIt.text": "Popüler merkezi ve merkezi olmayan borsalarda mevcuttur.",
Expand Down
3 changes: 3 additions & 0 deletions styles/markdown-body.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

body > *:first-child {
margin-top: 0 !important; }
.dark .markdown-body table tr th {
color: black;
}
body > *:last-child {
margin-bottom: 0 !important; }

Expand Down