feat: mobile view

This commit is contained in:
afn 2022-10-10 01:50:51 -04:00
parent abea751e10
commit 85dd6b8a0b
8 changed files with 111 additions and 90 deletions

View File

@ -5,6 +5,7 @@
margin: 0; margin: 0;
padding: 0; padding: 0;
font-family: 'Manrope', sans-serif; font-family: 'Manrope', sans-serif;
-webkit-tap-highlight-color: rgba(0,0,0,0);
} }
html{ html{
@ -29,6 +30,7 @@ html, body{
.wrapper{ .wrapper{
margin-inline: auto; margin-inline: auto;
width: min(87%, 100rem); width: min(87%, 100rem);
margin-top: 7rem;
} }
:root { :root {
@ -98,11 +100,3 @@ h5{
::-webkit-scrollbar-thumb:hover{ ::-webkit-scrollbar-thumb:hover{
background-color: var(--grey-seven); background-color: var(--grey-seven);
} }
input,
textarea,
button,
select,
a {
-webkit-tap-highlight-color: rgba(0,0,0,0);
}

View File

@ -8,16 +8,18 @@
function handleClick() { function handleClick() {
location.href = href; location.href = href;
} }
</script> </script>
<button class={type} style="font-size: {fontsize};" on:click={handleClick}> <button
class={type}
style="font-size: {fontsize};"
on:click={handleClick}
>
<img src="icons/{icon}.svg" alt="{icon}"/> <img src="icons/{icon}.svg" alt="{icon}"/>
<slot/> <slot/>
</button> </button>
<style> <style>
button, button,
.button-secondary { .button-secondary {
color: var(--white); color: var(--white);
@ -40,10 +42,6 @@
color: var(--grey-four) color: var(--grey-four)
} }
.button-primary:hover {
box-shadow: 0px 0px 32px 1px var(--red-glow), 0px 0px 32px 1px var(--red-glow);
}
button:hover { button:hover {
transform: translateY(-5%); transform: translateY(-5%);
} }
@ -51,14 +49,15 @@
transform: scale(98%); transform: scale(98%);
} }
img { button,
height: 25px; .button-secondary {
}
button, .button-secondary {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
gap: 0.5rem gap: 0.5rem
} }
img {
height: 25px;
}
</style> </style>

View File

@ -1,9 +1,17 @@
<script> <script>
</script> </script>
<div class="hero-img"><img height="100%" src="/manager.png" alt="Screenshot of ReVanced Manager" /></div> <div class="hero-img">
<img
src="/manager.png"
alt="Screenshot of ReVanced Manager"
/>
</div>
<style> <style>
img {
height: 100%;
}
.hero-img { .hero-img {
overflow: hidden; overflow: hidden;
height: 80vh; height: 80vh;

View File

@ -0,0 +1,33 @@
<h1>
<span class="redder">Re</span>Vanced
</h1>
<style>
.redder {
color: var(--red);
}
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>

View File

@ -1,17 +0,0 @@
<h1>
<span class="redder">Re</span>Vanced
</h1>
<style>
.redder {
color: var(--red);
}
h1 {
color: var(--white);
font-weight: 700;
font-size: 5rem;
letter-spacing: -0.04em;
line-height: 0.75em;
}
</style>

View File

@ -17,7 +17,6 @@
}); });
</script> </script>
<div class="nav-parent">
<nav> <nav>
<a href="/"> <a href="/">
<div class="logo"> <div class="logo">
@ -38,23 +37,22 @@
<div class="menu-btn__burger" /> <div class="menu-btn__burger" />
</div> </div>
</nav> </nav>
</div>
<style> <style>
.nav-parent {
background-color: var(--grey-six);
padding: 0 5rem;
margin-bottom: 1rem;
}
nav { nav {
padding: 0% 4% 0% 6%;
top: 0; top: 0;
position: fixed;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
min-height: 70px; height: 70px;
width: 100%; width: 100%;
background-color: var(--grey-six);
backdrop-filter: blur(15px);
-webkit-backdrop-filter: blur(15px);
} }
ul { ul {

View File

@ -1,12 +1,12 @@
<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 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" /> --> <!-- <img class="hero-img" src="/manager.png" alt="Screenshot of ReVanced Manager" /> -->
<IndexHeroTitle /> <HeroTitle />
<h2> <h2>
An extensible framework for building <br />application mods. An extensible framework for building <br />application mods.
</h2> </h2>
@ -23,23 +23,11 @@
margin-top: 1.75rem; margin-top: 1.75rem;
margin-bottom: 2rem; margin-bottom: 2rem;
} }
.hero { .hero {
padding-bottom: 10rem; 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;
} }
@ -50,8 +38,24 @@
gap: 1rem; gap: 1rem;
} }
.hero-text h1 { @media (max-width: 768px) {
font-size: 6.5rem; .hero {
letter-spacing: -0.04em; padding-bottom: 0;
text-align: center;
} }
h2 {
font-size: 1.5rem;
}
br {
content: ' ';
}
.hero-buttons {
flex-direction: column;
}
}
</style> </style>

View File

@ -1,12 +1,12 @@
<script> <script>
import HeroImage from '$lib/components/atoms/HeroImage.svelte'; import HeroImage from '$lib/components/atoms/HeroImage.svelte';
import IndexDescription from '$lib/components/organisms/IndexDescription.svelte'; import Home from '$lib/components/organisms/Home.svelte';
import SocialHost from '$lib/components/molecules/SocialHost.svelte'; import SocialHost from '$lib/components/molecules/SocialHost.svelte';
</script> </script>
<div class="wrapper"> <div class="wrapper">
<div class="wrappezoid"> <div class="wrappezoid">
<IndexDescription /> <Home />
<div id="heroimg"><HeroImage /></div> <div id="heroimg"><HeroImage /></div>
</div> </div>
</div> </div>
@ -14,7 +14,7 @@
<style> <style>
.wrappezoid { .wrappezoid {
height: calc(100vh - 90px); height: calc(100vh - 120px);
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: center; justify-content: center;
@ -23,7 +23,7 @@
} }
@media (max-width: 1700px) { @media (max-width: 1700px) {
.wrappezoid { .wrappezoid {
justify-content: space-between; justify-content: space-between;;
} }
} }
@media (max-width: 1052px) { @media (max-width: 1052px) {
@ -33,8 +33,10 @@
} }
@media (max-width: 768px) { @media (max-width: 768px) {
.wrappezoid { .wrappezoid {
flex-direction: column; display: flex;
height: auto; justify-content: center;
align-items: center;
height: calc(65vh);
} }
} }
</style> </style>