mirror of
https://github.com/revanced/revanced-website.git
synced 2025-04-29 22:24:31 +02:00
refactor: minor cleanup
This commit is contained in:
parent
db3da48374
commit
bc639aef4d
@ -2,12 +2,12 @@
|
|||||||
export let kind = 'secondary';
|
export let kind = 'secondary';
|
||||||
$: type = 'button-' + kind;
|
$: type = 'button-' + kind;
|
||||||
export let href = '#';
|
export let href = '#';
|
||||||
export let width = 'false';
|
export let maxWidth = 'false';
|
||||||
export let icon = '';
|
export let icon = '';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<a {href}>
|
<a {href}>
|
||||||
<div class={type} style="width: {width ? '100%' : 'max-width'}">
|
<div class={type} style="width: {maxWidth ? '100%' : 'max-width'}">
|
||||||
<img src="icons/{icon}.svg" alt={icon} />
|
<img src="icons/{icon}.svg" alt={icon} />
|
||||||
<slot />
|
<slot />
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,33 +0,0 @@
|
|||||||
<h1>
|
|
||||||
<span>Re</span>Vanced
|
|
||||||
</h1>
|
|
||||||
|
|
||||||
<style>
|
|
||||||
span {
|
|
||||||
color: var(--accent-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
h1 {
|
|
||||||
color: var(--white);
|
|
||||||
font-weight: 700;
|
|
||||||
font-size: 5rem;
|
|
||||||
letter-spacing: -0.04em;
|
|
||||||
line-height: 0.75em;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (max-width: 1919px) {
|
|
||||||
h1 {
|
|
||||||
font-size: 5rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@media screen and (max-width: 1052px) {
|
|
||||||
h1 {
|
|
||||||
font-size: 4.5rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@media screen and (max-width: 768px) {
|
|
||||||
h1 {
|
|
||||||
font-size: 4rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
@ -3,7 +3,7 @@
|
|||||||
export let href = '#';
|
export let href = '#';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<a {href}>
|
<a {href} target="_blank">
|
||||||
<div>
|
<div>
|
||||||
<img src="socials/{src}.svg" alt={src} />
|
<img src="socials/{src}.svg" alt={src} />
|
||||||
</div>
|
</div>
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
viewBox="0 0 1440 500"
|
viewBox="0 0 1440 500"
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
preserveAspectRatio="none"
|
preserveAspectRatio="none"
|
||||||
{...$$props}
|
|
||||||
>
|
>
|
||||||
<path class="wave" />
|
<path class="wave" />
|
||||||
</svg>
|
</svg>
|
||||||
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
@ -1,19 +1,20 @@
|
|||||||
<script>
|
<script>
|
||||||
import Button from '$lib/components/atoms/Button.svelte';
|
import Button from '$lib/components/atoms/Button.svelte';
|
||||||
import HeroTitle from '../atoms/HeroTitle.svelte';
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<section class="hero">
|
<section class="hero">
|
||||||
<div class="hero-text">
|
<div class="hero-text">
|
||||||
<!-- <img class="hero-img" src="/manager.png" alt="Screenshot of ReVanced Manager" /> -->
|
<h1>
|
||||||
<HeroTitle />
|
<span>Re</span>Vanced
|
||||||
|
</h1>
|
||||||
|
|
||||||
<h2>
|
<h2>
|
||||||
An extensible framework for building <br />application mods.
|
An extensible framework for building <br />application mods.
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<div class="hero-buttons">
|
<div class="hero-buttons">
|
||||||
<Button icon="download" kind="primary" href="download" width="100%">Download</Button>
|
<Button icon="download" href="download" maxWidth="true" kind="primary">Download</Button>
|
||||||
<Button icon="docs" href="docs" width="true">Read The Docs</Button>
|
<Button icon="docs" href="docs" maxWidth="true">Read The Docs</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
@ -38,6 +39,34 @@
|
|||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
span {
|
||||||
|
color: var(--accent-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
color: var(--white);
|
||||||
|
font-weight: 700;
|
||||||
|
font-size: 5rem;
|
||||||
|
letter-spacing: -0.04em;
|
||||||
|
line-height: 0.75em;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 1919px) {
|
||||||
|
h1 {
|
||||||
|
font-size: 5rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media screen and (max-width: 1052px) {
|
||||||
|
h1 {
|
||||||
|
font-size: 4.5rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media screen and (max-width: 768px) {
|
||||||
|
h1 {
|
||||||
|
font-size: 4rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
.hero {
|
.hero {
|
||||||
padding-bottom: 0;
|
padding-bottom: 0;
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
|
|
||||||
<div class="patches-list patches-container">
|
<div class="patches-list patches-container">
|
||||||
{#each patches as patch, i}
|
{#each patches as patch, i}
|
||||||
<div in:fly="{{ x: 10, easing: quintOut, duration: 750, delay: (80 * i)}}">
|
<div in:fly="{{ x: 10, easing: quintOut, duration: 750, delay: -(300*(0.85**i))+300}}">
|
||||||
<Patch
|
<Patch
|
||||||
name={patch.name
|
name={patch.name
|
||||||
// im sorry
|
// im sorry
|
||||||
|
Loading…
x
Reference in New Issue
Block a user