Display project card technology tags (#243)

* Display project card technology tags

* Fix tag CSS

Signed-off-by: hossainemruz <hossainemruz@gmail.com>

Co-authored-by: Emruz Hossain <hossainemruz@gmail.com>
This commit is contained in:
安红豆 2021-03-13 23:37:47 +08:00 committed by GitHub
parent 88895c50c2
commit 4ef34a8f63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 56 additions and 22 deletions

View file

@ -38,7 +38,7 @@ projects:
repo: https://github.com/tensorflow/tensorflow
#url: ""
summary: An Open Source Machine Learning Framework for Everyone.
tags: ["professional", "machine-learning","academic"]
tags: ["professional", "machine-learning"]
- name: A sample academic paper
role: Team Lead

View file

@ -37,7 +37,7 @@ projects:
repo: https://github.com/tensorflow/tensorflow
#url: ""
summary: An Open Source Machine Learning Framework for Everyone.
tags: ["professional", "machine-learning","academic"]
tags: ["professional", "machine-learning"]
- name: A sample academic paper
role: Team Lead

View file

@ -37,7 +37,7 @@ projects:
repo: https://github.com/tensorflow/tensorflow
#url: ""
summary: An Open Source Machine Learning Framework for Everyone.
tags: ["professional", "machine-learning","academic"]
tags: ["professional", "machine-learning"]
- name: A sample academic paper
role: Team Lead

View file

@ -37,7 +37,7 @@ projects:
repo: https://github.com/tensorflow/tensorflow
#url: ""
summary: An Open Source Machine Learning Framework for Everyone.
tags: ["professional", "machine-learning","academic"]
tags: ["professional", "machine-learning"]
- name: A sample academic paper
role: Team Lead

View file

@ -26,25 +26,39 @@
</a>
<div class="card-body text-justify pt-1 pb-1">
<p>{{ .summary | markdownify }}</p>
<span class="float-right">
{{ if .repo }}
<a
class="github-button-inactive"
href="{{ .repo }}"
data-icon="octicon-standard"
data-show-count="true"
aria-label="Star {{ .name }}"
>Star</a
>
{{ else if .url }}
<a
class="btn btn-outline-info btn-sm mb-2"
href="{{ .url }}"
target="#"
>Details</a
>
<!-- Display project card technology tags -->
<div class="project-card-footer">
{{ if .tags }}
<div class="project-tags-holder">
{{ range $index,$tag:= .tags }}
<span class="badge btn-info">
{{ $tag }}
</span>
{{ end }}
</div>
{{ end }}
</span>
<div class="project-btn-holder">
{{ if .repo }}
<a
class="github-button-inactive project-btn"
href="{{ .repo }}"
data-icon="octicon-standard"
data-show-count="true"
aria-label="Star {{ .name }}"
>Star</a
>
{{ else if .url }}
<span>
<a
class="btn btn-outline-info btn-sm"
href="{{ .url }}"
target="#"
>Details</a
>
</span>
{{ end }}
</div>
</div>
</div>
</div>
</div>

View file

@ -29,6 +29,26 @@
padding: 1rem !important;
}
.project-card-footer {
display: flex;
}
.project-tags-holder {
width: 70%;
}
.project-btn-holder {
width: 30%;
display: flex;
justify-content: flex-end;
flex-direction: column;
}
.project-btn-holder span {
justify-content: flex-end;
display: flex;
}
/* ============= Device specific fixes ======= */
/* Large screens such as TV */