-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #71 from Homie-s-Project/create-companion-page
Create companion page
- Loading branch information
Showing
7 changed files
with
78 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
kairos-web/src/app/components/companion/companion.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<fa-icon class="smiley-icon" [icon]="faPersonDigging"></fa-icon> | ||
<div class="text-container"> | ||
<h1>Page du compagnon</h1> | ||
<h2>Actuellement en construction ! Il vous rejoindra bientôt</h2> | ||
</div> | ||
<div class="companion-background"></div> |
29 changes: 29 additions & 0 deletions
29
kairos-web/src/app/components/companion/companion.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
@use '/src/styles/variables.scss' as vars; | ||
|
||
:host { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
width: 100%; | ||
height: 100%; | ||
gap: 15px; | ||
color: vars.$first-color; | ||
.smiley-icon { | ||
font-size: 120px; | ||
} | ||
.text-container { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
text-align: left; | ||
} | ||
.companion-background { | ||
width: 100%; | ||
height: 100%; | ||
background-color: darken(vars.$fourth-color, 7%); | ||
opacity: 75%; | ||
position: fixed; | ||
z-index: -1; | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
kairos-web/src/app/components/companion/companion.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { CompanionComponent } from './companion.component'; | ||
|
||
describe('CompanionComponent', () => { | ||
let component: CompanionComponent; | ||
let fixture: ComponentFixture<CompanionComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [ CompanionComponent ] | ||
}) | ||
.compileComponents(); | ||
|
||
fixture = TestBed.createComponent(CompanionComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
11 changes: 11 additions & 0 deletions
11
kairos-web/src/app/components/companion/companion.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Component } from '@angular/core'; | ||
import { faPersonDigging } from '@fortawesome/free-solid-svg-icons'; | ||
|
||
@Component({ | ||
selector: 'app-companion', | ||
templateUrl: './companion.component.html', | ||
styleUrls: ['./companion.component.scss'] | ||
}) | ||
export class CompanionComponent { | ||
faPersonDigging = faPersonDigging; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
@use '/src/styles/variables.scss' as vars; | ||
|
||
.error-container { | ||
display: flex; | ||
justify-content: center; | ||
|