fix(website): mobile regression and layout tweaks

This commit is contained in:
Elian Doran 2025-09-27 21:11:34 +03:00
parent 2df0763141
commit 5905299331
No known key found for this signature in database
5 changed files with 27 additions and 14 deletions

View File

@ -9,6 +9,12 @@ footer {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
flex-direction: column-reverse;
gap: 2em;
@media (min-width: 720px) {
flex-direction: row;
}
} }
} }

View File

@ -9,11 +9,12 @@ header {
--gap: 1.25em; --gap: 1.25em;
font-size: 0.8em; font-size: 0.8em;
.content-wrapper { &>.content-wrapper {
display: flex; display: flex;
align-items: center; align-items: center;
justify-items: center; justify-items: center;
gap: var(--gap); gap: var(--gap);
min-width: 80vw;
} }
a.banner { a.banner {
@ -52,15 +53,9 @@ header {
} }
} }
header > .content-wrapper,
section.hero-section > .content-wrapper {
min-width: 80vw;
}
@media (max-width: 719px) { @media (max-width: 719px) {
:root { :root {
--header-height: 35px; --header-height: 60px;
} }
header { header {
@ -69,6 +64,7 @@ section.hero-section > .content-wrapper {
left: 0; left: 0;
right: 0; right: 0;
min-height: var(--header-height); min-height: var(--header-height);
box-sizing: border-box;
display: flex; display: flex;
.content-wrapper { .content-wrapper {

View File

@ -46,11 +46,14 @@ export function Header() {
<nav className={`${mobileMenuShown ? "mobile-shown" : ""}`}> <nav className={`${mobileMenuShown ? "mobile-shown" : ""}`}>
{HEADER_LINKS.map(link => ( {HEADER_LINKS.map(link => (
<a <Link
href={link.url} href={link.url}
className={url === link.url ? "active" : ""} className={url === link.url ? "active" : ""}
target={link.external && "_blank"} openExternally={link.external}
>{link.text}</a> onClick={() => {
setMobileMenuShown(false);
}}
>{link.text}</Link>
))} ))}
<SocialButtons className="mobile-only" withText /> <SocialButtons className="mobile-only" withText />

View File

@ -43,6 +43,7 @@ section.hero-section {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
flex-direction: column; flex-direction: column;
min-width: 80vw;
} }
.title-section { .title-section {
@ -166,9 +167,12 @@ section.final-cta .buttons {
} }
.list-with-screenshot { .list-with-screenshot {
display: flex;
gap: 2em; gap: 2em;
@media (min-width: 720px) {
display: flex;
}
ul { ul {
list-style-type: none; list-style-type: none;
margin: 0; margin: 0;
@ -200,9 +204,12 @@ section.final-cta .buttons {
flex-direction: column-reverse; flex-direction: column-reverse;
ul { ul {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 1em; gap: 1em;
display: grid;
@media (min-width: 720px) {
grid-template-columns: 1fr 1fr 1fr;
}
} }
li { li {

View File

@ -140,6 +140,7 @@ img {
} }
@media (max-width: 719px) { @media (max-width: 719px) {
.grid-4-cols > *,
.grid-3-cols > *, .grid-3-cols > *,
.grid-2-cols > * { .grid-2-cols > * {
margin-bottom: 1em; margin-bottom: 1em;