parent
5404192301
commit
d7a8a32be0
@ -0,0 +1,21 @@
|
|||||||
|
section {
|
||||||
|
min-height: 50%;
|
||||||
|
min-width: 50%;
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%,-50%);
|
||||||
|
border: 1px solid #000;
|
||||||
|
border-radius: 50px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
section .btn {
|
||||||
|
position: absolute;
|
||||||
|
top: 0%;
|
||||||
|
height: 100%;
|
||||||
|
width: calc(100% - 1em);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-evenly;
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
<section>
|
||||||
|
<h1>
|
||||||
|
Choisir une difficulté:
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
<div class="btn">
|
||||||
|
<button routerLink="/sudoku/easy" mat-flat-button color="primary">easy</button>
|
||||||
|
<button routerLink="/sudoku/medium" mat-flat-button color="primary">medium</button>
|
||||||
|
<button routerLink="/sudoku/hard" mat-flat-button color="primary">hard</button>
|
||||||
|
</div>
|
||||||
|
</section>
|
@ -0,0 +1,23 @@
|
|||||||
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { DifficultySelectorComponent } from './difficulty-selector.component';
|
||||||
|
|
||||||
|
describe('DifficultySelectorComponent', () => {
|
||||||
|
let component: DifficultySelectorComponent;
|
||||||
|
let fixture: ComponentFixture<DifficultySelectorComponent>;
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
|
await TestBed.configureTestingModule({
|
||||||
|
imports: [DifficultySelectorComponent]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(DifficultySelectorComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
@ -0,0 +1,14 @@
|
|||||||
|
import { Component } from '@angular/core';
|
||||||
|
import { RouterModule } from '@angular/router';
|
||||||
|
import { MatButtonModule } from '@angular/material/button';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-difficulty-selector',
|
||||||
|
standalone: true,
|
||||||
|
imports: [RouterModule,MatButtonModule],
|
||||||
|
templateUrl: './difficulty-selector.component.html',
|
||||||
|
styleUrl: './difficulty-selector.component.css'
|
||||||
|
})
|
||||||
|
export class DifficultySelectorComponent {
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in new issue