Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI improvements #74

Merged
merged 4 commits into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.