-
Notifications
You must be signed in to change notification settings - Fork 779
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add download icon & link (#72)
* feat: add download icon & link * feat: change icon theme * feat: fixed layout * feat: fixed card size
- Loading branch information
Showing
3 changed files
with
105 additions
and
4 deletions.
There are no files selected for viewing
14 changes: 13 additions & 1 deletion
14
...rowser/src/app/shared/components/page-feature-preview/page-feature-preview.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 +1,13 @@ | ||
<nz-result [nzIcon]="'smile-twotone'" [nzTitle]="'即将发布,敬请期待'"> <div nz-result-extra></div> </nz-result> | ||
<section class="w-full pt-1/3 flex justify-center h-40 py-20"> | ||
<div *ngFor="let item of resourceInfo" class="border mx-8 h-48 flex flex-col justify-center items-center"> | ||
<a [href]="item.link"> | ||
<span class="card text-6xl flex items-center justify-center"> | ||
<i nz-icon class="relative" [nzType]="item.icon" nzTheme="fill"></i> | ||
<i nz-icon class="absolute" nzType="download" nzTheme="outline"></i> | ||
</span> | ||
</a> | ||
<span class="my-4 text-lg"> | ||
{{ item.name }} | ||
</span> | ||
</div> | ||
</section> |
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,27 @@ | ||
.card { | ||
width: 160px; | ||
height: 160px; | ||
box-shadow: 0 0 10px rgba(0,0,0,0.1); | ||
border-radius: 4px; | ||
cursor: pointer; | ||
color: #00785a; | ||
i { | ||
&.relative { | ||
transition: all 0.3s ease; | ||
z-index: 10; | ||
opacity: 1; | ||
} | ||
&.absolute { | ||
opacity: 0; | ||
} | ||
|
||
} | ||
&:hover { | ||
i.relative { | ||
opacity: 0; | ||
} | ||
i.absolute { | ||
opacity: 1; | ||
} | ||
} | ||
} |
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