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

View file

@ -1,86 +1,54 @@
/* container */
.container {
width: 100vw;
.page {
composes: page from 'chora/styles/page.css';
}
/* sectionMain */
.sectionMain {
align-items: center;
display: flex;
font-size: 1.5rem;
justify-content: center;
min-height: 100vh;
text-align: center;
.banner {
composes: banner-full from 'chora/styles/main.css';
}
.sectionMain h1 {
padding: 0.75rem 0;
}
.sectionMain p {
padding: 0.5rem 0;
}
.sectionMain p > i {
color: var(--color-theme);
.banner h1 {
font-size: 1.75em;
margin-top: 2.5%;
padding: 0.15em 0;
}
@media (max-width: 850px) {
.sectionMain {
font-size: 1rem;
.banner h1 {
padding: 0.1em 0 !important;
}
}
/* sectionText */
.sectionText {
align-items: center;
background: var(--background-primary);
display: flex;
font-size: 1.2rem;
justify-content: center;
min-height: 100vh;
.banner p {
padding: 0.2em 0;
}
@media (max-width: 850px) {
.sectionText {
font-size: 1rem;
.banner p {
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;
margin-bottom: 5%;
max-width: 650px;
padding: 2rem;
}
.sectionText div h2 {
margin-top: 2rem;
}
.sectionText div p {
padding: 1rem 0;
margin-bottom: 2em;
}
@media (max-width: 850px) {
.sectionText div {
padding: 2rem;
.content > div > a {
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 { Metadata } from 'next'
import Link from 'next/link'
@ -11,13 +10,11 @@ export const metadata: Metadata = {
const HomePage = () => {
return (
<div className={styles.container}>
<Background />
<div className={styles.sectionMain}>
<div className={styles.page}>
<div className={styles.banner}>
<div>
<h1>
{'chora '}
<span style={{ opacity: '0.75' }}>{'studio'}</span>
{'chora'} <span style={{ opacity: '0.75' }}>{'studio'}</span>
</h1>
<p>
<i>{'commons governance and ecological regeneration'}</i>
@ -25,7 +22,7 @@ const HomePage = () => {
<p>{'research and development'}</p>
</div>
</div>
<div className={styles.sectionText}>
<div className={styles.content}>
<div>
<h2>{'products'}</h2>
<p>
@ -37,24 +34,20 @@ const HomePage = () => {
' - software for commons governance and ecological regeneration built with distributed ledger technology.'
}
</p>
<p>
<Link href="/products">
{'learn more'}
<ArrowRight />
</Link>
</p>
<Link href="/products">
{'learn more'}
<ArrowRight />
</Link>
<h2>{'solutions'}</h2>
<p>
{
'Chora Studio provides software research and development as a service with a focus on distributed ledger technology and regenerative finance.'
}
</p>
<p>
<Link href="/solutions">
{'learn more'}
<ArrowRight />
</Link>
</p>
<Link href="/solutions">
{'learn more'}
<ArrowRight />
</Link>
<h2>{'validator'}</h2>
<p>
{'Chora Studio operates Chora Validator on '}
@ -68,12 +61,10 @@ const HomePage = () => {
' and multiple test networks including Regen Redwood and Chora Testnet.'
}
</p>
<p>
<Link href="/validator">
{'learn more'}
<ArrowRight />
</Link>
</p>
<Link href="/validator">
{'learn more'}
<ArrowRight />
</Link>
</div>
</div>
</div>

View file

@ -1,60 +1,8 @@
/* container */
.container {
background: var(--background-primary-transparent);
margin-top: var(--header-height);
width: 100vw;
.page {
composes: page from 'chora/styles/page.css';
}
/* sectionText */
.sectionText {
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;
}
.content {
composes: content from 'chora/styles/main.css';
min-height: calc(100vh - var(--header-height) - var(--footer-height));
}

View file

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

View file

@ -1,60 +1,8 @@
/* container */
.container {
background: var(--background-primary-transparent);
margin-top: var(--header-height);
width: 100vw;
.page {
composes: page from 'chora/styles/page.css';
}
/* sectionText */
.sectionText {
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;
}
.content {
composes: content from 'chora/styles/main.css';
min-height: calc(100vh - var(--header-height) - var(--footer-height));
}

View file

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

View file

@ -1,60 +1,8 @@
/* container */
.container {
background: var(--background-primary-transparent);
margin-top: var(--header-height);
width: 100vw;
.page {
composes: page from 'chora/styles/page.css';
}
/* sectionText */
.sectionText {
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;
}
.content {
composes: content from 'chora/styles/main.css';
min-height: calc(100vh - var(--header-height) - var(--footer-height));
}

View file

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