func Pages.Index(ctx)
{
    var repo = TypeOf(DB.Config.RepoCommitPrefix) == "String" ? DB.Config.RepoCommitPrefix : "https://onedev.site.tesses.net/crosslang/crosslangextras/~files/";
    
    var pages = [
            {
                active = false,
                route = "/packages",
                text = "Packages"
            },
            {
                active =  false,
                route = "/upload",
                text = "Upload"
            },
            DB.LoginButton(ctx,false)
        ];
        var commit = comptime {
            return BuildTime.Git.Hash;
        };



        var html = <article><h1 class={"display-5"} style={"text-align: center;"}>Make crosslang development faster and more convenient with CPKG</h1><form action={"./packages"} method={"get"}><div class={"container text-center"}><div class={"row"}><div class={"col"}>
                    
                  </div>
                  <div class={"col-6"}>
                    <div class={"input-group mb-3"}>
                        <input type={"search"} name={"q"} class={"form-control"} placeholder={"Search for packages..."} aria-label={"Search for packages..."} aria-describedby={"button-search"}>
                        <button class={"btn btn-outline-secondary"} type={"submit"} id={"button-search"}>Search</button>
                    </div> 

                    <a href="./api">API</a><br>
                    <a href={$"{repo}{commit}"}>Commit {commit.Remove(8)}</a>
                    <p>This website does not use cookies, unless you log in.</p>
                  </div>
                  <div class={"col"}>
                    
                  </div>
                </div>
              </div>
        </form>   
    </article>;
    return Shell("Main Page",pages,html);
}