update main content styling

This commit is contained in:
ryanchristo 2024-05-04 12:21:49 -07:00
parent 33fedb48f2
commit 1d3d980d6a
9 changed files with 216 additions and 415 deletions

View file

@ -8,155 +8,153 @@ import './globals.css'
const Layout = ({ children }: any) => ( const Layout = ({ children }: any) => (
<html lang="en"> <html lang="en">
<body> <body>
<main> <ThemeContextProvider>
<ThemeContextProvider> <MenuContextProvider>
<MenuContextProvider> <Background />
<Background /> <Header
<Header title={{
title={{ link: '/',
link: '/', titleX: 'studio',
titleX: 'studio', }}
}} items={[
items={[ {
{ link: '/products',
link: '/products', title: 'products',
title: 'products', target: '',
target: '', },
}, {
{ link: '/solutions',
link: '/solutions', title: 'solutions',
title: 'solutions', target: '',
target: '', },
}, {
{ link: '/validator',
link: '/validator', title: 'validator',
title: 'validator', target: '',
target: '', },
}, 'divider',
'divider', {
{ link: 'https://chora.blog',
link: 'https://chora.blog', title: 'blog',
title: 'blog', target: '_blank',
target: '_blank', },
}, ]}
]} showMenuButton={true}
showMenuButton={true} showMobileTitle={true}
showMobileTitle={true} />
/> <Sidebar
<Sidebar items={[
items={[ {
{ link: '.',
link: '.', target: '',
target: '', title: 'home',
title: 'home', },
}, {
{ link: 'products',
link: 'products', target: '',
target: '', title: 'products',
title: 'products', },
}, {
{ link: 'solutions',
link: 'solutions', target: '',
target: '', title: 'solutions',
title: 'solutions', },
}, {
{ link: 'validator',
link: 'validator', target: '',
target: '', title: 'validator',
title: 'validator', },
}, 'divider',
'divider', {
{ link: 'https://chora.blog',
link: 'https://chora.blog', target: '_blank',
target: '_blank', title: 'chora blog',
title: 'chora blog', },
}, {
{ link: 'https://chora.io',
link: 'https://chora.io', target: '_blank',
target: '_blank', title: 'chora software',
title: 'chora software', },
}, {
{ link: 'https://www.mintscan.io/regen/validators/regenvaloper1t8p3zdu3h8qzggfmvvvmtdnaj4trcsfh79xp4e',
link: 'https://www.mintscan.io/regen/validators/regenvaloper1t8p3zdu3h8qzggfmvvvmtdnaj4trcsfh79xp4e', target: '_blank',
target: '_blank', title: 'chora validator',
title: 'chora validator', },
}, ]}
]} mobileOnly={true}
mobileOnly={true} />
/> <main>{children}</main>
{children} <Footer
<Footer sections={[
sections={[ {
{ title: 'chora studio',
title: 'chora studio', items: [
items: [ {
{ link: 'https://chora.blog',
link: 'https://chora.blog', target: '_blank',
target: '_blank', title: 'blog',
title: 'blog', },
}, {
{ link: '/products',
link: '/products', target: '',
target: '', title: 'products',
title: 'products', },
}, {
{ link: '/solutions',
link: '/solutions', target: '',
target: '', title: 'solutions',
title: 'solutions', },
}, {
{ link: '/validator',
link: '/validator', target: '',
target: '', title: 'validator',
title: 'validator', },
}, ],
], },
}, {
{ title: 'chora software',
title: 'chora software', items: [
items: [ {
{ link: 'https://chora.io',
link: 'https://chora.io', target: '_blank',
target: '_blank', title: 'applications',
title: 'applications', },
}, {
{ link: 'https://docs.chora.io',
link: 'https://docs.chora.io', target: '_blank',
target: '_blank', title: 'documentation',
title: 'documentation', },
}, {
{ link: 'https://github.com/chora-io',
link: 'https://github.com/chora-io', target: '_blank',
target: '_blank', title: 'repositories',
title: 'repositories', },
}, ],
], },
}, {
{ title: 'chora validator',
title: 'chora validator', items: [
items: [ {
{ link: 'https://www.mintscan.io/regen/validators/regenvaloper1t8p3zdu3h8qzggfmvvvmtdnaj4trcsfh79xp4e',
link: 'https://www.mintscan.io/regen/validators/regenvaloper1t8p3zdu3h8qzggfmvvvmtdnaj4trcsfh79xp4e', target: '_blank',
target: '_blank', title: 'regen',
title: 'regen', },
}, {
{ link: 'https://chora.io/ledger',
link: 'https://chora.io/ledger', target: '_blank',
target: '_blank', title: 'regen-redwood',
title: 'regen-redwood', },
}, {
{ link: 'https://chora.io/ledger',
link: 'https://chora.io/ledger', target: '_blank',
target: '_blank', title: 'chora-testnet',
title: 'chora-testnet', },
}, ],
], },
}, ]}
]} />
/> </MenuContextProvider>
</MenuContextProvider> </ThemeContextProvider>
</ThemeContextProvider>
</main>
</body> </body>
</html> </html>
) )

