From 102f42cf3f4d305b6ba277046f08f404729e73dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Mur=C3=A7a?= Date: Wed, 22 Apr 2026 19:29:19 -0300 Subject: [PATCH] feat: add faq section --- src/lib/sections/Faq.svelte | 93 +++++++++++++++++++++++++++++ src/lib/translations/en-US/faq.json | 30 ++++++++++ src/lib/translations/index.js | 10 ++++ src/lib/translations/pt-BR/faq.json | 30 ++++++++++ src/routes/+page.svelte | 62 +------------------ 5 files changed, 165 insertions(+), 60 deletions(-) create mode 100644 src/lib/sections/Faq.svelte create mode 100644 src/lib/translations/en-US/faq.json create mode 100644 src/lib/translations/pt-BR/faq.json diff --git a/src/lib/sections/Faq.svelte b/src/lib/sections/Faq.svelte new file mode 100644 index 0000000..eae28ff --- /dev/null +++ b/src/lib/sections/Faq.svelte @@ -0,0 +1,93 @@ + + +
+

{$t('faq.title')}

+

+ {$t('faq.intro')} +

+ +
+
+ {$t('faq.items.openPesOnline.summary')} +

{$t('faq.items.openPesOnline.description')}

+
+ +
+ {$t('faq.items.supportedFormats.summary')} +

{$t('faq.items.supportedFormats.description')}

+
+ +
+ {$t('faq.items.needSoftware.summary')} +

{$t('faq.items.needSoftware.description')}

+
+ +
+ {$t('faq.items.isSafe.summary')} +

{$t('faq.items.isSafe.description')}

+
+ +
+ {$t('faq.items.multipleFiles.summary')} +

{$t('faq.items.multipleFiles.description')}

+
+ +
+ {$t('faq.items.mobileSupport.summary')} +

{$t('faq.items.mobileSupport.description')}

+
+
+
+ + diff --git a/src/lib/translations/en-US/faq.json b/src/lib/translations/en-US/faq.json new file mode 100644 index 0000000..0078d65 --- /dev/null +++ b/src/lib/translations/en-US/faq.json @@ -0,0 +1,30 @@ +{ + "title": "Frequently Asked Questions", + "intro": "Learn how to open embroidery files online, supported formats, and how Embroidery Viewer works — all in one place.", + "items": { + "openPesOnline": { + "summary": "How can I open a PES file online?", + "description": "You can open a PES file instantly using Embroidery Viewer. Just drag and drop your file into the browser to preview your embroidery design—no software installation required." + }, + "supportedFormats": { + "summary": "What embroidery file formats are supported?", + "description": "Embroidery Viewer supports popular formats such as PES, DST, and EXP. This allows you to preview most embroidery designs used by home and commercial machines." + }, + "needSoftware": { + "summary": "Do I need to install any embroidery software?", + "description": "No. Embroidery Viewer works entirely in your browser, so you can open embroidery files online without downloading or installing any software." + }, + "isSafe": { + "summary": "Is it safe to use Embroidery Viewer?", + "description": "Yes. Your files are processed locally in your browser and are never uploaded to any server, ensuring complete privacy." + }, + "multipleFiles": { + "summary": "Can I view multiple embroidery files at once?", + "description": "Yes. You can open and compare multiple embroidery files in a single view, making it easier to review and choose designs." + }, + "mobileSupport": { + "summary": "Can I use this on mobile or tablet?", + "description": "Yes. Embroidery Viewer works on desktop, tablet, and mobile devices, as long as you are using a modern web browser." + } + } +} diff --git a/src/lib/translations/index.js b/src/lib/translations/index.js index c10fbd0..f906e69 100644 --- a/src/lib/translations/index.js +++ b/src/lib/translations/index.js @@ -147,6 +147,16 @@ const config = { key: 'features', loader: async () => (await import('./en-US/features.json')).default, }, + { + locale: SUPPORTED_LOCALES.PT_BR, + key: 'faq', + loader: async () => (await import('./pt-BR/faq.json')).default, + }, + { + locale: SUPPORTED_LOCALES.EN_US, + key: 'faq', + loader: async () => (await import('./en-US/faq.json')).default, + }, ], }; diff --git a/src/lib/translations/pt-BR/faq.json b/src/lib/translations/pt-BR/faq.json new file mode 100644 index 0000000..cd1688a --- /dev/null +++ b/src/lib/translations/pt-BR/faq.json @@ -0,0 +1,30 @@ +{ + "title": "Perguntas Frequentes", + "intro": "Saiba como abrir arquivos de bordado online, quais formatos são suportados e como o Embroidery Viewer funciona — tudo em um só lugar.", + "items": { + "openPesOnline": { + "summary": "Como posso abrir um arquivo PES online?", + "description": "Você pode abrir um arquivo PES instantaneamente usando o Embroidery Viewer. Basta arrastar e soltar o arquivo no navegador para visualizar o design de bordado — sem precisar instalar nenhum software." + }, + "supportedFormats": { + "summary": "Quais formatos de arquivos de bordado são suportados?", + "description": "O Embroidery Viewer suporta formatos populares como PES, DST e EXP. Isso permite visualizar a maioria dos designs de bordado usados em máquinas domésticas e industriais." + }, + "needSoftware": { + "summary": "Preciso instalar algum software de bordado?", + "description": "Não. O Embroidery Viewer funciona totalmente no navegador, permitindo abrir arquivos de bordado online sem precisar baixar ou instalar nada." + }, + "isSafe": { + "summary": "É seguro usar o Embroidery Viewer?", + "description": "Sim. Seus arquivos são processados localmente no seu navegador e nunca são enviados para nenhum servidor, garantindo total privacidade." + }, + "multipleFiles": { + "summary": "Posso visualizar vários arquivos de bordado ao mesmo tempo?", + "description": "Sim. Você pode abrir e comparar vários arquivos simultaneamente em uma única visualização, facilitando a análise e escolha dos designs." + }, + "mobileSupport": { + "summary": "Posso usar no celular ou tablet?", + "description": "Sim. O Embroidery Viewer funciona em desktop, tablet e celular, desde que você utilize um navegador moderno." + } + } +} diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 36c02a6..2d38237 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,12 +1,8 @@