askclass-home-theme 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b0f03ea8c017b448577a6d7b3eb98ec48786956f92a5aa2352d9c2467022ad47
4
- data.tar.gz: 98efd2469bc09be241ba3154192ac15bf3468327dd29f6abd5a18ddb25761358
3
+ metadata.gz: 3413b1e939a63599c28707462a98e60c85002af9bf43be2c73d834daa3d19d22
4
+ data.tar.gz: 246359b8287e23b34da0f777ffa6420752e1bb4428a91f8a1c4586a1233fe530
5
5
  SHA512:
6
- metadata.gz: 6f3b15cce31936a05f2767439aa59a23de8d0547bf49bf1cf40f6cb20084ec420937c22d61b9e25face3650a70df0b8bab2d0294e765295998ad2ebe7a5c27f1
7
- data.tar.gz: 37392c6e0d3374deb99dfe88145da1eedaae97dd6b6ff504d511d24b4848745d0e27e0558f6743021e35833110bb79658bc0a8ea728293a602f10c06cb208322
6
+ metadata.gz: 764cb5e4f6736052744cf3c85e0e27614047028de61ae5ff0a882468388c07359ba14076a5b9fd573eca02bafb397b8730ccd350e5d372a7dc6b583da6853ff5
7
+ data.tar.gz: e33660c4bb31751539ac8798ec029db4e0ce608f4c795895a945ec46c178110a76a43db187917e87310ea2eb4392df702b1ee71b02376cb11a54ee36ef578e6f
data/_config.yml CHANGED
@@ -23,10 +23,7 @@ ach:
23
23
  meta:
24
24
  apple_icon: "logo-300.png"
25
25
  og_image: "logo-square-512.png"
26
- shortcut:
27
- favicon: "favicon.ico"
28
- type: "image/png"
29
- image: "logo-96.png"
26
+ favicon: "favicon.ico"
30
27
  keywords: >
31
28
  edtech,
32
29
  education,
@@ -41,7 +41,7 @@
41
41
  <p>{{ info.text }}</p>
42
42
  {%- endif %}
43
43
  {%- if info.more %}
44
- <a class='a-button link' href='{{ info.more.href }}'>
44
+ <a class='a-button link {{ info.more.size }}' href='{{ info.more.href }}'>
45
45
  {{ info.more.label }}
46
46
  </a>
47
47
  {%- endif %}
@@ -17,16 +17,22 @@
17
17
  '>
18
18
  {%- if box.image %}
19
19
  <div class='image-overlay'>
20
- <img src='{{ box.image.src }}' title='{{ box.image.text }}' width='{{ box.image.width }}' />
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
- <h1 class='{{ smaller }}'>{{ box.title }}</h1>
24
- <p>{{ box.text }}</p>
25
- {%- if box.button %}
26
- <a class='a-button link' href='{{ box.button.href }}'>
27
- {{ box.button.label }}
28
- </a>
29
- {%- endif %}
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' />
@@ -1,7 +1,11 @@
1
- {% assign ach = site.ach %}
2
- {% assign desc = page.excerpt | default: site.description | strip_html | strip_newlines %}
3
- {% assign assets = '/assets/' | prepend: site.url %}
4
- {% assign families = ach.font_families | join: "&family=" %}
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
- {% if ach.twitter %}
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
- {% endif % %}
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.shortcut.favicon }}" />
39
- <link rel="icon" type="{{ ach.meta.shotcut.type }}" href="/assets/{{ ach.meta.shortcut.image }}" />
40
- <link rel="icon" type="image/svg+xml" href="/assets/{{ ach.logo.alt_image }}" />
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
- {% for size in ach.logo.sizes %}
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 %}
@@ -1,10 +1,11 @@
1
- {%- if session_data.title -%}
2
- {%- assign title = session_data.title | append: " &bull; " | append: site.title -%}
1
+ {%- assign slug = page.name | remove_first: '.md' %}
2
+ {%- if SEGMENTS[slug].headers -%}
3
+ {%- assign title = SEGMENTS[slug].headers | join: ' ' | append: " &bull; " | 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
 
@@ -7,3 +7,4 @@
7
7
  {%- endif %}
8
8
  {%- assign TEXT = site.data.text[LANG] | default: site.data.text %}
9
9
  {%- assign BASEURL = page.lang | default: '' | prepend: '/' %}
10
+ {%- assign SEGMENTS = site.data[LANG].segments | default: site.data.segments %}
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 %}
@@ -14,6 +14,7 @@
14
14
  {{ content }}
15
15
  {% endif %}
16
16
  {% include footer.html %}
17
+ {% include foot/js.html %}
17
18
  {% include foot/pwaupdate.html %}
18
19
  </body>
19
20
  </html>
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: disc;
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: square;
30
+ list-style-type: initial;
12
31
  ul > li {
13
- list-style-type: circle;
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: 2em;
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 (min-width:1024px) {
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
- @media screen and (max-width:767px) { @include small(); }
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(); }
@@ -0,0 +1,6 @@
1
+ function playGif(e) {
2
+ if (!e.dataset.gif) return ;
3
+ const bak = e.src;
4
+ e.src = e.dataset.gif;
5
+ e.dataset.gif = bak;
6
+ }
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.0
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-06 00:00:00.000000000 Z
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