Feedback button See merge request framasoft/framadate/funky-framadate-front!38archived-develop
commit
f00afc94db
@ -0,0 +1,23 @@
|
||||
<div class="feedback-container">
|
||||
<div class="feedback-choices" *ngIf="isOpen" [ngClass]="{ active: isOpen }">
|
||||
<a class="link" href="mailto:contact@cipherbliss.com">
|
||||
<i class="fa fa-mail-forward"></i>
|
||||
Par email
|
||||
</a>
|
||||
<a class="link" href="https://riot.im/app/#/room/#framadate:matrix.org">
|
||||
<i class="fa fa-matrix-org"></i>
|
||||
Par Matrix
|
||||
</a>
|
||||
<a class="link" href="https://framateam.org/ux-framatrucs/channels/framadate">
|
||||
<i class="fa fa-comments"></i>
|
||||
Discuter sur Framateam
|
||||
</a>
|
||||
<a class="link" href="https://framagit.org/framasoft/framadate/funky-framadate-front">
|
||||
<i class="fa fa-gitlab"></i>
|
||||
Créer une Issue sur Framagit
|
||||
</a>
|
||||
</div>
|
||||
<div class="button" (click)="isOpen = !isOpen" [ngClass]="{ active: isOpen }">
|
||||
<i class="fa fa-comment"></i> feedback
|
||||
</div>
|
||||
</div>
|
@ -0,0 +1,39 @@
|
||||
:host {
|
||||
position: fixed;
|
||||
bottom: 1em;
|
||||
right: 1em;
|
||||
color: white;
|
||||
.feedback-choices {
|
||||
&.active {
|
||||
background: #0c5593;
|
||||
border-radius: 0.5em;
|
||||
padding: 1em;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
}
|
||||
.link {
|
||||
margin: 1ch;
|
||||
display: block;
|
||||
max-width: 10em;
|
||||
color: white;
|
||||
padding: 0.5rem 1rem;
|
||||
&:hover {
|
||||
background: white;
|
||||
color: black;
|
||||
}
|
||||
}
|
||||
i {
|
||||
color: white;
|
||||
margin: 1ch;
|
||||
}
|
||||
.button {
|
||||
float: right;
|
||||
color: white;
|
||||
background: #0c5593;
|
||||
padding: 1em;
|
||||
border-radius: 2em;
|
||||
&.active {
|
||||
background: #2e6da4;
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { FeedbackComponent } from './feedback.component';
|
||||
|
||||
describe('FeedbackComponent', () => {
|
||||
let component: FeedbackComponent;
|
||||
let fixture: ComponentFixture<FeedbackComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [FeedbackComponent],
|
||||
}).compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(FeedbackComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
@ -0,0 +1,13 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-feedback',
|
||||
templateUrl: './feedback.component.html',
|
||||
styleUrls: ['./feedback.component.scss'],
|
||||
})
|
||||
export class FeedbackComponent implements OnInit {
|
||||
private isOpen = false;
|
||||
|
||||
constructor() {}
|
||||
ngOnInit(): void {}
|
||||
}
|
Loading…
Reference in new issue