community.html 1.97 KB
Newer Older
1
{{ if .Site.Params.community.enable}}
2
<section id="community" class="call-to-action section-sm bg-1 overly" style='padding-top: 10em;padding-bottom: 10em;background-image: url("{{ .Site.Params.community.background | absURL }}")'>
3
    <div class="container">
4
        <div class="row" style="background:linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.5));border-radius: 2em;padding:4em">
hotwater's avatar
hotwater committed
5
            <div class="col-lg-4 text-center d-flex flex-column">
6
7
               {{ with .Site.Params.community.title}} <h2 style="color:#fff">{{ . }}</h2> {{ end }}
               {{ with .Site.Params.community.content }} <p style="color:#fff">{{ . }}</p> {{ end }}
hotwater's avatar
hotwater committed
8
                <a href="{{ .Site.Params.community.btnURL }}" class="btn btn-main mt-auto" style="color:#222">{{ with .Site.Params.community.btnText }} {{ . }} {{end}}</a>
9
            </div>
hotwater's avatar
hotwater committed
10
11
12
            <div class="col-lg-4 text-center d-flex flex-column mt-4 mt-lg-0">
               {{ with .Site.Params.community.pwnboxTitle}} <h2 style="color:#fff">{{ . }}</h2> {{ end }}
               {{ with .Site.Params.community.pwnboxContent }} <p style="color:#fff">{{ . }}</p> {{ end }}
13
	       <a href="{{ .Site.Params.community.pwnboxURL }}" class="btn btn-main mt-auto d-flex justify-content-center" id="htb"><img src="../{{ .Site.Params.community.htbLogoURL}}" height="16px" width="14px" class="align-self-center mr-2"></img>{{ with .Site.Params.community.pwnboxbtnText }} {{ . }} {{end}}</a>
hotwater's avatar
hotwater committed
14
15
            </div>
            <div class="col-lg-4 text-center d-flex flex-column mt-4 mt-lg-0">
16
17
                {{ with .Site.Params.community.portalsTitle}} <h2 style="color:#fff">{{ . }}</h2> {{ end }}
                {{ with .Site.Params.community.portalsDescription }} <p style="color:#fff">{{ . }}</p> {{ end }}
hotwater's avatar
hotwater committed
18
                 <a href="{{ .Site.Params.community.portalsURL }}" class="btn btn-main mt-auto" style="color:#222">{{ with .Site.Params.community.portalsURLtext }} {{ . }} {{end}}</a>
19
20
21
22
             </div>
        </div>
    </div>
</section>
23
{{ end }}