|
1 |
| -<!DOCTYPE html> |
2 |
| -<html lang="en"> |
| 1 | +<p *ngIf="news"></p> |
3 | 2 |
|
4 |
| - <p *ngIf="news"></p> |
5 |
| - <body class="d-flex flex-column h-100" style="background-color:#f5f5f5;"> |
6 |
| - <main class="flex-shrink-0"> |
7 |
| - <!-- Navigation--> |
| 3 | +<!-- Header--> |
| 4 | +<header class="bg-dark py-5" style="background-color: #454546 !important;"> |
| 5 | + <div class="container px-5"> |
| 6 | + <div class="row gx-5 align-items-center justify-content-center"> |
| 7 | + <div class="col-xl-5 col-xxl-6 d-none d-xl-block text-center"><img class="img-fluid rounded-3 my-5" |
| 8 | + src="/news/{{news?.id}}/image" alt="..." /></div> |
| 9 | + <div class="col-lg-8 col-xl-7 col-xxl-6"> |
| 10 | + <div class="my-5 text-center text-xl-start"> |
| 11 | + <h1 class="display-5 fw-bolder text-white mb-2" style="font-size: 40px;">{{news?.title}}</h1> |
| 12 | + <p class="lead fw-normal text-white-50 mb-4" style="color: aliceblue !important;">{{news?.argument}}</p> |
| 13 | + </div> |
| 14 | + </div> |
| 15 | + </div> |
| 16 | + </div> |
8 | 17 |
|
9 |
| - <!-- Header--> |
10 |
| - <header class="bg-dark py-5" style="background-color: #454546 !important;"> |
11 |
| - <div class="container px-5" > |
12 |
| - <div class="row gx-5 align-items-center justify-content-center"> |
13 |
| - <div class="col-xl-5 col-xxl-6 d-none d-xl-block text-center"><img class="img-fluid rounded-3 my-5" src="/news/{{id}}/image" alt="..." /></div> |
14 |
| - <div class="col-lg-8 col-xl-7 col-xxl-6"> |
15 |
| - <div class="my-5 text-center text-xl-start"> |
16 |
| - <h1 class="display-5 fw-bolder text-white mb-2" style="font-size: 40px;">{{title}}</h1> |
17 |
| - <p class="lead fw-normal text-white-50 mb-4" style="color: aliceblue !important;">{{argument}}</p> |
18 |
| - </div> |
19 |
| - </div> |
20 |
| - </div> |
21 |
| - </div> |
22 | 18 |
|
23 | 19 |
|
| 20 | +</header> |
24 | 21 |
|
25 |
| - </header> |
| 22 | +<p>*ngIf="isAdmin()"</p> |
| 23 | +<section class="pt-0 MoreInfo"> |
| 24 | + <div class="container-fluid my-5"> |
| 25 | + <div class="row justify-content-center" style=" background-color: rgb(27, 31, 31); margin-bottom: 2%;"> |
| 26 | + <div class="col-5 text-center"> |
| 27 | + <p class="lead fw-normal text-white-50 mb-4" |
| 28 | + style="color: aliceblue !important; font-size: 2em !important; margin-top: 5%;"> Admin Actions : |
| 29 | + <a class="btn btn-primary btn-lg px-4 me-sm-3" [routerLink]="['/deleteNew/{{news?.id}}']" |
| 30 | + style="margin-top: auto;">Eliminar</a> |
| 31 | + <a class="btn btn-outline-light btn-lg px-4" [routerLink]="['/editNew/{{news?.id}}']" |
| 32 | + style="margin-top: auto;">Editar</a> |
| 33 | + </p> |
| 34 | + </div> |
| 35 | + </div> |
| 36 | + </div> |
| 37 | +</section> |
26 | 38 |
|
27 |
| - {{#isAdmin}} |
28 |
| - <section class="pt-0 MoreInfo"> |
29 |
| - <div class="container-fluid my-5"> |
30 |
| - <div class="row justify-content-center" style=" background-color: rgb(27, 31, 31); margin-bottom: 2%;"> |
31 |
| - <div class="col-5 text-center" > |
32 |
| - <p class="lead fw-normal text-white-50 mb-4" |
33 |
| - style="color: aliceblue !important; font-size: 2em !important; margin-top: 5%;"> Admin Actions : |
34 |
| - <a class="btn btn-primary btn-lg px-4 me-sm-3" href="/deleteNew/{{id}}" style="margin-top: auto;">Eliminar |
35 |
| - <a class="btn btn-outline-light btn-lg px-4" href="/editNew/{{id}}" style="margin-top: auto;">Editar</a> |
36 |
| - </p> |
37 | 39 |
|
38 |
| - </div> |
39 |
| - </div> |
40 |
| - </div> |
41 |
| - </section> |
42 |
| - {{/isAdmin}} |
| 40 | +<!-- MoreInfo--> |
| 41 | +<section class="pt-0 MoreInfo" style="margin-left: 10%; margin-right: 10%; background-color: #FFFFFF !important;"> |
| 42 | + <div class="container px-5 my-5"> |
| 43 | + <div class="row gx-5 justify-content-center"> |
| 44 | + <div class="col-md-12"> |
| 45 | + <h1 style="padding-bottom: 10px;">Leer más:</h1> |
| 46 | + <p class=""> |
| 47 | + {{news?.description}} |
| 48 | + </p> |
| 49 | + </div> |
43 | 50 |
|
44 |
| - <!-- MoreInfo--> |
45 |
| - <section class="pt-0 MoreInfo" style="margin-left: 10%; margin-right: 10%; background-color: #FFFFFF !important;"> |
46 |
| - <div class="container px-5 my-5"> |
47 |
| - <div class="row gx-5 justify-content-center"> |
48 |
| - <div class="col-md-12"> |
49 |
| - <h1 style="padding-bottom: 10px;">Leer más:</h1> |
50 |
| - <p class=""> |
51 |
| - {{description}} |
52 |
| - </p> |
53 |
| - </div> |
| 51 | + </div> |
54 | 52 |
|
55 |
| - </div> |
| 53 | + </div> |
| 54 | +</section> |
56 | 55 |
|
57 |
| - </div> |
58 |
| - </section> |
| 56 | +<section class="pt-0 MoreInfo" style="margin-left: 10%; margin-right: 10%; background-color: inherit !important;"> |
| 57 | + <div class="container px-5 my-5"> |
| 58 | + <div class="row gx-5 justify-content-center"> |
| 59 | + {{>videogameTemplate}} |
| 60 | + </div> |
| 61 | + </div> |
| 62 | +</section> |
| 63 | +<!-- Footer--> |
59 | 64 |
|
60 |
| - <section class="pt-0 MoreInfo" style="margin-left: 10%; margin-right: 10%; background-color: inherit !important;"> |
61 |
| - <div class="container px-5 my-5"> |
62 |
| - <div class="row gx-5 justify-content-center"> |
63 |
| - {{>videogameTemplate}} |
64 |
| - </div> |
65 |
| - </div> |
66 |
| - </section> |
67 |
| - </main> |
68 |
| - {{/new}} |
69 |
| - <!-- Footer--> |
70 |
| - |
71 |
| - <!-- Bootstrap core JS--> |
72 |
| - <script src=" https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" ></script> |
73 |
| - <!-- Core theme JS--> |
74 |
| - <script src="js/scripts.js"></script> |
75 |
| - </body> |
76 |
| -</html> |
| 65 | +<!-- Bootstrap core JS--> |
| 66 | +<script src=" https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" ></script> |
| 67 | +<!-- Core theme JS--> |
| 68 | +<script src="js/scripts.js"></script> |
0 commit comments