View file

@ -1,86 +1,54 @@
/* container */ .page {
composes: page from 'chora/styles/page.css';
.container {
width: 100vw;
} }
/* sectionMain */ .banner {
composes: banner-full from 'chora/styles/main.css';
.sectionMain {
align-items: center;
display: flex;
font-size: 1.5rem;
justify-content: center;
min-height: 100vh;
text-align: center;
} }
.sectionMain h1 { .banner h1 {
padding: 0.75rem 0; font-size: 1.75em;
} margin-top: 2.5%;
padding: 0.15em 0;
.sectionMain p {
padding: 0.5rem 0;
}
.sectionMain p > i {
color: var(--color-theme);
} }
@media (max-width: 850px) { @media (max-width: 850px) {
.sectionMain { .banner h1 {
font-size: 1rem; padding: 0.1em 0 !important;
} }
} }
/* sectionText */ .banner p {
padding: 0.2em 0;
.sectionText {
align-items: center;
background: var(--background-primary);
display: flex;
font-size: 1.2rem;
justify-content: center;
min-height: 100vh;
} }
@media (max-width: 850px) { @media (max-width: 850px) {
.sectionText { .banner p {
font-size: 1rem; padding: 0.15em 0 !important;
} }
} }
.sectionText div { .content {
composes: content-full from 'chora/styles/main.css';
}
.content > div > h2 {
padding-bottom: 0.25em;
}
@media (max-width: 850px) {
.content > div > h2 {
padding-bottom: 0;
}
}
.content > div > a {
display: block; display: block;
margin-bottom: 5%; margin-bottom: 2em;
max-width: 650px;
padding: 2rem;
}
.sectionText div h2 {
margin-top: 2rem;
}
.sectionText div p {
padding: 1rem 0;
} }
@media (max-width: 850px) { @media (max-width: 850px) {
.sectionText div { .content > div > a {
padding: 2rem; margin-bottom: 1.5em;
} }
} }
/* sectionTextLinks */
.sectionTextLinks {
align-items: center;
display: flex;
justify-content: center;
padding: 1rem;
text-align: center;
}
.sectionTextLinks a {
padding: 1rem;
}

View file

