Update faq section to be a bit better

This commit is contained in:
wearrrrr 2024-04-15 12:14:26 -05:00
parent 645fd818d4
commit f1a56b9f91
4 changed files with 70 additions and 54 deletions

View file

@ -12,11 +12,13 @@
"menu.welcome": "Welcome to Alu", "menu.welcome": "Welcome to Alu",
"menu.search": "Search the web...", "menu.search": "Search the web...",
"faq.title": "Frequently Asked Questions",
"faq.whatIsAProxy": "What is a proxy?", "faq.whatIsAProxy": "What is a proxy?",
"faq.whatIsAProxy.answer": "A proxy is a method of making your internet traffic anonymous by sending your request to a server (proxy), having that make the request, and then send it back to you! This allows for a much larger level of security, as well as bypassing website restrictions in public spaces and censorship.", "faq.whatIsAProxy.answer": "A proxy is a method of making your internet traffic anonymous by sending your request to a server (proxy), having that make the request, and then send it back to you! This allows for a much larger level of security, as well as bypassing website restrictions in public spaces and censorship.",
"faq.whyIsAluSoSlow": "Why is Alu so slow?", "faq.noBareClients": "What does \"there are no bare clients\" mean?",
"faq.whyIsAluSoSlow.answer": "This could be for a number of reasons, but it is most likely due to the proxy you are using. If you are far away from where Alu is hosted, it will take longer for the request to be sent and received. If the proxy you are using is congested with traffic, it will also be slower.", "faq.noBareClients.answer": "There are a couple reasons this particular error happens, but it's most commonly an issue with the proxy failing to load. Please reload the page, and if the problem persists, make a GitHub issue!",
"faq.contributeToAlu": "How can I contribute to Alu?", "faq.contributeToAlu": "How can I contribute to Alu?",
"faq.contributeToAlu.answer.segment1": "Spreading the word of Alu is a great start, but if you really enjoy Alu, and want private links, consider supporting me through Patreon!", "faq.contributeToAlu.answer.segment1": "Spreading the word of Alu is a great start, but if you really enjoy Alu, and want private links, consider supporting me through Patreon!",

View file

@ -12,11 +12,13 @@
"menu.welcome": "アルーにようこそ", "menu.welcome": "アルーにようこそ",
"menu.search": "ウェブを検索する...", "menu.search": "ウェブを検索する...",
"faq.title": "よくある質問",
"faq.whatIsAProxy": "プロキシとは何ですか?", "faq.whatIsAProxy": "プロキシとは何ですか?",
"faq.whatIsAProxy.answer": "プロキシは、ウェブサイトにアクセスするための中継サーバーです。プロキシを使用すると、ウェブサイトにアクセスする際に自分のIPアドレスを隠すことができます。", "faq.whatIsAProxy.answer": "プロキシは、ウェブサイトにアクセスするための中継サーバーです。プロキシを使用すると、ウェブサイトにアクセスする際に自分のIPアドレスを隠すことができます。",
"faq.whyIsAluSoSlow": "なぜアルーは遅いのですか?", "faq.noBareClients": "「there are no bare clients.」とはどういう意味ですか?",
"faq.whyIsAluSoSlow.answer": "アルーは、プロキシを使用してウェブサイトにアクセスするため、ウェブサイトの読み込みに時間がかかることがあります。また、アルーはまだ開発中のため、パフォーマンスが低いことがあります。", "faq.noBareClients.answer": "このエラーはやや一般的で、通常はプロキシのロードに失敗したことを意味します。ページをリロードするか、GitHub に問題を作成してください。",
"faq.contributeToAlu": "アルーの発展にどのように貢献できますか?", "faq.contributeToAlu": "アルーの発展にどのように貢献できますか?",
"faq.contributeToAlu.answer.segment1": "アルーの言葉を広めることは素晴らしいスタートですが、Alu が本当に好きで、プライベート リンクが必要な場合は、Patreon を通じて私をサポートすることを検討してください。", "faq.contributeToAlu.answer.segment1": "アルーの言葉を広めることは素晴らしいスタートですが、Alu が本当に好きで、プライベート リンクが必要な場合は、Patreon を通じて私をサポートすることを検討してください。",

View file

@ -15,6 +15,7 @@ export function getStaticPaths() {
<Layout title={t("pages.home")}> <Layout title={t("pages.home")}>
<main id="main-content"> <main id="main-content">
<h1 class="title-text">{t("menu.welcome")}</h1> <h1 class="title-text">{t("menu.welcome")}</h1>
<section id="proxy-input">
<div class="form-wrapper"> <div class="form-wrapper">
<form class="url-input-form" id="url-input-form"> <form class="url-input-form" id="url-input-form">
<Input <Input
@ -44,17 +45,15 @@ export function getStaticPaths() {
</div> </div>
<iframe title="proxy-iframe" id="proxy-frame"></iframe> <iframe title="proxy-iframe" id="proxy-frame"></iframe>
</div> </div>
</section>
<section id="faq">
<h2 class="faq-title">{t("faq.title")}</h2>
<div class="faq-section"> <div class="faq-section">
<div class="faq-card"> <div class="faq-card">
<h2>{t("faq.whatIsAProxy")}</h2> <h2>{t("faq.whatIsAProxy")}</h2>
<p>{t("faq.whatIsAProxy.answer")}</p> <p>{t("faq.whatIsAProxy.answer")}</p>
</div> </div>
<div class="faq-card"> <div class="faq-card">
<h2>{t("faq.whyIsAluSoSlow")}</h2>
<p>{t("faq.whyIsAluSoSlow.answer")}</p>
</div>
<div class="faq-card faq-large">
<h2>{t("faq.contributeToAlu")}</h2> <h2>{t("faq.contributeToAlu")}</h2>
<p> <p>
{t("faq.contributeToAlu.answer.segment1")} {t("faq.contributeToAlu.answer.segment1")}
@ -66,7 +65,12 @@ export function getStaticPaths() {
{t("faq.contributeToAlu.answer.segment2")} {t("faq.contributeToAlu.answer.segment2")}
</p> </p>
</div> </div>
<div class="faq-card faq-large">
<h2>{t("faq.noBareClients")}</h2>
<p>{t("faq.noBareClients.answer")}</p>
</div> </div>
</div>
</section>
</main> </main>
<ProxyRegistrar /> <ProxyRegistrar />
<script> <script>
@ -220,13 +224,20 @@ export function getStaticPaths() {
transition: 250ms ease-in-out; transition: 250ms ease-in-out;
text-align: center; text-align: center;
} }
.faq-title {
color: var(--text-color);
width: 90%;
margin: 0 auto;
margin-top: 30px;
}
.faq-section { .faq-section {
display: grid; display: grid;
grid-template-columns: repeat(2, 1fr); grid-template-columns: repeat(2, 1fr);
gap: 20px; gap: 20px;
margin: 0 auto; margin: 20px auto 0;
width: 90%; width: 90%;
margin-top: 40px;
} }
.faq-card { .faq-card {

View file

@ -396,6 +396,7 @@ export function getStaticPaths() {
#current-content { #current-content {
transition: opacity 250ms ease-in-out; transition: opacity 250ms ease-in-out;
margin-left: 20px; margin-left: 20px;
height: 400px;
} }
.settings-container { .settings-container {
display: flex; display: flex;