feat: enhance UI components and layout styling

- Updated FeatureDescription text size to be larger on desktop (lg:text-base)
- Added rounded corners (rounded-3xl) to DarkCard component
- Modified CloudArchitecture section with wider container (max-w-5xl) and updated heading styles
- Adjusted mobile feature navigation indicators with darker colors (bg-gray-600/700)
- Improved hero section typography using H2 and H5 components for better hierarchy
- Refined padding and background styling in CloudFeatures mobile
This commit is contained in:
2025-11-01 21:02:35 +01:00
parent 9d8f1a6919
commit 51ef8dffb5
5 changed files with 15 additions and 15 deletions

View File

@@ -131,7 +131,7 @@ export const FeatureTitle = createTextComponent(
) )
export const FeatureDescription = createTextComponent( export const FeatureDescription = createTextComponent(
'p', 'p',
'text-sm leading-normal tracking-normal' 'lg:text-base text-sm leading-normal tracking-normal'
) )
export const MobileFeatureTitle = createTextComponent( export const MobileFeatureTitle = createTextComponent(
'h3', 'h3',

View File

@@ -8,7 +8,7 @@ const DarkCard = React.forwardRef<
<div <div
ref={ref} ref={ref}
className={cn( className={cn(
"border border-white/10 bg-white/3 p-8 backdrop-blur-sm transition hover:-translate-y-1 hover:border-cyan-300/50 hover:bg-white/6 hover:scale-105 hover:shadow-lg hover:shadow-cyan-500/15", "border border-white/10 bg-white/3 p-8 backdrop-blur-sm transition hover:-translate-y-1 hover:border-cyan-300/50 rounded-3xl hover:bg-white/6 hover:scale-105 hover:shadow-lg hover:shadow-cyan-500/15",
className className
)} )}
{...props} {...props}

View File

@@ -1,5 +1,5 @@
import { Container } from '../../components/Container' import { Container } from '../../components/Container'
import { Eyebrow, SectionHeader, P } from '../../components/Texts' import { Eyebrow, H3, P } from '../../components/Texts'
const architectureSections = [ const architectureSections = [
{ {
@@ -39,15 +39,15 @@ const architectureSections = [
export function CloudArchitecture() { export function CloudArchitecture() {
return ( return (
<section className="bg-white py-24 sm:py-32"> <section className="bg-white py-24 lg:py-32">
<Container> <Container>
<div className="mx-auto max-w-3xl text-center"> <div className="mx-auto max-w-5xl text-center">
<Eyebrow> <Eyebrow>
Technical Architecture Technical Architecture
</Eyebrow> </Eyebrow>
<SectionHeader as="h2" className="mt-6 text-gray-900"> <H3 className="mt-6 text-gray-900">
Built on a sovereign, encrypted delivery mesh. Built on a Sovereign, Encrypted Delivery Mesh.
</SectionHeader> </H3>
<P className="mt-6 text-gray-600"> <P className="mt-6 text-gray-600">
Mycelium Cloud rides on the ThreeFold Grid, pairing encrypted mesh Mycelium Cloud rides on the ThreeFold Grid, pairing encrypted mesh
networking with deterministic K3s orchestration. Every layer is networking with deterministic K3s orchestration. Every layer is

View File

@@ -363,7 +363,7 @@ function CloudFeaturesMobile() {
<div className="relative mx-auto w-full max-w-[366px]"> <div className="relative mx-auto w-full max-w-[366px]">
<feature.screen /> <feature.screen />
</div> </div>
<div className="absolute inset-x-0 bottom-0 bg-gray-800/95 p-6 backdrop-blur-sm sm:p-10"> <div className="absolute inset-x-0 bottom-0 bg-gray-800 p-6 backdrop-blur-sm sm:p-10">
<feature.icon className="h-8 w-8" /> <feature.icon className="h-8 w-8" />
<MobileFeatureTitle color="white" className="mt-6"> <MobileFeatureTitle color="white" className="mt-6">
{feature.name} {feature.name}
@@ -383,7 +383,7 @@ function CloudFeaturesMobile() {
key={featureIndex} key={featureIndex}
className={clsx( className={clsx(
'relative h-0.5 w-4 rounded-full', 'relative h-0.5 w-4 rounded-full',
featureIndex === activeIndex ? 'bg-gray-300' : 'bg-gray-500', featureIndex === activeIndex ? 'bg-gray-600' : 'bg-gray-700',
)} )}
aria-label={`Go to slide ${featureIndex + 1}`} aria-label={`Go to slide ${featureIndex + 1}`}
onClick={() => { onClick={() => {

View File

@@ -2,7 +2,7 @@ import { useId } from 'react'
import { Button } from '../../components/Button' import { Button } from '../../components/Button'
import { Container } from '../../components/Container' import { Container } from '../../components/Container'
import { Eyebrow, SectionHeader, P } from '../../components/Texts' import { Eyebrow, H2, P, H5 } from '../../components/Texts'
function BackgroundIllustration(props: React.ComponentPropsWithoutRef<'div'>) { function BackgroundIllustration(props: React.ComponentPropsWithoutRef<'div'>) {
const id = useId() const id = useId()
@@ -82,16 +82,16 @@ export function CloudHero() {
<Eyebrow className="tracking-[0.35em] uppercase text-cyan-500"> <Eyebrow className="tracking-[0.35em] uppercase text-cyan-500">
Mycelium Cloud Mycelium Cloud
</Eyebrow> </Eyebrow>
<SectionHeader as="h1" className="mt-6 text-gray-900"> <H2 as="h1" className="mt-6 text-gray-900">
Deploy sovereign Kubernetes clusters on decentralized Deploy sovereign Kubernetes clusters on decentralized
infrastructure. infrastructure.
</SectionHeader> </H2>
<P className="mt-6 text-gray-600"> <H5 className="mt-6 text-gray-600">
Mycelium Cloud turns the ThreeFold Grid into a programmable Mycelium Cloud turns the ThreeFold Grid into a programmable
substrate for K3s. Launch verifiable clusters with nature-inspired substrate for K3s. Launch verifiable clusters with nature-inspired
networking, quantum-safe storage, and zero-image delivery that networking, quantum-safe storage, and zero-image delivery that
keeps every workload deterministic. keeps every workload deterministic.
</P> </H5>
<P className="mt-6 text-gray-500"> <P className="mt-6 text-gray-500">
Developer guide to decentralized cloud computing. Developer guide to decentralized cloud computing.
</P> </P>