Skip to content

Commit

Permalink
Merge pull request #73
Browse files Browse the repository at this point in the history
Better UI
  • Loading branch information
AleksanderNekr authored Mar 25, 2024
2 parents 8aec4a0 + f08a446 commit 812ef72
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/Backend/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@
{
{
"url",
new OpenApiString(
"https://github.com/AleksanderNekr/LichessAnalyzer/blob/master/src/Frontend/src/assets/logo-gen-nobg.png?raw=true")
new OpenApiString("/assets/logo-gen-nobg.png?raw=true")
},
{ "altText", new OpenApiString("The Logo") }
}
Expand Down
1 change: 1 addition & 0 deletions src/Frontend/src/app/login/login.component.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

15 changes: 12 additions & 3 deletions src/Frontend/src/app/login/login.component.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
<h1>Login using Lichess.org</h1>

<a class="btn btn-outline-primary" href="/login">Login</a>
<div class="container mt-5">
<div class="card mx-auto" style="max-width: 400px;">
<div class="card-header d-flex flex-column align-items-center">
<img ngSrc="assets/lichess-logo.png" alt="lichess-logo"
width="200" height="200" class="mt-5">
<h1 class="text-center mt-3 mb-5">Sign up using Lichess.org</h1>
</div>
<div class="card-body d-flex justify-content-center">
<a class="btn btn-primary btn-lg w-75" href="/login">Sign up</a>
</div>
</div>
</div>
5 changes: 4 additions & 1 deletion src/Frontend/src/app/login/login.component.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import { Component } from '@angular/core';
import { AuthService } from "../auth/auth.service";
import { NgOptimizedImage } from "@angular/common";

@Component({
selector: 'app-login',
standalone: true,
imports: [],
imports: [
NgOptimizedImage
],
templateUrl: './login.component.html',
styleUrl: './login.component.css',
providers: [ AuthService ]
Expand Down
Binary file added src/Frontend/src/assets/lichess-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/Frontend/src/favicon.ico
Binary file not shown.

0 comments on commit 812ef72

Please sign in to comment.