import 'package:flutter/material.dart';
import '../widgets/custom_button.dart';
import '../widgets/responsive_layout.dart';

class SuccessScreen extends StatelessWidget {
  const SuccessScreen({super.key});

  @override
  Widget build(BuildContext context) {
    return ResponsiveLayout(
      child: Scaffold(
        body: Center(
        child: Padding(
          padding: const EdgeInsets.all(32),
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            crossAxisAlignment: CrossAxisAlignment.stretch,
            children: [
              Image.asset('assets/images/success_check.png', height: 150),
              const SizedBox(height: 32),
              const Text(
                'Akun Berhasil Dibuat',
                textAlign: TextAlign.center,
                style: TextStyle(fontSize: 28, fontWeight: FontWeight.bold),
              ),
              const SizedBox(height: 48),
              CustomButton(
                text: 'Mulai',
                onPressed: () {
                  // Arahkan ke halaman utama aplikasi setelah registrasi sukses
                  Navigator.pushReplacementNamed(context, '/home');
                },
              ),
            ],
          ),
        ),
      ),
    ),
  );
}
}