DarkFolio 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +373 -0
- data/README.md +99 -0
- data/_config.yml +18 -0
- data/_includes/head.html +38 -0
- data/_layouts/404.html +41 -0
- data/_layouts/blog.html +44 -0
- data/_layouts/index.html +33 -0
- data/_layouts/post.html +39 -0
- data/_layouts/projects.html +38 -0
- data/_posts/2020-02-23-example-post.md +7 -0
- data/_sass/syntax.scss +210 -0
- data/assets/404.js +58 -0
- data/assets/blog.js +50 -0
- data/assets/index.js +59 -0
- data/assets/main.scss +45 -0
- data/assets/post.js +50 -0
- data/assets/projects.js +50 -0
- metadata +83 -0
data/assets/404.js
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
window.onload = function() {
|
|
2
|
+
if(performance.navigation.type == 2){
|
|
3
|
+
location.reload(true);
|
|
4
|
+
}
|
|
5
|
+
var $all_msg = $('.big-header');
|
|
6
|
+
var $wordList = "Uh Oh! You hit a 404".split("");
|
|
7
|
+
$.each($wordList, function(idx, elem) {
|
|
8
|
+
if (idx > "Uh Oh! You hit a".length) {
|
|
9
|
+
var newEL = $("<span/>").text(elem).css({
|
|
10
|
+
opacity: 0,
|
|
11
|
+
color: $(".color").text()
|
|
12
|
+
});
|
|
13
|
+
} else {
|
|
14
|
+
var newEL = $("<span/>").text(elem).css({
|
|
15
|
+
opacity: 0,
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//append it to the welcome message
|
|
19
|
+
newEL.appendTo($all_msg);
|
|
20
|
+
//set the delay on the animation for this element
|
|
21
|
+
newEL.delay(idx * 33);
|
|
22
|
+
//animate the opacity back to full 1
|
|
23
|
+
newEL.animate({
|
|
24
|
+
opacity: 1
|
|
25
|
+
}, 500);
|
|
26
|
+
});
|
|
27
|
+
$(".sdc").fadeIn(200);
|
|
28
|
+
//
|
|
29
|
+
gsap.registerPlugin(ScrollTrigger)
|
|
30
|
+
gsap.to(".pagebody", {
|
|
31
|
+
scrollTrigger: {
|
|
32
|
+
trigger: ".divheader",
|
|
33
|
+
start: "bottom-=300 top",
|
|
34
|
+
end: "bottom-=200 top",
|
|
35
|
+
scrub: true,
|
|
36
|
+
toggleActions: "restart none reverse none"
|
|
37
|
+
},
|
|
38
|
+
opacity: 1,
|
|
39
|
+
transform: "translateY(-200px)",
|
|
40
|
+
})
|
|
41
|
+
gsap.to(".divheader", {
|
|
42
|
+
scrollTrigger: {
|
|
43
|
+
trigger: ".divheader",
|
|
44
|
+
start: "bottom-=300 top",
|
|
45
|
+
end: "bottom-=200 top",
|
|
46
|
+
markers: true,
|
|
47
|
+
id: "light",
|
|
48
|
+
scrub: true,
|
|
49
|
+
toggleActions: "restart none reverse none"
|
|
50
|
+
},
|
|
51
|
+
backgroundColor: "white",
|
|
52
|
+
})
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
$(window).on('beforeunload', function() {
|
|
56
|
+
$('body').hide();
|
|
57
|
+
$(window).scrollTop(0);
|
|
58
|
+
});
|
data/assets/blog.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
window.onload = function() {
|
|
2
|
+
if(performance.navigation.type == 2){
|
|
3
|
+
location.reload(true);
|
|
4
|
+
}
|
|
5
|
+
var $all_msg = $('.big-header');
|
|
6
|
+
var $wordList = ($('.author').text() + "'s blog").split("");
|
|
7
|
+
$.each($wordList, function(idx, elem) {
|
|
8
|
+
//create a span for the letter and set opacity to 0
|
|
9
|
+
if (idx < $wordList.length - 7) {
|
|
10
|
+
var newEL = $("<span/>").text(elem).css({
|
|
11
|
+
opacity: 0,
|
|
12
|
+
color: $(".color").text()
|
|
13
|
+
});
|
|
14
|
+
} else {
|
|
15
|
+
var newEL = $("<span/>").text(elem).css({
|
|
16
|
+
opacity: 0,
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
//append it to the welcome message
|
|
20
|
+
newEL.appendTo($all_msg);
|
|
21
|
+
//set the delay on the animation for this element
|
|
22
|
+
newEL.delay(idx * 33);
|
|
23
|
+
//animate the opacity back to full 1
|
|
24
|
+
newEL.animate({
|
|
25
|
+
opacity: 1
|
|
26
|
+
}, 500);
|
|
27
|
+
});
|
|
28
|
+
$(".sdc").fadeIn(200);
|
|
29
|
+
//
|
|
30
|
+
gsap.registerPlugin(ScrollTrigger)
|
|
31
|
+
var cards = gsap.utils.toArray(".card")
|
|
32
|
+
cards.forEach((item) => {
|
|
33
|
+
gsap.to(item, {
|
|
34
|
+
scrollTrigger: {
|
|
35
|
+
trigger: item,
|
|
36
|
+
start: "top bottom",
|
|
37
|
+
end: "top bottom-=200",
|
|
38
|
+
scrub: true
|
|
39
|
+
},
|
|
40
|
+
opacity: 1,
|
|
41
|
+
transform: "translateY(0px)",
|
|
42
|
+
})
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
$(window).on('beforeunload', function() {
|
|
48
|
+
$('body').hide();
|
|
49
|
+
$(window).scrollTop(0);
|
|
50
|
+
});
|
data/assets/index.js
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
window.onload = function() {
|
|
2
|
+
if(performance.navigation.type == 2){
|
|
3
|
+
location.reload(true);
|
|
4
|
+
}
|
|
5
|
+
var $all_msg = $('.big-header');
|
|
6
|
+
var $wordList = ("Hello 👋, I am " + $('.author').text()).split("");
|
|
7
|
+
$wordList[6] = "👋"
|
|
8
|
+
delete $wordList[7]
|
|
9
|
+
$.each($wordList, function(idx, elem) {
|
|
10
|
+
//create a span for the letter and set opacity to 0
|
|
11
|
+
if (idx > 14) {
|
|
12
|
+
var newEL = $("<span/>").text(elem).css({
|
|
13
|
+
opacity: 0,
|
|
14
|
+
color: $(".color").text()
|
|
15
|
+
});
|
|
16
|
+
} else {
|
|
17
|
+
var newEL = $("<span/>").text(elem).css({
|
|
18
|
+
opacity: 0,
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
//append it to the welcome message
|
|
22
|
+
newEL.appendTo($all_msg);
|
|
23
|
+
//set the delay on the animation for this element
|
|
24
|
+
newEL.delay(idx * 33);
|
|
25
|
+
//animate the opacity back to full 1
|
|
26
|
+
newEL.animate({
|
|
27
|
+
opacity: 1
|
|
28
|
+
}, 500);
|
|
29
|
+
});
|
|
30
|
+
$(".sdc").fadeIn(200);
|
|
31
|
+
//
|
|
32
|
+
gsap.registerPlugin(ScrollTrigger)
|
|
33
|
+
gsap.to(".pagebody", {
|
|
34
|
+
scrollTrigger: {
|
|
35
|
+
trigger: ".divheader",
|
|
36
|
+
start: "bottom-=300 top",
|
|
37
|
+
end: "bottom-=200 top",
|
|
38
|
+
scrub: true,
|
|
39
|
+
toggleActions: "restart none reverse none"
|
|
40
|
+
},
|
|
41
|
+
opacity: 1,
|
|
42
|
+
transform: "translateY(-200px)",
|
|
43
|
+
})
|
|
44
|
+
gsap.to(".divheader", {
|
|
45
|
+
scrollTrigger: {
|
|
46
|
+
trigger: ".divheader",
|
|
47
|
+
start: "bottom-=300 top",
|
|
48
|
+
end: "bottom-=200 top",
|
|
49
|
+
scrub: true,
|
|
50
|
+
toggleActions: "restart none reverse none"
|
|
51
|
+
},
|
|
52
|
+
backgroundColor: "white",
|
|
53
|
+
})
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
$(window).on('beforeunload', function() {
|
|
57
|
+
$('body').hide();
|
|
58
|
+
$(window).scrollTop(0);
|
|
59
|
+
});
|
data/assets/main.scss
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
---
|
|
3
|
+
|
|
4
|
+
@import "syntax";
|
|
5
|
+
|
|
6
|
+
.divheader {
|
|
7
|
+
transform: background-color 2s;
|
|
8
|
+
background-color:#292b2c
|
|
9
|
+
}
|
|
10
|
+
.sdc {
|
|
11
|
+
animation: sdc 2s linear infinite;
|
|
12
|
+
-webkit-animation: sdc 2s linear infinite;
|
|
13
|
+
-ms-animation: sdc 2s linear infinite;
|
|
14
|
+
}
|
|
15
|
+
.pagebody {
|
|
16
|
+
opacity: 0;
|
|
17
|
+
transform: translateY(200px);
|
|
18
|
+
}
|
|
19
|
+
@keyframes sdc {
|
|
20
|
+
0% { transform: translateY(100px); opacity: 1 }
|
|
21
|
+
50% { transform: translateY(0px); opacity: 0 }
|
|
22
|
+
100% { transform: translateY(100px); opacity: 1 }
|
|
23
|
+
}
|
|
24
|
+
.card {
|
|
25
|
+
opacity: 0;
|
|
26
|
+
transform: translateY(200px);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.post-list{
|
|
30
|
+
text-align: center;
|
|
31
|
+
justify-content: center;
|
|
32
|
+
padding-top:2.5em;
|
|
33
|
+
display:-webkit-box;
|
|
34
|
+
display:-ms-flexbox;
|
|
35
|
+
display:flex;
|
|
36
|
+
-ms-flex-wrap:wrap;flex-wrap:
|
|
37
|
+
wrap;-webkit-box-flex:1;
|
|
38
|
+
-ms-flex:1 0 auto;
|
|
39
|
+
flex:1 0 auto
|
|
40
|
+
}
|
|
41
|
+
@media only screen and (min-width: 48em){
|
|
42
|
+
post-list {
|
|
43
|
+
padding-top:5em
|
|
44
|
+
}
|
|
45
|
+
}
|
data/assets/post.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
window.onload = function() {
|
|
2
|
+
if(performance.navigation.type == 2){
|
|
3
|
+
location.reload(true);
|
|
4
|
+
}
|
|
5
|
+
var $all_msg = $('.big-header');
|
|
6
|
+
var $wordList = $('title').text().split(" | " + $('.author').text())[0].split("");
|
|
7
|
+
$.each($wordList, function(idx, elem) {
|
|
8
|
+
//create a span for the letter and set opacity to 0
|
|
9
|
+
var newEL = $("<span/>").text(elem).css({
|
|
10
|
+
opacity: 0,
|
|
11
|
+
});
|
|
12
|
+
//append it to the welcome message
|
|
13
|
+
newEL.appendTo($all_msg);
|
|
14
|
+
//set the delay on the animation for this element
|
|
15
|
+
newEL.delay(idx * 33);
|
|
16
|
+
//animate the opacity back to full 1
|
|
17
|
+
newEL.animate({
|
|
18
|
+
opacity: 1
|
|
19
|
+
}, 500);
|
|
20
|
+
});
|
|
21
|
+
$(".sdc").fadeIn(200);
|
|
22
|
+
//
|
|
23
|
+
gsap.registerPlugin(ScrollTrigger)
|
|
24
|
+
gsap.to(".pagebody", {
|
|
25
|
+
scrollTrigger: {
|
|
26
|
+
trigger: ".divheader",
|
|
27
|
+
start: "bottom-=300 top",
|
|
28
|
+
end: "bottom-=200 top",
|
|
29
|
+
scrub: true,
|
|
30
|
+
toggleActions: "restart none reverse none"
|
|
31
|
+
},
|
|
32
|
+
opacity: 1,
|
|
33
|
+
transform: "translateY(-50px)",
|
|
34
|
+
})
|
|
35
|
+
gsap.to(".divheader", {
|
|
36
|
+
scrollTrigger: {
|
|
37
|
+
trigger: ".divheader",
|
|
38
|
+
start: "bottom-=300 top",
|
|
39
|
+
end: "bottom-=200 top",
|
|
40
|
+
scrub: true,
|
|
41
|
+
toggleActions: "restart none reverse none"
|
|
42
|
+
},
|
|
43
|
+
backgroundColor: "white",
|
|
44
|
+
})
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
$(window).on('beforeunload', function() {
|
|
48
|
+
$('body').hide();
|
|
49
|
+
$(window).scrollTop(0);
|
|
50
|
+
});
|
data/assets/projects.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
window.onload = function() {
|
|
2
|
+
if(performance.navigation.type == 2){
|
|
3
|
+
location.reload(true);
|
|
4
|
+
}
|
|
5
|
+
var $all_msg = $('.big-header');
|
|
6
|
+
var author = $(".author").text()
|
|
7
|
+
var result = []
|
|
8
|
+
var texts = []
|
|
9
|
+
var $wordList = (author + "'s Projects").split("");
|
|
10
|
+
$.each($wordList, function(idx, elem) {
|
|
11
|
+
if (idx < $wordList.length - 11) {
|
|
12
|
+
var newEL = $("<span/>").text(elem).css({
|
|
13
|
+
opacity: 0,
|
|
14
|
+
color: $(".color").text()
|
|
15
|
+
});
|
|
16
|
+
} else {
|
|
17
|
+
var newEL = $("<span/>").text(elem).css({
|
|
18
|
+
opacity: 0,
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
//append it to the welcome message
|
|
22
|
+
newEL.appendTo($all_msg);
|
|
23
|
+
//set the delay on the animation for this element
|
|
24
|
+
newEL.delay(idx * 33);
|
|
25
|
+
//animate the opacity back to full 1
|
|
26
|
+
newEL.animate({
|
|
27
|
+
opacity: 1
|
|
28
|
+
}, 500);
|
|
29
|
+
});
|
|
30
|
+
$(".sdc").fadeIn(200);
|
|
31
|
+
//
|
|
32
|
+
gsap.registerPlugin(ScrollTrigger)
|
|
33
|
+
var cards = gsap.utils.toArray(".card")
|
|
34
|
+
cards.forEach((item) => {
|
|
35
|
+
gsap.to(item, {
|
|
36
|
+
scrollTrigger: {
|
|
37
|
+
trigger: item,
|
|
38
|
+
start: "center bottom",
|
|
39
|
+
},
|
|
40
|
+
opacity: 1,
|
|
41
|
+
transform: "translateY(0px)",
|
|
42
|
+
})
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
$(window).on('beforeunload', function() {
|
|
48
|
+
$('body').hide();
|
|
49
|
+
$(window).scrollTop(0);
|
|
50
|
+
});
|
metadata
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: DarkFolio
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- RedYetiDev
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2021-02-24 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: jekyll
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '4.2'
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '4.2'
|
|
27
|
+
description: |2
|
|
28
|
+
DarkFolio is a Jekyll Theme made by RedYetiDev. The theme contains a blog page, a projects page and a main page.
|
|
29
|
+
The blog page allows you to post posts using markdown. The projects allows you to show off your projects and creations. On the main page
|
|
30
|
+
The main page shows a small paragraph about you, and an avatar.
|
|
31
|
+
email: redyetidev@gmail.com
|
|
32
|
+
executables: []
|
|
33
|
+
extensions: []
|
|
34
|
+
extra_rdoc_files: []
|
|
35
|
+
files:
|
|
36
|
+
- LICENSE
|
|
37
|
+
- README.md
|
|
38
|
+
- _config.yml
|
|
39
|
+
- _includes/head.html
|
|
40
|
+
- _layouts/404.html
|
|
41
|
+
- _layouts/blog.html
|
|
42
|
+
- _layouts/index.html
|
|
43
|
+
- _layouts/post.html
|
|
44
|
+
- _layouts/projects.html
|
|
45
|
+
- _posts/2020-02-23-example-post.md
|
|
46
|
+
- _sass/syntax.scss
|
|
47
|
+
- assets/404.js
|
|
48
|
+
- assets/blog.js
|
|
49
|
+
- assets/index.js
|
|
50
|
+
- assets/main.scss
|
|
51
|
+
- assets/post.js
|
|
52
|
+
- assets/projects.js
|
|
53
|
+
homepage: https://redyetidev.github.io/DarkFolio
|
|
54
|
+
licenses:
|
|
55
|
+
- Mozzila Public License 2.0
|
|
56
|
+
metadata:
|
|
57
|
+
bug_tracker_uri: https://github.com/redyetidev/DarkFolio/issues
|
|
58
|
+
changelog_uri: https://github.com/redyetidev/DarkFolio/CHANGELOG.md
|
|
59
|
+
documentation_uri: https://redyetidev.github.io/DarkFolio/DarkFolio
|
|
60
|
+
homepage_uri: https://redyetidev.github.io/DarkFolio/
|
|
61
|
+
source_code_uri: https://github.com/redyetidev/DarkFolio
|
|
62
|
+
post_install_message: Thanks for installing DarkFolio, If you need help, check out
|
|
63
|
+
the bug tracker.
|
|
64
|
+
rdoc_options: []
|
|
65
|
+
require_paths:
|
|
66
|
+
- lib
|
|
67
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
68
|
+
requirements:
|
|
69
|
+
- - ">="
|
|
70
|
+
- !ruby/object:Gem::Version
|
|
71
|
+
version: '0'
|
|
72
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
73
|
+
requirements:
|
|
74
|
+
- - ">="
|
|
75
|
+
- !ruby/object:Gem::Version
|
|
76
|
+
version: '0'
|
|
77
|
+
requirements: []
|
|
78
|
+
rubygems_version: 3.0.3
|
|
79
|
+
signing_key:
|
|
80
|
+
specification_version: 4
|
|
81
|
+
summary: The DarkFolio theme is a simple theme containing a index page, blog page,
|
|
82
|
+
and projects page
|
|
83
|
+
test_files: []
|