Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/pages/plano de estudos #5

Open
wants to merge 16 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: first commit
  • Loading branch information
monsorees committed Dec 6, 2024
commit 852cad5e649fb60ba695f0ca20bd41f2a7d44739
18 changes: 18 additions & 0 deletions src/app/pages/plano-estudos/plano-estudos-routing.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { Routes, RouterModule } from '@angular/router';

import { PlanoEstudosComponent } from './plano-estudos.component';

const routes: Routes = [
{
path: '',
component: PlanoEstudosComponent,
},
];

@NgModule({
imports: [CommonModule, RouterModule.forChild(routes)],
exports: [RouterModule],
})
export class planoEstudosRoutingModule {}
30 changes: 30 additions & 0 deletions src/app/pages/plano-estudos/plano-estudos.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<div class="header">
<div class="header-content">
<div class="content-icon">
<button (click)="goBack()">
<img class="icon" src="../../../../assets/back.svg" alt="Voltar" />
</button>

<div class="seach-notification">
<button>
<img class="icon" src="../../../../assets/search.svg" alt="Buscar" />
</button>

<button>
<img class="icon notification" src="../../../../assets/notification.svg" alt="Notificações" />
</button>
</div>
</div>

<div class="img-profile">
<img src="../../../../assets/foto-teste.svg" alt="" />
</div>
</div>
<app-profile-header> </app-profile-header>
</div>

<div class="home-content">
<h1>Plano de Estudo</h1>

<div class="cards"></div>
</div>
43 changes: 43 additions & 0 deletions src/app/pages/plano-estudos/plano-estudos.component.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
@import '../../../styles/base/variables';
@import '../../../styles/base/fonts';
.header-content {
width: 100vw;
position: absolute;
}

.content-icon {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 90vw;
width: 90vw;
margin: 0 auto;
padding-top: 25px;
button {
background: none;
cursor: pointer;
}
img {
width: 25px;
height: 25px;
background: none;
}
}

.img-profile {
display: flex;
align-items: center;
justify-content: center;
position: relative;
img {
width: 90px;
height: 90px;
}
}

.seach-notification {
display: flex;
justify-content: center;
align-items: center;
gap: 5px;
}
22 changes: 22 additions & 0 deletions src/app/pages/plano-estudos/plano-estudos.component.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';

import { PlanoEstudosComponent } from './plano-estudos.component';

describe('PlanoEstudosComponent', () => {
let component: PlanoEstudosComponent;
let fixture: ComponentFixture<PlanoEstudosComponent>;

beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [PlanoEstudosComponent],
}).compileComponents();

fixture = TestBed.createComponent(PlanoEstudosComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
14 changes: 14 additions & 0 deletions src/app/pages/plano-estudos/plano-estudos.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Component } from '@angular/core';
import { Location } from '@angular/common';

@Component({
selector: 'app-plano-estudos',
templateUrl: './plano-estudos.component.html',
styleUrl: './plano-estudos.component.scss',
})
export class PlanoEstudosComponent {
constructor(private location: Location) {}
goBack(): void {
this.location.back();
}
}
14 changes: 14 additions & 0 deletions src/app/pages/plano-estudos/plano-estudos.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { SharedModule } from '../../shared/shared.module';
// { ComponentsModule } from '../../shared/components/components.module';

import { PlanoEstudosComponent } from './plano-estudos.component';
import { planoEstudosRoutingModule } from './plano-estudos-routing.module';

@NgModule({
imports: [CommonModule, SharedModule, planoEstudosRoutingModule],
declarations: [PlanoEstudosComponent],
exports: [],
})
export class PlanoEstudosModule {}