;
+ breakpoint!: number;
usuario$= this.autenticacaoFirebaseService.usuarioLogado$;
cards = this.breakpointObserver.observe(Breakpoints.Handset).pipe(
map(({ matches }) => {
@@ -37,4 +38,12 @@ export class BibvirtuaisComponent {
)
}
+ ngOnInit(): void {
+ this.breakpoint = (window.innerWidth <= 600) ? 1 : 2;
+ }
+
+ handleSize(event: any) {
+ this.breakpoint = (event.target.innerWidth <= 600) ? 1 : 2;
+ }
+
}
diff --git a/src/app/criticas/critica/critica.component.html b/src/app/criticas/critica/critica.component.html
index 1f41ab76..73dd076c 100644
--- a/src/app/criticas/critica/critica.component.html
+++ b/src/app/criticas/critica/critica.component.html
@@ -9,8 +9,8 @@
-
-
+
+
{{busca.titulo}}
@@ -36,7 +36,7 @@
NORMAS TÉCNICAS ABNT
-
+
diff --git a/src/app/criticas/critica/critica.component.ts b/src/app/criticas/critica/critica.component.ts
index 8bf30389..a8bb2176 100644
--- a/src/app/criticas/critica/critica.component.ts
+++ b/src/app/criticas/critica/critica.component.ts
@@ -16,6 +16,7 @@ export class CriticaComponent {
criticas$: Observable;
result$?: Observable
value!: string;
+ breakpoint!: number;
criticas= this.breakpointObserver.observe(Breakpoints.Handset).pipe(
map(({ matches }) => {
@@ -42,6 +43,7 @@ export class CriticaComponent {
@ViewChild('searchInput') searchInput!: ElementRef
ngAfterViewInit(): void {
+ this.breakpoint = (window.innerWidth <= 600) ? 1 : 2;
fromEvent(this.searchInput.nativeElement, 'keyup').pipe(
filter(Boolean),
debounceTime(400),
@@ -64,4 +66,8 @@ export class CriticaComponent {
data: resenha
})
}
+
+ handleSize(event: any) {
+ this.breakpoint = (event.target.innerWidth <= 600) ? 1 : 2;
+ }
}
diff --git a/src/app/feed/feed.component.html b/src/app/feed/feed.component.html
index 75237bf8..f2bb5b2c 100644
--- a/src/app/feed/feed.component.html
+++ b/src/app/feed/feed.component.html
@@ -9,7 +9,7 @@
-
+
@@ -41,33 +41,8 @@ Bem vindo(a), {{usuario.d
-
-
-
-
-
- {{card.titulo}}
- {{card.subtitulo}}
-
-
-
- {{card.conteudo}}
-
-
-
- {{ link.texto }}
-
-
-
-
-
-
-
-
-
-
+
+
diff --git a/src/app/feed/feed.component.ts b/src/app/feed/feed.component.ts
index 6e390d27..16f98efd 100644
--- a/src/app/feed/feed.component.ts
+++ b/src/app/feed/feed.component.ts
@@ -17,6 +17,7 @@ export class FeedComponent implements OnInit, AfterViewInit{
value!: string;
formulario!: FormGroup;
cards$: Observable;
+ breakpoint!: number;
usuario$= this.autenticacaoFirebaseService.usuarioLogado$;
cards = this.breakpointObserver.observe(Breakpoints.Handset).pipe(
map(({ matches }) => {
@@ -30,6 +31,7 @@ export class FeedComponent implements OnInit, AfterViewInit{
@ViewChild('searchInput') searchInput!: ElementRef
ngOnInit(): void {
+ this.breakpoint = (window.innerWidth <= 600) ? 1 : 2;
this.formulario = new FormGroup({
titulo: new FormControl('')
})
@@ -68,4 +70,8 @@ export class FeedComponent implements OnInit, AfterViewInit{
.subscribe();
}
+ handleSize(event: any) {
+ this.breakpoint = (event.target.innerWidth <= 600) ? 1 : 2;
+ }
+
}
diff --git a/src/app/reportagem/reportagem.component.html b/src/app/reportagem/reportagem.component.html
index 3fbcca40..5a31def0 100644
--- a/src/app/reportagem/reportagem.component.html
+++ b/src/app/reportagem/reportagem.component.html
@@ -9,7 +9,7 @@
apelo por bem estar pessoal, criatividade e autoconhecimento. A literatura brasileira é rica de grandes
obras escritas por artistas consagrados e reconhecidos mundialmente.
-
+
diff --git a/src/app/reportagem/reportagem.component.ts b/src/app/reportagem/reportagem.component.ts
index 36ac6a1c..fe048789 100644
--- a/src/app/reportagem/reportagem.component.ts
+++ b/src/app/reportagem/reportagem.component.ts
@@ -1,5 +1,5 @@
import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';
-import { Component } from '@angular/core';
+import { Component, OnInit } from '@angular/core';
import { catchError, Observable, of } from 'rxjs';
import { map } from 'rxjs/operators';
@@ -16,6 +16,7 @@ export class ReportagemComponent {
reportagem$: Observable;
usuario$= this.autenticacaoFirebaseService.usuarioLogado$;
+ breakpoint!: number;
reportagens= this.breakpointObserver.observe(Breakpoints.Handset).pipe(
map(({ matches }) => {
if (matches) {
@@ -37,4 +38,12 @@ export class ReportagemComponent {
})
)
}
+
+ ngOnInit(): void {
+ this.breakpoint = (window.innerWidth <= 600) ? 1 : 2;
+ }
+
+ handleSize(event: any) {
+ this.breakpoint = (event.target.innerWidth <= 600) ? 1 : 2;
+ }
}
diff --git a/src/app/sagas/sagas.component.html b/src/app/sagas/sagas.component.html
index fda897a1..40abc13c 100644
--- a/src/app/sagas/sagas.component.html
+++ b/src/app/sagas/sagas.component.html
@@ -9,8 +9,8 @@
-
-
+
+
@@ -34,8 +34,8 @@
AS 10 SAGAS LITERÁRIAS MAIS FAMOSAS
-
-
+
+
diff --git a/src/app/sagas/sagas.component.ts b/src/app/sagas/sagas.component.ts
index 421b9218..23e29d30 100644
--- a/src/app/sagas/sagas.component.ts
+++ b/src/app/sagas/sagas.component.ts
@@ -6,7 +6,6 @@ import { catchError, fromEvent, Observable,filter, debounceTime, distinctUntilCh
import { SagasService } from '../servicosInterface/sagas.service';
import { map } from 'rxjs/operators';
import { SagasDialogoComponent } from '../sagas-dialogo/sagas-dialogo.component';
-import { ConnectedOverlayPositionChange } from '@angular/cdk/overlay';
@Component({
selector: 'app-sagas',
@@ -18,6 +17,7 @@ export class SagasComponent implements AfterViewInit {
sagas$: Observable;
result$?: Observable
value!: string;
+ breakpoint!: number;
sagas= this.breakpointObserver.observe(Breakpoints.Handset).pipe(
map(({ matches }) => {
@@ -44,6 +44,7 @@ export class SagasComponent implements AfterViewInit {
@ViewChild('searchInput') searchInput!: ElementRef
ngAfterViewInit(): void {
+ this.breakpoint = (window.innerWidth <= 700) ? 1 : 2;
fromEvent(this.searchInput.nativeElement, 'keyup').pipe(
filter(Boolean),
debounceTime(400),
@@ -61,6 +62,10 @@ export class SagasComponent implements AfterViewInit {
).subscribe()
}
+ handleSize(event: any) {
+ this.breakpoint = (event.target.innerWidth <= 700) ? 1 : 2;
+ }
+
abrirSagas(livros: [{nome:string}]){
this.telaSagas.open(SagasDialogoComponent,{
data: livros
diff --git a/src/app/sugestoes/sugestoes.component.html b/src/app/sugestoes/sugestoes.component.html
index 852985b9..194e1d0c 100644
--- a/src/app/sugestoes/sugestoes.component.html
+++ b/src/app/sugestoes/sugestoes.component.html
@@ -8,8 +8,8 @@
-
-
+
+
{{busca.titulo}}
@@ -32,8 +32,8 @@
SUGESTÕES DE LIVROS
-
-
+
+
diff --git a/src/app/sugestoes/sugestoes.component.ts b/src/app/sugestoes/sugestoes.component.ts
index 905a269e..b88802a9 100644
--- a/src/app/sugestoes/sugestoes.component.ts
+++ b/src/app/sugestoes/sugestoes.component.ts
@@ -17,6 +17,7 @@ export class SugestoesComponent {
cards$: Observable ;
result$?: Observable
value!: string;
+ breakpoint!: number;
cards = this.breakpointObserver.observe(Breakpoints.Handset).pipe(
map(({ matches }) => {
@@ -42,6 +43,7 @@ export class SugestoesComponent {
@ViewChild('searchInput') searchInput!: ElementRef
ngAfterViewInit(): void {
+ this.breakpoint = (window.innerWidth <= 600) ? 1 : 2;
fromEvent(this.searchInput.nativeElement, 'keyup').pipe(
filter(Boolean),
debounceTime(400),
@@ -58,4 +60,8 @@ export class SugestoesComponent {
})
).subscribe()
}
+
+ handleSize(event: any) {
+ this.breakpoint = (event.target.innerWidth <= 600) ? 1 : 2;
+ }
}
diff --git a/src/assets/dashboard.json b/src/assets/dashboard.json
index bf039ecd..2fb80032 100644
--- a/src/assets/dashboard.json
+++ b/src/assets/dashboard.json
@@ -8,8 +8,8 @@
{"ref":"https://www.theenemy.com.br/social/criticas/review-the-witcher-temporada-2#:~:text=Honestamente%2C%20a%20breve%20apari%C3%A7%C3%A3o%20da,Ciri%20em%20termos%20de%20magia.", "texto":"The Enemy"},
{"ref":"https://jovemnerd.com.br/nerdbunker/the-witcher-vale-a-pena-os-livros/","texto":"Jovem Nerd"}
],
- "cols": 2,
- "rows": 3
+ "cols": 1,
+ "rows": 2
},
{
"titulo": "Dica de Livros: Ler e Pensar",