Skip to content

Commit

Permalink
Configurando el navbar y otros componentes
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJonaCode committed Sep 24, 2020
1 parent 0bb9135 commit b6113ab
Show file tree
Hide file tree
Showing 17 changed files with 82 additions and 535 deletions.
533 changes: 1 addition & 532 deletions src/app/app.component.html

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@ import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { NavbarComponent } from './components/shared/navbar/navbar.component';
import { HomeComponent } from './components/home/home.component';
import { AboutComponent } from './components/about/about.component';
import { HeroesComponent } from './components/heroes/heroes.component';

@NgModule({
declarations: [
AppComponent,
NavbarComponent,
HomeComponent
HomeComponent,
AboutComponent,
HeroesComponent
],
imports: [
BrowserModule
Expand Down
1 change: 1 addition & 0 deletions src/app/components/about/about.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p>about works!</p>
14 changes: 14 additions & 0 deletions src/app/components/about/about.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-about',
templateUrl: './about.component.html'
})
export class AboutComponent implements OnInit {

constructor() { }

ngOnInit(): void {
}

}
1 change: 1 addition & 0 deletions src/app/components/heroes/heroes.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p>heroes works!</p>
16 changes: 16 additions & 0 deletions src/app/components/heroes/heroes.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-heroes',
templateUrl: './heroes.component.html',
styles: [
]
})
export class HeroesComponent implements OnInit {

constructor() { }

ngOnInit(): void {
}

}
9 changes: 8 additions & 1 deletion src/app/components/home/home.component.html
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
<p>home works!</p>
<div class="jumbotron jumbotron-fluid">

<div class="container">
<h1 class="display-4">Comic App</h1>
<p class="lead">Esta es una aplicación de comics.</p>
</div>

</div>
37 changes: 36 additions & 1 deletion src/app/components/shared/navbar/navbar.component.html
Original file line number Diff line number Diff line change
@@ -1 +1,36 @@
<p>navbar works!</p>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">

<a class="navbar-brand" href="#">
<img src="assets/img/A-64.png" width="30" height="30" alt="" loading="lazy">
</a>

<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>

<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="#">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Dropdown
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Something else here</a>
</div>
</li>
</ul>
<form class="form-inline my-2 my-lg-0">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
</form>
</div>
</nav>
Binary file added src/assets/img/A-64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/aquaman.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/batman.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/daredevil.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/hulk.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/linterna-verde.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/spiderman.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/wolverine.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/favicon.ico
Binary file not shown.

0 comments on commit b6113ab

Please sign in to comment.