-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6e9510d
commit 4703007
Showing
8 changed files
with
188 additions
and
122 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
Angular/lucia-no-te-enfades-pp/src/app/app-routing.module.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,21 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { Routes, RouterModule } from '@angular/router'; | ||
|
||
import { HomeComponent } from "./home/home.component"; | ||
import { LoginComponent } from "./login/login.component"; | ||
|
||
const routes: Routes = [ | ||
{path: 'index', component: HomeComponent }, | ||
{path: 'login', component: LoginComponent } | ||
]; | ||
|
||
export const routing = RouterModule.forRoot(routes); | ||
// Aqui van las rutas de los componentes | ||
// Más tarde, a la hora de poner links, los links cambian el componente activo | ||
|
||
@NgModule({ | ||
|
||
imports: [RouterModule.forRoot(routes)], | ||
exports: [RouterModule] | ||
}) | ||
export class AppRoutingModule { } |
115 changes: 1 addition & 114 deletions
115
Angular/lucia-no-te-enfades-pp/src/app/app.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 |
---|---|---|
@@ -1,114 +1 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
<meta name="viewport" | ||
content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
<meta name="generator" content="Jekyll v3.8.6"> | ||
<title>eTorneos - Home</title> | ||
|
||
<!-- Bootstrap core CSS --> | ||
<link href="/core/bootstrap.min.css" rel="stylesheet"> | ||
<meta name="theme-color" content="#563d7c"> | ||
|
||
|
||
<!-- Custom styles for this template --> | ||
<link href="/css/Index/carousel.css" rel="stylesheet"> | ||
|
||
</head> | ||
<body> | ||
<!-- NavBar --> | ||
<header> | ||
|
||
</header> | ||
|
||
<main role="main"> | ||
<div id="myCarousel" class="carousel slide" data-ride="carousel" | ||
data-interval="5000"> | ||
<div class="carousel-inner"> | ||
<div class="carousel-item active"> | ||
<img src="/imgs/Main/main1.jpg" class="d-block w-100" alt="..."> | ||
<div class="container"> | ||
<div class="carousel-caption text-right"> | ||
<h1>Exciting tournaments</h1> | ||
<p>Play competitively with your friends in Rocket League | ||
matches.</p> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="carousel-item"> | ||
<img src="/imgs/Main/main2.jpg" class="d-block w-100" alt="..."> | ||
<div class="container"> | ||
<div class="carousel-caption text-right"> | ||
<h1>Win prizes</h1> | ||
<p>Win awesome prizes in a variety of different tournaments.</p> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
|
||
<div class="carousel-item"> | ||
<img src="/imgs/Main/main3.png" class="d-block w-100" alt="..."> | ||
<div class="container"> | ||
<div class="carousel-caption text-right"> | ||
<h1>Show your skills</h1> | ||
<p>The best teams will be in our leaderboard.</p> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
|
||
|
||
<div class="container marketing"> | ||
|
||
<!-- Three columns of text below the carousel --> | ||
<div class="row"> | ||
<div class="col-lg-4"> | ||
<img src="/imgs/Main/rl-icon.jpg" class="" width="140" height="140" | ||
preserveAspectRatio="xMidYMid slice" focusable="false" role="img"> | ||
<title>Rocket League</title> | ||
<h2>Rocket League</h2> | ||
<p>Play with your team in incredible tournaments.</p> | ||
<form action="tournaments"> | ||
<input type="submit" class="button" value="View tournaments"> | ||
</form> | ||
</div> | ||
<!-- /.col-lg-4 --> | ||
<div class="col-lg-4"> | ||
<img src="/imgs/Main/leaderboardLogo.png" class="" width="140" | ||
height="140" preserveAspectRatio="xMidYMid slice" | ||
focusable="false" role="img"> | ||
<title>Leaderboard</title> | ||
<h2>Leaderboard</h2> | ||
<p>See the very best teams that have taken part in tournaments.</p> | ||
<form action="leaderBoard"> | ||
<input type="submit" class="button" value="View leaderboard"> | ||
</form> | ||
</div> | ||
<!-- /.col-lg-4 --> | ||
|
||
<div class="col-lg-4"> | ||
<img src="/imgs/Main/userLogo.png" class="" width="140" | ||
height="140" preserveAspectRatio="xMidYMid slice" | ||
focusable="false" role="img"> | ||
<title>Register</title> | ||
<h2>Register</h2> | ||
<p>Still not have an account? Make an account to start playing.</p> | ||
<form action="register"> | ||
<input type="submit" class="button" value="Register"> | ||
</form> | ||
</div> | ||
|
||
<!-- /.col-lg-4 --> | ||
</div> | ||
<!-- /.row --> | ||
|
||
</div> | ||
|
||
</main> | ||
<script src="/core/jquery-3.4.1.slim.min.js"></script> | ||
<script src="/core/bootstrap.bundle.min.js"></script> | ||
</body> | ||
</html> | ||
<router-outlet></router-outlet> |
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
115 changes: 115 additions & 0 deletions
115
Angular/lucia-no-te-enfades-pp/src/app/home/home.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,115 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
<meta name="viewport" | ||
content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
<meta name="generator" content="Jekyll v3.8.6"> | ||
<title>eTorneos - Home</title> | ||
|
||
<!-- Bootstrap core CSS --> | ||
<link href="/core/bootstrap.min.css" rel="stylesheet"> | ||
<meta name="theme-color" content="#563d7c"> | ||
|
||
|
||
<!-- Custom styles for this template --> | ||
<link href="/css/Index/carousel.css" rel="stylesheet"> | ||
|
||
</head> | ||
<body> | ||
<!-- NavBar --> | ||
<header> | ||
|
||
</header> | ||
|
||
<main role="main"> | ||
<div id="myCarousel" class="carousel slide" data-ride="carousel" | ||
data-interval="5000"> | ||
<div class="carousel-inner"> | ||
<div class="carousel-item active"> | ||
<img src="/imgs/Main/main1.jpg" class="d-block w-100" alt="..."> | ||
<div class="container"> | ||
<div class="carousel-caption text-right"> | ||
<h1>Exciting tournaments</h1> | ||
<p>Play competitively with your friends in Rocket League | ||
matches.</p> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="carousel-item"> | ||
<img src="/imgs/Main/main2.jpg" class="d-block w-100" alt="..."> | ||
<div class="container"> | ||
<div class="carousel-caption text-right"> | ||
<h1>Win prizes</h1> | ||
<p>Win awesome prizes in a variety of different tournaments.</p> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
|
||
<div class="carousel-item"> | ||
<img src="/imgs/Main/main3.png" class="d-block w-100" alt="..."> | ||
<div class="container"> | ||
<div class="carousel-caption text-right"> | ||
<h1>Show your skills</h1> | ||
<p>The best teams will be in our leaderboard.</p> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
|
||
|
||
<div class="container marketing"> | ||
|
||
<!-- Three columns of text below the carousel --> | ||
<div class="row"> | ||
<div class="col-lg-4"> | ||
<img src="/imgs/Main/rl-icon.jpg" class="" width="140" height="140" | ||
preserveAspectRatio="xMidYMid slice" focusable="false" role="img"> | ||
<title>Rocket League</title> | ||
<h2>Rocket League</h2> | ||
<p>Play with your team in incredible tournaments.</p> | ||
<form action="tournaments"> | ||
<input type="submit" class="button" value="View tournaments"> | ||
</form> | ||
</div> | ||
<!-- /.col-lg-4 --> | ||
<div class="col-lg-4"> | ||
<img src="/imgs/Main/leaderboardLogo.png" class="" width="140" | ||
height="140" preserveAspectRatio="xMidYMid slice" | ||
focusable="false" role="img"> | ||
<title>Leaderboard</title> | ||
<h2>Leaderboard</h2> | ||
<p>See the very best teams that have taken part in tournaments.</p> | ||
<form action="leaderBoard"> | ||
<input type="submit" class="button" value="View leaderboard"> | ||
</form> | ||
</div> | ||
<!-- /.col-lg-4 --> | ||
|
||
<div class="col-lg-4"> | ||
<img src="/imgs/Main/userLogo.png" class="" width="140" | ||
height="140" preserveAspectRatio="xMidYMid slice" | ||
focusable="false" role="img"> | ||
<title>Register</title> | ||
<h2>Register</h2> | ||
<p>Still not have an account? Make an account to start playing.</p> | ||
<form action="register"> | ||
<input type="submit" class="button" value="Register"> | ||
</form> | ||
</div> | ||
|
||
<!-- /.col-lg-4 --> | ||
</div> | ||
<!-- /.row --> | ||
|
||
</div> | ||
|
||
</main> | ||
<script src="/core/jquery-3.4.1.slim.min.js"></script> | ||
<script src="/core/bootstrap.bundle.min.js"></script> | ||
</body> | ||
</html> | ||
|
Empty file.
25 changes: 25 additions & 0 deletions
25
Angular/lucia-no-te-enfades-pp/src/app/home/home.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,25 @@ | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { HomeComponent } from './home.component'; | ||
|
||
describe('HomeComponent', () => { | ||
let component: HomeComponent; | ||
let fixture: ComponentFixture<HomeComponent>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ HomeComponent ] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(HomeComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
15 changes: 15 additions & 0 deletions
15
Angular/lucia-no-te-enfades-pp/src/app/home/home.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,15 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-home', | ||
templateUrl: './home.component.html', | ||
styleUrls: ['./home.component.scss'] | ||
}) | ||
export class HomeComponent implements OnInit { | ||
|
||
constructor() { } | ||
|
||
ngOnInit(): void { | ||
} | ||
|
||
} |
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