Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/hossainemruz/toha.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuriy <yuramazh@gmail.com>2020-07-23 23:16:48 +0300
committerGitHub <noreply@github.com>2020-07-23 23:16:48 +0300
commit64fb493030095e5406044b158dcc837966c618fa (patch)
tree481064fc923725d7427571c0f18cbe265f98b26c /layouts/partials/cards/skill.html
parentd7df50ed2af178137a4f65d89170cfc53eb7bf0a (diff)
Make Skills and Projects cards linkable (#46)
* Project card header is now can be clicked * skill is card now having url to add on it's header * urls added to some skills * div class synced with original * guthub button text synced with original * text decoration removed * remove next line in card header for text * whole Skill Card now is under hyperlink * hyperlink class separated from card * removed text-decoration from .card class * ProjectCard header hyperlink decoration removed * call adjustSkillCardsHeight after page is loaded * Add "#" in href field when respective URL is not provided Co-authored-by: hossainemruz <emruz@appscode.com>
Diffstat (limited to 'layouts/partials/cards/skill.html')
-rw-r--r--layouts/partials/cards/skill.html20
1 files changed, 11 insertions, 9 deletions
diff --git a/layouts/partials/cards/skill.html b/layouts/partials/cards/skill.html
index 0da4050..ee8c488 100644
--- a/layouts/partials/cards/skill.html
+++ b/layouts/partials/cards/skill.html
@@ -1,13 +1,15 @@
<div class="col-xs-12 col-sm-6 col-lg-4 pt-2">
- <div class="card">
- <div class="card-head d-flex">
- {{ if .icon }}
+ <a class="skill-card-link" href="{{ if .url }}{{ .url }}{{ else }}#{{ end }}">
+ <div class="card">
+ <div class="card-head d-flex">
+ {{ if .icon }}
<img class="card-img-xs" src="{{ .icon }}" alt="{{ .name }}" />
- {{ end }}
- <h5 class="card-title">{{ .name }}</h5>
+ {{ end }}
+ <h5 class="card-title">{{ .name }}</h5>
+ </div>
+ <div class="card-body">
+ <p class="card-text">{{ .summary | markdownify }}</p>
+ </div>
</div>
- <div class="card-body">
- <p class="card-text">{{ .summary | markdownify }}</p>
- </div>
- </div>
+ </a>
</div>