website refactor
This commit is contained in:
@@ -2,12 +2,10 @@
|
||||
|
||||
import { motion, useReducedMotion } from 'framer-motion';
|
||||
import { useState, useEffect } from 'react';
|
||||
import { Check } from 'lucide-react';
|
||||
import { Box } from '@/ui/Box';
|
||||
import { Text } from '@/ui/Text';
|
||||
import { Stack } from '@/ui/Stack';
|
||||
import { Heading } from '@/ui/Heading';
|
||||
import { Icon } from '@/ui/Icon';
|
||||
|
||||
export function CompanionAutomationMockup() {
|
||||
const shouldReduceMotion = useReducedMotion();
|
||||
@@ -23,7 +21,7 @@ export function CompanionAutomationMockup() {
|
||||
// Simple mobile version - just the essence of automation
|
||||
if (isMobile) {
|
||||
return (
|
||||
<Box position="relative" fullWidth fullHeight bg="bg-gradient-to-br from-deep-graphite to-iron-gray" rounded="lg" p={4} overflow="hidden" display="flex" alignItems="center" justifyContent="center">
|
||||
<Box position="relative" fullWidth fullHeight bg="graphite-black" rounded="none" p={4} overflow="hidden" display="flex" alignItems="center" justifyContent="center">
|
||||
<Box
|
||||
as={motion.div}
|
||||
initial={{ opacity: 0 }}
|
||||
@@ -32,39 +30,41 @@ export function CompanionAutomationMockup() {
|
||||
>
|
||||
<Stack gap={4}>
|
||||
{/* Simple progress indicator */}
|
||||
<Box bg="bg-iron-gray/60" rounded="xl" p={4} border borderColor="border-primary-blue/40">
|
||||
<Box bg="panel-gray/60" rounded="none" p={4} border borderColor="primary-accent/40">
|
||||
<Box display="flex" alignItems="center" gap={3} mb={3}>
|
||||
<Box
|
||||
as={motion.div}
|
||||
h="8"
|
||||
w="8"
|
||||
bg="bg-performance-green/40"
|
||||
rounded="full"
|
||||
bg="success-green/20"
|
||||
rounded="none"
|
||||
display="flex"
|
||||
alignItems="center"
|
||||
justifyContent="center"
|
||||
border
|
||||
borderWidth="2px"
|
||||
borderColor="border-performance-green/60"
|
||||
borderWidth="1px"
|
||||
borderColor="success-green/40"
|
||||
flexShrink={0}
|
||||
animate={shouldReduceMotion ? {} : {
|
||||
scale: [1, 1.1, 1],
|
||||
scale: [1, 1.05, 1],
|
||||
opacity: [0.6, 1, 0.6]
|
||||
}}
|
||||
transition={{ duration: 1.5, repeat: Infinity }}
|
||||
className="relative"
|
||||
>
|
||||
<Box h="3" w="3" bg="bg-performance-green" rounded="full" />
|
||||
<Box h="2" w="2" bg="success-green" />
|
||||
<Box position="absolute" top="-1px" left="-1px" w="2" h="2" borderTop borderLeft borderColor="success-green" />
|
||||
</Box>
|
||||
<Box>
|
||||
<Text size="sm" color="text-white" weight="medium" block>Creating Session</Text>
|
||||
<Text size="xs" color="text-white" opacity={0.5} block>Automated</Text>
|
||||
<Text size="sm" color="text-white" weight="bold" block className="uppercase tracking-widest">Creating Session</Text>
|
||||
<Text size="xs" color="text-gray-500" block font="mono">AUTOMATED</Text>
|
||||
</Box>
|
||||
</Box>
|
||||
<Box h="2.5" fullWidth bg="bg-white/5" rounded="full" overflow="hidden">
|
||||
<Box h="1" fullWidth bg="white/5" rounded="none" overflow="hidden">
|
||||
<Box
|
||||
as={motion.div}
|
||||
h="full"
|
||||
bg="bg-primary-blue/60"
|
||||
bg="primary-accent"
|
||||
initial={{ width: '0%' }}
|
||||
animate={{ width: '75%' }}
|
||||
transition={{ duration: 2, ease: 'easeInOut' }}
|
||||
@@ -74,8 +74,8 @@ export function CompanionAutomationMockup() {
|
||||
|
||||
{/* Simple CTA */}
|
||||
<Box display="flex" justifyContent="center">
|
||||
<Box bg="bg-primary-blue/20" color="text-primary-blue" px={6} py={2.5} rounded="lg" border borderColor="border-primary-blue/40">
|
||||
<Text size="sm" weight="semibold">One Click</Text>
|
||||
<Box bg="primary-accent/10" color="text-primary-accent" px={6} py={2.5} rounded="none" border borderColor="primary-accent/30">
|
||||
<Text size="xs" weight="bold" className="uppercase tracking-[0.2em]">One Click</Text>
|
||||
</Box>
|
||||
</Box>
|
||||
</Stack>
|
||||
@@ -86,7 +86,7 @@ export function CompanionAutomationMockup() {
|
||||
|
||||
// Desktop version - richer with more automation steps
|
||||
return (
|
||||
<Box position="relative" fullWidth fullHeight bg="bg-gradient-to-br from-deep-graphite via-iron-gray to-deep-graphite" rounded="lg" p={{ base: 3, md: 4, lg: 6 }} overflow="hidden">
|
||||
<Box position="relative" fullWidth fullHeight bg="graphite-black" rounded="none" p={{ base: 3, md: 4, lg: 6 }} overflow="hidden">
|
||||
<Box
|
||||
as={motion.div}
|
||||
initial="hidden"
|
||||
@@ -103,12 +103,14 @@ export function CompanionAutomationMockup() {
|
||||
{/* Companion App Header - Enhanced */}
|
||||
<Box as={motion.div} variants={{ hidden: { opacity: 0, y: -10 }, visible: { opacity: 1, y: 0 } }}>
|
||||
<Box display="flex" alignItems="center" gap={{ base: 2.5, md: 3, lg: 4 }} mb={{ base: 3, md: 4, lg: 5 }}>
|
||||
<Box h={{ base: 10, md: 12, lg: 14 }} w={{ base: 10, md: 12, lg: 14 }} bg="bg-primary-blue/20" rounded="lg" border borderWidth="2px" borderColor="border-primary-blue/40" display="flex" alignItems="center" justifyContent="center" shadow="lg">
|
||||
<Box h={{ base: 6, md: 7, lg: 8 }} w={{ base: 6, md: 7, lg: 8 }} bg="bg-primary-blue/60" rounded="sm" />
|
||||
<Box h={{ base: 10, md: 12, lg: 14 }} w={{ base: 10, md: 12, lg: 14 }} bg="primary-accent/10" rounded="none" border borderWidth="1px" borderColor="primary-accent/30" display="flex" alignItems="center" justifyContent="center" className="relative">
|
||||
<Box h={{ base: 6, md: 7, lg: 8 }} w={{ base: 6, md: 7, lg: 8 }} bg="primary-accent/40" />
|
||||
<Box position="absolute" top="-1px" left="-1px" w="2" h="2" borderTop borderLeft borderColor="primary-accent" />
|
||||
<Box position="absolute" bottom="-1px" right="-1px" w="2" h="2" borderBottom borderRight borderColor="primary-accent" />
|
||||
</Box>
|
||||
<Box>
|
||||
<Heading level={2} fontSize={{ base: 'base', md: 'lg', lg: 'xl' }} weight="semibold" color="text-white">GridPilot Companion</Heading>
|
||||
<Text size={{ base: 'xs', md: 'sm', lg: 'base' }} color="text-white" opacity={0.5} block>Automated Session Creator</Text>
|
||||
<Heading level={2} fontSize={{ base: 'base', md: 'lg', lg: 'xl' }} weight="bold" color="text-white" className="uppercase tracking-widest">GridPilot Companion</Heading>
|
||||
<Text size={{ base: 'xs', md: 'sm', lg: 'base' }} color="text-gray-500" block font="mono">AUTOMATED SESSION CREATOR</Text>
|
||||
</Box>
|
||||
</Box>
|
||||
</Box>
|
||||
@@ -118,26 +120,25 @@ export function CompanionAutomationMockup() {
|
||||
as={motion.div}
|
||||
variants={{ hidden: { opacity: 0, y: 10 }, visible: { opacity: 1, y: 0 } }}
|
||||
position="relative"
|
||||
bg="bg-charcoal-outline"
|
||||
rounded="lg"
|
||||
bg="panel-gray/40"
|
||||
rounded="none"
|
||||
p={{ base: 3, md: 4, lg: 5 }}
|
||||
border
|
||||
borderWidth="2px"
|
||||
borderColor="border-primary-blue/40"
|
||||
borderWidth="1px"
|
||||
borderColor="border-gray/50"
|
||||
overflow="hidden"
|
||||
>
|
||||
{/* Browser Window Mockup */}
|
||||
<Stack gap={{ base: 3, md: 4 }}>
|
||||
<Box display="flex" alignItems="center" gap={{ base: 2, md: 2.5 }} pb={{ base: 3, md: 4 }} borderBottom borderColor="border-white/10">
|
||||
<Box h={{ base: 2.5, md: 3 }} w={{ base: 2.5, md: 3 }} bg="bg-red-500/60" rounded="full" />
|
||||
<Box h={{ base: 2.5, md: 3 }} w={{ base: 2.5, md: 3 }} bg="bg-warning-amber/60" rounded="full" />
|
||||
<Box h={{ base: 2.5, md: 3 }} w={{ base: 2.5, md: 3 }} bg="bg-performance-green/60" rounded="full" />
|
||||
<Box flexGrow={1} h={{ base: 2.5, md: 3 }} bg="bg-white/5" rounded="sm" ml={2} px={2} display="flex" alignItems="center">
|
||||
<Box display="flex" alignItems="center" gap={{ base: 2, md: 2.5 }} pb={{ base: 3, md: 4 }} borderBottom borderColor="border-gray/30">
|
||||
<Box h="2" w="2" bg="critical-red/40" rounded="none" />
|
||||
<Box h="2" w="2" bg="warning-amber/40" rounded="none" />
|
||||
<Box h="2" w="2" bg="success-green/40" rounded="none" />
|
||||
<Box flexGrow={1} h="4" bg="graphite-black" rounded="none" ml={2} px={2} display="flex" alignItems="center" border borderColor="border-gray/30">
|
||||
<Text
|
||||
// eslint-disable-next-line gridpilot-rules/component-classification
|
||||
style={{ fontSize: '8px' }}
|
||||
color="text-white"
|
||||
opacity={0.3}
|
||||
color="text-gray-500"
|
||||
font="mono"
|
||||
>
|
||||
members.iracing.com
|
||||
@@ -169,54 +170,53 @@ export function CompanionAutomationMockup() {
|
||||
as={motion.div}
|
||||
h={{ base: 7, md: 8, lg: 9 }}
|
||||
w={{ base: 7, md: 8, lg: 9 }}
|
||||
rounded="full"
|
||||
rounded="none"
|
||||
display="flex"
|
||||
alignItems="center"
|
||||
justifyContent="center"
|
||||
flexShrink={0}
|
||||
border
|
||||
borderWidth="2px"
|
||||
borderWidth="1px"
|
||||
bg={
|
||||
step.status === 'Complete'
|
||||
? 'bg-performance-green/40'
|
||||
? 'success-green/10'
|
||||
: step.status === 'Running'
|
||||
? 'bg-primary-blue/40'
|
||||
: 'bg-charcoal-outline'
|
||||
? 'primary-accent/10'
|
||||
: 'transparent'
|
||||
}
|
||||
borderColor={
|
||||
step.status === 'Complete'
|
||||
? 'border-performance-green/60'
|
||||
? 'success-green/40'
|
||||
: step.status === 'Running'
|
||||
? 'border-primary-blue/60'
|
||||
: 'border-white/20'
|
||||
? 'primary-accent/40'
|
||||
: 'border-gray/30'
|
||||
}
|
||||
animate={shouldReduceMotion ? {} : step.status === 'Running' ? {
|
||||
scale: [1, 1.15, 1],
|
||||
opacity: [0.4, 1, 0.4]
|
||||
} : {}}
|
||||
transition={{ duration: 1.5, repeat: Infinity }}
|
||||
>
|
||||
{step.status === 'Complete' && (
|
||||
<Icon icon={Check} size={5} color="text-performance-green" />
|
||||
<Box w="2" h="2" bg="success-green" />
|
||||
)}
|
||||
{step.status === 'Running' && (
|
||||
<Box h={{ base: 3, md: 4 }} w={{ base: 3, md: 4 }} bg="bg-primary-blue" rounded="full" />
|
||||
<Box h="2" w="2" bg="primary-accent" />
|
||||
)}
|
||||
{step.status === 'Pending' && (
|
||||
<Box h={{ base: 2, md: 2.5 }} w={{ base: 2, md: 2.5 }} bg="bg-white/30" rounded="full" />
|
||||
<Box h="1" w="1" bg="gray-700" />
|
||||
)}
|
||||
</Box>
|
||||
<Box flexGrow={1}>
|
||||
<Text size={{ base: 'sm', md: 'base', lg: 'lg' }} color="text-white" weight="medium" block>{step.label}</Text>
|
||||
<Text size={{ base: 'xs', md: 'sm' }} color="text-white" opacity={0.5} block>{step.detail}</Text>
|
||||
<Text size={{ base: 'sm', md: 'base' }} color="text-white" weight="bold" block className="uppercase tracking-widest">{step.label}</Text>
|
||||
<Text size="xs" color="text-gray-500" block font="mono">{step.detail.toUpperCase()}</Text>
|
||||
</Box>
|
||||
</Box>
|
||||
{step.status !== 'Pending' && (
|
||||
<Box h={{ base: 2.5, md: 3 }} fullWidth bg="bg-white/5" rounded="full" overflow="hidden" ml={{ base: 9, md: 10, lg: 11 }}>
|
||||
<Box h="1" fullWidth bg="white/5" rounded="none" overflow="hidden" ml={{ base: 9, md: 10, lg: 11 }}>
|
||||
<Box
|
||||
as={motion.div}
|
||||
h="full"
|
||||
bg={step.status === 'Complete' ? 'bg-performance-green/60' : 'bg-primary-blue/60'}
|
||||
bg={step.status === 'Complete' ? 'success-green/60' : 'primary-accent/60'}
|
||||
initial={{ width: '0%' }}
|
||||
animate={{ width: step.status === 'Complete' ? '100%' : '65%' }}
|
||||
transition={{ duration: 2, ease: 'easeInOut' }}
|
||||
@@ -238,36 +238,33 @@ export function CompanionAutomationMockup() {
|
||||
display="flex"
|
||||
alignItems="center"
|
||||
gap={2}
|
||||
bg="bg-deep-graphite/90"
|
||||
// eslint-disable-next-line gridpilot-rules/component-classification
|
||||
className="backdrop-blur-sm"
|
||||
bg="graphite-black"
|
||||
px={3}
|
||||
py={2}
|
||||
rounded="full"
|
||||
py={1.5}
|
||||
rounded="none"
|
||||
border
|
||||
borderWidth="2px"
|
||||
borderColor="border-primary-blue/40"
|
||||
borderWidth="1px"
|
||||
borderColor="primary-accent/40"
|
||||
animate={shouldReduceMotion ? {} : {
|
||||
boxShadow: [
|
||||
'0 0 12px rgba(25,140,255,0.3)',
|
||||
'0 0 20px rgba(25,140,255,0.5)',
|
||||
'0 0 12px rgba(25,140,255,0.3)'
|
||||
'0 0 8px rgba(25,140,255,0.2)',
|
||||
'0 0 15px rgba(25,140,255,0.4)',
|
||||
'0 0 8px rgba(25,140,255,0.2)'
|
||||
]
|
||||
}}
|
||||
transition={{ duration: 2, repeat: Infinity }}
|
||||
>
|
||||
<Box
|
||||
as={motion.div}
|
||||
h={{ base: 2.5, md: 3 }}
|
||||
w={{ base: 2.5, md: 3 }}
|
||||
bg="bg-primary-blue"
|
||||
rounded="full"
|
||||
h="1.5"
|
||||
w="1.5"
|
||||
bg="primary-accent"
|
||||
animate={shouldReduceMotion ? {} : {
|
||||
opacity: [1, 0.5, 1]
|
||||
opacity: [1, 0.3, 1]
|
||||
}}
|
||||
transition={{ duration: 1.5, repeat: Infinity }}
|
||||
/>
|
||||
<Text size={{ base: 'xs', md: 'sm' }} color="text-primary-blue" weight="medium">Running</Text>
|
||||
<Text size="xs" color="text-primary-accent" weight="bold" className="uppercase tracking-widest">Running</Text>
|
||||
</Box>
|
||||
</Box>
|
||||
|
||||
@@ -278,32 +275,36 @@ export function CompanionAutomationMockup() {
|
||||
display="flex"
|
||||
flexDirection="col"
|
||||
alignItems="center"
|
||||
gap={{ base: 2, md: 3 }}
|
||||
gap={3}
|
||||
>
|
||||
<Box
|
||||
as={motion.div}
|
||||
bg="bg-primary-blue/20"
|
||||
color="text-primary-blue"
|
||||
bg="primary-accent/10"
|
||||
color="text-primary-accent"
|
||||
px={8}
|
||||
py={4}
|
||||
rounded="lg"
|
||||
py={3}
|
||||
rounded="none"
|
||||
border
|
||||
borderWidth="2px"
|
||||
borderColor="border-primary-blue/40"
|
||||
borderWidth="1px"
|
||||
borderColor="primary-accent/40"
|
||||
cursor="pointer"
|
||||
whileHover={shouldReduceMotion ? {} : {
|
||||
scale: 1.03,
|
||||
boxShadow: '0 4px 24px rgba(25,140,255,0.3)',
|
||||
scale: 1.02,
|
||||
borderColor: '#198CFF',
|
||||
transition: { duration: 0.15 }
|
||||
}}
|
||||
className="relative"
|
||||
>
|
||||
<Text size={{ base: 'base', md: 'lg' }} weight="semibold">Create Session</Text>
|
||||
<Text size="sm" weight="bold" className="uppercase tracking-[0.2em]">Create Session</Text>
|
||||
<Box position="absolute" top="-1px" left="-1px" w="2" h="2" borderTop borderLeft borderColor="primary-accent" />
|
||||
<Box position="absolute" bottom="-1px" right="-1px" w="2" h="2" borderBottom borderRight borderColor="primary-accent" />
|
||||
</Box>
|
||||
<Text
|
||||
// eslint-disable-next-line gridpilot-rules/component-classification
|
||||
style={{ fontSize: '10px' }}
|
||||
color="text-white"
|
||||
opacity={0.4}
|
||||
color="text-gray-500"
|
||||
font="mono"
|
||||
className="uppercase tracking-widest"
|
||||
>
|
||||
One click. All fields automated.
|
||||
</Text>
|
||||
|
||||
Reference in New Issue
Block a user