mirror of
https://github.com/ivabus/www
synced 2024-11-25 11:15:07 +03:00
Added button + styling to match XD mockup
This commit is contained in:
parent
7c7cd90bc1
commit
d7461ba8ca
1 changed files with 21 additions and 8 deletions
|
@ -13,9 +13,14 @@
|
||||||
<div class="col-xl-8 col-lg-8 col-md-6 col-sm-12 col-12">
|
<div class="col-xl-8 col-lg-8 col-md-6 col-sm-12 col-12">
|
||||||
<h3>{{- .Title -}}</h3>
|
<h3>{{- .Title -}}</h3>
|
||||||
{{ range where $.Site.Data.packages "name" .Title }}
|
{{ range where $.Site.Data.packages "name" .Title }}
|
||||||
<p>{{- .desc -}}</p>
|
<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 "") }}
|
{{ if not (eq .homepage "") }}
|
||||||
{{- partial "detail-btn-large.html" .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>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
@ -23,12 +28,6 @@
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<script>
|
|
||||||
|
|
||||||
document.getElementById("detail-btn-large").innerHTML = "View Package.yml";
|
|
||||||
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<!-- Copy to clipboard field -->
|
<!-- Copy to clipboard field -->
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
|
@ -56,6 +55,20 @@
|
||||||
background-color: gray;
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in a new issue