summaryrefslogtreecommitdiff
path: root/MainLayout.razor
blob: d105399a940ff2f52fec4de957d5301245f36a5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
@inherits LayoutComponentBase

<link href="@(nameof(HyperBooru)).styles.css" rel="stylesheet" />

<div id="navbar">
    <a href="/">Home</a>
    <a href="/TagDefinitions">Tags</a>
    <a href="/Gallery?ingest=true">Ingest</a>
    <a href="/Upload">Upload</a>
    <a href="javascript:;" @onclick=@(() => aboutDialog.Show())>About</a>

    <p id="nsfw-label">NSFW</p>
    <div id="nsfw-switch">
        <NsfwSwitch/>
    </div>
    <form action="/Gallery" method="get">
        <input type="text" name="q" placeholder="Search"/>
    </form>
</div>

<div id="content">
    @Body
</div>

<Dialog Title="About" @ref=aboutDialog>
    About HyperBooru
    <div class="button-container">
        <button @onclick=@(() => aboutDialog.Hide())>Close</button>
    </div>
</Dialog>

@code {
    private Dialog aboutDialog;
}