Commit c171a6da authored by Vitor Lopes's avatar Vitor Lopes

update

parent dbe5665c
......@@ -354,10 +354,17 @@ p,
.col-12.text-center {
text-align: center;
margin-bottom: 350px;
background: white;
}
.col-12.text-center:not(:last-child) {
margin-bottom: 350px;
}
.col-12.text-center:last-child {
margin-bottom: -70px;
}
h1.title::first-letter {
color: $green;
}
......@@ -367,39 +374,6 @@ p,
color: #424242;
}
.card {
padding: 0;
margin: 0;
box-shadow: none;
.card-body {
float: left;
width: 50%;
padding-bottom: 0;
}
.card-header,
.card-footer {
background: transparent;
border: none;
}
img {
object-fit: contain;
width: 50%;
float: right;
}
.card-footer {
padding: 0;
}
.card-header {
margin-bottom: 0;
padding-left: 0;
}
}
.btn.btn-white,
.btn.btn-white:focus,
.btn.btn-white:hover {
......@@ -417,11 +391,7 @@ p,
font-weight: 900 !important;
margin-bottom: .7rem;
margin: 0;
}
.card-desc {
font-weight: 400 !important;
font-size: .7rem;
margin-top: 8px;
}
.card-title {
......@@ -430,6 +400,10 @@ p,
margin: 0;
}
.card-footer a {
margin-top: 20px;
}
}
.section {
......
{{ if eq .Type "hardware" }}
<div class="">
<div class="row justify-content-center">
{{ range $main_index, $main_element := (where .Site.Pages ".Type" "hardware") }}
{{ if and (isset .Params "datasheetcontent") (eq .Params.enable "true") }}
<div class="col-12 text-center">
<div class="card container">
{{ range $index, $element := .Params.images}}
<img class="d-block" src="/img/hardware/{{ $element }}.png"
alt="{{ $index }} slide">
{{ end }}
<div class="card-body text-left">
<div class=card-header>
<h2 class="card-subtitle text-dark">{{.Params.subtitle}}</h2>
<div class="card-title text-danger">
{{.Params.price}}</div>
</div>
<div class="card-footer">
{{ range $index, $element := .Params.datasheetcontent}}
{{if (modBool $index 2)}}
<h3><b>{{$element}}</b></h3>
{{else}}
<span>{{$element}}</span><br>
{{ end }}
{{ end }}
<div class="container">
<div class="row">
{{ range $index, $element := .Params.images}}
<div class="col-sm-12 col-lg-6"><img class="d-block" src="/img/hardware/{{ $element }}.png"
alt="{{ $index }} slide">
</div>
{{ end }}
<div class="col-sm-12 col-lg-6">
<div class="card-body text-left">
<div class=card-header>
<h2 class="card-subtitle text-dark">{{.Params.subtitle}}</h2>
<div class="card-title text-danger">
{{.Params.price}}</div>
</div>
<div class="card-footer">
{{ range $index, $element := .Params.datasheetcontent}}
{{if (modBool $index 2)}}
<h3><b>{{$element}}</b></h3>
{{else}}
<span>{{$element}}</span><br>
{{ end }}
{{ end }}
<a href="{{.Params.buylink}}" target="_blank" class="btn bg-info">
Where to buy
</a>
</div>
</div>
</div>
<a href="{{.Params.buylink}}" target="_blank" class="btn bg-info">
Where to buy
</a>
</div>
</div>
</div>
{{ end }}
{{ end }}
</div>
</div>
{{ end }}
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment