www/src/layouts/page/package-detail.html

75 lines
2 KiB
HTML
Raw Normal View History

2022-10-12 21:38:50 +03:00
{{ define "main" }}
<section class="one-box">
<div class="container">
2022-10-12 21:38:50 +03:00
<div class="row">
2022-10-20 00:51:08 +03:00
<div class="col-xl-4 col-lg-4 col-md-6 col-sm-12 col-12">
2022-10-29 06:17:19 +03:00
<div class="package-thumbnail">
{{ range where $.Site.Data.packages "name" .Title }}
<img class="package-image" src="{{- .thumb_image_url -}}" alt="{{- .name -}}" style="width:100%; height:100%;">
{{ end }}
2022-10-12 21:38:50 +03:00
</div>
</div>
2022-10-20 00:51:08 +03:00
<div class="col-xl-8 col-lg-8 col-md-6 col-sm-12 col-12">
<h3>{{- .Title -}}</h3>
{{ range where $.Site.Data.packages "name" .Title }}
<p class="one-box-down">{{- .desc -}}</p>
<a target="_blank" href="{{- .homepage -}}">
<button class="detail-btn-large me-3" id="purple-bg-btn"><i class="icon-enter-arrow"></i>View on GitHub</button>
</a>
{{ if not (eq .homepage "") }}
<a target="_blank" href="{{- .homepage -}}">
<button class="detail-btn-large" id="standard-detail-btn"><i class="icon-enter-arrow"></i>Visit package home</button>
</a>
2022-10-17 21:32:50 +03:00
{{end}}
{{ end }}
2022-10-12 21:38:50 +03:00
</div>
</div>
</div>
2022-10-12 21:38:50 +03:00
</section>
<!-- Copy to clipboard field -->
2022-10-27 15:09:36 +03:00
<section>
<div class="container">
<div class="row">
<div class="col grid-gray">
Copy the tea one-liner below into your terminal to install {{- .Title -}}. tea will interpret the documentation and take care of any dependencies.
</div>
</div>
</div>
</section>
{{ range where $.Site.Data.packages "name" .Title }}
2022-11-30 15:32:45 +03:00
{{- partial "clipboard-copy-package-detail.html" . -}}
2022-10-17 21:36:13 +03:00
{{ end }}
2022-10-12 21:38:50 +03:00
<style>
.package-thumbnail{
width: 100%;
height: 100%;
background-color: gray;
}
a:hover{
text-decoration: none;
}
#purple-bg-btn{
background-color: #8000FF;
border: 2px solid #8000FF;
}
#standard-detail-btn:hover{
background-color: #212020 !important;
box-shadow: inset 0vw 0vw 0vw 0.335vw #1a1a1a !important;
}
2022-10-12 21:38:50 +03:00
</style>
{{ end }}