-
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.
Merge pull request #23 from hadesdday/vanhieu
#5 - implemented when click article title redirect to article list page
- Loading branch information
Showing
15 changed files
with
462 additions
and
32 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
export const API_SUB = [ | ||
"Chính trị", | ||
"Thời sự", | ||
"Kinh doanh", | ||
"Thế giới", | ||
"Giải trí", | ||
"Thể thao", | ||
"Sức khỏe", | ||
"Đời sống", | ||
"Giáo dục", | ||
"Pháp luật", | ||
"Xe", | ||
"Công nghệ", | ||
"Bất động sản", | ||
// "Tuần Việt Nam", | ||
// "Du lịch", | ||
// "Bạn đọc" | ||
]; |
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
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 |
---|---|---|
@@ -0,0 +1,146 @@ | ||
<app-navbar></app-navbar> | ||
<div class="container mt-5"> | ||
<h1 class="fw-bold">{{title}}</h1> | ||
<div class="hr__line mt-4"></div> | ||
<div class="row mt-5"> | ||
<div class="col-md-6"> | ||
<div class="row"> | ||
<img [src]="posts_list?.[0]?.enclosure?.link" alt="'../../../assets/images/skeleton-loading.gif'" | ||
class="w-100" alt=""> | ||
</div> | ||
<div class="row"> | ||
<div class="col d-flex flex-row-reverse fw-light fs-11">Theo Vietnamnet | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="d-flex justify-content-start"> | ||
<a href="{{posts_list?.[0]?.link}}" class="hot-title" target="_blank"> | ||
<h6 class="hot-post">{{posts_list?.[0]?.title}}</h6> | ||
</a> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="d-flex justify-content-start"> | ||
<p class="text-start hot-content">{{posts_list?.[0]?.description}}</p> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="d-flex justify-content-start"> | ||
<p class="fw-light fs-11">{{get_duration(posts_list?.[0]?.pubDate||"")}} | ||
<span class="p-1"></span> | ||
Nguồn : Vietnamnet | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-md-3 "> | ||
<div class="row"> | ||
<img [src]="posts_list?.[1]?.enclosure?.link" alt="'../../../assets/images/skeleton-loading.gif'" | ||
class="w-100" alt=""> | ||
</div> | ||
<div class="row"> | ||
<div class="col d-flex flex-row-reverse fw-light fs-11">Theo Vietnamnet | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="d-flex justify-content-start"> | ||
<a href="{{posts_list?.[1]?.link}}" class="hot-title" target="_blank"> | ||
<h6 class="hot-post">{{posts_list?.[1]?.title}}</h6> | ||
</a> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="d-flex justify-content-start"> | ||
<p class="text-start hot-content">{{posts_list?.[1]?.description}}</p> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="d-flex justify-content-start"> | ||
<p class="fw-light fs-11">{{get_duration(posts_list?.[1]?.pubDate||"")}} | ||
<span class="p-1"></span> | ||
Nguồn : Vietnamnet | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-md-3"> | ||
<div *ngFor="let item of get_posts_with_amount(2,4) ;index as ind"> | ||
<div class="row"> | ||
<div class="d-flex justify-content-start"> | ||
<a href="{{item?.link}}" class="hot-title" target="_blank"> | ||
<h6 class="hot-post">{{item?.title}}</h6> | ||
</a> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-6 col-sm-12"> | ||
<div class="d-flex justify-content-start"> | ||
<p class="text-start hot-content">{{item?.description}}</p> | ||
</div> | ||
</div> | ||
<div class="col-md-6 col-sm-12"> | ||
<img [src]="item?.enclosure?.link" alt="'../../../assets/images/skeleton-loading.gif'" | ||
class="w-100" alt=""> | ||
</div> | ||
</div> | ||
<div class="row mb-3" [ngClass]="ind <1 ? 'border-bottom':''"> | ||
<div class="d-flex justify-content-start"> | ||
<p class="fw-light fs-11">{{get_duration(item?.pubDate||"")}} | ||
<span class="p-1"></span> | ||
Nguồn : Vietnamnet | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="row border-top"> | ||
<div class="col-md-3 p-3" *ngFor="let item of get_posts_with_amount(5,9)"> | ||
<div class="row"> | ||
<img [src]="item?.enclosure?.link" alt="'../../../assets/images/skeleton-loading.gif'" class="img__sub" | ||
alt=""> | ||
</div> | ||
<div class="row mt-3 w-90"> | ||
<div class="d-flex justify-content-start"> | ||
<a href="{{item?.link}}" class="hot-title" target="_blank"> | ||
<h6 class="new__post">{{item?.title}}</h6> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="hr__line mt-3"></div> | ||
<div class="row mt-3 border-bottom"> | ||
<h1>Mới nhất</h1> | ||
</div> | ||
<div class="mb-4"></div> | ||
<div class="row" *ngFor="let item of get_posts_with_amount(9,posts_list.length)"> | ||
<div class="col-md-2"> | ||
<div class="d-flex justify-content-start"> | ||
<p class="fw-light fs-11">{{get_time_in_words(item?.pubDate||"")}} | ||
</p> | ||
</div> | ||
</div> | ||
<div class="col-md-6"> | ||
<div class="row"> | ||
<div class="d-flex justify-content-start"> | ||
<a href="{{item?.link}}" class="hot-title" target="_blank"> | ||
<h6 class="hot-post">{{item?.title}}</h6> | ||
</a> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="d-flex justify-content-start"> | ||
<p class="text-start hot-content">{{item?.description}}</p> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-md-3"> | ||
<div class="row"> | ||
<img [src]="item?.enclosure?.link" alt="'../../../assets/images/skeleton-loading.gif'" class="img__sub" | ||
alt=""> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<app-footer></app-footer> |
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,71 @@ | ||
.hr__line { | ||
border-top: 1px solid black; | ||
} | ||
|
||
.w-90 { | ||
width: 90% !important; | ||
} | ||
|
||
.fs-20 { | ||
font-size: 20px !important; | ||
} | ||
.fs-11 { | ||
font-size: 11px !important; | ||
} | ||
|
||
.hot-post { | ||
font-size: 23px; | ||
font-weight: bold; | ||
} | ||
|
||
.new__post { | ||
font-size: 18px; | ||
font-weight: bold; | ||
} | ||
|
||
.hot-title { | ||
color: black; | ||
text-decoration: none; | ||
font-size: 23px; | ||
} | ||
.hot-title:hover { | ||
color: black; | ||
text-decoration: underline; | ||
} | ||
.line-part { | ||
border-left: 1px solid #e0e3e6; | ||
} | ||
.news-title { | ||
color: black; | ||
text-decoration: none; | ||
font-weight: bold; | ||
} | ||
.news-title:hover { | ||
text-decoration: underline; | ||
color: black; | ||
} | ||
.news-topic { | ||
color: black !important; | ||
} | ||
.credit { | ||
border-bottom: 1px solid #e0e3e6; | ||
padding-bottom: 20px; | ||
} | ||
|
||
.img__sub { | ||
width: 230px; | ||
height: 136px; | ||
object-fit: cover; | ||
} | ||
|
||
@media only screen and (max-width: 768px) { | ||
.img__sub { | ||
width: 100%; | ||
height: 100%; | ||
} | ||
} | ||
|
||
.vl { | ||
border-left: 6px solid green; | ||
height: 100px; | ||
} |
Oops, something went wrong.