askclass-home-theme 0.1.0 → 0.1.1
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 +4 -4
- data/_config.yml +1 -4
- data/_includes/boxes/fullpage.html +1 -1
- data/_includes/boxes/rounded.html +14 -8
- data/_includes/foot/js.html +1 -0
- data/_includes/head/common.html +16 -11
- data/_includes/head/meta.html +4 -3
- data/_includes/head/top-nav-buttons.html +1 -1
- data/_includes/localize.html +1 -0
- data/_includes/main.html +0 -1
- data/_layouts/default.html +1 -0
- data/_sass/_bullets.scss +22 -3
- data/_sass/_section.scss +17 -10
- data/assets/js/scripts.js +6 -0
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3413b1e939a63599c28707462a98e60c85002af9bf43be2c73d834daa3d19d22
|
|
4
|
+
data.tar.gz: 246359b8287e23b34da0f777ffa6420752e1bb4428a91f8a1c4586a1233fe530
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 764cb5e4f6736052744cf3c85e0e27614047028de61ae5ff0a882468388c07359ba14076a5b9fd573eca02bafb397b8730ccd350e5d372a7dc6b583da6853ff5
|
|
7
|
+
data.tar.gz: e33660c4bb31751539ac8798ec029db4e0ce608f4c795895a945ec46c178110a76a43db187917e87310ea2eb4392df702b1ee71b02376cb11a54ee36ef578e6f
|
data/_config.yml
CHANGED
|
@@ -17,16 +17,22 @@
|
|
|
17
17
|
'>
|
|
18
18
|
{%- if box.image %}
|
|
19
19
|
<div class='image-overlay'>
|
|
20
|
-
<img
|
|
20
|
+
<img onclick='playGif(this)'
|
|
21
|
+
src='{{ box.image.src }}'
|
|
22
|
+
data-gif='{{ box.image.gif }}'
|
|
23
|
+
title='{{ box.image.text }}'
|
|
24
|
+
width='{{ box.image.width | default: "100%" }}' />
|
|
21
25
|
</div>
|
|
22
26
|
{%- endif %}
|
|
23
|
-
<
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
{{ box.button.
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
<div class='text-content'>
|
|
28
|
+
<h1 class='{{ smaller }}'>{{ box.title }}</h1>
|
|
29
|
+
<p>{{ box.text }}</p>
|
|
30
|
+
{%- if box.button %}
|
|
31
|
+
<a class='a-button link' href='{{ box.button.href }}'>
|
|
32
|
+
{{ box.button.label }}
|
|
33
|
+
</a>
|
|
34
|
+
{%- endif %}
|
|
35
|
+
</div>
|
|
30
36
|
</div>
|
|
31
37
|
{%- endfor %}
|
|
32
38
|
</div>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<script src='/assets/js/scripts.js' />
|
data/_includes/head/common.html
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
{
|
|
2
|
-
{
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
{%- assign ach = site.ach %}
|
|
2
|
+
{%- assign desc = SEGMENTS[slug].text
|
|
3
|
+
| default: page.excerpt
|
|
4
|
+
| default: site.description
|
|
5
|
+
| strip_html
|
|
6
|
+
| strip_newlines %}
|
|
7
|
+
{%- assign assets = '/assets/' | prepend: site.url %}
|
|
8
|
+
{%- assign families = ach.font_families | join: "&family=" %}
|
|
5
9
|
{%- assign og_image = ach.meta.og_image | prepend: '/assets/' %}
|
|
6
10
|
|
|
7
11
|
<meta charset="utf-8" />
|
|
@@ -21,11 +25,11 @@
|
|
|
21
25
|
<meta property="og:site_name" content="{{ site.title }}" />
|
|
22
26
|
<meta property="og:description" content="{{ desc }}" />
|
|
23
27
|
<meta property="og:url" content="{{ site.url }}{{ page.url }}" />
|
|
24
|
-
<meta property="og:image" content="{{ page.image | default: og_image }}" />
|
|
25
|
-
{
|
|
28
|
+
<meta property="og:image" content="{{ SEGMENTS[slug].image.src | default: page.image | default: og_image }}" />
|
|
29
|
+
{%- if ach.social.twitter %}
|
|
26
30
|
<meta name="twitter:site" content="{{ ach.social.twitter }}" />
|
|
27
31
|
<meta name="twitter:card" content="summary_large_image">
|
|
28
|
-
{
|
|
32
|
+
{%- endif % -%}
|
|
29
33
|
|
|
30
34
|
<link rel="manifest" href="/assets/site.webmanifest" />
|
|
31
35
|
<link rel="preconnect" href="https://cdn.jsdelivr.net" />
|
|
@@ -35,11 +39,12 @@
|
|
|
35
39
|
<link rel="preload" as="style"
|
|
36
40
|
href="https://fonts.googleapis.com/css2?family={{ families }}&display=swap"
|
|
37
41
|
onload='this.onload=null;this.rel="stylesheet"' />
|
|
38
|
-
<link rel="shortcut icon" href="/assets/{{ ach.meta.
|
|
39
|
-
|
|
40
|
-
<link rel="icon" type="
|
|
42
|
+
<link rel="shortcut icon" href="/assets/{{ ach.meta.favicon }}" />
|
|
43
|
+
{%- for icon in site.data.icons %}
|
|
44
|
+
<link rel="icon" type="{{ icon.type }}" href="{{ icon.href }}" />
|
|
45
|
+
{%- endfor %}
|
|
41
46
|
|
|
42
47
|
<link rel="apple-touch-icon" href="/assets/{{ ach.meta.apple_icon }}" />
|
|
43
|
-
{
|
|
48
|
+
{%- for size in ach.logo.sizes %}
|
|
44
49
|
<link rel="apple-touch-icon" sizes="{{size}}x{{size}}" href="/assets/logo-square-{{size}}.png" />
|
|
45
50
|
{%- endfor %}
|
data/_includes/head/meta.html
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
{%-
|
|
2
|
-
|
|
1
|
+
{%- assign slug = page.name | remove_first: '.md' %}
|
|
2
|
+
{%- if SEGMENTS[slug].headers -%}
|
|
3
|
+
{%- assign title = SEGMENTS[slug].headers | join: ' ' | append: " • " | append: site.title -%}
|
|
3
4
|
{%- elsif site.title -%}
|
|
4
5
|
<meta property="og:type" content="website" />
|
|
5
6
|
<meta property="og:image:width" content="150" />
|
|
6
7
|
<meta property="og:image:height" content="150" />
|
|
7
8
|
{%- endif -%}
|
|
9
|
+
|
|
8
10
|
<title>{{ title | default: site.title }}</title>
|
|
9
11
|
<meta property="og:title" content="{{ title | default: site.title }}" />
|
|
10
|
-
<meta name="author" content="{{ writer | default: site.title }}" />
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div class='nav-buttons'>
|
|
3
3
|
{%- include head/languages.html %}
|
|
4
4
|
{%- for button in _nav.buttons %}
|
|
5
|
-
<a href="{{ button.url }}" class="a-button {{ button.color }}">{{ button.text }}</a>
|
|
5
|
+
<a href="{{ button.url }}" class="a-button {{ button.color }} {{ button.hidden }}">{{ button.text }}</a>
|
|
6
6
|
{%- endfor %}
|
|
7
7
|
</div>
|
|
8
8
|
|
data/_includes/localize.html
CHANGED
data/_includes/main.html
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
{%- assign _slist = site.data[LANG].main.segments | default: site.data.main.segments %}
|
|
2
|
-
{%- assign SEGMENTS = site.data[LANG].segments | default: site.data.segments %}
|
|
3
2
|
{%- for segment in _slist %}
|
|
4
3
|
{%- assign _info = SEGMENTS[segment] %}
|
|
5
4
|
{%- include boxes/{{ _info.type | default: 'fullpage' }}.html data=_info %}
|
data/_layouts/default.html
CHANGED
data/_sass/_bullets.scss
CHANGED
|
@@ -1,15 +1,34 @@
|
|
|
1
|
+
ul, ol {
|
|
2
|
+
padding-inline-start: 2em;
|
|
3
|
+
margin-block-start: 0.5em;
|
|
4
|
+
margin-block-end: 0.5em;
|
|
5
|
+
ul, ol {
|
|
6
|
+
padding-inline-start: 1.2em;
|
|
7
|
+
}
|
|
8
|
+
blockquote {
|
|
9
|
+
padding-left: 0.8em;
|
|
10
|
+
margin-left: 0.2em;
|
|
11
|
+
margin-right: 0.5em;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
ol ::marker, ul ::marker {
|
|
15
|
+
color: var(--color-bullet);
|
|
16
|
+
}
|
|
1
17
|
ol > li {
|
|
2
18
|
ul > li {
|
|
3
|
-
list-style-type:
|
|
19
|
+
list-style-type: initial;
|
|
4
20
|
}
|
|
5
21
|
ol > li {
|
|
6
22
|
list-style: lower-alpha;
|
|
23
|
+
ol > li {
|
|
24
|
+
list-style: lower-greek;
|
|
25
|
+
}
|
|
7
26
|
}
|
|
8
27
|
}
|
|
9
28
|
|
|
10
29
|
ul > li > ul > li {
|
|
11
|
-
list-style-type:
|
|
30
|
+
list-style-type: initial;
|
|
12
31
|
ul > li {
|
|
13
|
-
list-style-type:
|
|
32
|
+
list-style-type: initial;
|
|
14
33
|
}
|
|
15
34
|
}
|
data/_sass/_section.scss
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
.animated {
|
|
2
2
|
margin: 0;
|
|
3
|
-
line-height: 1.2;
|
|
4
3
|
animation-name: taglineEmerge;
|
|
5
4
|
animation-fill-mode: forwards;
|
|
6
5
|
animation-duration: 1400ms;
|
|
@@ -29,11 +28,14 @@ article {
|
|
|
29
28
|
width: 100%;
|
|
30
29
|
}
|
|
31
30
|
.image-overlay {
|
|
32
|
-
margin-bottom: 20px;
|
|
33
31
|
img {
|
|
34
|
-
border-radius: 1em;
|
|
32
|
+
border-radius: 1em 1em 0 0;
|
|
35
33
|
}
|
|
36
34
|
}
|
|
35
|
+
.text-content {
|
|
36
|
+
margin-top: 2em;
|
|
37
|
+
padding: 0 2em;
|
|
38
|
+
}
|
|
37
39
|
}
|
|
38
40
|
|
|
39
41
|
&.fullpage {
|
|
@@ -70,8 +72,7 @@ article {
|
|
|
70
72
|
.box {
|
|
71
73
|
width: 100%;
|
|
72
74
|
box-sizing: border-box;
|
|
73
|
-
border-radius:
|
|
74
|
-
padding: 2em;
|
|
75
|
+
border-radius: 1em;
|
|
75
76
|
margin: 1em 0;
|
|
76
77
|
h1 {
|
|
77
78
|
margin: 0;
|
|
@@ -87,23 +88,26 @@ article {
|
|
|
87
88
|
h1 { font-size: 80px; }
|
|
88
89
|
h1.smaller { font-size: 70px; }
|
|
89
90
|
h4, p { font-size: 35px; }
|
|
91
|
+
ul { font-size: 33px; }
|
|
92
|
+
.hide-large { display: none; }
|
|
90
93
|
}
|
|
91
94
|
|
|
92
95
|
@mixin medium() {
|
|
93
96
|
h1 { font-size: 50px; }
|
|
94
97
|
h1.smaller { font-size: 40px; }
|
|
95
|
-
h4, p { font-size: 30px; }
|
|
98
|
+
h4, p, ul { font-size: 30px; }
|
|
99
|
+
.hide-medium { display: none; }
|
|
96
100
|
}
|
|
97
101
|
|
|
98
102
|
@mixin small() {
|
|
99
103
|
h1 { font-size: 40px; }
|
|
100
104
|
h1.smaller { font-size: 30px; }
|
|
101
105
|
h4, p { font-size: 24px; }
|
|
106
|
+
ul { font-size: 23px; }
|
|
107
|
+
.hide-small { display: none; }
|
|
102
108
|
}
|
|
103
109
|
|
|
104
|
-
@media screen and (
|
|
105
|
-
@include large();
|
|
106
|
-
}
|
|
110
|
+
@media screen and (max-width:767px) { @include small(); }
|
|
107
111
|
|
|
108
112
|
@media screen and (min-width:767px) {
|
|
109
113
|
@include medium();
|
|
@@ -117,7 +121,10 @@ article {
|
|
|
117
121
|
}
|
|
118
122
|
}
|
|
119
123
|
}
|
|
120
|
-
|
|
124
|
+
|
|
125
|
+
@media screen and (min-width:1024px) {
|
|
126
|
+
@include large();
|
|
127
|
+
}
|
|
121
128
|
|
|
122
129
|
&.rounded .max-width,
|
|
123
130
|
.split-content { @include small(); }
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: askclass-home-theme
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- AskClass
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-04-
|
|
11
|
+
date: 2023-04-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|
|
@@ -36,6 +36,7 @@ files:
|
|
|
36
36
|
- _config.yml
|
|
37
37
|
- _includes/boxes/fullpage.html
|
|
38
38
|
- _includes/boxes/rounded.html
|
|
39
|
+
- _includes/foot/js.html
|
|
39
40
|
- _includes/foot/pwaupdate.html
|
|
40
41
|
- _includes/footer.html
|
|
41
42
|
- _includes/head/common.html
|
|
@@ -64,6 +65,7 @@ files:
|
|
|
64
65
|
- assets/css/default.scss
|
|
65
66
|
- assets/css/modules.scss
|
|
66
67
|
- assets/favicon.ico
|
|
68
|
+
- assets/js/scripts.js
|
|
67
69
|
- assets/loading.svg
|
|
68
70
|
- assets/logo-144.png
|
|
69
71
|
- assets/logo-192.png
|