@page
@using global::c3stream.DataModels
@model IndexModel
@{
	ViewData["Title"] = "Home";
	var cookie = c3stream.UpdateCookie(Request, Response, "/");
	var marked = new Database.DbConn().States.Any(p => p.UserId == cookie && p.State == "marked");
}

<div style="text-align: center">
	<h1>Welcome to c3stream!</h1>
	Your bookmark link:<br/>
	<code onclick="copyToClipboard(this)">https://@Request.Host.Value?bookmark=@cookie</code><br/><br/>
	<div class="btn-group">
		@if (marked) {
			<a role="button" class="btn btn-primary" href="/Watchlist">watchlist</a>
		}
		@foreach (var conf in c3stream.Conferences) {
			<a role="button" class="btn btn-primary" href="/Conference?c=@conf.Acronym">@conf.Acronym</a>
		}
	</div>
</div>