Commit 2d913f81 authored by danterolle's avatar danterolle
Browse files

Added particlesjs on contribute page + fix style rules

parent f4457d3a
Pipeline #2488 canceled with stage
{{ if .Site.Params.community.enable}} {{ if .Site.Params.community.enable}}
<section id="community" class="call-to-action section-sm bg-1 overly" style='top-padding: 20em;bottom-padding: 20em;background-image: url("{{ .Site.Params.community.background | absURL }}")'> <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 }}")'>
<div class="container"> <div class="container">
<div class="row" style="background:linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.5));border-radius: 2em;padding:4em"> <div class="row" style="background:linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.5));border-radius: 2em;padding:4em">
<div class="col-lg-4 text-center d-flex flex-column"> <div class="col-lg-4 text-center d-flex flex-column">
......
{{ $data := index .Site.Data .Site.Language.Lang }} {{ $data := index .Site.Data .Site.Language.Lang }}
<section id="contribute" class="call-to-action section-sm bg-1 overly" style='top-padding: 20em;bottom-padding: 20em;background-image: url("{{ .Site.Params.contribute.background | absURL }}")'> <div id="particles-js">
</div>
<section id="contribute" class="call-to-action section-sm bg-1 overly" style='background-image: url("{{ .Site.Params.contribute.background | absURL }}")'>
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-md-12 col-sm-12 col-lg-12 text-center"> <div class="col-md-12 col-sm-12 col-lg-12 text-center">
...@@ -42,3 +45,10 @@ ...@@ -42,3 +45,10 @@
</div> </div>
</div> </div>
</section> </section>
<script src="../plugins/particles/particles.min.js"></script>
<script>
window.particlesJS.load('particles-js', '../plugins/particles/particles.json', function(){
console.log('particles.json loaded!');
});
</script>
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