forked from nrandecker/particle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
98213a1
commit 35b76dd
Showing
12 changed files
with
193 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
# Site settings | ||
title: A blog about lorem ipsum dolor sit amet | ||
description: A blog about lorem ipsum dolor sit amet | ||
|
||
# User settings | ||
username: Lorem Ipsum | ||
user_description: Anon Developer at Lorem Ipsum Dolor | ||
user_title: Anon Developer | ||
email: anon@anon.com | ||
twitter_username: lorem_ipsum | ||
github_username: lorem_ipsum | ||
gplus_username: lorem_ipsum | ||
disqus_username: lorem_ipsum |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
<script src="//cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script> | ||
<script src="{{ "/assets/js/main.js" | prepend: site.baseurl }}"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<div id="particles-js"> | ||
<div class="content"> | ||
<h1> | ||
<span class="site-title">{{site.username}}</span> | ||
<span class="site-description">{{site.user_title}}</span> | ||
</h1> | ||
<div class="icons"> | ||
<a aria-label="Send email" href="mailto:{{site.email}}"><i class="icon fa fa-envelope"></i></a> | ||
<a aria-label="My Twitter" target="_blank" href="https://twitter.com/{{site.twitter_username}}"><i class="icon fa fa-twitter"></i></a> | ||
<a aria-label="My Google Plus" target="_blank" href="https://plus.google.com/{{site.gplus_username}}/posts"><i class="icon fa fa-google-plus"></i></a> | ||
<a aria-label="My Github" target="_blank" href="https://github.com/{{site.github_username}}"><i class="icon fa fa-github"></i></a> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
{ | ||
"particles": { | ||
"number": { | ||
"value": 80, | ||
"density": { | ||
"enable": true, | ||
"value_area": 800 | ||
} | ||
}, | ||
"color": { | ||
"value": "#ffffff" | ||
}, | ||
"shape": { | ||
"type": "circle", | ||
"stroke": { | ||
"width": 0, | ||
"color": "#000000" | ||
}, | ||
"polygon": { | ||
"nb_sides": 5 | ||
}, | ||
"image": { | ||
"src": "img/github.svg", | ||
"width": 100, | ||
"height": 100 | ||
} | ||
}, | ||
"opacity": { | ||
"value": 0.5, | ||
"random": false, | ||
"anim": { | ||
"enable": false, | ||
"speed": 1, | ||
"opacity_min": 0.1, | ||
"sync": false | ||
} | ||
}, | ||
"size": { | ||
"value": 10, | ||
"random": true, | ||
"anim": { | ||
"enable": false, | ||
"speed": 80, | ||
"size_min": 0.1, | ||
"sync": false | ||
} | ||
}, | ||
"line_linked": { | ||
"enable": true, | ||
"distance": 300, | ||
"color": "#ffffff", | ||
"opacity": 0.4, | ||
"width": 2 | ||
}, | ||
"move": { | ||
"enable": true, | ||
"speed": 12, | ||
"direction": "none", | ||
"random": false, | ||
"straight": false, | ||
"out_mode": "out", | ||
"bounce": false, | ||
"attract": { | ||
"enable": false, | ||
"rotateX": 600, | ||
"rotateY": 1200 | ||
} | ||
} | ||
}, | ||
"interactivity": { | ||
"detect_on": "canvas", | ||
"events": { | ||
"onhover": { | ||
"enable": false, | ||
"mode": "repulse" | ||
}, | ||
"onclick": { | ||
"enable": true, | ||
"mode": "push" | ||
}, | ||
"resize": true | ||
}, | ||
"modes": { | ||
"grab": { | ||
"distance": 800, | ||
"line_linked": { | ||
"opacity": 1 | ||
} | ||
}, | ||
"bubble": { | ||
"distance": 800, | ||
"size": 80, | ||
"duration": 2, | ||
"opacity": 8, | ||
"speed": 3 | ||
}, | ||
"repulse": { | ||
"distance": 400, | ||
"duration": 0.4 | ||
}, | ||
"push": { | ||
"particles_nb": 4 | ||
}, | ||
"remove": { | ||
"particles_nb": 2 | ||
} | ||
} | ||
}, | ||
"retina_detect": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
--- | ||
layout: default | ||
--- | ||
|
||
<h1>Welcome to particle</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/* particlesJS.load(@dom-id, @path-json, @callback (optional)); */ | ||
particlesJS.load('particles-js', 'assets/particles.json', function() { | ||
console.log('callback - particles-js config loaded'); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
$main: #1a222c; | ||
$sec: #FFF; | ||
$cut: 37.5rem; | ||
|
||
body { | ||
margin: 0; | ||
} | ||
|
||
#particles-js { | ||
background: $main; | ||
position: absolute; | ||
width: 100%; | ||
height: 100%; | ||
background-repeat: no-repeat; | ||
background-size: cover; | ||
background-position: 50% 50%; | ||
} | ||
|
||
.icons { | ||
text-align: center; | ||
|
||
a { | ||
display: inline-block; | ||
padding: 15px; | ||
margin: 2px; | ||
border-radius: 50px; | ||
border: 2px solid $sec; | ||
line-height: 0; | ||
transition: all .7s; | ||
&:hover { | ||
background: $sec; | ||
.icon { | ||
fill: $main; | ||
} | ||
} | ||
} | ||
|
||
@media only screen and (min-width:$cut) { | ||
width: 30px; | ||
height: 30px | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters