Merge pull request #5 from PickleNik/svelte

i got svelted
This commit is contained in:
afn 2022-08-16 01:58:21 -04:00 committed by GitHub
commit 81198a03d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 276 additions and 135 deletions

View File

@ -22,17 +22,17 @@
.button-secondary { .button-secondary {
font-weight: 600; font-weight: 600;
color: var(--white); color: var(--white);
border: 3px solid var(--red); border: 3px solid var(--grey-three);
border-radius: 200px; border-radius: 200px;
padding: 12px 40px; padding: 12px 40px;
cursor: pointer; cursor: pointer;
background-color: transparent; background-color: transparent;
margin-top: 45px;
transition: transform 0.4s var(--bezier-one), box-shadow 0.4s var(--bezier-one); transition: transform 0.4s var(--bezier-one), box-shadow 0.4s var(--bezier-one);
user-select: none; user-select: none;
} }
.button-primary { .button-primary {
border: 3px solid var(--red);
background-color: var(--red); background-color: var(--red);
box-shadow: 0px 0px 32px 1px var(--red-glow); box-shadow: 0px 0px 32px 1px var(--red-glow);
} }
@ -44,4 +44,8 @@
button:hover { button:hover {
transform: translate(0%, -5%); transform: translate(0%, -5%);
} }
button:active {
transition-duration: 0.1s;
transform: translate(0);
}
</style> </style>

View File

@ -1,8 +1,8 @@
<script> <script lang="ts">
export const username = "afnzmn" export let username: String;
export const href = `https://github.com/${username}` let href = `https://github.com/${username}`
export const src = `https://github.com/${username}.png` let src = `https://github.com/${username}.png`
export const alt = `${username}'s contributor profile picture` let alt = `${username}'s contributor profile picture`
</script> </script>
<a {href}> <a {href}>
@ -22,6 +22,7 @@
button { button {
color: var(--white); color: var(--white);
border-radius: 200px; border-radius: 200px;
overflow: hidden;
border: 0; border: 0;
/* padding: 5px 5px; */ /* padding: 5px 5px; */
width:86px; width:86px;
@ -30,20 +31,17 @@
max-width: 86px; max-width: 86px;
cursor: pointer; cursor: pointer;
background-color: var(--grey-four); background-color: var(--grey-four);
font-size: 1.5rem;
transition: transform 0.4s var(--bezier-one); transition: transform 0.4s var(--bezier-one);
margin-bottom: 1rem;
user-select: none; user-select: none;
} }
button:hover { a:hover > button {
transform: translate(0%, -5%); transform: translateY(-5%);
} }
img { img {
/* margin: 0; height: 100%;
padding: 0; */ width: 100%;
border-radius: 50%;
max-height: 86px;
max-width: 86px;
} }
</style> </style>

View File

@ -1,16 +1,37 @@
<script> <script>
</script> </script>
<img class="hero-img" src="/manager.png" alt="Screenshot of ReVanced Manager" /> <div class="hero-img"><img height="100%" src="/manager.png" alt="Screenshot of ReVanced Manager" /></div>
<style> <style>
.hero-img { .hero-img {
height: 40rem; overflow: hidden;
height: 80vh;
max-height: 80rem;
z-index: -1; z-index: -1;
width: auto; width: auto;
float: right; float: right;
border-radius: 20px; border-radius: 1.5rem;
transform: rotate(3.7deg) translateY(2%) translateX(-15%); transform: rotate(3.7deg);
box-shadow: 0 1rem 3rem 0 #0f111a;
user-select: none; user-select: none;
} }
@media (max-width: 1919px) {
.hero-img {
position: fixed;
height: 90vh;
top: 90px;
right: 7.5%;
transform: rotate(3.7deg) translateY(10%);
}
}
.hero-img::after{
box-shadow: inset 2rem 2rem 5rem -3rem var(--grey-two), inset -2rem -2rem 5rem -3rem var(--grey-one);
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
</style> </style>

View File

@ -10,7 +10,23 @@
h1 { h1 {
color: var(--white); color: var(--white);
font-weight: 800; font-weight: 800;
font-size: 6rem; font-size: 6rem;
letter-spacing: -0.04em; 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: 3rem;
}
} }
</style> </style>

View File

