diff --git a/.gitignore b/.gitignore index fe4fcde..3d88ff4 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,8 @@ ImageBoardServerApp/bin/ ImageBoardServerApp/obj/ *.db +*.db-shm +*.db-wal Migrations/ ## Ignore Visual Studio temporary files, build results, and diff --git a/ImageBoardServerApp/Pages/Index.razor b/ImageBoardServerApp/Pages/Index.razor index e3fd3ad..d3d948d 100644 --- a/ImageBoardServerApp/Pages/Index.razor +++ b/ImageBoardServerApp/Pages/Index.razor @@ -5,6 +5,13 @@ This is a simple Imageboard made in Razor.
We're currently hosting @amountOfPosts Threads with @amountOfComments Comments from @amountOfUsers Users. +
+
+ If you are a member of the server team please log in + + [here] + . +
@code{ private int amountOfPosts = -1; diff --git a/ImageBoardServerApp/Pages/Index.razor.css b/ImageBoardServerApp/Pages/Index.razor.css new file mode 100644 index 0000000..37a27d3 --- /dev/null +++ b/ImageBoardServerApp/Pages/Index.razor.css @@ -0,0 +1,14 @@ +.loginlink{ + display: block; + font-size: 10px; + color: #c6cfd0; +} + +.imblue{ + color: #0a53be; + cursor: pointer; +} + +.loginwrapper{ + display: flex; +} \ No newline at end of file diff --git a/ImageBoardServerApp/Shared/Components/Comment.razor.css b/ImageBoardServerApp/Shared/Components/Comment.razor.css index b78f7fa..b69acda 100644 --- a/ImageBoardServerApp/Shared/Components/Comment.razor.css +++ b/ImageBoardServerApp/Shared/Components/Comment.razor.css @@ -47,9 +47,9 @@ } .threadImage img:hover{ - transform: scale(3); - /*max-width:500px; - width: 100%; */ + /*transform: scale(3);*/ + max-width:500px; + width: 100%; } .threadText{ diff --git a/ImageBoardServerApp/Shared/Components/Forms/CommentForm.razor b/ImageBoardServerApp/Shared/Components/Forms/CommentForm.razor index 1cf580a..f729ea6 100644 --- a/ImageBoardServerApp/Shared/Components/Forms/CommentForm.razor +++ b/ImageBoardServerApp/Shared/Components/Forms/CommentForm.razor @@ -13,16 +13,29 @@
Comment on @post.Title in /@post.Board/ -
- OnChange(args, "username")) Class="w-100"/> -
+
+
+
+ @if (image != null) + { + No Image + } +
+ +
+ +
+
+ OnChange(args, "username")) Class="w-100"/> +
-
- OnChange(args, "Content")) Class="w-100"/> +
+ OnChange(args, "Content")) Class="w-100"/> +
+
-
diff --git a/ImageBoardServerApp/Shared/Components/Forms/CommentForm.razor.css b/ImageBoardServerApp/Shared/Components/Forms/CommentForm.razor.css index fc59e5e..15998e9 100644 --- a/ImageBoardServerApp/Shared/Components/Forms/CommentForm.razor.css +++ b/ImageBoardServerApp/Shared/Components/Forms/CommentForm.razor.css @@ -20,4 +20,21 @@ .marg{ margin: 2px +} + +.formImage{ + margin: 6px; + max-width: 200px; + max-height: 200px; + padding: 5px; +} + +.formImage img{ + max-width:150px; + width: 100%; +} + +.formContent{ + text-align: left; + display: flex; } \ No newline at end of file diff --git a/ImageBoardServerApp/Shared/Components/Post.razor.css b/ImageBoardServerApp/Shared/Components/Post.razor.css index b78f7fa..b69acda 100644 --- a/ImageBoardServerApp/Shared/Components/Post.razor.css +++ b/ImageBoardServerApp/Shared/Components/Post.razor.css @@ -47,9 +47,9 @@ } .threadImage img:hover{ - transform: scale(3); - /*max-width:500px; - width: 100%; */ + /*transform: scale(3);*/ + max-width:500px; + width: 100%; } .threadText{