@ -1,4 +1,3 @@
import { Background } from 'chora/components'
import { ArrowRight } from 'chora/components/icons' import { ArrowRight } from 'chora/components/icons'
import { Metadata } from 'next' import { Metadata } from 'next'
import Link from 'next/link' import Link from 'next/link'
@ -11,13 +10,11 @@ export const metadata: Metadata = {
const HomePage = () => { const HomePage = () => {
return ( return (
<div className={styles.container}> <div className={styles.page}>
<Background /> <div className={styles.banner}>
<div className={styles.sectionMain}>
<div> <div>
<h1> <h1>
{'chora '} {'chora'} <span style={{ opacity: '0.75' }}>{'studio'}</span>
<span style={{ opacity: '0.75' }}>{'studio'}</span>
</h1> </h1>
<p> <p>
<i>{'commons governance and ecological regeneration'}</i> <i>{'commons governance and ecological regeneration'}</i>
@ -25,7 +22,7 @@ const HomePage = () => {
<p>{'research and development'}</p> <p>{'research and development'}</p>
</div> </div>
</div> </div>
<div className={styles.sectionText}> <div className={styles.content}>
<div> <div>
<h2>{'products'}</h2> <h2>{'products'}</h2>
<p> <p>
@ -37,24 +34,20 @@ const HomePage = () => {
' - software for commons governance and ecological regeneration built with distributed ledger technology.' ' - software for commons governance and ecological regeneration built with distributed ledger technology.'
} }
</p> </p>
<p> <Link href="/products">
<Link href="/products"> {'learn more'}
{'learn more'} <ArrowRight />
<ArrowRight /> </Link>
</Link>
</p>
<h2>{'solutions'}</h2> <h2>{'solutions'}</h2>
<p> <p>
{ {
'Chora Studio provides software research and development as a service with a focus on distributed ledger technology and regenerative finance.' 'Chora Studio provides software research and development as a service with a focus on distributed ledger technology and regenerative finance.'
} }
</p> </p>
<p> <Link href="/solutions">
<Link href="/solutions"> {'learn more'}
{'learn more'} <ArrowRight />
<ArrowRight /> </Link>
</Link>
</p>
<h2>{'validator'}</h2> <h2>{'validator'}</h2>
<p> <p>
{'Chora Studio operates Chora Validator on '} {'Chora Studio operates Chora Validator on '}
@ -68,12 +61,10 @@ const HomePage = () => {
' and multiple test networks including Regen Redwood and Chora Testnet.' ' and multiple test networks including Regen Redwood and Chora Testnet.'
} }
</p> </p>
<p> <Link href="/validator">
<Link href="/validator"> {'learn more'}
{'learn more'} <ArrowRight />
<ArrowRight /> </Link>
</Link>
</p>
</div> </div>
</div> </div>
</div> </div>

View file

@ -1,60 +1,8 @@
/* container */ .page {
composes: page from 'chora/styles/page.css';
.container {
background: var(--background-primary-transparent);
margin-top: var(--header-height);
width: 100vw;
} }
/* sectionText */ .content {
composes: content from 'chora/styles/main.css';
.sectionText { min-height: calc(100vh - var(--header-height) - var(--footer-height));
background: var(--background-primary);
display: flex;
font-size: 1.2rem;
justify-content: center;
min-height: 100vh;
}
@media (max-width: 850px) {
.sectionText {
font-size: 1rem;
}
}
.sectionText div {
display: block;
margin-bottom: 5%;
max-width: 650px;
padding: 2rem;
}
.sectionText h1 {
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;
}
@media (max-width: 850px) {
.sectionText div {
padding: 2rem;
}
} }

View file

@ -8,8 +8,8 @@ export const metadata: Metadata = {
const ProductsPage = () => { const ProductsPage = () => {
return ( return (
<div className={styles.container}> <div className={styles.page}>
<div className={styles.sectionText}> <div className={styles.content}>
<div> <div>
<h1>{'products'}</h1> <h1>{'products'}</h1>
<p> <p>

View file

@ -1,60 +1,8 @@
/* container */ .page {
composes: page from 'chora/styles/page.css';
.container {
background: var(--background-primary-transparent);
margin-top: var(--header-height);
width: 100vw;
} }
/* sectionText */ .content {
composes: content from 'chora/styles/main.css';
.sectionText { min-height: calc(100vh - var(--header-height) - var(--footer-height));
background: var(--background-primary);
display: flex;
font-size: 1.2rem;
justify-content: center;
min-height: 100vh;
}
@media (max-width: 850px) {
.sectionText {
font-size: 1rem;
}
}
.sectionText div {
display: block;
margin-bottom: 5%;
max-width: 650px;
padding: 2rem;
}
.sectionText h1 {
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;
}
@media (max-width: 850px) {
.sectionText div {
padding: 2rem;
}
} }

View file

@ -8,8 +8,8 @@ export const metadata: Metadata = {
const SolutionsPage = () => { const SolutionsPage = () => {
return ( return (
<div className={styles.container}> <div className={styles.page}>
<div className={styles.sectionText}> <div className={styles.content}>
<div> <div>
<h1>{'solutions'}</h1> <h1>{'solutions'}</h1>
<p> <p>

View file

@ -1,60 +1,8 @@
/* container */ .page {
composes: page from 'chora/styles/page.css';
.container {
background: var(--background-primary-transparent);
margin-top: var(--header-height);
width: 100vw;
} }
/* sectionText */ .content {
composes: content from 'chora/styles/main.css';
.sectionText { min-height: calc(100vh - var(--header-height) - var(--footer-height));
background: var(--background-primary);
display: flex;
font-size: 1.2rem;
justify-content: center;
min-height: 100vh;
}
@media (max-width: 850px) {
.sectionText {
font-size: 1rem;
}
}
.sectionText div {
display: block;
margin-bottom: 5%;
max-width: 650px;
padding: 2rem;
}
.sectionText h1 {
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;
}
@media (max-width: 850px) {
.sectionText div {
padding: 2rem;
}
} }

View file

@ -11,8 +11,8 @@ const regenLink =
const ValidatorPage = () => { const ValidatorPage = () => {
return ( return (
<div className={styles.container}> <div className={styles.page}>
<div className={styles.sectionText}> <div className={styles.content}>
<div> <div>
<h1>{'validator'}</h1> <h1>{'validator'}</h1>
<p> <p>