arco 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +63 -0
- data/_config.yml +5 -0
- data/_includes/cover.html +4 -3
- data/_includes/sidebar.html +4 -4
- data/_layouts/404.html +10 -0
- data/_layouts/landing.html +0 -1
- data/_sass/404.scss +29 -0
- data/_sass/arco.scss +5 -1
- data/_sass/cover.scss +2 -34
- data/assets/css/main.scss +1 -0
- metadata +6 -4
- data/assets/js/cover-transitions.js +0 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f309ed261570f257e221b24de154d9c7d9b0f2f443a73a25a88775ab4b83ef27
|
4
|
+
data.tar.gz: 871b1fcc3c148d04d37ccd2daee45430ec53c169cdf8cd4fcfbfe03e67d5a876
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1174e51ab1b86d2c54ce1ca29cf2d2032a5249bcbb5f0bd133f894b1e4eca76b7d21c3df181a170e94773b4552c94ca202c7b8f839991df6c35db6e21803ccd4
|
7
|
+
data.tar.gz: 6a058386d888ec2ee6bc5f30deda5f863b662e66ab6165348fe03544d9e401c76b9153c41a801288196a432c3fad043b647efa54bd45ba1ee5e21c112516796e
|
data/README.md
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
# arco
|
2
|
+
|
3
|
+
Arco is a responsive fixed-sidebar layout with a two column masonry grid which also features a landing page, a 404 page and a simple permalink structure.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your Jekyll site's `Gemfile`:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem "arco"
|
11
|
+
```
|
12
|
+
|
13
|
+
And add this line to your Jekyll site's `_config.yml`:
|
14
|
+
|
15
|
+
```yaml
|
16
|
+
theme: arco
|
17
|
+
```
|
18
|
+
|
19
|
+
And then execute:
|
20
|
+
|
21
|
+
$ bundle
|
22
|
+
|
23
|
+
Or install it yourself as:
|
24
|
+
|
25
|
+
$ gem install arco
|
26
|
+
|
27
|
+
## Usage
|
28
|
+
|
29
|
+
### Site configuration
|
30
|
+
|
31
|
+
The following settings can be configured in your site's `_config.yml`
|
32
|
+
|
33
|
+
```yaml
|
34
|
+
title: Site title
|
35
|
+
description: Site description
|
36
|
+
image: /assets/image.png
|
37
|
+
github_url: https://github.com/meebuhs
|
38
|
+
resume: true | false
|
39
|
+
```
|
40
|
+
|
41
|
+
### Expected post frontmatter
|
42
|
+
|
43
|
+
```
|
44
|
+
---
|
45
|
+
layout: post
|
46
|
+
title: Post title
|
47
|
+
summary: Post summary
|
48
|
+
category: completed | ongoing
|
49
|
+
permalink: /projects/post-title
|
50
|
+
cover-image: /assets/image-for-front-page.png
|
51
|
+
top-image: /assets/image-for-top-of-post.png
|
52
|
+
mathjax: true | false
|
53
|
+
---
|
54
|
+
```
|
55
|
+
|
56
|
+
### Resume support
|
57
|
+
|
58
|
+
To add a resume to the site, set `resume: true` in your `_config.yml`.
|
59
|
+
Then create a folder called `_includes` at the root of your site and add your `resume.html` to it.
|
60
|
+
|
61
|
+
## License
|
62
|
+
|
63
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/_config.yml
CHANGED
data/_includes/cover.html
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
<section id="cover" class="cover">
|
2
2
|
<div class="cover-text">
|
3
|
-
<
|
4
|
-
<
|
3
|
+
{% if site.image %}<img class="site-image" src="{{ site.image }}" />{% endif %}
|
4
|
+
<h1>{{ site.title }}</a></h1>
|
5
|
+
<h6>{{ site.description }}</h6>
|
5
6
|
</div>
|
6
7
|
<div id="open-button-container" class="open-button-container">
|
7
|
-
<a href="/projects/" class="open-button">See my projects
|
8
|
+
<a href="/projects/" class="open-button">See my projects</a>
|
8
9
|
</div>
|
9
10
|
</section>
|
data/_includes/sidebar.html
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
<section id="sidebar" class="sidebar">
|
2
2
|
<svg id="sidebar-fader"></svg>
|
3
3
|
<div class="sidebar-text">
|
4
|
-
|
5
|
-
|
4
|
+
{% if site.image %}<img class="site-image" src="{{ site.image }}" />{% endif %}
|
5
|
+
<h1><a href="{{ "/projects/" }}" class="fade-onclick">{{ site.title }}</a></h1>
|
6
|
+
<h6>{{ site.description }}</h6>
|
6
7
|
</div>
|
7
8
|
<div class="sidebar-links">
|
8
9
|
{% assign identifier = page.url | split: "/" | last %}
|
@@ -17,7 +18,6 @@
|
|
17
18
|
{% else %}
|
18
19
|
<a href="{{ "/projects/ongoing" }}" class="fade-onclick">ongoing</a>
|
19
20
|
{% endif %}
|
20
|
-
/
|
21
|
-
{% if site.github %}<a href="{{ site.github }}">github</a> {% endif %}{% if site.resume %} / <a href="{{ "/resume" }}" class="fade-onclick">resume</a> {% endif %}
|
21
|
+
{% if site.github_url %} / <a href="{{ site.github_url }}">github</a> {% endif %}{% if site.resume %} / <a href="{{ "/resume" }}" class="fade-onclick">resume</a> {% endif %}
|
22
22
|
</div>
|
23
23
|
</section>
|
data/_layouts/404.html
ADDED
data/_layouts/landing.html
CHANGED
data/_sass/404.scss
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
@import "constants";
|
2
|
+
@import "fonts";
|
3
|
+
|
4
|
+
.notfound-text {
|
5
|
+
h1 {
|
6
|
+
color: $primary-highlight;
|
7
|
+
margin: 0;
|
8
|
+
}
|
9
|
+
h6 {
|
10
|
+
text-transform: uppercase;
|
11
|
+
font-size: .9rem;
|
12
|
+
color: $text-colour-light;
|
13
|
+
}
|
14
|
+
}
|
15
|
+
|
16
|
+
.notfound {
|
17
|
+
height: 100%;
|
18
|
+
width: 100%;
|
19
|
+
display: flex;
|
20
|
+
flex-direction: column;
|
21
|
+
text-align: center;
|
22
|
+
justify-content: center;
|
23
|
+
top: 0;
|
24
|
+
position: fixed;
|
25
|
+
z-index: 9999;
|
26
|
+
background: $sidebar-colour;
|
27
|
+
color: $text-colour-light;
|
28
|
+
transition: all .25s ease;
|
29
|
+
}
|
data/_sass/arco.scss
CHANGED
data/_sass/cover.scss
CHANGED
@@ -3,10 +3,8 @@
|
|
3
3
|
|
4
4
|
.cover-text {
|
5
5
|
h1 {
|
6
|
+
color: $primary-highlight;
|
6
7
|
margin: 0;
|
7
|
-
:hover {
|
8
|
-
color: lighten($primary-highlight, 14%);
|
9
|
-
}
|
10
8
|
}
|
11
9
|
h6 {
|
12
10
|
text-transform: uppercase;
|
@@ -71,11 +69,6 @@
|
|
71
69
|
display: flex;
|
72
70
|
flex-direction: column;
|
73
71
|
}
|
74
|
-
|
75
|
-
.slide {
|
76
|
-
height: $sidebar-height;
|
77
|
-
animation-name: slide-up;
|
78
|
-
}
|
79
72
|
}
|
80
73
|
|
81
74
|
/* horizontal layout */
|
@@ -85,29 +78,4 @@
|
|
85
78
|
text-align: center;
|
86
79
|
justify-content: center;
|
87
80
|
}
|
88
|
-
|
89
|
-
.slide {
|
90
|
-
width: $sidebar-width;
|
91
|
-
animation-name: slide-left;
|
92
|
-
}
|
93
|
-
}
|
94
|
-
|
95
|
-
@keyframes slide-left {
|
96
|
-
from {
|
97
|
-
width: 100%;
|
98
|
-
}
|
99
|
-
|
100
|
-
to {
|
101
|
-
width: $sidebar-width;
|
102
|
-
}
|
103
|
-
}
|
104
|
-
|
105
|
-
@keyframes slide-up {
|
106
|
-
from {
|
107
|
-
height: 100%;
|
108
|
-
}
|
109
|
-
|
110
|
-
to {
|
111
|
-
height: $sidebar-height;
|
112
|
-
}
|
113
|
-
}
|
81
|
+
}
|
data/assets/css/main.scss
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arco
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- meebuhs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-06-
|
11
|
+
date: 2020-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -26,22 +26,25 @@ dependencies:
|
|
26
26
|
version: '4.1'
|
27
27
|
description:
|
28
28
|
email:
|
29
|
-
-
|
29
|
+
- meebuhs@gmail.com
|
30
30
|
executables: []
|
31
31
|
extensions: []
|
32
32
|
extra_rdoc_files: []
|
33
33
|
files:
|
34
34
|
- LICENSE.txt
|
35
|
+
- README.md
|
35
36
|
- _config.yml
|
36
37
|
- _includes/cover.html
|
37
38
|
- _includes/footer.html
|
38
39
|
- _includes/mathjax.html
|
39
40
|
- _includes/sidebar.html
|
41
|
+
- _layouts/404.html
|
40
42
|
- _layouts/default.html
|
41
43
|
- _layouts/landing.html
|
42
44
|
- _layouts/post-list.html
|
43
45
|
- _layouts/post.html
|
44
46
|
- _layouts/resume.html
|
47
|
+
- _sass/404.scss
|
45
48
|
- _sass/arco.scss
|
46
49
|
- _sass/constants.scss
|
47
50
|
- _sass/cover.scss
|
@@ -65,7 +68,6 @@ files:
|
|
65
68
|
- assets/fonts/roboto-mono/RobotoMono-BoldItalic.ttf
|
66
69
|
- assets/fonts/roboto-mono/RobotoMono-Italic.ttf
|
67
70
|
- assets/fonts/roboto-mono/RobotoMono-Regular.ttf
|
68
|
-
- assets/js/cover-transitions.js
|
69
71
|
- assets/js/fade-transitions.js
|
70
72
|
- assets/js/post-grid-init.js
|
71
73
|
- assets/js/sidebar.js
|
@@ -1,16 +0,0 @@
|
|
1
|
-
document.addEventListener("DOMContentLoaded", function() {
|
2
|
-
let openButton = document.getElementsByClassName("open-button");
|
3
|
-
openButton[0].addEventListener("click", function(event) {
|
4
|
-
let cover = document.getElementById("cover"),
|
5
|
-
anchor = event.currentTarget;
|
6
|
-
|
7
|
-
let listener = function() {
|
8
|
-
window.location = anchor.href;
|
9
|
-
cover.removeEventListener("animationend", listener);
|
10
|
-
};
|
11
|
-
cover.addEventListener("animationend", listener);
|
12
|
-
|
13
|
-
event.preventDefault();
|
14
|
-
cover.classList.add("slide");
|
15
|
-
});
|
16
|
-
});
|