2026-06-07 21:53:32 +01:00

181 lines
10 KiB
Plaintext

<!DOCTYPE html>
<html lang="en" data-theme="light" data-bs-theme="light">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@ViewData["Title"] - PlotWeaver Studio</title>
<script>
(() => {
let savedTheme = null;
try {
savedTheme = localStorage.getItem("plotline.theme");
} catch {
savedTheme = null;
}
const theme = savedTheme === "dark" ? "dark" : "light";
document.documentElement.dataset.theme = theme;
document.documentElement.dataset.bsTheme = theme;
})();
</script>
<script type="importmap"></script>
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
<link rel="stylesheet" href="~/PlotLine.styles.css" asp-append-version="true" />
<link rel="stylesheet" href="~/css/plotline-theme.css" asp-append-version="true" />
<link rel="icon" href="~/favicon.ico" sizes="any" />
<link rel="icon" type="image/svg+xml" href="~/favicon.svg" />
<link rel="icon" type="image/png" sizes="32x32" href="~/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="~/favicon-16x16.png" />
<link rel="apple-touch-icon" sizes="180x180" href="~/apple-touch-icon.png" />
<link rel="manifest" href="~/site.webmanifest" />
<meta name="msapplication-config" content="/browserconfig.xml" />
<meta name="msapplication-TileColor" content="#1F2A44" />
<meta name="theme-color" content="#1F2A44" />
<meta property="og:site_name" content="PlotWeaver Studio" />
<meta property="og:title" content="PlotWeaver Studio" />
<meta property="og:type" content="website" />
<meta property="og:image" content="/og-image.png" />
</head>
<body>
<header>
<nav class="navbar navbar-expand-sm navbar-toggleable-sm border-bottom plotline-nav mb-3">
<div class="container-fluid">
<a class="navbar-brand fw-semibold" asp-area="" asp-controller="Home" asp-action="Index">PlotWeaver Studio</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target=".navbar-collapse" aria-controls="navbarSupportedContent"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="navbar-collapse collapse d-sm-inline-flex justify-content-between">
<ul class="navbar-nav flex-grow-1">
<li class="nav-item">
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Index">Home</a>
</li>
<li class="nav-item">
<a class="nav-link text-dark" asp-area="" asp-controller="Pricing" asp-action="Index">Pricing</a>
</li>
@if (User.Identity?.IsAuthenticated == true)
{
<li class="nav-item">
<a class="nav-link text-dark" asp-area="" asp-controller="Projects" asp-action="Index">Projects</a>
</li>
<li class="nav-item">
<a class="nav-link text-dark" asp-area="" asp-controller="Imports" asp-action="Index">Import</a>
</li>
<li class="nav-item">
<a class="nav-link text-dark" asp-area="" asp-controller="Writer" asp-action="Index">Writer Workspace</a>
</li>
<li class="nav-item">
<a class="nav-link text-dark" asp-area="" asp-controller="Help" asp-action="Index">Help</a>
</li>
}
</ul>
<div class="d-flex align-items-center gap-2 flex-wrap">
@if (User.Identity?.IsAuthenticated == true)
{
<span class="navbar-text text-dark">Hello @User.Identity.Name</span>
<a class="btn btn-outline-secondary btn-sm" asp-controller="ManageAccount" asp-action="Index">Manage Account</a>
<form asp-controller="Account" asp-action="Logout" method="post" class="m-0">
<button class="btn btn-outline-secondary btn-sm" type="submit">Logout</button>
</form>
}
else
{
<a class="btn btn-outline-secondary btn-sm" asp-controller="Account" asp-action="Login">Login</a>
<a class="btn btn-outline-primary btn-sm" asp-controller="Account" asp-action="Register">Register</a>
}
<div class="theme-switcher btn-group btn-group-sm" role="group" aria-label="Theme selection">
<button type="button" class="btn btn-outline-secondary" data-theme-choice="light" aria-pressed="true">Light</button>
<button type="button" class="btn btn-outline-secondary" data-theme-choice="dark" aria-pressed="false">Dark</button>
</div>
</div>
</div>
</div>
</nav>
</header>
<div class="plotweaver-help-layout" data-help-layout>
<div class="plotweaver-help-main">
<div class="container-fluid plotline-shell @ViewData["ShellClass"]">
<main role="main" class="pb-3">
@if (TempData["ArchiveMessage"] is string archiveMessage)
{
<div class="alert alert-info">@archiveMessage</div>
}
@if (TempData["ArchiveError"] is string archiveError)
{
<div class="alert alert-warning">@archiveError</div>
}
@if (TempData["ImportMessage"] is string importMessage)
{
<div class="alert alert-info">@importMessage</div>
}
@RenderBody()
</main>
</div>
</div>
<div class="plotweaver-help-splitter" data-help-splitter role="separator" aria-orientation="vertical" aria-label="Resize help drawer"></div>
<aside class="plotweaver-help-drawer" data-help-drawer aria-label="Help drawer">
<div class="plotweaver-help-collapsed-strip" data-help-expand role="button" tabindex="0" aria-label="Expand help drawer">Help</div>
<div class="plotweaver-help-drawer-panel">
<header class="plotweaver-help-drawer-header">
<div>
<p class="eyebrow mb-0">Contextual help</p>
<strong data-help-drawer-heading>Help</strong>
</div>
<div class="btn-group btn-group-sm" role="group" aria-label="Help drawer controls">
<button class="btn btn-outline-secondary" type="button" data-help-pin aria-pressed="false">Pin</button>
<button class="btn btn-outline-secondary" type="button" data-help-collapse>Collapse</button>
<button class="btn btn-outline-secondary" type="button" data-help-close>Close</button>
</div>
</header>
<div class="plotweaver-help-drawer-content" data-help-content>
<p class="muted">Choose More from a help popover to open the full guide.</p>
</div>
</div>
</aside>
</div>
@if ((ViewData["ShellClass"] as string)?.Contains("marketing-shell", StringComparison.OrdinalIgnoreCase) == true)
{
<footer class="public-footer" aria-label="Public site footer">
<div class="marketing-container public-footer__inner">
<a class="public-footer__brand" asp-controller="Home" asp-action="Index">PlotWeaver Studio</a>
<nav class="public-footer__nav" aria-label="Footer navigation">
<a asp-controller="Public" asp-action="About">About</a>
<a asp-controller="Pricing" asp-action="Index">Pricing</a>
<a asp-controller="Public" asp-action="Contact">Contact</a>
<a asp-controller="Public" asp-action="Privacy">Privacy Policy</a>
<a asp-controller="Public" asp-action="Terms">Terms of Service</a>
</nav>
</div>
</footer>
}
<div class="modal fade" id="plotlineConfirmModal" tabindex="-1" aria-labelledby="plotlineConfirmModalTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content plotline-confirm-modal">
<div class="modal-header">
<h2 class="modal-title fs-5" id="plotlineConfirmModalTitle">Confirm action</h2>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Cancel"></button>
</div>
<div class="modal-body">
<p id="plotlineConfirmModalMessage" class="mb-0"></p>
<div class="delete-confirm-field d-none mt-3" data-delete-confirm-field>
<label class="form-label" for="plotlineDeleteConfirmInput">Type DELETE to continue</label>
<input class="form-control" id="plotlineDeleteConfirmInput" autocomplete="off" data-delete-confirm-input />
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-outline-secondary" data-bs-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-danger" data-confirm-submit>Confirm</button>
</div>
</div>
</div>
</div>
<script src="~/lib/jquery/dist/jquery.min.js"></script>
<script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.9/dist/chart.umd.min.js"></script>
<script src="~/js/site.js" asp-append-version="true"></script>
@await RenderSectionAsync("Scripts", required: false)
</body>
</html>