﻿using System;
using DropIt.Helpers;
using DropIt.PageModels;
using DropIt.Views;
using FormsPlugin.Iconize;
using Xamarin.Forms;

namespace DropIt.Pages
{
    public class FirstPage : ContentPage
    {
        public FirstPage()
        {
            var next = new IconButton
            {
                Text = "md-arrow-forward",
                BackgroundColor = DropItColors.PrimaryDark,
                TextColor = Color.White,
                FontSize = 45,
                HorizontalOptions = LayoutOptions.EndAndExpand,
                VerticalOptions = LayoutOptions.EndAndExpand,
            };
            next.SetBinding(IconButton.CommandProperty, nameof(FirstPageModel.NextClickedCommand));

            Content = new ScrollView
            {
                Margin = new Thickness(20, 40, 20, 20),
                Content = new StackLayout
                {
                    Children =
                    {
                        new IntroLabelFirst
                        {
                            Text =  "Welcome to Drop It!"+
                                    Environment.NewLine+
                                    Environment.NewLine+
                                    Environment.NewLine+
                                    "We're happy to know that you took the hard decision of stop smoking. Congratulations!"+
                                    Environment.NewLine+
                                    Environment.NewLine+
                                    "Drop It! plans to help you every day, trying to motivate you to do it and remembering why you chosen this way."+
                                    Environment.NewLine+
                                    Environment.NewLine+
                                    "To start, we need to know something about you.We have to ask you some questions.If you\'re not sure about it, no problem! You can edit them in the future."
                        },
                        next
                    }
                },
            };
        }
    }
}
