feat: added images for ban screen, added reportscreen, added reportsscreen for mods & admins
This commit is contained in:
parent
75d75a2c84
commit
cb7ca62590
43 changed files with 358 additions and 46 deletions
14
ImageBoardServerApp/Pages/Accounts/Banned.razor
Normal file
14
ImageBoardServerApp/Pages/Accounts/Banned.razor
Normal file
|
@ -0,0 +1,14 @@
|
|||
@page "/banned"
|
||||
<h3>Banned</h3>
|
||||
|
||||
<img class="image" src="img/static/banned/@i"/>
|
||||
|
||||
@code {
|
||||
|
||||
private Random rndm = new Random();
|
||||
private string i = "";
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
i = rndm.Next(1, 10) + ".png";
|
||||
}
|
||||
}
|
6
ImageBoardServerApp/Pages/Accounts/Banned.razor.css
Normal file
6
ImageBoardServerApp/Pages/Accounts/Banned.razor.css
Normal file
|
@ -0,0 +1,6 @@
|
|||
.image{
|
||||
margin: 6px;
|
||||
max-width: 500px;
|
||||
max-height: 500px;
|
||||
padding: 5px;
|
||||
}
|
|
@ -18,8 +18,9 @@
|
|||
</div>
|
||||
<a @onclick="login" href="javascript:void(0)">[Login]</a>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
<Register></Register>
|
||||
@code {
|
||||
private string Email { get; set; }
|
||||
private string Password { get; set; }
|
||||
|
|
|
@ -41,8 +41,8 @@
|
|||
{
|
||||
return;
|
||||
}
|
||||
|
||||
await UsersRepository.createUserAsync(userToCreate);
|
||||
Console.WriteLine("loggin you in...");
|
||||
var user = await UsersRepository.getUserByEmailAsync(Email);
|
||||
if (user == null)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue