Add terms and conditions, format with prettier

This commit is contained in:
wearrrrr 2024-05-06 14:12:39 -05:00
parent a88c5993b0
commit 688d871c15
12 changed files with 4429 additions and 1628 deletions

View file

@ -31,7 +31,7 @@ function log(message) {
const bare = createBareServer("/bare/");
const PORT = process.env.PORT || 3000;
log("Starting Rammerhead...")
log("Starting Rammerhead...");
const rh = createRammerhead();
const rammerheadScopes = [
"/rammerhead.js",

5620
pnpm-lock.yaml generated

File diff suppressed because it is too large Load diff

View file

@ -193,7 +193,7 @@
};
shareButton.onclick = () => {
let currentProxy = localStorage.getItem("alu__selectedProxy");
let proxyFrame = document.getElementById('proxy-frame') as HTMLIFrameElement;
let proxyFrame = document.getElementById("proxy-frame") as HTMLIFrameElement;
if (currentProxy && JSON.parse(currentProxy).value === "rammerhead") {
navigator.clipboard.writeText(
window.location.origin +
@ -204,7 +204,9 @@
);
} else {
navigator.clipboard.writeText(
window.__uv$config.decodeUrl(proxyFrame.contentWindow!.location.href.split('/service/')[1])
window.__uv$config.decodeUrl(
proxyFrame.contentWindow!.location.href.split("/service/")[1]
)
);
}
new Notyf({

View file

@ -19,7 +19,9 @@ const t = i18n.inferLangUseTranslations(Astro.url);
</div>
</div>
<div class="footer-bottom">
<div class="footer-left">
<div class="footer-links">
<Link href="https://discord.gg/unblock" newTab content="Join the discord!" />
<Link href="https://titaniumnetwork.org" newTab content={t("footer.poweredBy")} />
<div class="footer-copyright">
@ -27,6 +29,14 @@ const t = i18n.inferLangUseTranslations(Astro.url);
</div>
</div>
</div>
<div class="footer-right">
<div class="footer-links">
<Link href="/privacy" content="Privacy" />
<Link href="/terms" content="Terms" />
<Link href="https://wearr.dev/contact" content="Contact" />
</div>
</div>
</div>
<style>
.wave-svg-container {
@ -47,7 +57,7 @@ const t = i18n.inferLangUseTranslations(Astro.url);
color: var(--text-color);
position: relative;
padding-top: 275px;
gap: 50px;
gap: 20px;
}
.footer-top,
.footer-bottom {
@ -59,6 +69,17 @@ const t = i18n.inferLangUseTranslations(Astro.url);
font-size: 20px;
}
.footer-bottom {
display: flex;
justify-content: space-between;
}
.footer-links {
display: flex;
gap: 10px;
flex-direction: column;
}
a {
color: var(--text-color);
}

View file

@ -57,10 +57,4 @@ const t = i18n.useTranslations(lang);
.header-item:hover {
color: var(--text-color-accent);
}
@media only screen and (max-width: 1003px) {
.title-background {
width: 500%;
}
}
</style>

View file

@ -15,5 +15,6 @@ const rel = newTab ? "noopener noreferrer" : "";
<style>
a {
color: var(--text-color);
width: fit-content;
}
</style>

View file

@ -2,7 +2,7 @@ type Extension = {
name: string;
script: string;
serviceWorkerExtension: boolean;
}
};
export async function retrieveExtensions() {
const extensionsArr: Array<Extension> = [];
@ -33,8 +33,8 @@ export async function loadExtension(ext: Extension) {
if (ext.serviceWorkerExtension) {
// This needs to be post message'd into the service worker
navigator.serviceWorker.controller?.postMessage({
"listenerType": "fetch",
"payload": ext.script
})
listenerType: "fetch",
payload: ext.script,
});
}
}

View file

@ -80,6 +80,10 @@ const { title, optionalPreloads } = Astro.props;
box-sizing: border-box;
}
body {
color: var(--text-color);
}
[data-theme="mocha"] {
/* Catppucin Mocha theme */
--background-color: #1e1e2e;

View file

@ -96,7 +96,7 @@ export function getStaticPaths() {
suggestionElement.innerText = suggestion.phrase;
suggestionElement.addEventListener("click", async () => {
urlInput.value = suggestion.phrase;
if (window.loadSelectedTransport) await window.loadSelectedTransport()
if (window.loadSelectedTransport) await window.loadSelectedTransport();
if (window.loadFormContent) window.loadFormContent(suggestion.phrase);
});
searchSuggestions.appendChild(suggestionElement);

92
src/pages/privacy.astro Normal file
View file

@ -0,0 +1,92 @@
---
import Link from "@components/UI/Link.astro";
import Layout from "src/layouts/Layout.astro";
---
<Layout title="Privacy Policy | Alu">
<div id="main-content">
<h1 class="title-text">Privacy Policy</h1>
<p>
Alu Project operates the <Link href="https://aluu.xyz" newTab content="https://aluu.xyz" /> website,
which provides this Web Proxy service.
</p>
<p>
This page is used to inform website visitors regarding our policies with the collection, use,
and disclosure of Personal Information if anyone decided to use our Service, the Alu website.
</p>
<p>
If you choose to use our Service, then you agree to the collection and use of information in
relation with this policy. The Personal Information that we collect are used for providing and
improving the Service. We will not use or share your information with anyone except as
described in this Privacy Policy.
</p>
<p>
The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions,
which is accessible at <Link href="https://aluu.xyz" newTab content="https://aluu.xyz" />,
unless otherwise defined in this Privacy Policy.
</p>
<h2><strong>Log Data</strong></h2>
<p>
Whenever you visit our Service, we potentially collect information that your browser sends to
us which we call Log Data. This Log Data may include information such as your computer's IP
address, User Agent, pages of our Service that you visit, the time and date of your visit, and
other statistics.
</p>
<h2><strong>Service Providers</strong></h2>
<p>We may employ third-party companies and individuals due to the following reasons:</p>
<ul>
<li>To facilitate our Service;</li>
<li>To provide the Service on our behalf;</li>
<li>To perform Service-related services; or</li>
<li>To assist us in analyzing how our Service is used.</li>
</ul>
<p>
We want to inform our Service users that these third parties may have access to your Personal
Information. The reason is to perform the tasks assigned to them on our behalf. However, they
are obligated not to disclose or use the information for any other purpose.
</p>
<h2><strong>Security</strong></h2>
<p>
We value your trust in providing us your Personal Information, thus we are striving to use
commercially acceptable means of protecting it. But remember that no method of transmission
over the internet, or method of electronic storage is 100% secure and reliable, and we cannot
guarantee its absolute security.
</p>
<h2><strong>Links to Other Sites</strong></h2>
<p>
Our Service may contain links to other sites. If you click on a third-party link, you will be
directed to that site. Note that these external sites are not operated by us. Therefore, we
strongly advise you to review the Privacy Policy of these websites. We have no control over,
and assume no responsibility for the content, privacy policies, or practices of any
third-party sites or services.
</p>
<h2><strong>Children's Privacy</strong></h2>
<p>
Our Services do not address anyone under the age of 13. We do not knowingly collect personal
identifiable information from children under 13. In the case we discover that a child under 13
has provided us with personal information, we immediately delete this from our servers. If you
are a parent or guardian and you are aware that your child has provided us with personal
information, please contact us so that we will be able to do necessary actions.
</p>
<h2><strong>Changes to This Privacy Policy</strong></h2>
<p>
We may update our Privacy Policy from time to time. Thus, we advise you to review this page
periodically for any changes. We will notify you of any changes by posting the new Privacy
Policy on this page. These changes are effective immediately, after they are posted on this
page.
</p>
<h2><strong>Contact Us</strong></h2>
<p>
If you have any questions or suggestions about our Privacy Policy, do not hesitate to contact
us.
</p>
</div>
</Layout>
<style>
#main-content {
width: 90%;
margin: 0 auto;
}
</style>

217
src/pages/terms.astro Normal file
View file

@ -0,0 +1,217 @@
---
import Layout from "src/layouts/Layout.astro";
---
<Layout title="Terms and Conditions | Alu">
<div id="main-content">
<h2><strong>Terms and Conditions</strong></h2>
<p>Welcome to Alu!</p>
<p>
These terms and conditions outline the rules and regulations for the use of Alu Project's
Website, located at https://aluu.xyz.
</p>
<p>
By accessing this website we assume you accept these terms and conditions. Do not continue to
use Alu if you do not agree to take all of the terms and conditions stated on this page.
</p>
<p>
The following terminology applies to these Terms and Conditions, Privacy Statement and
Disclaimer Notice and all Agreements: "Client", "You" and "Your" refers to you, the person log
on this website and compliant to the Company's terms and conditions. "The Company", "Ourselves",
"We", "Our" and "Us", refers to our Company. "Party", "Parties", or "Us", refers to both the
Client and ourselves. All terms refer to the offer, acceptance and consideration of payment
necessary to undertake the process of our assistance to the Client in the most appropriate
manner for the express purpose of meeting the Client's needs in respect of provision of the
Company's stated services, in accordance with and subject to, prevailing law of us. Any use of
the above terminology or other words in the singular, plural, capitalization and/or he/she or
they, are taken as interchangeable and therefore as referring to same.
</p>
<h3><strong>Cookies</strong></h3>
<p>
We employ the use of cookies. By accessing Alu, you agreed to use cookies in agreement with the
Alu Project's Privacy Policy.
</p>
<p>
Most interactive websites use cookies to let us retrieve the user's details for each visit.
Cookies are used by our website to enable the functionality of certain areas to make it easier
for people visiting our website. Some of our affiliate/advertising partners may also use
cookies.
</p>
<h3><strong>License</strong></h3>
<p>
Unless otherwise stated, Alu Project and/or its licensors own the intellectual property rights
for all material on Alu. All intellectual property rights are reserved. You may access this from
Alu for your own personal use subjected to restrictions set in these terms and conditions.
</p>
<p>You must not:</p>
<ul>
<li>Republish material from Alu</li>
<li>Sell, rent or sub-license material from Alu</li>
<li>Reproduce, duplicate or copy material from Alu</li>
<li>Redistribute content from Alu</li>
</ul>
<p>This Agreement shall begin on the date hereof.</p>
<h3><strong>Hyperlinking to our Content</strong></h3>
<p>The following organizations may link to our Website without prior written approval:</p>
<ul>
<li>Government agencies;</li>
<li>Search engines;</li>
<li>News organizations;</li>
<li>
Online directory distributors may link to our Website in the same manner as they hyperlink to
the Websites of other listed businesses; and
</li>
<li>
System wide Accredited Businesses except soliciting non-profit organizations, charity shopping
malls, and charity fundraising groups which may not hyperlink to our Web site.
</li>
</ul>
<p>
These organizations may link to our home page, to publications or to other Website information
so long as the link: (a) is not in any way deceptive; (b) does not falsely imply sponsorship,
endorsement or approval of the linking party and its products and/or services; and (c) fits
within the context of the linking party's site.
</p>
<p>We may consider and approve other link requests from the following types of organizations:</p>
<ul>
<li>commonly-known consumer and/or business information sources;</li>
<li>dot.com community sites;</li>
<li>associations or other groups representing charities;</li>
<li>online directory distributors;</li>
<li>internet portals;</li>
<li>accounting, law and consulting firms; and</li>
<li>educational institutions and trade associations.</li>
</ul>
<p>
We will approve link requests from these organizations if we decide that: (a) the link would not
make us look unfavorably to ourselves or to our accredited businesses; (b) the organization does
not have any negative records with us; (c) the benefit to us from the visibility of the
hyperlink compensates the absence of Alu Project; and (d) the link is in the context of general
resource information.
</p>
<p>
These organizations may link to our home page so long as the link: (a) is not in any way
deceptive; (b) does not falsely imply sponsorship, endorsement or approval of the linking party
and its products or services; and (c) fits within the context of the linking party's site.
</p>
<p>
If you are one of the organizations listed in paragraph 2 above and are interested in linking to
our website, you must inform us by sending an e-mail to Alu Project. Please include your name,
your organization name, contact information as well as the URL of your site, a list of any URLs
from which you intend to link to our Website, and a list of the URLs on our site to which you
would like to link. Wait 2-3 weeks for a response.
</p>
<p>Approved organizations may hyperlink to our Website as follows:</p>
<ul>
<li>By use of our corporate name; or</li>
<li>By use of the uniform resource locator being linked to; or</li>
<li>
By use of any other description of our Website being linked to that makes sense within the
context and format of content on the linking party's site.
</li>
</ul>
<p>
No use of Alu Project's logo or other artwork will be allowed for linking absent a trademark
license agreement.
</p>
<h3><strong>iFrames</strong></h3>
<p>
Without prior approval and written permission, you may not create frames around our Webpages
that alter in any way the visual presentation or appearance of our Website.
</p>
<h3><strong>Content Liability</strong></h3>
<p>
We shall not be hold responsible for any content that appears on your Website. You agree to
protect and defend us against all claims that is rising on your Website. No link(s) should
appear on any Website that may be interpreted as libelous, obscene or criminal, or which
infringes, otherwise violates, or advocates the infringement or other violation of, any third
party rights.
</p>
<h3><strong>Reservation of Rights</strong></h3>
<p>
We reserve the right to request that you remove all links or any particular link to our Website.
You approve to immediately remove all links to our Website upon request. We also reserve the
right to amen these terms and conditions and it's linking policy at any time. By continuously
linking to our Website, you agree to be bound to and follow these linking terms and conditions.
</p>
<h3><strong>Removal of links from our website</strong></h3>
<p>
If you find any link on our Website that is offensive for any reason, you are free to contact
and inform us any moment. We will consider requests to remove links but we are not obligated to
or so or to respond to you directly.
</p>
<p>
We do not ensure that the information on this website is correct, we do not warrant its
completeness or accuracy; nor do we promise to ensure that the website remains available or that
the material on the website is kept up to date.
</p>
<h3><strong>Disclaimer</strong></h3>
<p>
To the maximum extent permitted by applicable law, we exclude all representations, warranties
and conditions relating to our website and the use of this website. Nothing in this disclaimer
will:
</p>
<ul>
<li>limit or exclude our or your liability for death or personal injury;</li>
<li>limit or exclude our or your liability for fraud or fraudulent misrepresentation;</li>
<li>
limit any of our or your liabilities in any way that is not permitted under applicable law; or
</li>
<li>exclude any of our or your liabilities that may not be excluded under applicable law.</li>
</ul>
<p>
The limitations and prohibitions of liability set in this Section and elsewhere in this
disclaimer: (a) are subject to the preceding paragraph; and (b) govern all liabilities arising
under the disclaimer, including liabilities arising in contract, in tort and for breach of
statutory duty.
</p>
<p>
As long as the website and the information and services on the website are provided free of
charge, we will not be liable for any loss or damage of any nature.
</p>
</div>
</Layout>
<style>
#main-content {
width: 90%;
margin: 0 auto;
}
</style>