@ -1,38 +1,42 @@
<script> <script>
export let src = 'socials/github.svg'; export let src = 'socials/github.svg';
export let alt = 'GitHub'; export let alt = 'GitHub';
export let href = '#'; export let href = '#';
</script> </script>
<button> <div>
<a {href}> <button>
<img {src} {alt}> <a {href}>
</a> <img {src} {alt} />
</button> </a>
</button>
</div>
<style> <style>
button { button {
color: var(--white); border: 0;
border-radius: 200px; width: 60px;
border: 0; height: 60px;
padding: 14px; padding: 14px;
width:60px;
height:60px;
cursor: pointer; cursor: pointer;
border-radius: 200px;
transition: transform 0.4s var(--bezier-one);
background-color: var(--grey-four); background-color: var(--grey-four);
font-size: 1.5rem; color: var(--white);
transition: transform 0.4s var(--bezier-one), filter 0.4s var(--bezier-one);
user-select: none; user-select: none;
margin-right:0.5rem;
margin-left: 0.5rem;
} }
img { div {
width:30px; display: inline-block;
} }
button:hover { img {
transform: translate(0%, -5%); transition: filter 0.4s var(--bezier-one);
width: 30px;
}
div:hover > button {
transform: translateY(-5%);
} }
button:hover img { button:hover img {

View File

@ -9,10 +9,11 @@
<style> <style>
svg { svg {
position: absolute; position: fixed;
z-index: -2; z-index: -2;
bottom:0; bottom: 0;
transform: translateY(20%); height: 35vh;
width: 100%;
} }
.wave { .wave {

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@ -1,43 +1,20 @@
<script> <script lang="ts">
import ContributorButton from "../atoms/ContributorButton.svelte"; import ContributorButton from "../atoms/ContributorButton.svelte";
export let peoples: Array<String>;
</script> </script>
<div class="social-host"> <div class="social-host">
<ContributorButton></ContributorButton> {#each peoples as person}
<ContributorButton></ContributorButton> <ContributorButton username={person}></ContributorButton>
<ContributorButton></ContributorButton> {/each}
<ContributorButton></ContributorButton>
<ContributorButton></ContributorButton>
<ContributorButton></ContributorButton>
<ContributorButton></ContributorButton>
<ContributorButton></ContributorButton>
<ContributorButton></ContributorButton>
<ContributorButton></ContributorButton>
<ContributorButton></ContributorButton>
<ContributorButton></ContributorButton>
<ContributorButton></ContributorButton>
<ContributorButton></ContributorButton>
<ContributorButton></ContributorButton>
<ContributorButton></ContributorButton>
<ContributorButton></ContributorButton>
<ContributorButton></ContributorButton>
<ContributorButton></ContributorButton>
<ContributorButton></ContributorButton>
<ContributorButton></ContributorButton>
<ContributorButton></ContributorButton>
<ContributorButton></ContributorButton>
<ContributorButton></ContributorButton>
<ContributorButton></ContributorButton>
<ContributorButton></ContributorButton>
</div> </div>
<style> <style>
.social-host { .social-host {
gap: 2rem;
width: 100; width: 100;
gap:2rem;
align-items: center;
display: grid; display: grid;
align-items: center;
grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
} }
</style> </style>

View File

@ -1,9 +1,23 @@
<script> <script lang="ts">
import Navigation from '../atoms/Navigation.svelte'; import Navigation from '../atoms/Navigation.svelte';
import { onMount } from 'svelte';
import { page } from '$app/stores'; import { page } from '$app/stores';
let menuBtn: HTMLElement;
let menuOpen = false;
onMount(() => {
menuBtn.addEventListener('click', () => {
if (!menuOpen) {
menuBtn.classList.add('open');
menuOpen = true;
} else {
menuBtn.classList.remove('open');
menuOpen = false;
}
});
});
</script> </script>
<div> <div class="wrapper">
<nav> <nav>
<a href="/"> <a href="/">
<div class="logo"> <div class="logo">
@ -20,23 +34,22 @@
<Navigation href="/docs">Docs</Navigation> <Navigation href="/docs">Docs</Navigation>
<Navigation href="/credits">Credits</Navigation> <Navigation href="/credits">Credits</Navigation>
</ul> </ul>
<div class="menu-btn" class:open={menuOpen} bind:this={menuBtn}>
<div class="menu-btn__burger" />
</div>
</nav> </nav>
</div> </div>
<style> <style>
nav { nav {
width: 100%; top: 0;
top: 0;
display: flex; display: flex;
padding-top: 0.75rem;
padding-right: 3rem;
padding-left: 6rem;
justify-content: space-between;
align-items: center; align-items: center;
justify-content: space-between;
min-height: 90px; min-height: 90px;
width: 100%;
} }
.logo { .logo {
display: inline-block; display: inline-block;
} }
@ -58,22 +71,75 @@
color: var(--red); color: var(--red);
} }
@media screen and (max-width: 1052px) { @media screen and (max-width: 1052px) {
h1 { h1 {
display: none; display: none;
} }
nav {
padding-left: 7%;
padding-right: 1%;
}
} }
@media screen and (max-width: 768px) { @media screen and (max-width: 768px) {
nav { nav {
background-color: purple; /* background-color: purple; */
}
ul {
display: none;
} }
} }
/* Hamburger mmm yum */
@media screen and (min-width: 768px) {
.menu-btn {
display: none !important;
}
}
.menu-btn {
user-select: none;
position: relative;
display: flex;
justify-content: center;
align-items: center;
width: 80px;
height: 60px;
cursor: pointer;
transition: all 0.5s ease-in-out;
background: var(--grey-one);
border-radius: 3rem;
}
.menu-btn__burger {
width: 30px;
height: 3px;
background: #fff;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(255, 101, 47, 0.2);
transition: all 0.5s ease-in-out;
}
.menu-btn__burger::before,
.menu-btn__burger::after {
content: '';
position: absolute;
width: 30px;
height: 3px;
background: #fff;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(255, 101, 47, 0.2);
transition: all 0.5s ease-in-out;
}
.menu-btn__burger::before {
transform: translateY(-8px);
}
.menu-btn__burger::after {
transform: translateY(8px);
}
/* ANIMATION */
.menu-btn.open .menu-btn__burger {
transform: translateX(-50px);
background: transparent;
box-shadow: none;
}
.menu-btn.open .menu-btn__burger::before {
transform: rotate(45deg) translate(35px, -35px);
}
.menu-btn.open .menu-btn__burger::after {
transform: rotate(-45deg) translate(35px, 35px);
}
</style> </style>

View File

@ -1,28 +1,34 @@
<script> <script>
import SocialButton from "../atoms/SocialButton.svelte"; import SocialButton from '../atoms/SocialButton.svelte';
</script> </script>
<div class="social-host"> <div class="social-host">
<SocialButton src="socials/github.svg" alt="GitHub" href="https://revanced.app/github"></SocialButton> <SocialButton src="socials/github.svg" alt="GitHub" href="https://revanced.app/github" />
<SocialButton src="socials/discord.svg" alt="Discord" href="http://revanced.app/discord"></SocialButton> <SocialButton src="socials/discord.svg" alt="Discord" href="http://revanced.app/discord" />
<SocialButton src="socials/reddit.svg" alt="Reddit" href="https://revanced.app/reddit"></SocialButton> <SocialButton src="socials/reddit.svg" alt="Reddit" href="https://revanced.app/reddit" />
<SocialButton src="socials/telegram.svg" alt="Telegram" href="https://revanced.app/telegram"></SocialButton> <SocialButton src="socials/telegram.svg" alt="Telegram" href="https://revanced.app/telegram" />
</div> </div>
<style> <style>
.social-host { .social-host {
justify-content: space-between; width: min(87%, 100rem);
position: absolute; /* same as margin-inline: auto on .wrapper */
padding: 0 max(6.5%, calc(50vw - 50rem));
align-items: center; align-items: center;
bottom: 3rem; user-select: none;
left: 5.5rem; position: absolute;
user-select: none; display: flex;
} bottom: 3rem;
gap: 1.5rem;
left: 0;
}
@media screen and (max-width: 1052px) { @media screen and (max-width: 768px) {
.social-host { .social-host {
left: 6%; left: 0;
} width: 100%;
display: flex;
} justify-content: center;
}
}
</style> </style>

View File

@ -1,14 +1,13 @@
<script> <script>
import Button from '$lib/components/atoms/Button.svelte'; import Button from '$lib/components/atoms/Button.svelte';
import IndexHeroTitle from '../atoms/IndexHeroTitle.svelte'; import IndexHeroTitle from '../atoms/IndexHeroTitle.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" /> --> <!-- <img class="hero-img" src="/manager.png" alt="Screenshot of ReVanced Manager" /> -->
<IndexHeroTitle></IndexHeroTitle> <IndexHeroTitle />
<h2> <h2>
An extensible framework for<br /> An extensible framework for<br />
building application mods. building application mods.
</h2> </h2>
@ -17,24 +16,43 @@
<Button kind="primary" href="/download" fontsize="1.3rem">Download</Button> <Button kind="primary" href="/download" fontsize="1.3rem">Download</Button>
<Button href="/docs" fontsize="1.3rem">Read The Docs</Button> <Button href="/docs" fontsize="1.3rem">Read The Docs</Button>
</div> </div>
</div> </div>
</section> </section>
<style> <style>
h2 {
margin-top: 1.75rem;
margin-bottom: 2rem;
}
.hero {
padding-bottom: 10rem;
}
@media (max-width: 768px) {
.hero {
padding-top: 10rem;
padding-bottom: 0;
text-align: center;
}
h2 {
font-size: 1.5rem;
}
.hero-buttons {
flex-direction: column;
gap: 0;
}
}
.hero-text { .hero-text {
align-items: center; align-items: center;
} }
.hero-buttons { .hero-buttons {
gap: 1rem;
display: flex; display: flex;
gap:1rem;
user-select: none; user-select: none;
transform: translateX(-3px);
} }
.hero-text h1 { .hero-text h1 {
font-size: 6.5rem; font-size: 6.5rem;
letter-spacing: -0.04em; letter-spacing: -0.04em;
} }
</style> </style>

View File

@ -40,8 +40,11 @@ import Wave from '$lib/components/atoms/Wave.svelte';
} }
:global(html) { :global(html) {
margin: 0;
padding: 0;
font-size: 100%; font-size: 100%;
box-sizing: border-box; box-sizing: border-box;
overflow-y: scroll;
} }
:global(body) { :global(body) {
@ -54,11 +57,10 @@ import Wave from '$lib/components/atoms/Wave.svelte';
:global(.wrapper) { :global(.wrapper) {
margin-inline: auto; margin-inline: auto;
width: min(87%, 100rem); width: min(87%, 100rem);
margin-top: 1.5%
} }
:root { :root {
--white: #ffe1e1; --white: #fff;
--red: #ff4151; --red: #ff4151;
--red-glow: #ff838d40; --red-glow: #ff838d40;
--grey-one: #1c1e29; --grey-one: #1c1e29;
@ -108,7 +110,6 @@ import Wave from '$lib/components/atoms/Wave.svelte';
} }
/*-----scrollbar-----*/ /*-----scrollbar-----*/
:global(::-webkit-scrollbar) { :global(::-webkit-scrollbar) {
width: 20px; width: 20px;
background-color: transparent; background-color: transparent;

View File

@ -1,7 +1,13 @@
<script> <script>
import ContributorHost from '$lib/components/molecules/ContributorHost.svelte'; import ContributorHost from '$lib/components/molecules/ContributorHost.svelte';
</script> let peoples = [
"Ushie",
"afnzmn",
"baiorett",
"PickleNik",
]
</script>
<div class="wrapper"> <div class="wrapper">
<ContributorHost></ContributorHost> <ContributorHost {peoples}></ContributorHost>
</div> </div>

View File

@ -5,11 +5,34 @@
</script> </script>
<div class="wrapper"> <div class="wrapper">
<div class="wrappezoid">
<HeroImage></HeroImage> <IndexDescription />
<IndexDescription /> <div id="heroimg"><HeroImage /></div>
</div>
<SocialHost /> <SocialHost />
</div> </div>
<style>
.wrappezoid {
height: calc(100vh - 90px);
display: flex;
flex-direction: row;
justify-content: space-around;
align-items: center;
}
@media (max-width: 1919px) {
.wrappezoid {
justify-content: space-between;
}
}
@media (max-width: 1052px) {
#heroimg {
display: none;
}
}
@media (max-width: 768px) {
.wrappezoid {
flex-direction: column;
}
}
</style>