summaryrefslogtreecommitdiff
path: root/MainLayout.razor
blob: 2d3cadc188e529ecfc33cc19de8dcf25235e11e5 (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
@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>

<AboutDialog @ref=aboutDialog/>

@code {
    private AboutDialog aboutDialog;
}