summaryrefslogtreecommitdiff
path: root/Pages/Index.cshtml
diff options
context:
space:
mode:
Diffstat (limited to 'Pages/Index.cshtml')
-rw-r--r--Pages/Index.cshtml15
1 files changed, 15 insertions, 0 deletions
diff --git a/Pages/Index.cshtml b/Pages/Index.cshtml
new file mode 100644
index 0000000..80e05d9
--- /dev/null
+++ b/Pages/Index.cshtml
@@ -0,0 +1,15 @@
+@page
+@model HyperBooru.Pages.IndexModel
+
+<link rel="stylesheet" type="text/css" href="@(nameof(HyperBooru)).styles.css"/>
+
+<form id="upload" action="/media" method="post" enctype="multipart/form-data">
+ <input type="file" id="myFile" name="filename"/>
+ <input type="submit" />
+</form>
+
+@foreach(var media in Model.Media) {
+ <a href="/ViewMedia?m=@(media.Guid)">
+ <img src="/media/thumb/@(media.Guid)?h=200" />
+ </a>
+} \ No newline at end of file