fix: misc fixes

This commit is contained in:
afn
2022-10-31 22:07:52 -04:00
parent abb2cbc223
commit 963e78a685
10 changed files with 62 additions and 46 deletions

View File

@ -1,37 +1,35 @@
<script lang="ts">
import Navigation from '$lib/components/atoms/NavButton.svelte';
import { page } from '$app/stores';
import Navigation from '$lib/components/atoms/NavButton.svelte';
import { page } from '$app/stores';
$: status = $page.status;
$: status = $page.status;
</script>
<section class="error">
<h1>{status}</h1>
{#if status == 500}
<p>
{$page.error.message}
</p>
{:else if status == 404}
<p>
That page received a cease and desist letter from a multi-billion dollar tech company.
</p>
<br/>
<h1>{status}</h1>
{#if status == 500}
<p>
{$page.error.message}
</p>
{:else if status == 404}
<p>That page received a cease and desist letter from a multi-billion dollar tech company.</p>
<br />
<Navigation href="/" is_selected={() => true}>Home</Navigation>
{/if}
{/if}
</section>
<style>
.error {
padding-top: 5rem;
text-align: center;
}
.error {
padding-top: 5rem;
text-align: center;
}
h1 {
font-size: 10rem;
color: var(--accent-color);
}
p {
font-size: 5ch;
color: var(--white);
}
h1 {
font-size: 10rem;
color: var(--accent-color);
}
p {
font-size: 5ch;
color: var(--white);
}
</style>

View File

@ -38,7 +38,6 @@
<meta name="twitter:image" itemprop="image" content="/embed.png" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="theme-color" content="#0f111a" />
<title>ReVanced</title>
</svelte:head>
<NavHost />

View File

@ -5,6 +5,12 @@
import Wave from '$lib/components/atoms/Wave.svelte';
</script>
<svelte:head>
<title>ReVanced</title>
<meta content="ReVanced" name="og:title" />
<meta content="ReVanced" name="twitter:title" />
</svelte:head>
<main>
<div class="wrap">
<div class="wrappezoid">

View File

@ -12,6 +12,12 @@
export let data: PageData;
</script>
<svelte:head>
<title>ReVanced | Contributors</title>
<meta content="ReVanced | Contributors" name="og:title" />
<meta content="ReVanced | Contributors" name="twitter:title" />
</svelte:head>
<main>
<div class="wrapper">
<div class="text-container" in:fly={{ y: 10, easing: quintOut, duration: 750 }}>

View File

@ -5,6 +5,12 @@
import Button from '$lib/components/atoms/Button.svelte';
</script>
<svelte:head>
<title>ReVanced | Docs</title>
<meta content="ReVanced | Docs" name="og:title" />
<meta content="ReVanced | Docs" name="twitter:title" />
</svelte:head>
<main in:fly={{ y: 10, easing: quintOut, duration: 700 }}>
<div class="menu">
<div class="doc-section-selected">

View File

@ -1,11 +1,11 @@
<script lang="ts">
import type { PageData } from './$types';
import type { PageData } from './$types';
import { fly } from 'svelte/transition';
import { quintOut } from 'svelte/easing';
import type { CompatiblePackage } from 'src/data/types';
import { patches as api_patches } from '../../data/api';
import { patches as api_patches } from '../../data/api';
import TreeMenu from '$lib/components/molecules/TreeMenu.svelte';
import TreeMenuButton from '$lib/components/atoms/TreeMenuButton.svelte';
@ -13,8 +13,8 @@
import Footer from '$lib/components/molecules/Footer.svelte';
export let data: PageData;
// Needed when someone navigates directly to the page.
api_patches.init(data);
// Needed when someone navigates directly to the page.
api_patches.init(data);
$: ({ patches, packages } = $api_patches);
@ -31,9 +31,9 @@
</script>
<svelte:head>
<title>Revanced - Patches</title>
<meta content="Revanced - Patches" name="og:title" />
<meta content="Revanced - Patches" name="twitter:title" />
<title>ReVanced | Patches</title>
<meta content="ReVanced | Patches" name="og:title" />
<meta content="ReVanced | Patches" name="twitter:title" />
</svelte:head>
<main>