54 lines
1.9 KiB
Plaintext

@model PlotLine.ViewModels.WordCompanionHostViewModel
@{
Layout = null;
var statusText = Model.IsAuthenticated ? "Connected to PlotDirector" : "Please sign in to PlotDirector";
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>PlotDirector Companion</title>
<link rel="stylesheet" href="~/css/word-companion.css" asp-append-version="true" />
<script src="https://appsforoffice.microsoft.com/lib/1/hosted/office.js"></script>
</head>
<body>
<main class="word-companion-shell" data-authenticated="@Model.IsAuthenticated.ToString().ToLowerInvariant()">
<header class="word-companion-header">
<p class="word-companion-eyebrow">PlotDirector</p>
<h1>Companion</h1>
<p class="word-companion-status" data-connection-status>@statusText</p>
@if (Model.IsAuthenticated)
{
<p class="word-companion-user">Signed in as @Model.DisplayName</p>
}
else
{
<a class="word-companion-sign-in" href="@Model.LoginUrl" target="_top">Sign in</a>
}
</header>
<section class="word-companion-section" aria-label="Project">
<span>Project</span>
<strong>(Not connected)</strong>
</section>
<section class="word-companion-section" aria-label="Book">
<span>Book</span>
<strong>(Not connected)</strong>
</section>
<section class="word-companion-section" aria-label="Current Scene">
<span>Current Scene</span>
<strong>(Not connected)</strong>
</section>
<footer class="word-companion-footer">
<span data-office-status>Word Companion loading</span>
</footer>
</main>
<script src="~/js/word-companion-host.js" asp-append-version="true"></script>
</body>
</html>