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:
parent
88895c50c2
commit
4ef34a8f63
6 changed files with 56 additions and 22 deletions
|
@ -38,7 +38,7 @@ projects:
|
||||||
repo: https://github.com/tensorflow/tensorflow
|
repo: https://github.com/tensorflow/tensorflow
|
||||||
#url: ""
|
#url: ""
|
||||||
summary: An Open Source Machine Learning Framework for Everyone.
|
summary: An Open Source Machine Learning Framework for Everyone.
|
||||||
tags: ["professional", "machine-learning","academic"]
|
tags: ["professional", "machine-learning"]
|
||||||
|
|
||||||
- name: A sample academic paper
|
- name: A sample academic paper
|
||||||
role: Team Lead
|
role: Team Lead
|
||||||
|
|
|
@ -37,7 +37,7 @@ projects:
|
||||||
repo: https://github.com/tensorflow/tensorflow
|
repo: https://github.com/tensorflow/tensorflow
|
||||||
#url: ""
|
#url: ""
|
||||||
summary: An Open Source Machine Learning Framework for Everyone.
|
summary: An Open Source Machine Learning Framework for Everyone.
|
||||||
tags: ["professional", "machine-learning","academic"]
|
tags: ["professional", "machine-learning"]
|
||||||
|
|
||||||
- name: A sample academic paper
|
- name: A sample academic paper
|
||||||
role: Team Lead
|
role: Team Lead
|
||||||
|
|
|
@ -37,7 +37,7 @@ projects:
|
||||||
repo: https://github.com/tensorflow/tensorflow
|
repo: https://github.com/tensorflow/tensorflow
|
||||||
#url: ""
|
#url: ""
|
||||||
summary: An Open Source Machine Learning Framework for Everyone.
|
summary: An Open Source Machine Learning Framework for Everyone.
|
||||||
tags: ["professional", "machine-learning","academic"]
|
tags: ["professional", "machine-learning"]
|
||||||
|
|
||||||
- name: A sample academic paper
|
- name: A sample academic paper
|
||||||
role: Team Lead
|
role: Team Lead
|
||||||
|
|
|
@ -37,7 +37,7 @@ projects:
|
||||||
repo: https://github.com/tensorflow/tensorflow
|
repo: https://github.com/tensorflow/tensorflow
|
||||||
#url: ""
|
#url: ""
|
||||||
summary: An Open Source Machine Learning Framework for Everyone.
|
summary: An Open Source Machine Learning Framework for Everyone.
|
||||||
tags: ["professional", "machine-learning","academic"]
|
tags: ["professional", "machine-learning"]
|
||||||
|
|
||||||
- name: A sample academic paper
|
- name: A sample academic paper
|
||||||
role: Team Lead
|
role: Team Lead
|
||||||
|
|
|
@ -26,25 +26,39 @@
|
||||||
</a>
|
</a>
|
||||||
<div class="card-body text-justify pt-1 pb-1">
|
<div class="card-body text-justify pt-1 pb-1">
|
||||||
<p>{{ .summary | markdownify }}</p>
|
<p>{{ .summary | markdownify }}</p>
|
||||||
<span class="float-right">
|
<!-- Display project card technology tags -->
|
||||||
{{ if .repo }}
|
<div class="project-card-footer">
|
||||||
<a
|
{{ if .tags }}
|
||||||
class="github-button-inactive"
|
<div class="project-tags-holder">
|
||||||
href="{{ .repo }}"
|
{{ range $index,$tag:= .tags }}
|
||||||
data-icon="octicon-standard"
|
<span class="badge btn-info">
|
||||||
data-show-count="true"
|
{{ $tag }}
|
||||||
aria-label="Star {{ .name }}"
|
</span>
|
||||||
>Star</a
|
{{ end }}
|
||||||
>
|
</div>
|
||||||
{{ else if .url }}
|
|
||||||
<a
|
|
||||||
class="btn btn-outline-info btn-sm mb-2"
|
|
||||||
href="{{ .url }}"
|
|
||||||
target="#"
|
|
||||||
>Details</a
|
|
||||||
>
|
|
||||||
{{ end }}
|
{{ 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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -29,6 +29,26 @@
|
||||||
padding: 1rem !important;
|
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 ======= */
|
/* ============= Device specific fixes ======= */
|
||||||
|
|
||||||
/* Large screens such as TV */
|
/* Large screens such as TV */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue