From 33fedb48f273117c552ccb9e45716361087100d1 Mon Sep 17 00:00:00 2001 From: ryanchristo <12519942+ryanchristo@users.noreply.github.com> Date: Sat, 4 May 2024 10:06:59 -0700 Subject: [PATCH] fix layout and style --- app/layout.tsx | 2 +- app/products/page.module.css | 14 +++++++++++++- app/solutions/page.module.css | 14 +++++++++++++- app/validator/page.module.css | 14 +++++++++++++- 4 files changed, 40 insertions(+), 4 deletions(-) diff --git a/app/layout.tsx b/app/layout.tsx index 3ea40e7..0563313 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -33,7 +33,7 @@ const Layout = ({ children }: any) => ( title: 'validator', target: '', }, - 'divider', + 'divider', { link: 'https://chora.blog', title: 'blog', diff --git a/app/products/page.module.css b/app/products/page.module.css index 8e27f85..bf6cfd7 100644 --- a/app/products/page.module.css +++ b/app/products/page.module.css @@ -2,13 +2,13 @@ .container { background: var(--background-primary-transparent); + margin-top: var(--header-height); width: 100vw; } /* sectionText */ .sectionText { - align-items: center; background: var(--background-primary); display: flex; font-size: 1.2rem; @@ -33,10 +33,22 @@ margin: 2rem 0 1rem 0; } +@media (max-width: 850px) { + .sectionText h1 { + margin: 0; + } +} + .sectionText h2 { margin-top: 2rem; } +@media (max-width: 850px) { + .sectionText h2 { + margin-top: 1rem; + } +} + .sectionText div p { padding: 1rem 0; } diff --git a/app/solutions/page.module.css b/app/solutions/page.module.css index 8e27f85..bf6cfd7 100644 --- a/app/solutions/page.module.css +++ b/app/solutions/page.module.css @@ -2,13 +2,13 @@ .container { background: var(--background-primary-transparent); + margin-top: var(--header-height); width: 100vw; } /* sectionText */ .sectionText { - align-items: center; background: var(--background-primary); display: flex; font-size: 1.2rem; @@ -33,10 +33,22 @@ margin: 2rem 0 1rem 0; } +@media (max-width: 850px) { + .sectionText h1 { + margin: 0; + } +} + .sectionText h2 { margin-top: 2rem; } +@media (max-width: 850px) { + .sectionText h2 { + margin-top: 1rem; + } +} + .sectionText div p { padding: 1rem 0; } diff --git a/app/validator/page.module.css b/app/validator/page.module.css index 8e27f85..bf6cfd7 100644 --- a/app/validator/page.module.css +++ b/app/validator/page.module.css @@ -2,13 +2,13 @@ .container { background: var(--background-primary-transparent); + margin-top: var(--header-height); width: 100vw; } /* sectionText */ .sectionText { - align-items: center; background: var(--background-primary); display: flex; font-size: 1.2rem; @@ -33,10 +33,22 @@ margin: 2rem 0 1rem 0; } +@media (max-width: 850px) { + .sectionText h1 { + margin: 0; + } +} + .sectionText h2 { margin-top: 2rem; } +@media (max-width: 850px) { + .sectionText h2 { + margin-top: 1rem; + } +} + .sectionText div p { padding: 1rem 0; }