All files / web/src/app/toys/coordinate-plane page.tsx

0% Statements 0/41
0% Branches 0/1
0% Functions 0/1
0% Lines 0/41

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42                                                                                   
'use client'

import { AppNavBar } from '@/components/AppNavBar'
import { CoordinatePlane } from '@/components/toys/coordinate-plane/CoordinatePlane'
import { useTheme } from '@/contexts/ThemeContext'

export default function CoordinatePlanePage() {
  const { resolvedTheme } = useTheme()
  const isDark = resolvedTheme === 'dark'

  return (
    <div
      data-component="coordinate-plane-page"
      style={{
        width: '100vw',
        height: '100dvh',
        overflow: 'hidden',
        background: isDark ? '#111827' : '#f9fafb',
        display: 'flex',
        flexDirection: 'column',
      }}
    >
      <AppNavBar
        navSlot={
          <span
            style={{
              fontSize: '14px',
              fontWeight: 600,
              color: isDark ? 'rgba(209, 213, 219, 1)' : 'rgba(55, 65, 81, 1)',
            }}
          >
            Coordinate Plane
          </span>
        }
      />
      <div style={{ flex: 1, minHeight: 0, paddingTop: 'var(--app-nav-height)' }}>
        <CoordinatePlane />
      </div>
    </div>
  )
}