mirror of
https://github.com/hanzoai/gui.git
synced 2026-10-30 06:05:14 +00:00
Three of the seven stops were yellow, which over the dark ground is an olive, and the swatches sat in a Group, whose zeroed radii cut a straight edge through each selection ring. The ramp now sweeps one arc of the wheel and every stop is measured: the dimmest clears 3:1 against each of the seven grounds the page can paint, on both schemes. Picking one writes the accent through @hanzo/appearance, so the choice outlives the visit. Co-authored-by: Hanzo Dev <[email protected]>
148 lines
4.3 KiB
TypeScript
148 lines
4.3 KiB
TypeScript
import { NEUTRAL, setTintIndex } from '@hanzogui/logo'
|
|
import { useLoader } from 'one'
|
|
import { useEffect } from 'react'
|
|
import { Button, YStack } from '@hanzo/gui'
|
|
import { HeadInfo } from '~/components/HeadInfo'
|
|
import { HomeAnimations } from '~/features/site/home/HomeAnimations'
|
|
import { HomeCommunity } from '~/features/site/home/HomeCommunity'
|
|
import { HomeExampleProps } from '~/features/site/home/HomeExampleProps'
|
|
import { HomeExamples } from '~/features/site/home/HomeExamples'
|
|
import { HomeFeaturesGrid } from '~/features/site/home/HomeFeaturesGrid'
|
|
import { HomeGlow } from '~/features/site/home/HomeGlow'
|
|
import { Hero } from '~/features/site/home/HomeHero'
|
|
import { HomeHeroBelow } from '~/features/site/home/HomeHeroBelow'
|
|
import { HomePerformance } from '~/features/site/home/HomePerformance'
|
|
import { HomeResponsive } from '~/features/site/home/HomeResponsive'
|
|
import { HomeThemes } from '~/features/site/home/HomeThemes'
|
|
import { HomeTypography } from '~/features/site/home/HomeTypography'
|
|
import { HomeSection, SectionTinted, TintSection } from '~/features/site/home/TintSection'
|
|
import {
|
|
ThemeNameEffect,
|
|
ThemeNameEffectNoTheme,
|
|
} from '~/features/site/theme/ThemeNameEffect'
|
|
export async function loader() {
|
|
const { getCompilationExamples } = await import('~/features/mdx/getMDXBySlug')
|
|
return getCompilationExamples()
|
|
}
|
|
|
|
export default function GuiHomePage() {
|
|
const { compilationExamples, animationCode } = useLoader(loader)
|
|
|
|
useEffect(() => {
|
|
setTintIndex(NEUTRAL)
|
|
}, [])
|
|
|
|
if (!compilationExamples) {
|
|
return null
|
|
}
|
|
|
|
return null
|
|
|
|
return (
|
|
<Button transition={'100ms'} pressStyle={{ scale: 2 }}>
|
|
hi
|
|
</Button>
|
|
)
|
|
|
|
return (
|
|
<>
|
|
<HeadInfo
|
|
title="Gui"
|
|
description="React Native style library and UI kit with the best web performance"
|
|
/>
|
|
|
|
<ThemeNameEffect colorKey="$color3" />
|
|
|
|
<HomeGlow />
|
|
|
|
<YStack
|
|
fullscreen
|
|
className="grain"
|
|
opacity={0.2}
|
|
style={{
|
|
maskImage: `linear-gradient(transparent, rgba(0, 0, 0, 1) 100px)`,
|
|
}}
|
|
/>
|
|
|
|
<TintSection index={0} p={0}>
|
|
<Hero />
|
|
</TintSection>
|
|
<HomeHeroBelow />
|
|
<TintSection index={2} contain="paint layout" z={1000}>
|
|
<YStack
|
|
pointerEvents="none"
|
|
z={0}
|
|
fullscreen
|
|
className="bg-dot-grid"
|
|
style={{
|
|
maskImage: `linear-gradient(transparent, #000, transparent)`,
|
|
}}
|
|
/>
|
|
<HomeExamples examples={compilationExamples} />
|
|
</TintSection>
|
|
<TintSection my={-50} index={3} contain="paint layout" position="relative" z={100}>
|
|
<YStack
|
|
pointerEvents="none"
|
|
z={0}
|
|
fullscreen
|
|
className="bg-dot-grid"
|
|
style={{
|
|
maskImage: `linear-gradient(transparent, #000, transparent)`,
|
|
}}
|
|
/>
|
|
<HomeThemes />
|
|
</TintSection>
|
|
<TintSection index={4} mb={-120} z={10000}>
|
|
<HomeResponsive />
|
|
</TintSection>
|
|
<TintSection index={5} p={0} z={0}>
|
|
<SectionTinted gradient bubble>
|
|
<HomePerformance />
|
|
</SectionTinted>
|
|
</TintSection>
|
|
<TintSection index={6} z={100}>
|
|
<YStack
|
|
fullscreen
|
|
className="bg-grid"
|
|
style={{
|
|
maskImage: `linear-gradient(transparent, #000, transparent)`,
|
|
}}
|
|
/>
|
|
<HomeAnimations animationCode={animationCode} />
|
|
</TintSection>
|
|
<TintSection index={7} z={1}>
|
|
<HomeFeaturesGrid />
|
|
<YStack
|
|
pointerEvents="none"
|
|
z={2}
|
|
fullscreen
|
|
className="bg-dot-grid"
|
|
style={{
|
|
maskImage: `linear-gradient(transparent, #000, transparent)`,
|
|
}}
|
|
/>
|
|
</TintSection>
|
|
<TintSection index={8} my="$-4" p={0} z={100}>
|
|
<SectionTinted z={1000} bubble gradient>
|
|
<HomeTypography />
|
|
</SectionTinted>
|
|
</TintSection>
|
|
<HomeSection z={10}>
|
|
<YStack
|
|
pointerEvents="none"
|
|
z={0}
|
|
fullscreen
|
|
className="bg-dot-grid"
|
|
style={{
|
|
maskImage: `linear-gradient(transparent, #000, transparent)`,
|
|
}}
|
|
/>
|
|
<HomeExampleProps />
|
|
</HomeSection>
|
|
<HomeSection z={0}>
|
|
<HomeCommunity />
|
|
</HomeSection>
|
|
</>
|
|
)
|
|
}
|