diff --git a/src/layout/Hero/HeroImage.svelte b/src/layout/Hero/HeroImage.svelte index 8a98905..3cb4e15 100644 --- a/src/layout/Hero/HeroImage.svelte +++ b/src/layout/Hero/HeroImage.svelte @@ -27,7 +27,7 @@ } @media (max-width: 1700px) { .hero-img { - position: fixed; + position: absolute; height: 100vh; top: 115px; right: 6rem; diff --git a/src/lib/components/Wave.svelte b/src/lib/components/Wave.svelte index d3031e2..5aa0c04 100644 --- a/src/lib/components/Wave.svelte +++ b/src/lib/components/Wave.svelte @@ -4,7 +4,7 @@ diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 7db54c8..5bef71a 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -110,6 +110,7 @@ + It's your choice diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 8e10d65..efe81ba 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -168,7 +168,6 @@ .wrap { margin-inline: auto; width: min(87%, 100rem); - margin-top: 7rem; } .wrappezoid { height: calc(100vh - 225px); diff --git a/src/routes/donate/+page.svelte b/src/routes/donate/+page.svelte index 4732a0f..4836fe1 100644 --- a/src/routes/donate/+page.svelte +++ b/src/routes/donate/+page.svelte @@ -211,7 +211,6 @@ main { display: flex; flex-direction: column; - margin-top: 7rem; // support revanced and heart thingy section { diff --git a/src/routes/patches/+page.svelte b/src/routes/patches/+page.svelte index 5324010..d92d361 100644 --- a/src/routes/patches/+page.svelte +++ b/src/routes/patches/+page.svelte @@ -207,7 +207,7 @@ } .search { - padding-top: 5rem; + padding-top: 0.6rem; padding-bottom: 1.25rem; background-color: var(--surface-eight); } @@ -258,10 +258,6 @@ display: none; } - .search { - padding-top: 4.5rem; - } - .patches-container { margin-top: 1rem; margin-bottom: 1.5rem; From bdec31ac6e4e6a34ca0b20745fe6f29bf6faad0b Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Mon, 17 Feb 2025 02:06:40 +0100 Subject: [PATCH 07/18] fix: Use default GitHub token instead of expired PAT --- .github/workflows/deploy.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5dfe08a..305a076 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -21,26 +21,31 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Install Node.js + uses: actions/setup-node@v4 + with: + cache: npm + + - name: Install dependencies + run: npm i + - name: Build env: RV_API_URL: ${{ vars.RV_API_URL }} RV_GOOGLE_TAG_MANAGER_ID: ${{ vars.RV_GOOGLE_TAG_MANAGER_ID }} RV_DMCA_GUID: ${{ vars.RV_DMCA_GUID }} - run: | - npm i - npm run build + run: npm run build - name: Deploy + id: deploy uses: cloudflare/wrangler-action@v3 with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} command: pages deploy public --project-name=revanced-website - id: deploy - name: Comment deployment URL if: ${{ github.event_name == 'pull_request' }} uses: thollander/actions-comment-pull-request@v2 with: - GITHUB_TOKEN: ${{ secrets.PULL_REQUESTS_WRITE }} - message: Deployed at ${{ steps.deploy.outputs.pages-deployment-alias-url }}. + message: Deployed at ${{ steps.deploy.outputs.deployment-url }}. From 54a0dd7350abd6f4e2cea99bc985f2a850793c3d Mon Sep 17 00:00:00 2001 From: PalmDevs Date: Sun, 4 May 2025 22:35:30 +0700 Subject: [PATCH 08/18] chore: Apply lint fixes --- src/data/RouterEvents.ts | 34 +++++++++++++++++----------------- src/data/api/index.ts | 16 ++++++++-------- src/data/api/settings.ts | 2 +- 3 files changed, 26 insertions(+), 26 deletions(-) diff --git a/src/data/RouterEvents.ts b/src/data/RouterEvents.ts index ed5cf07..29459a1 100644 --- a/src/data/RouterEvents.ts +++ b/src/data/RouterEvents.ts @@ -18,24 +18,24 @@ function makeStore(): Readable { return derived(page, ($page) => { return { navigating: false, target_url: $page.url }; }); - } else { - // On client. - let current = new URL(location.href); - - // Return store that responds to navigation events. - // The `navigating` store immediately "pushes" `null`. - // This in turn causes this derived store to immediately "push" the current URL. - return derived(navigating, ($nav) => { - let navigating = false; - // $nav is null when navigation finishes. - if ($nav != null && $nav.to != null) { - current = $nav.to.url; - navigating = true; - } - - return { navigating, target_url: current }; - }); } + + // On client. + let current = new URL(location.href); + + // Return store that responds to navigation events. + // The `navigating` store immediately "pushes" `null`. + // This in turn causes this derived store to immediately "push" the current URL. + return derived(navigating, ($nav) => { + let navigating = false; + // $nav is null when navigation finishes. + if ($nav != null && $nav.to != null) { + current = $nav.to.url; + navigating = true; + } + + return { navigating, target_url: current }; + }); } // Do not subscribe to it outside of components! diff --git a/src/data/api/index.ts b/src/data/api/index.ts index f9565cc..a5771fe 100644 --- a/src/data/api/index.ts +++ b/src/data/api/index.ts @@ -9,8 +9,7 @@ import type { DonationPlatform, CryptoWallet, Social, - About, - CompatiblePackage + About } from '$lib/types'; export type ContributorsData = { contributables: Contributable[] }; @@ -41,20 +40,21 @@ async function patches(): Promise { const json = await get_json('v4/patches/list'); const packagesWithCount: { [key: string]: number } = {}; - json.forEach((patch) => { - if (!patch.compatiblePackages) return; + for (const patch of json) { + if (!patch.compatiblePackages) continue; patch.compatiblePackages = Object.keys(patch.compatiblePackages).map((name) => ({ name, versions: patch.compatiblePackages[name] })); - }); + } // gets packages and patch count - for (let i = 0; i < json.length; i++) { - json[i].compatiblePackages?.forEach((pkg: CompatiblePackage) => { + for (const { compatiblePackages } of json) { + if (!compatiblePackages) continue; + for (const pkg of compatiblePackages) { packagesWithCount[pkg.name] = (packagesWithCount[pkg.name] || 0) + 1; - }); + } } // sort packages by patch count to get most relevant apps on top diff --git a/src/data/api/settings.ts b/src/data/api/settings.ts index bfe6f77..0b81e7f 100644 --- a/src/data/api/settings.ts +++ b/src/data/api/settings.ts @@ -12,7 +12,7 @@ function set_status_url(apiUrl: string) { .then((data) => { if (data?.status) { localStorage.setItem(STATUS_KEY, data.status); - console.log('status is now ' + localStorage.getItem(STATUS_KEY)); + console.log('Status is now:', localStorage.getItem(STATUS_KEY)); } }); } From 008358975bf1cb92cb4f57fc6d1c9f6ee2808bb3 Mon Sep 17 00:00:00 2001 From: PalmDevs Date: Sun, 4 May 2025 22:36:29 +0700 Subject: [PATCH 09/18] fix: Improve layout CSS --- src/layout/Hero/HeroSection.svelte | 4 ---- src/layout/Navbar/NavHost.svelte | 9 +-------- src/routes/+page.svelte | 1 + 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/src/layout/Hero/HeroSection.svelte b/src/layout/Hero/HeroSection.svelte index 625daa4..1e74a19 100644 --- a/src/layout/Hero/HeroSection.svelte +++ b/src/layout/Hero/HeroSection.svelte @@ -28,10 +28,6 @@ margin-bottom: 2rem; } - .hero { - padding-bottom: 9rem; - } - .hero-text { align-items: center; } diff --git a/src/layout/Navbar/NavHost.svelte b/src/layout/Navbar/NavHost.svelte index 96a2d61..7289098 100644 --- a/src/layout/Navbar/NavHost.svelte +++ b/src/layout/Navbar/NavHost.svelte @@ -202,17 +202,10 @@ } #nav-container { + top: 0; position: sticky; z-index: 666; width: 100%; - - &:has(.nav-buttons > li:first-child.selected) { - margin-bottom: 2.65rem; - - &:has(.banner) { - margin-bottom: 1.5rem; - } - } } nav { diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index efe81ba..a15ebf3 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -152,6 +152,7 @@ } } main { + padding-block: 2rem; display: flex; flex-direction: column; gap: 1.5rem; From 0db3580345021473b6a4a31b8dbaf75be59ebaa2 Mon Sep 17 00:00:00 2001 From: Ushie Date: Mon, 5 May 2025 03:01:27 +0300 Subject: [PATCH 10/18] fix: Propagated clicks in PatchItems and casing --- src/routes/+error.svelte | 5 ++++- src/routes/download/+page.svelte | 2 +- src/routes/patches/PatchItem.svelte | 10 ++++++++-- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/routes/+error.svelte b/src/routes/+error.svelte index 7f2cf1c..5a8307a 100644 --- a/src/routes/+error.svelte +++ b/src/routes/+error.svelte @@ -13,7 +13,7 @@ {#if status == 404}

This page received a cease and desist letter from a multi-billion dollar tech company.


- + {:else}

{$page.error?.message} @@ -23,6 +23,9 @@ diff --git a/src/layout/Hero/SocialButton.svelte b/src/layout/Hero/SocialButton.svelte index 0142c27..a97f645 100644 --- a/src/layout/Hero/SocialButton.svelte +++ b/src/layout/Hero/SocialButton.svelte @@ -4,13 +4,11 @@ -

+ {social.name} diff --git a/src/layout/Hero/SocialHost.svelte b/src/layout/Hero/SocialHost.svelte deleted file mode 100644 index c848fed..0000000 --- a/src/layout/Hero/SocialHost.svelte +++ /dev/null @@ -1,38 +0,0 @@ - - - - - diff --git a/src/layout/Navbar/NavHost.svelte b/src/layout/Navbar/NavHost.svelte index 7289098..4073874 100644 --- a/src/layout/Navbar/NavHost.svelte +++ b/src/layout/Navbar/NavHost.svelte @@ -204,7 +204,6 @@ #nav-container { top: 0; position: sticky; - z-index: 666; width: 100%; } diff --git a/src/lib/components/Wave.svelte b/src/lib/components/Wave.svelte index 175b58f..43d60c7 100644 --- a/src/lib/components/Wave.svelte +++ b/src/lib/components/Wave.svelte @@ -1,27 +1,29 @@ From bff902876b404e2328386884df7478c31cbd5a6e Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Tue, 6 May 2025 13:23:43 +0200 Subject: [PATCH 14/18] fix: Hide wave and socials before it overlaps with hero --- src/layout/Hero/HeroImage.svelte | 2 +- src/layout/Hero/HeroSection.svelte | 28 +++++++++++++++++++++++++--- src/layout/Navbar/NavHost.svelte | 1 + src/lib/components/Wave.svelte | 7 +++++++ src/routes/+page.svelte | 4 ++-- 5 files changed, 36 insertions(+), 6 deletions(-) diff --git a/src/layout/Hero/HeroImage.svelte b/src/layout/Hero/HeroImage.svelte index 9633671..6ab34cf 100644 --- a/src/layout/Hero/HeroImage.svelte +++ b/src/layout/Hero/HeroImage.svelte @@ -20,7 +20,7 @@ background-color: var(--surface-seven); user-select: none; } - @media (max-width: 1700px) { + @media screen and (max-width: 1700px) { .hero-img { height: 100vh; right: 6rem; diff --git a/src/layout/Hero/HeroSection.svelte b/src/layout/Hero/HeroSection.svelte index 6c83b1f..506c255 100644 --- a/src/layout/Hero/HeroSection.svelte +++ b/src/layout/Hero/HeroSection.svelte @@ -46,10 +46,9 @@ } .social-buttons { - justify-content: center; + max-width: 30rem; position: absolute; bottom: 1rem; - z-index: 1; transition: opacity 0.1s var(--bezier-one); } @@ -69,18 +68,41 @@ span { color: var(--primary); } - @media (max-width: 1700px) { + + @media screen and (max-width: 1700px) { .hero { height: 80vh; } } + @media screen and (max-height: 820px) { + .social-buttons { + bottom: initial; + left: initial; + position: initial; + width: initial; + opacity: 100% !important; + } + } + @media screen and (max-width: 1100px) or (min-height: 820px) { + .social-buttons { + transform: translateX(-50%); + width: 100%; + position: absolute; + justify-content: center; + } + } + @media screen and (max-width: 450px) { .internal-buttons { flex-direction: column; gap: 1rem; } + .social-buttons { + justify-content: center; + } + .hero { height: initial; } diff --git a/src/layout/Navbar/NavHost.svelte b/src/layout/Navbar/NavHost.svelte index 4073874..ab95131 100644 --- a/src/layout/Navbar/NavHost.svelte +++ b/src/layout/Navbar/NavHost.svelte @@ -202,6 +202,7 @@ } #nav-container { + z-index: 1; top: 0; position: sticky; width: 100%; diff --git a/src/lib/components/Wave.svelte b/src/lib/components/Wave.svelte index 43d60c7..1d605d5 100644 --- a/src/lib/components/Wave.svelte +++ b/src/lib/components/Wave.svelte @@ -17,10 +17,17 @@ transition: opacity 0.1s var(--bezier-one); position: absolute; bottom: 0rem; + z-index: -1; width: 100%; height: 40vh; } + @media screen and (max-height: 820px) { + svg { + opacity: 0 !important; + } + } + .wave { animation: wave-anim 30s; animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1); diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index ece99d8..1b901ea 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -165,10 +165,10 @@ } .hero-img-container { - z-index: 1; + z-index: 0; } - @media (max-width: 1100px) { + @media screen and (max-width: 1100px) { .hero-img-container { display: none; } From 2a6bc70cfc03d5f3328ba8806ab6db3cc5fddd0f Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Tue, 6 May 2025 13:26:41 +0200 Subject: [PATCH 15/18] feat: Always show links --- src/layout/Footer/FooterSection.svelte | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/src/layout/Footer/FooterSection.svelte b/src/layout/Footer/FooterSection.svelte index 826ec21..2c39b6a 100644 --- a/src/layout/Footer/FooterSection.svelte +++ b/src/layout/Footer/FooterSection.svelte @@ -1,11 +1,5 @@
@@ -16,20 +10,14 @@
- - - {#if expanded} -
    - -
- {/if} +
    + +