import 'package:flutter/material.dart';
import 'package:design_system/design_system.dart';
import 'package:staff_authentication/staff_authentication.dart';

/// A widget that displays the welcome text and description on the Get Started page.
class GetStartedHeader extends StatelessWidget {
  /// Creates a [GetStartedHeader].
  const GetStartedHeader({super.key});

  @override
  Widget build(BuildContext context) {
    return Column(
      crossAxisAlignment: CrossAxisAlignment.stretch,
      children: <Widget>[
        RichText(
          textAlign: TextAlign.center,
          text: TextSpan(
            style: UiTypography.displayM,
            children: <InlineSpan>[
              TextSpan(
                text: t.staff_authentication.get_started_page.title_part1,
              ),
              TextSpan(
                text: t.staff_authentication.get_started_page.title_part2,
                style: UiTypography.displayMb.textLink,
              ),
            ],
          ),
        ),
        const SizedBox(height: 16),
        Text(
          t.staff_authentication.get_started_page.subtitle,
          textAlign: TextAlign.center,
          style: UiTypography.body1r.textSecondary,
        ),
      ],
    );
  }
}
