mirror of
https://github.com/revanced/revanced-website.git
synced 2025-04-30 06:34:35 +02:00
BREAKING CHANGE: migrate to new routing system
This commit is contained in:
parent
9e3f773a0c
commit
508269e52d
1520
package-lock.json
generated
1520
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -6,7 +6,6 @@
|
|||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"package": "svelte-kit package",
|
"package": "svelte-kit package",
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"prepare": "svelte-kit sync",
|
|
||||||
"check": "svelte-check --tsconfig ./tsconfig.json",
|
"check": "svelte-check --tsconfig ./tsconfig.json",
|
||||||
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
|
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
|
||||||
"lint": "prettier --check --plugin-search-dir=. . && eslint .",
|
"lint": "prettier --check --plugin-search-dir=. . && eslint .",
|
||||||
|
107
src/app.css
Normal file
107
src/app.css
Normal file
@ -0,0 +1,107 @@
|
|||||||
|
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&display=swap');
|
||||||
|
|
||||||
|
*{
|
||||||
|
box-sizing: inherit;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
font-family: 'Manrope', sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
html{
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
font-size: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
overflow-y: scroll;
|
||||||
|
}
|
||||||
|
|
||||||
|
body{
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
line-height: 1.3;
|
||||||
|
background-color: #0f111a;
|
||||||
|
}
|
||||||
|
|
||||||
|
html, body{
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wrapper{
|
||||||
|
margin-inline: auto;
|
||||||
|
width: min(87%, 100rem);
|
||||||
|
}
|
||||||
|
|
||||||
|
:root {
|
||||||
|
--white: #fff;
|
||||||
|
--red: #ff4151;
|
||||||
|
--red-glow: #ff838d40;
|
||||||
|
--grey-one: #1c1e29;
|
||||||
|
--grey-two: #2b2d3a;
|
||||||
|
--grey-three: #3e404f;
|
||||||
|
--grey-four: #1B1E29;
|
||||||
|
--grey-five: #D0D0D0;
|
||||||
|
--grey-six: #a19e9e;
|
||||||
|
--grey-seven: #535563;
|
||||||
|
--bezier-one: cubic-bezier(0.25, 0.46, 0.45, 0.94)
|
||||||
|
}
|
||||||
|
|
||||||
|
::selection{
|
||||||
|
color: var(--white);
|
||||||
|
background: var(--red);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*-----headings-----*/
|
||||||
|
|
||||||
|
h1{
|
||||||
|
color: var(--white);
|
||||||
|
font-weight: 800;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2{
|
||||||
|
color: var(--white);
|
||||||
|
font-weight: 300;
|
||||||
|
font-size: 1.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3{
|
||||||
|
color: var(--white);
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
h4{
|
||||||
|
color:var(--grey-six);
|
||||||
|
font-weight:500;
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
h5{
|
||||||
|
color:var(--white);
|
||||||
|
font-weight: 300;
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*-----scrollbar-----*/
|
||||||
|
::-webkit-scrollbar{
|
||||||
|
width: 20px;
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
::-webkit-scrollbar-thumb{
|
||||||
|
background-color: var(--grey-three);
|
||||||
|
border-radius: 20px;
|
||||||
|
border: 6px solid transparent;
|
||||||
|
background-clip: content-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
::-webkit-scrollbar-thumb:hover{
|
||||||
|
background-color: var(--grey-seven);
|
||||||
|
}
|
||||||
|
|
||||||
|
input,
|
||||||
|
textarea,
|
||||||
|
button,
|
||||||
|
select,
|
||||||
|
a {
|
||||||
|
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
||||||
|
}
|
23
src/routes/+layout.svelte
Normal file
23
src/routes/+layout.svelte
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
<script lang="ts">
|
||||||
|
import NavHost from "$lib/components/molecules/NavHost.svelte";
|
||||||
|
import Wave from '$lib/components/atoms/Wave.svelte';
|
||||||
|
|
||||||
|
import '../app.css';
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<svelte:head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<meta name="og:title" content="ReVanced"/>
|
||||||
|
<meta name="og:image" itemprop="image" content="/embed.png">
|
||||||
|
<meta property="og:description" content="An extensible framework for building application mods.">
|
||||||
|
<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/>
|
||||||
|
<slot />
|
||||||
|
<Wave />
|
@ -1,140 +0,0 @@
|
|||||||
<script>
|
|
||||||
|
|
||||||
import Button from "$lib/components/atoms/Button.svelte";
|
|
||||||
import NavHost from "$lib/components/molecules/NavHost.svelte";
|
|
||||||
import SocialButton from "$lib/components/atoms/SocialButton.svelte";
|
|
||||||
import SocialHost from "$lib/components/molecules/SocialHost.svelte";
|
|
||||||
import Wave from '$lib/components/atoms/Wave.svelte';
|
|
||||||
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<svelte:head>
|
|
||||||
<meta charset="UTF-8" />
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
||||||
<link
|
|
||||||
href="https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&display=swap"
|
|
||||||
rel="stylesheet"
|
|
||||||
/>
|
|
||||||
<meta name="og:title" content="ReVanced"/>
|
|
||||||
<meta name="og:image" itemprop="image" content="/embed.png">
|
|
||||||
<meta property="og:description" content="An extensible framework for building application mods.">
|
|
||||||
<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></NavHost>
|
|
||||||
<slot />
|
|
||||||
<Wave />
|
|
||||||
|
|
||||||
<style>
|
|
||||||
:global(*) {
|
|
||||||
box-sizing: inherit;
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
font-family: 'Manrope', sans-serif;
|
|
||||||
}
|
|
||||||
|
|
||||||
:global(html) {
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
font-size: 100%;
|
|
||||||
box-sizing: border-box;
|
|
||||||
overflow-y: scroll;
|
|
||||||
}
|
|
||||||
|
|
||||||
:global(body) {
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
line-height: 1.3;
|
|
||||||
background-color: #0f111a;
|
|
||||||
}
|
|
||||||
|
|
||||||
:global(html, body) {
|
|
||||||
max-width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
:global(.wrapper) {
|
|
||||||
margin-inline: auto;
|
|
||||||
width: min(87%, 100rem);
|
|
||||||
}
|
|
||||||
|
|
||||||
:root {
|
|
||||||
--white: #fff;
|
|
||||||
--red: #ff4151;
|
|
||||||
--red-glow: #ff838d40;
|
|
||||||
--grey-one: #1c1e29;
|
|
||||||
--grey-two: #2b2d3a;
|
|
||||||
--grey-three: #3e404f;
|
|
||||||
--grey-four: #1B1E29;
|
|
||||||
--grey-five: #D0D0D0;
|
|
||||||
--grey-six: #a19e9e;
|
|
||||||
--grey-seven: #535563;
|
|
||||||
--bezier-one: cubic-bezier(0.25, 0.46, 0.45, 0.94)
|
|
||||||
}
|
|
||||||
|
|
||||||
:global(::selection) {
|
|
||||||
color: var(--white);
|
|
||||||
background: var(--red);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*-----headings-----*/
|
|
||||||
|
|
||||||
:global(h1) {
|
|
||||||
color: var(--white);
|
|
||||||
font-weight: 800;
|
|
||||||
}
|
|
||||||
|
|
||||||
:global(h2) {
|
|
||||||
color: var(--white);
|
|
||||||
font-weight: 300;
|
|
||||||
font-size: 1.75rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
:global(h3) {
|
|
||||||
color: var(--white);
|
|
||||||
font-weight: 600;
|
|
||||||
font-size: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
:global(h4) {
|
|
||||||
color:var(--grey-six);
|
|
||||||
font-weight:500;
|
|
||||||
font-size: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
:global(h5) {
|
|
||||||
color:var(--white);
|
|
||||||
font-weight: 300;
|
|
||||||
font-size: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*-----scrollbar-----*/
|
|
||||||
:global(::-webkit-scrollbar) {
|
|
||||||
width: 20px;
|
|
||||||
background-color: transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
:global(::-webkit-scrollbar-thumb) {
|
|
||||||
background-color: var(--grey-three);
|
|
||||||
border-radius: 20px;
|
|
||||||
border: 6px solid transparent;
|
|
||||||
background-clip: content-box;
|
|
||||||
}
|
|
||||||
|
|
||||||
:global(::-webkit-scrollbar-thumb:hover) {
|
|
||||||
background-color: var(--grey-seven);
|
|
||||||
}
|
|
||||||
|
|
||||||
:global(input),
|
|
||||||
:global(textarea),
|
|
||||||
:global(button),
|
|
||||||
:global(select),
|
|
||||||
:global(a) {
|
|
||||||
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
|
||||||
}
|
|
||||||
</style>
|
|
Loading…
x
Reference in New Issue
Block a user