[frontend] Add public platform section
This commit is contained in:
parent
c550ace4cc
commit
e65dadf4dd
|
@ -0,0 +1 @@
|
|||
<p>platforms-info-dialog works!</p>
|
|
@ -0,0 +1,12 @@
|
|||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-platforms-info-dialog',
|
||||
templateUrl: './platforms-info-dialog.component.html',
|
||||
styleUrls: ['./platforms-info-dialog.component.scss'],
|
||||
})
|
||||
export class PlatformsInfoDialogComponent implements OnInit {
|
||||
constructor() {}
|
||||
|
||||
ngOnInit(): void {}
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
<h2>
|
||||
Platforms - choose one, get all hood messages
|
||||
<button mat-icon-button aria-label="How to use">
|
||||
<mat-icon
|
||||
matTooltip="What does this mean?"
|
||||
class="info-button"
|
||||
(click)="onInfoClick()"
|
||||
>info</mat-icon
|
||||
>
|
||||
</button>
|
||||
</h2>
|
||||
|
||||
<div class="container">
|
||||
<app-twitter-bot-card [hoodId]="hoodId"></app-twitter-bot-card>
|
||||
<app-telegram-bot-card [hoodId]="hoodId"></app-telegram-bot-card>
|
||||
<app-email-bot-card [hoodId]="hoodId"></app-email-bot-card>
|
||||
</div>
|
|
@ -0,0 +1,9 @@
|
|||
.container {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
gap: 10px;
|
||||
|
||||
@media (max-width: 600px) {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { PlatformsInfoPageComponent } from './platforms-info-page.component';
|
||||
|
||||
describe('PlatformsInfoPageComponent', () => {
|
||||
let component: PlatformsInfoPageComponent;
|
||||
let fixture: ComponentFixture<PlatformsInfoPageComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [PlatformsInfoPageComponent],
|
||||
}).compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(PlatformsInfoPageComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
|
@ -0,0 +1,20 @@
|
|||
import { Component, OnInit, Input } from '@angular/core';
|
||||
import { MatDialog } from '@angular/material/dialog';
|
||||
import { PlatformsInfoDialogComponent } from './platforms-info-dialog/platforms-info-dialog.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-platforms-info-page',
|
||||
templateUrl: './platforms-info-page.component.html',
|
||||
styleUrls: ['./platforms-info-page.component.scss'],
|
||||
})
|
||||
export class PlatformsInfoPageComponent implements OnInit {
|
||||
@Input() hoodId;
|
||||
|
||||
constructor(private dialog: MatDialog) {}
|
||||
|
||||
ngOnInit(): void {}
|
||||
|
||||
onInfoClick() {
|
||||
this.dialog.open(PlatformsInfoDialogComponent);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue