Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
org
website
Commits
2d913f81
Commit
2d913f81
authored
Mar 21, 2021
by
danterolle
Browse files
Added particlesjs on contribute page + fix style rules
parent
f4457d3a
Pipeline
#2488
canceled with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
layouts/partials/community.html
View file @
2d913f81
{{ if .Site.Params.community.enable}}
<section
id=
"community"
class=
"call-to-action section-sm bg-1 overly"
style=
'
top-
padding:
2
0em;
bottom-
padding:
2
0em;background-image: url("{{ .Site.Params.community.background | absURL }}")'
>
<section
id=
"community"
class=
"call-to-action section-sm bg-1 overly"
style=
'padding
-top
:
1
0em;padding
-bottom
:
1
0em;background-image: url("{{ .Site.Params.community.background | absURL }}")'
>
<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=
"col-lg-4 text-center d-flex flex-column"
>
...
...
layouts/partials/contribute.html
View file @
2d913f81
{{ $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=
"row"
>
<div
class=
"col-md-12 col-sm-12 col-lg-12 text-center"
>
...
...
@@ -42,3 +45,10 @@
</div>
</div>
</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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment