mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-14 06:17:20 +00:00
feat(style): improve Hero image size on mobile
This commit is contained in:
1 parent
e6dba41f3d
commit
80fce98e72
1 file changed
+2
-2
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
{{ if $page.Params.hero_media }}
|
{{ if $page.Params.hero_media }}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6 order-md-1 text-center text-md-left">
|
<div class="col-12 col-md-6 order-md-1 text-center text-md-left">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<h1 class="hero-title">
|
<h1 class="hero-title">
|
||||||
@@ -59,7 +59,7 @@
|
|||||||
{{ if $page.Params.hero_media }}
|
{{ if $page.Params.hero_media }}
|
||||||
{{ $media_dir := $.Scratch.Get "media_dir" }}
|
{{ $media_dir := $.Scratch.Get "media_dir" }}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-6 mx-auto col-md-6 order-md-2 hero-media">
|
<div class="col-12 mx-auto col-md-6 order-md-2 hero-media">
|
||||||
<img src="{{ printf "%s/%s" $media_dir $page.Params.hero_media | relURL }}" alt="">
|
<img src="{{ printf "%s/%s" $media_dir $page.Params.hero_media | relURL }}" alt="">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user