-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates 02/07 - New home page and fix routing (#17)
- Loading branch information
Showing
18 changed files
with
206 additions
and
21 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { Routes } from '@angular/router'; | ||
|
||
export const routes: Routes = [ | ||
{ path: '', redirectTo: '/simulados/home', pathMatch: 'full' }, | ||
{ path: '', redirectTo: '/simulados', pathMatch: 'full' }, | ||
{ path: 'simulados', loadChildren: () => import('./simulados/simulados.module').then(m => m.SimuladosModule) } | ||
]; |
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
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 |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
background-color: #080e19; | ||
display: block; | ||
box-sizing: border-box; | ||
max-height: 10vh; | ||
} | ||
|
||
h1{ | ||
|
12 changes: 9 additions & 3 deletions
12
src/app/simulados/componentes/list-simulados/list-simulados.component.css
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,17 +1,23 @@ | ||
:host{ | ||
width: 80%; | ||
max-height: 90vh; | ||
display: block; | ||
box-sizing: border-box; | ||
padding: 12px; | ||
overflow-y: scroll; | ||
} | ||
|
||
.simulados{ | ||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: flex-start; | ||
justify-content: space-evenly; | ||
} | ||
|
||
@media (max-width: 590px) { | ||
:host{ | ||
width: 100%; | ||
} | ||
|
||
.simulados{ | ||
justify-content: center; | ||
padding: 12px; | ||
} | ||
} |
1 change: 0 additions & 1 deletion
1
src/app/simulados/componentes/list-simulados/list-simulados.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
112 changes: 112 additions & 0 deletions
112
src/app/simulados/componentes/sidenav/sidenav.component.css
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,112 @@ | ||
:host { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-between; | ||
align-items: center; | ||
width: 20%; | ||
background-color: #18202f; | ||
} | ||
|
||
.sidebar { | ||
width: 100%; | ||
} | ||
|
||
.sidebar a { | ||
display: block; | ||
color: #fff; | ||
padding: 16px; | ||
text-decoration: none; | ||
} | ||
|
||
.sidebar a.active { | ||
border-bottom: 2px solid #319bf5; | ||
} | ||
|
||
.sidebar a:hover { | ||
background-color: #555; | ||
} | ||
|
||
.menu{ | ||
display: none; | ||
height: auto; | ||
padding: 4px; | ||
background: transparent; | ||
border: none; | ||
outline: none; | ||
float: right; | ||
} | ||
|
||
.menu img{ | ||
width: 36px; | ||
} | ||
|
||
.menu:hover { | ||
background-color: #555; | ||
} | ||
|
||
.contribute { | ||
background-color: #2f3643; | ||
color: #fff; | ||
padding: 16px 20px; | ||
margin: 6px; | ||
border-radius: 10px; | ||
} | ||
|
||
.contribute a { | ||
display: flex; | ||
align-items: center; | ||
color: #319bf5; | ||
text-decoration: none; | ||
font-size: 10pt; | ||
font-weight: bold; | ||
} | ||
|
||
.contribute a img{ | ||
max-height: 20px; | ||
margin: 4px; | ||
} | ||
|
||
.contribute a:hover{ | ||
text-decoration: underline; | ||
} | ||
|
||
@media screen and (max-width: 800px) { | ||
:host { | ||
width: 100%; | ||
} | ||
|
||
.contribute { | ||
position: absolute; | ||
top: 25%; | ||
width: 75%; | ||
box-shadow: 2px 2px 5px #319bf5; | ||
} | ||
|
||
.menu{ | ||
display: block; | ||
} | ||
|
||
.hide{ | ||
display: none; | ||
} | ||
|
||
.sidebar { | ||
height: auto; | ||
position: relative; | ||
} | ||
|
||
.sidebar a { | ||
float: left; | ||
} | ||
|
||
div.content { | ||
margin-left: 0; | ||
} | ||
} | ||
|
||
@media screen and (max-width: 400px) { | ||
.sidebar a { | ||
text-align: center; | ||
float: none; | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/app/simulados/componentes/sidenav/sidenav.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,13 @@ | ||
<div class="sidebar"> | ||
<a class="active" routerLink="/simulados">Simulados</a> | ||
<button class="menu" (click)="showContribute()"> | ||
<img src="/assets/icons/menu.svg"> | ||
</button> | ||
</div> | ||
<div class="contribute hide"> | ||
<h5>Contribua para o projeto:</h5> | ||
<a href="https://github.com/Salgado2004/CertCloud-Exams" target="_blank"> | ||
<img src="/assets/icons/github.svg">GitHub</a> | ||
<a href="https://github.com/Salgado2004/CertCloud-Exams/discussions" target="_blank"> | ||
<img src="/assets/icons/comments-solid.svg">Discussões</a> | ||
</div> |
23 changes: 23 additions & 0 deletions
23
src/app/simulados/componentes/sidenav/sidenav.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 { SidenavComponent } from './sidenav.component'; | ||
|
||
describe('SidenavComponent', () => { | ||
let component: SidenavComponent; | ||
let fixture: ComponentFixture<SidenavComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
imports: [SidenavComponent] | ||
}) | ||
.compileComponents(); | ||
|
||
fixture = TestBed.createComponent(SidenavComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
13 changes: 13 additions & 0 deletions
13
src/app/simulados/componentes/sidenav/sidenav.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,13 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-sidenav', | ||
templateUrl: './sidenav.component.html', | ||
styleUrl: './sidenav.component.css' | ||
}) | ||
export class SidenavComponent { | ||
showContribute(){ | ||
let contribute = document.querySelector(".contribute"); | ||
contribute.classList.toggle("hide"); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,10 @@ | |
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
} | ||
|
||
main{ | ||
display: flex; | ||
flex-wrap: wrap; | ||
height: 90vh; | ||
} |
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.