askclass-home-theme 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_config.yml +1 -4
- data/_includes/boxes/{fullpage.html → normal.html} +10 -3
- data/_includes/boxes/rounded.html +19 -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 +5 -2
- data/_layouts/default.html +1 -0
- data/_sass/_base.scss +1 -0
- data/_sass/_bullets.scss +22 -3
- data/_sass/_defaults.scss +4 -0
- data/_sass/_section.scss +43 -14
- data/assets/css/default.scss +1 -1
- data/assets/css/modules.scss +1 -1
- data/assets/js/scripts.js +28 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7323a8fa7421d3a621e37b613db75f1a1dc839f3c876997cc299a2df4f1197df
|
4
|
+
data.tar.gz: 6dff747021a522cc4ffe0f2f27d486b94d7cd5943d42fc2567caf03d22f36afa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 773efcf384c75bd5c9ab4b5354703f741206f7cc3b9619f584cab6e33c3159eb164779979707114b3840200bb6bf0fabd96cf368d65657d75d6d2ce10b3e22c1
|
7
|
+
data.tar.gz: 53abae1b2be92e194a8f3e3059549fd8b96a2a8a4b2ff5c383b329e20c35d3eebb7a962234f60ef1cb4d2fc02f5798cb47540d11f945cadad64cd7aad5d798a9
|
data/_config.yml
CHANGED
@@ -1,7 +1,14 @@
|
|
1
1
|
{%- assign info = include.data %}
|
2
|
-
|
3
|
-
|
2
|
+
{%- if include.type == 'fullpage' %}
|
3
|
+
{%- capture minHeight %}
|
4
4
|
min-height: calc(100vh - {{ info.offset-top | default: '0px' }});
|
5
|
+
{%- endcapture %}
|
6
|
+
{%- else %}
|
7
|
+
{%- assign minHeight = '' %}
|
8
|
+
{%- endif %}
|
9
|
+
<article class='fullpage'
|
10
|
+
style='{{ minHeight }}
|
11
|
+
color: {{ info.color | default: 'inherit' }};
|
5
12
|
background-color: {{ info.background-color | default: 'transparent' }};
|
6
13
|
justify-content: {{ info.justify | default: 'flex-start' }};
|
7
14
|
'>
|
@@ -41,7 +48,7 @@
|
|
41
48
|
<p>{{ info.text }}</p>
|
42
49
|
{%- endif %}
|
43
50
|
{%- if info.more %}
|
44
|
-
<a class='a-button link' href='{{ info.more.href }}'>
|
51
|
+
<a class='a-button link {{ info.more.size }}' href='{{ info.more.href }}'>
|
45
52
|
{{ info.more.label }}
|
46
53
|
</a>
|
47
54
|
{%- endif %}
|
@@ -17,16 +17,27 @@
|
|
17
17
|
'>
|
18
18
|
{%- if box.image %}
|
19
19
|
<div class='image-overlay'>
|
20
|
-
|
20
|
+
{%- if box.image.color %}
|
21
|
+
<div class='overlay'
|
22
|
+
onclick='playGif(this)'
|
23
|
+
style='background-image: linear-gradient(0deg, {{ box.image.color }}, transparent)'></div>
|
24
|
+
{%- endif %}
|
25
|
+
<img onclick='playGif(this)'
|
26
|
+
src='{{ box.image.src }}'
|
27
|
+
data-gif='{{ box.image.gif }}'
|
28
|
+
title='{{ box.image.text }}'
|
29
|
+
width='{{ box.image.width | default: "100%" }}' />
|
21
30
|
</div>
|
22
31
|
{%- endif %}
|
23
|
-
<
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
{{ box.button.
|
28
|
-
|
29
|
-
|
32
|
+
<div class='text-content'>
|
33
|
+
<h1 class='{{ box.class }}'>{{ box.title }}</h1>
|
34
|
+
<p>{{ box.text }}</p>
|
35
|
+
{%- if box.button %}
|
36
|
+
<a class='a-button link' href='{{ box.button.href }}'>
|
37
|
+
{{ box.button.label }}
|
38
|
+
</a>
|
39
|
+
{%- endif %}
|
40
|
+
</div>
|
30
41
|
</div>
|
31
42
|
{%- endfor %}
|
32
43
|
</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,6 +1,9 @@
|
|
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
|
+
{%- if _info.type == 'fullpage' %}
|
5
|
+
{%- include boxes/normal.html data=_info type='fullpage' %}
|
6
|
+
{%- else %}
|
7
|
+
{%- include boxes/{{ _info.type | default: 'normal' }}.html data=_info %}
|
8
|
+
{%- endif %}
|
6
9
|
{%- endfor %}
|
data/_layouts/default.html
CHANGED
data/_sass/_base.scss
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/_defaults.scss
CHANGED
@@ -27,6 +27,10 @@ $color-footer-bg: transparent;
|
|
27
27
|
$color-footer-fg: #444;
|
28
28
|
$color-footer-link: #222;
|
29
29
|
|
30
|
+
$box-shift-top-margin: -97px;
|
31
|
+
$box-shift-shadow: rgba(50,50,50,0.5) 1px 1px 5px;
|
32
|
+
$box-larger-font-size: 60px;
|
33
|
+
|
30
34
|
$margin-footer: 100px 0 0 0;
|
31
35
|
|
32
36
|
$content-width: 1200px;
|
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 {
|
@@ -51,11 +53,9 @@ article {
|
|
51
53
|
h4 {
|
52
54
|
margin: 0;
|
53
55
|
padding: 0;
|
54
|
-
color: var(--color-dark);
|
55
56
|
}
|
56
57
|
p {
|
57
58
|
font-family: var(--font-secondary);
|
58
|
-
color: var(--color-dark);
|
59
59
|
}
|
60
60
|
}
|
61
61
|
|
@@ -63,23 +63,46 @@ article {
|
|
63
63
|
display: flex;
|
64
64
|
justify-content: center;
|
65
65
|
.max-width {
|
66
|
-
|
67
|
-
padding: 0 1em;
|
66
|
+
padding: 0 1em 1em;
|
68
67
|
width: 100%;
|
69
68
|
}
|
70
69
|
.box {
|
71
70
|
width: 100%;
|
71
|
+
height: 100%;
|
72
72
|
box-sizing: border-box;
|
73
|
-
border-radius:
|
74
|
-
padding: 2em;
|
73
|
+
border-radius: 1em;
|
75
74
|
margin: 1em 0;
|
75
|
+
overflow: hidden;
|
76
76
|
h1 {
|
77
77
|
margin: 0;
|
78
78
|
line-height: 1;
|
79
|
+
overflow: hidden;
|
80
|
+
&.larger {
|
81
|
+
font-size: $box-larger-font-size;
|
82
|
+
}
|
83
|
+
&.shift {
|
84
|
+
margin-top: $box-shift-top-margin;
|
85
|
+
text-shadow: $box-shift-shadow;
|
86
|
+
}
|
79
87
|
}
|
80
88
|
p {
|
81
89
|
font-family: var(--font-secondary);
|
82
90
|
}
|
91
|
+
.image-overlay {
|
92
|
+
position: relative;
|
93
|
+
.overlay {
|
94
|
+
position: absolute;
|
95
|
+
bottom: 0;
|
96
|
+
left: 0;
|
97
|
+
width: 100%;
|
98
|
+
height: 100%;
|
99
|
+
background-image: linear-gradient( 0deg, black, transparent);
|
100
|
+
}
|
101
|
+
transition: all 5s ease-out;
|
102
|
+
}
|
103
|
+
.text-content {
|
104
|
+
position: relative;
|
105
|
+
}
|
83
106
|
}
|
84
107
|
}
|
85
108
|
|
@@ -87,23 +110,26 @@ article {
|
|
87
110
|
h1 { font-size: 80px; }
|
88
111
|
h1.smaller { font-size: 70px; }
|
89
112
|
h4, p { font-size: 35px; }
|
113
|
+
ul { font-size: 33px; }
|
114
|
+
.hide-large { display: none; }
|
90
115
|
}
|
91
116
|
|
92
117
|
@mixin medium() {
|
93
118
|
h1 { font-size: 50px; }
|
94
119
|
h1.smaller { font-size: 40px; }
|
95
|
-
h4, p { font-size: 30px; }
|
120
|
+
h4, p, ul { font-size: 30px; }
|
121
|
+
.hide-medium { display: none; }
|
96
122
|
}
|
97
123
|
|
98
124
|
@mixin small() {
|
99
125
|
h1 { font-size: 40px; }
|
100
126
|
h1.smaller { font-size: 30px; }
|
101
127
|
h4, p { font-size: 24px; }
|
128
|
+
ul { font-size: 23px; }
|
129
|
+
.hide-small { display: none; }
|
102
130
|
}
|
103
131
|
|
104
|
-
@media screen and (
|
105
|
-
@include large();
|
106
|
-
}
|
132
|
+
@media screen and (max-width:767px) { @include small(); }
|
107
133
|
|
108
134
|
@media screen and (min-width:767px) {
|
109
135
|
@include medium();
|
@@ -117,7 +143,10 @@ article {
|
|
117
143
|
}
|
118
144
|
}
|
119
145
|
}
|
120
|
-
|
146
|
+
|
147
|
+
@media screen and (min-width:1024px) {
|
148
|
+
@include large();
|
149
|
+
}
|
121
150
|
|
122
151
|
&.rounded .max-width,
|
123
152
|
.split-content { @include small(); }
|
data/assets/css/default.scss
CHANGED
data/assets/css/modules.scss
CHANGED
@@ -0,0 +1,28 @@
|
|
1
|
+
function playGif(overlay) {
|
2
|
+
let e = overlay.nextElementSibling;
|
3
|
+
|
4
|
+
if (overlay.dataset.gif) {
|
5
|
+
e = overlay;
|
6
|
+
}
|
7
|
+
|
8
|
+
if (!e.dataset.gif) return ;
|
9
|
+
|
10
|
+
const bak = e.src;
|
11
|
+
e.src = e.dataset.gif;
|
12
|
+
e.dataset.gif = bak;
|
13
|
+
|
14
|
+
if (e.dataset.playing) {
|
15
|
+
e.removeAttribute('data-playing');
|
16
|
+
if (e !== overlay)
|
17
|
+
overlay.style.opacity = 1;
|
18
|
+
} else {
|
19
|
+
e.dataset.playing = true;
|
20
|
+
if (e !== overlay)
|
21
|
+
overlay.style.opacity = 0;
|
22
|
+
}
|
23
|
+
|
24
|
+
e.parentElement
|
25
|
+
.nextElementSibling
|
26
|
+
.firstElementChild
|
27
|
+
.style.opacity = e.dataset.playing ? 0.2 : 1;
|
28
|
+
}
|
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.2
|
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-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -34,8 +34,9 @@ files:
|
|
34
34
|
- LICENSE
|
35
35
|
- README.md
|
36
36
|
- _config.yml
|
37
|
-
- _includes/boxes/
|
37
|
+
- _includes/boxes/normal.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
|