import { useState } from 'react'; import { GameNode } from '@/components/shared/GameNode.jsx'; import { COMPANY } from '@/config/company.js'; import { ASSETS } from '@/config/assets.js'; import { strings } from '@/i18n/fa.js'; import { Icon } from '@/components/shared/Icon.jsx'; import { StartOptions } from './StartOptions.jsx'; import { InfoSheet } from './InfoSheet.jsx'; // Company information links under the start buttons, with their icons. const SECTIONS = [ ['about', 'building'], ['contact', 'phone'], ['address', 'map'], ['faq', 'help'], ['careers', 'briefcase'], ['gallery', 'image'], ['social', 'share'], ]; /** @typedef {{nodes: object, actions: object}} StartScreenProps */ /** * Landing-page style start screen over the slowly orbiting 3D factory: brand, the four ways * into the game, and the company information a website would normally show. * @param {StartScreenProps} props - Interface snapshots and actions. * @returns {import('react').ReactElement} Start screen. */ export function StartScreen({ nodes, actions }) { const [section, setSection] = useState(null); const text = strings.landing; return (
{text.logoAlt}

{COMPANY.shortName}

{COMPANY.tagline}

{text.heading}

{text.intro}

{text.keys}

setSection(null)} />
); }