added temp db files to gitignore, added link to login page to index, changed around the comment form, comments and posts

This commit is contained in:
limited_dev 2023-01-27 21:15:50 +01:00
parent f57338ab51
commit bdb2d0a0b5
7 changed files with 65 additions and 12 deletions

2
.gitignore vendored
View file

@ -2,6 +2,8 @@
ImageBoardServerApp/bin/ ImageBoardServerApp/bin/
ImageBoardServerApp/obj/ ImageBoardServerApp/obj/
*.db *.db
*.db-shm
*.db-wal
Migrations/ Migrations/
## Ignore Visual Studio temporary files, build results, and ## Ignore Visual Studio temporary files, build results, and

View file

@ -5,6 +5,13 @@
<span>This is a simple Imageboard made in Razor.</span> <span>This is a simple Imageboard made in Razor.</span>
<br/> <br/>
<span>We're currently hosting @amountOfPosts Threads with @amountOfComments Comments from @amountOfUsers Users.</span> <span>We're currently hosting @amountOfPosts Threads with @amountOfComments Comments from @amountOfUsers Users.</span>
<br/>
<div class="loginwrapper">
<span class="loginlink">If you are a member of the server team please log in</span>
<span> </span>
<a class="loginlink imblue" href="/login">[here]</a>
<span class="loginlink">.</span>
</div>
@code{ @code{
private int amountOfPosts = -1; private int amountOfPosts = -1;

View file

@ -0,0 +1,14 @@
.loginlink{
display: block;
font-size: 10px;
color: #c6cfd0;
}
.imblue{
color: #0a53be;
cursor: pointer;
}
.loginwrapper{
display: flex;
}

View file

@ -47,9 +47,9 @@
} }
.threadImage img:hover{ .threadImage img:hover{
transform: scale(3); /*transform: scale(3);*/
/*max-width:500px; max-width:500px;
width: 100%; */ width: 100%;
} }
.threadText{ .threadText{

View file

@ -13,16 +13,29 @@
<div class="pd centered"> <div class="pd centered">
<span>Comment on @post.Title in /@post.Board/</span> <span>Comment on @post.Title in /@post.Board/</span>
<div class="pd centered marg"> <div class="centered formContent">
<RadzenTextBox Placeholder="Username (Anonymous)" MaxLength="15" Change=@(args => OnChange(args, "username")) Class="w-100"/> <div>
<div class="pd centered marg">
@if (image != null)
{
<img class="formImage" src="@($"data:image/png;base64,{Convert.ToBase64String(image)}")" alt="No Image"/>
}
</div>
<InputFile OnChange="@SingleUpload" type="file" accept="image/*"/>
</div>
<div>
<div class="pd centered marg">
<RadzenTextBox Placeholder="Username (Anonymous)" MaxLength="15" Change=@(args => OnChange(args, "username")) Class="w-100"/>
</div>
<div class="pd centered marg">
<RadzenTextArea Placeholder="Comment..." @bind-Value="@postContent" Cols="30" Rows="6" Change=@(args => OnChange(args, "Content")) Class="w-100"/>
</div>
</div>
</div> </div>
<div class="pd centered marg"> <div class="pd centered marg">
<RadzenTextArea Placeholder="Comment..." @bind-Value="@postContent" Cols="30" Rows="6" Change=@(args => OnChange(args, "Content")) Class="w-100"/>
</div>
<div class="pd centered marg">
<InputFile OnChange="@SingleUpload" type="file" accept="image/*"/>
<RadzenButton class="pd" Click="@onPostClick" Text="Comment!"></RadzenButton> <RadzenButton class="pd" Click="@onPostClick" Text="Comment!"></RadzenButton>
</div> </div>

View file

@ -21,3 +21,20 @@
.marg{ .marg{
margin: 2px 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;
}

View file

@ -47,9 +47,9 @@
} }
.threadImage img:hover{ .threadImage img:hover{
transform: scale(3); /*transform: scale(3);*/
/*max-width:500px; max-width:500px;
width: 100%; */ width: 100%;
} }
.threadText{ .threadText{