Skip to content

Commit

Permalink
improve: landing page responsiveness on small devices
Browse files Browse the repository at this point in the history
  • Loading branch information
zenkyuv committed Nov 19, 2024
1 parent eeb34f9 commit 612810b
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 21 deletions.
10 changes: 5 additions & 5 deletions s/components/landingpage/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ export class LandingPage extends LitElement {
}} class="menu-icon" src="/assets/hamburger.svg">
<div class="menu" ?data-opened=${this.menuOpened}>
<a @click=${() => this.scrollIntoElementView("welcome")} href="#welcome">Home</a>
<a @click=${() => this.scrollIntoElementView("core")} href="#core">Principles</a>
<a @click=${() => this.scrollIntoElementView("capabilities")} href="#capabilities">Capabilities</a>
<a @click=${() => this.scrollIntoElementView("soon")} href="#soon">Soon</a>
<a
class="try"
href="#/editor"
Expand All @@ -75,8 +75,8 @@ export class LandingPage extends LitElement {
</div>
<div class="nav">
<a @click=${() => this.scrollIntoElementView("welcome")} href="#welcome">Home</a>
<a @click=${() => this.scrollIntoElementView("core")} href="#core">Core Principles</a>
<a @click=${() => this.scrollIntoElementView("capabilities")} href="#capabilities">Capabilities</a>
<a @click=${() => this.scrollIntoElementView("soon")} href="#soon">Soon</a>
<a
class="try"
href="#/editor"
Expand Down Expand Up @@ -121,8 +121,8 @@ export class LandingPage extends LitElement {
</a>
</div>
</section>
<section id="abilities" class="abilities">
<h2>So, what's omniclip capable of ?</h2>
<section id="capabilities" class="abilities">
<h2>Capabilities</h2>
<div class=items>
<h4>All the basic stuff, you can add audio/image/text/video and trim or split it, but theres more!</h4>
<div class=flex>
Expand Down Expand Up @@ -272,7 +272,7 @@ export class LandingPage extends LitElement {
</div>
</div>
</section>
<section class="soon">
<section class="soon" id="soon">
<h2>Coming soon</h2>
<div class="items">
<div class=flex>
Expand Down
93 changes: 78 additions & 15 deletions s/components/landingpage/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,11 @@ export default css`
display: flex;
flex-direction: column;
position: absolute;
right: 0;
right: 20px;
top: 50px;
gap: 0.5em;
background: #00000061;
border-radius: 20px;
background: radial-gradient(100% 100% at var(--g3-3-x-position) var(--g3-3-y-position), #ffffff -80%, transparent), radial-gradient(100% 100% at var(--g3-1-x-position) var(--g3-1-y-position), #000000 -71%, transparent), radial-gradient(100% 100% at var(--g3-2-x-position) var(--g3-2-y-position), #431eaf -52%, transparent), #000000;
padding: 1em;
font-family: Poppins-Regular;
}
Expand Down Expand Up @@ -236,7 +237,7 @@ export default css`
padding: 3em;
display: flex;
justify-content: center;
gap: 3em;
gap: 2em;
flex-wrap: wrap;
position: relative;
flex-direction: column;
Expand Down Expand Up @@ -266,7 +267,8 @@ export default css`
justify-content: start;
color: white;
text-align: center;
font-size: 2.5em;
font-size: 2em;
margin: 2em 0;
line-height: 45px;
flex-direction: column;
text-transform: uppercase;
Expand All @@ -277,7 +279,6 @@ export default css`
flex-direction: column;
gap: 1em;
border-radius: 20px;
padding: 2em;
flex-wrap: wrap;
justify-content: center;
text-align: center;
Expand Down Expand Up @@ -366,7 +367,8 @@ export default css`
background: radial-gradient(100% 100% at var(--g3-3-x-position) var(--g3-3-y-position), #ffffff -80%, transparent), radial-gradient(100% 100% at var(--g3-1-x-position) var(--g3-1-y-position), #000000 -71%, transparent), radial-gradient(100% 100% at var(--g3-2-x-position) var(--g3-2-y-position), #431eaf -52%, transparent), #000000;
& video {
width: 350px;
max-width: 350px;
width: 100%;
border-radius: 20px;
}
Expand All @@ -386,6 +388,7 @@ export default css`
align-items: self-start;
font-family: Poppins-ExtraLight;
margin-top: 2em;
text-align: left;
& li:last-child {
font-weight: bold;
Expand Down Expand Up @@ -504,7 +507,7 @@ export default css`
}
& .free, .open {
min-width: 350px;
min-width: 300px;
& h3 {
padding: 1em;
Expand Down Expand Up @@ -591,7 +594,7 @@ export default css`
text-transform: uppercase;
font-size: 2em;
z-index: 5;
margin: 4em 0 1em 0;
margin: 4em 0 2em 0;
color: white;
}
Expand All @@ -608,7 +611,21 @@ export default css`
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: start;
gap: 1em;
width: 100%;
& .concept:first-child {
max-width: 500px;
}
& .concept:last-child {
max-width: 350px;
}
& .concept {
flex: 1 1 auto;
}
& img {
border-radius: 20px;
Expand All @@ -629,14 +646,15 @@ export default css`
}
& img {
max-height: 350px;
height: auto;
width: 100%;
}
}
& .flex {
display: flex;
gap: 1em;
flex-wrap: wrap;
}
& .item {
Expand Down Expand Up @@ -718,13 +736,12 @@ export default css`
}
@media only screen and (max-width: 768px) {
.abilities {
padding: 1em;
}
.soon {
& .items {
font-size: 0.8em;
}
& h2 {
font-size: 1.3em;
margin: 1.8em;
margin: 3em 0 1em 0;
}
& .ellipse-1 {
Expand All @@ -743,7 +760,7 @@ export default css`
.landing-page {
nav {
& .logo {
width: 100px;
width: 120px;
}
}
}
Expand Down Expand Up @@ -782,6 +799,14 @@ export default css`
}
@media only screen and (max-width: 640px) {
.abilities {
& h2 {
margin: 1em 0;
}
& .export {
gap: 3em;
}
}
.welcome {
padding: 7em 3em;
}
Expand All @@ -792,12 +817,50 @@ export default css`
}
@media only screen and (max-width: 480px) {
.differences {
& .items .gh .flex {
margin-top: 120px;
}
}
.abilities {
& .export {
padding: 1.3em;
& h3 {
font-size: 1.2em;
}
}
& .items .item {
width: 80px;
height: 60px;
}
& .items .more .item-more video {
width: 280px;
}
& .export {
gap: 2em;
}
}
.landing-page {
& footer {
padding: 2em;
}
}
.welcome {
& h1 {
font-size: 1em;
}
& h2 {
font-size: 0.7em;
}
padding: 5em 1em;
& .try, .discord {
Expand Down
2 changes: 1 addition & 1 deletion s/components/omni-manager/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const styles = css`
:host {
display: flex;
justify-content: center;
height: 100%;
height: 100vh;
width: 100vw;
background: rgba(0, 0, 0, 1);
}
Expand Down

0 comments on commit 612810b

Please sign in to comment.