Commit c171a6da authored by Vitor Lopes's avatar Vitor Lopes

update

parent dbe5665c
...@@ -354,10 +354,17 @@ p, ...@@ -354,10 +354,17 @@ p,
.col-12.text-center { .col-12.text-center {
text-align: center; text-align: center;
margin-bottom: 350px;
background: white; 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 { h1.title::first-letter {
color: $green; color: $green;
} }
...@@ -367,39 +374,6 @@ p, ...@@ -367,39 +374,6 @@ p,
color: #424242; 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,
.btn.btn-white:focus, .btn.btn-white:focus,
.btn.btn-white:hover { .btn.btn-white:hover {
...@@ -417,11 +391,7 @@ p, ...@@ -417,11 +391,7 @@ p,
font-weight: 900 !important; font-weight: 900 !important;
margin-bottom: .7rem; margin-bottom: .7rem;
margin: 0; margin: 0;
} margin-top: 8px;
.card-desc {
font-weight: 400 !important;
font-size: .7rem;
} }
.card-title { .card-title {
...@@ -430,6 +400,10 @@ p, ...@@ -430,6 +400,10 @@ p,
margin: 0; margin: 0;
} }
.card-footer a {
margin-top: 20px;
}
} }
.section { .section {
......
{{ if eq .Type "hardware" }} {{ if eq .Type "hardware" }}
<div class="">
<div class="row justify-content-center"> <div class="row justify-content-center">
{{ range $main_index, $main_element := (where .Site.Pages ".Type" "hardware") }} {{ range $main_index, $main_element := (where .Site.Pages ".Type" "hardware") }}
{{ if and (isset .Params "datasheetcontent") (eq .Params.enable "true") }} {{ if and (isset .Params "datasheetcontent") (eq .Params.enable "true") }}
<div class="col-12 text-center"> <div class="col-12 text-center">
<div class="card container"> <div class="container">
{{ range $index, $element := .Params.images}} <div class="row">
<img class="d-block" src="/img/hardware/{{ $element }}.png" {{ range $index, $element := .Params.images}}
alt="{{ $index }} slide"> <div class="col-sm-12 col-lg-6"><img class="d-block" src="/img/hardware/{{ $element }}.png"
{{ end }} alt="{{ $index }} slide">
<div class="card-body text-left"> </div>
<div class=card-header> {{ end }}
<h2 class="card-subtitle text-dark">{{.Params.subtitle}}</h2> <div class="col-sm-12 col-lg-6">
<div class="card-title text-danger"> <div class="card-body text-left">
{{.Params.price}}</div> <div class=card-header>
</div> <h2 class="card-subtitle text-dark">{{.Params.subtitle}}</h2>
<div class="card-footer"> <div class="card-title text-danger">
{{ range $index, $element := .Params.datasheetcontent}} {{.Params.price}}</div>
{{if (modBool $index 2)}} </div>
<h3><b>{{$element}}</b></h3> <div class="card-footer">
{{else}} {{ range $index, $element := .Params.datasheetcontent}}
<span>{{$element}}</span><br> {{if (modBool $index 2)}}
{{ end }} <h3><b>{{$element}}</b></h3>
{{ end }} {{else}}
<span>{{$element}}</span><br>
{{ end }}
{{ end }}
<a href="{{.Params.buylink}}" target="_blank" class="btn bg-info">
Where to buy
</a>
</div>
</div>
</div> </div>
<a href="{{.Params.buylink}}" target="_blank" class="btn bg-info">
Where to buy
</a>
</div> </div>
</div> </div>
</div> </div>
{{ end }} {{ end }}
{{ end }} {{ end }}
</div>
</div> </div>
{{ end }} {{ 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